/* gitg-diff-image-side-by-side.c generated by valac 0.34.0.108-f56ac, the Vala compiler
 * generated from gitg-diff-image-side-by-side.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 <pango/pango.h>
#include <gdk/gdk.h>
#include <cairo.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <float.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <glib/gi18n-lib.h>


#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;
typedef struct _GitgDiffImageSideBySidePrivate GitgDiffImageSideBySidePrivate;

#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;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define GITG_DIFF_IMAGE_SIDE_BY_SIDE_TYPE_SIZING (gitg_diff_image_side_by_side_sizing_get_type ())

#define GITG_DIFF_IMAGE_SIDE_BY_SIDE_TYPE_SIZE (gitg_diff_image_side_by_side_size_get_type ())
typedef struct _GitgDiffImageSideBySideSize GitgDiffImageSideBySideSize;
typedef struct _GitgDiffImageSideBySideSizing GitgDiffImageSideBySideSizing;
#define _cairo_surface_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_surface_destroy (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

struct _GitgDiffImageSideBySide {
	GtkDrawingArea parent_instance;
	GitgDiffImageSideBySidePrivate * priv;
};

struct _GitgDiffImageSideBySideClass {
	GtkDrawingAreaClass parent_class;
};

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 _GitgDiffImageSideBySidePrivate {
	PangoLayout* d_old_size_layout;
	PangoLayout* d_new_size_layout;
	GitgDiffImageSurfaceCache* _cache;
	gint _spacing;
};

struct _GitgDiffImageSideBySideSize {
	gint width;
	gint image_width;
	gint image_height;
};

struct _GitgDiffImageSideBySideSizing {
	GitgDiffImageSideBySideSize old_size;
	GitgDiffImageSideBySideSize new_size;
};


static gpointer gitg_diff_image_side_by_side_parent_class = NULL;

GType gitg_diff_image_side_by_side_get_type (void) G_GNUC_CONST;
GType gitg_diff_image_surface_cache_get_type (void) G_GNUC_CONST;
#define GITG_DIFF_IMAGE_SIDE_BY_SIDE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_DIFF_IMAGE_SIDE_BY_SIDE, GitgDiffImageSideBySidePrivate))
enum  {
	GITG_DIFF_IMAGE_SIDE_BY_SIDE_DUMMY_PROPERTY,
	GITG_DIFF_IMAGE_SIDE_BY_SIDE_CACHE,
	GITG_DIFF_IMAGE_SIDE_BY_SIDE_SPACING
};
#define GITG_DIFF_IMAGE_SIDE_BY_SIDE_TEXT_SPACING 6
static GType gitg_diff_image_side_by_side_sizing_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static GType gitg_diff_image_side_by_side_size_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static GitgDiffImageSideBySideSize* gitg_diff_image_side_by_side_size_dup (const GitgDiffImageSideBySideSize* self);
static void gitg_diff_image_side_by_side_size_free (GitgDiffImageSideBySideSize* self);
static GitgDiffImageSideBySideSizing* gitg_diff_image_side_by_side_sizing_dup (const GitgDiffImageSideBySideSizing* self);
static void gitg_diff_image_side_by_side_sizing_free (GitgDiffImageSideBySideSizing* self);
static void gitg_diff_image_side_by_side_get_sizing (GitgDiffImageSideBySide* self, gint width, GitgDiffImageSideBySideSizing* result);
GitgDiffImageSurfaceCache* gitg_diff_image_side_by_side_get_cache (GitgDiffImageSideBySide* self);
GdkPixbuf* gitg_diff_image_surface_cache_get_old_pixbuf (GitgDiffImageSurfaceCache* self);
GdkPixbuf* gitg_diff_image_surface_cache_get_new_pixbuf (GitgDiffImageSurfaceCache* self);
cairo_surface_t* gitg_diff_image_surface_cache_get_old_surface (GitgDiffImageSurfaceCache* self, GdkWindow* window);
cairo_surface_t* gitg_diff_image_surface_cache_get_new_surface (GitgDiffImageSurfaceCache* self, GdkWindow* window);
gint gitg_diff_image_side_by_side_get_spacing (GitgDiffImageSideBySide* self);
static void gitg_diff_image_side_by_side_real_style_updated (GtkWidget* base);
static void gitg_diff_image_side_by_side_real_get_preferred_height_for_width (GtkWidget* base, gint width, gint* minimum_height, gint* natural_height);
static PangoLayout* gitg_diff_image_side_by_side_get_old_size_layout (GitgDiffImageSideBySide* self);
static PangoLayout* gitg_diff_image_side_by_side_get_new_size_layout (GitgDiffImageSideBySide* self);
static GtkSizeRequestMode gitg_diff_image_side_by_side_real_get_request_mode (GtkWidget* base);
static gboolean gitg_diff_image_side_by_side_real_draw (GtkWidget* base, cairo_t* cr);
static void gitg_diff_image_side_by_side_real_realize (GtkWidget* base);
GitgDiffImageSideBySide* gitg_diff_image_side_by_side_new (void);
GitgDiffImageSideBySide* gitg_diff_image_side_by_side_construct (GType object_type);
void gitg_diff_image_side_by_side_set_cache (GitgDiffImageSideBySide* self, GitgDiffImageSurfaceCache* value);
void gitg_diff_image_side_by_side_set_spacing (GitgDiffImageSideBySide* self, gint value);
static void gitg_diff_image_side_by_side_finalize (GObject * obj);
static void _vala_gitg_diff_image_side_by_side_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_diff_image_side_by_side_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


static gpointer _g_object_ref0 (gpointer self) {
#line 104 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	return self ? g_object_ref (self) : NULL;
#line 149 "gitg-diff-image-side-by-side.c"
}


static void gitg_diff_image_side_by_side_get_sizing (GitgDiffImageSideBySide* self, gint width, GitgDiffImageSideBySideSizing* result) {
	gdouble ow = 0.0;
	gdouble oh = 0.0;
	gdouble nw = 0.0;
	gdouble nh = 0.0;
	GdkPixbuf* old_pixbuf = NULL;
	GitgDiffImageSurfaceCache* _tmp0_ = NULL;
	GdkPixbuf* _tmp1_ = NULL;
	GdkPixbuf* _tmp2_ = NULL;
	GdkPixbuf* _tmp3_ = NULL;
	GdkPixbuf* new_pixbuf = NULL;
	GitgDiffImageSurfaceCache* _tmp4_ = NULL;
	GdkPixbuf* _tmp5_ = NULL;
	GdkPixbuf* _tmp6_ = NULL;
	GdkPixbuf* _tmp7_ = NULL;
	GdkWindow* window = NULL;
	GdkWindow* _tmp8_ = NULL;
	GdkWindow* _tmp9_ = NULL;
	GdkPixbuf* _tmp10_ = NULL;
	GdkPixbuf* _tmp24_ = NULL;
	gdouble tw = 0.0;
	gdouble _tmp38_ = 0.0;
	gdouble _tmp39_ = 0.0;
	gint _tmp40_ = 0;
	gint _tmp41_ = 0;
	gdouble osw = 0.0;
	gdouble nsw = 0.0;
	gdouble _tmp42_ = 0.0;
	gdouble oswi = 0.0;
	gdouble _tmp51_ = 0.0;
	gdouble _tmp52_ = 0.0;
	gdouble _tmp53_ = 0.0;
	gdouble nswi = 0.0;
	gdouble _tmp54_ = 0.0;
	gdouble _tmp55_ = 0.0;
	gdouble _tmp56_ = 0.0;
	gdouble oshi = 0.0;
	gdouble nshi = 0.0;
	gdouble _tmp57_ = 0.0;
	gdouble _tmp61_ = 0.0;
	gdouble _tmp65_ = 0.0;
	gdouble _tmp66_ = 0.0;
	gdouble _tmp67_ = 0.0;
	GitgDiffImageSideBySideSize _tmp68_ = {0};
	gdouble _tmp69_ = 0.0;
	gdouble _tmp70_ = 0.0;
	gdouble _tmp71_ = 0.0;
	GitgDiffImageSideBySideSize _tmp72_ = {0};
	GitgDiffImageSideBySideSizing _tmp73_ = {0};
#line 100 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	g_return_if_fail (self != NULL);
#line 102 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	ow = (gdouble) 0;
#line 102 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	oh = (gdouble) 0;
#line 102 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	nw = (gdouble) 0;
#line 102 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	nh = (gdouble) 0;
#line 104 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp0_ = self->priv->_cache;
#line 104 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp1_ = gitg_diff_image_surface_cache_get_old_pixbuf (_tmp0_);
#line 104 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp2_ = _tmp1_;
#line 104 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 104 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	old_pixbuf = _tmp3_;
#line 105 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp4_ = self->priv->_cache;
#line 105 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp5_ = gitg_diff_image_surface_cache_get_new_pixbuf (_tmp4_);
#line 105 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp6_ = _tmp5_;
#line 105 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp7_ = _g_object_ref0 (_tmp6_);
#line 105 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	new_pixbuf = _tmp7_;
#line 107 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp8_ = gtk_widget_get_window ((GtkWidget*) self);
#line 107 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp9_ = _g_object_ref0 (_tmp8_);
#line 107 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	window = _tmp9_;
#line 109 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp10_ = old_pixbuf;
#line 109 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	if (_tmp10_ != NULL) {
#line 242 "gitg-diff-image-side-by-side.c"
		gdouble xscale = 0.0;
		gdouble yscale = 0.0;
		GdkWindow* _tmp11_ = NULL;
		GdkPixbuf* _tmp18_ = NULL;
		gint _tmp19_ = 0;
		gdouble _tmp20_ = 0.0;
		GdkPixbuf* _tmp21_ = NULL;
		gint _tmp22_ = 0;
		gdouble _tmp23_ = 0.0;
#line 111 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		xscale = (gdouble) 1;
#line 111 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		yscale = (gdouble) 1;
#line 113 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp11_ = window;
#line 113 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		if (_tmp11_ != NULL) {
#line 260 "gitg-diff-image-side-by-side.c"
			GitgDiffImageSurfaceCache* _tmp12_ = NULL;
			GdkWindow* _tmp13_ = NULL;
			cairo_surface_t* _tmp14_ = NULL;
			cairo_surface_t* _tmp15_ = NULL;
			gdouble _tmp16_ = 0.0;
			gdouble _tmp17_ = 0.0;
#line 115 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp12_ = self->priv->_cache;
#line 115 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp13_ = gtk_widget_get_window ((GtkWidget*) self);
#line 115 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp14_ = gitg_diff_image_surface_cache_get_old_surface (_tmp12_, _tmp13_);
#line 115 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp15_ = _tmp14_;
#line 115 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			cairo_surface_get_device_scale (_tmp15_, &_tmp16_, &_tmp17_);
#line 115 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			xscale = _tmp16_;
#line 115 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			yscale = _tmp17_;
#line 115 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_cairo_surface_destroy0 (_tmp15_);
#line 283 "gitg-diff-image-side-by-side.c"
		}
#line 118 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp18_ = old_pixbuf;
#line 118 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp19_ = gdk_pixbuf_get_width (_tmp18_);
#line 118 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp20_ = xscale;
#line 118 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		ow = ((gdouble) _tmp19_) / _tmp20_;
#line 119 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp21_ = old_pixbuf;
#line 119 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp22_ = gdk_pixbuf_get_height (_tmp21_);
#line 119 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp23_ = yscale;
#line 119 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		oh = ((gdouble) _tmp22_) / _tmp23_;
#line 301 "gitg-diff-image-side-by-side.c"
	}
#line 122 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp24_ = new_pixbuf;
#line 122 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	if (_tmp24_ != NULL) {
#line 307 "gitg-diff-image-side-by-side.c"
		gdouble xscale = 0.0;
		gdouble yscale = 0.0;
		GdkWindow* _tmp25_ = NULL;
		GdkPixbuf* _tmp32_ = NULL;
		gint _tmp33_ = 0;
		gdouble _tmp34_ = 0.0;
		GdkPixbuf* _tmp35_ = NULL;
		gint _tmp36_ = 0;
		gdouble _tmp37_ = 0.0;
#line 124 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		xscale = (gdouble) 1;
#line 124 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		yscale = (gdouble) 1;
#line 126 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp25_ = window;
#line 126 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		if (_tmp25_ != NULL) {
#line 325 "gitg-diff-image-side-by-side.c"
			GitgDiffImageSurfaceCache* _tmp26_ = NULL;
			GdkWindow* _tmp27_ = NULL;
			cairo_surface_t* _tmp28_ = NULL;
			cairo_surface_t* _tmp29_ = NULL;
			gdouble _tmp30_ = 0.0;
			gdouble _tmp31_ = 0.0;
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp26_ = self->priv->_cache;
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp27_ = gtk_widget_get_window ((GtkWidget*) self);
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp28_ = gitg_diff_image_surface_cache_get_new_surface (_tmp26_, _tmp27_);
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp29_ = _tmp28_;
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			cairo_surface_get_device_scale (_tmp29_, &_tmp30_, &_tmp31_);
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			xscale = _tmp30_;
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			yscale = _tmp31_;
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_cairo_surface_destroy0 (_tmp29_);
#line 348 "gitg-diff-image-side-by-side.c"
		}
#line 131 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp32_ = new_pixbuf;
#line 131 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp33_ = gdk_pixbuf_get_width (_tmp32_);
#line 131 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp34_ = xscale;
#line 131 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		nw = ((gdouble) _tmp33_) / _tmp34_;
#line 132 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp35_ = new_pixbuf;
#line 132 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp36_ = gdk_pixbuf_get_height (_tmp35_);
#line 132 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp37_ = yscale;
#line 132 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		nh = ((gdouble) _tmp36_) / _tmp37_;
#line 366 "gitg-diff-image-side-by-side.c"
	}
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp38_ = ow;
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp39_ = nw;
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	tw = _tmp38_ + _tmp39_;
#line 137 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp40_ = width;
#line 137 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp41_ = self->priv->_spacing;
#line 137 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	width = _tmp40_ - _tmp41_;
#line 139 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	osw = (gdouble) 0;
#line 139 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	nsw = (gdouble) 0;
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp42_ = tw;
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	if (_tmp42_ != ((gdouble) 0)) {
#line 388 "gitg-diff-image-side-by-side.c"
		gdouble _tmp43_ = 0.0;
		gdouble _tmp47_ = 0.0;
#line 143 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp43_ = ow;
#line 143 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		if (_tmp43_ != ((gdouble) 0)) {
#line 395 "gitg-diff-image-side-by-side.c"
			gint _tmp44_ = 0;
			gdouble _tmp45_ = 0.0;
			gdouble _tmp46_ = 0.0;
#line 145 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp44_ = width;
#line 145 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp45_ = ow;
#line 145 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp46_ = tw;
#line 145 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			osw = _tmp44_ * (_tmp45_ / _tmp46_);
#line 407 "gitg-diff-image-side-by-side.c"
		}
#line 148 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp47_ = nw;
#line 148 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		if (_tmp47_ != ((gdouble) 0)) {
#line 413 "gitg-diff-image-side-by-side.c"
			gint _tmp48_ = 0;
			gdouble _tmp49_ = 0.0;
			gdouble _tmp50_ = 0.0;
#line 150 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp48_ = width;
#line 150 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp49_ = nw;
#line 150 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp50_ = tw;
#line 150 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			nsw = _tmp48_ * (_tmp49_ / _tmp50_);
#line 425 "gitg-diff-image-side-by-side.c"
		}
	}
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp51_ = osw;
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp52_ = ow;
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp53_ = MIN (_tmp51_, _tmp52_);
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	oswi = _tmp53_;
#line 155 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp54_ = nsw;
#line 155 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp55_ = nw;
#line 155 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp56_ = MIN (_tmp54_, _tmp55_);
#line 155 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	nswi = _tmp56_;
#line 157 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	oshi = (gdouble) 0;
#line 157 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	nshi = (gdouble) 0;
#line 159 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp57_ = ow;
#line 159 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	if (_tmp57_ != ((gdouble) 0)) {
#line 452 "gitg-diff-image-side-by-side.c"
		gdouble _tmp58_ = 0.0;
		gdouble _tmp59_ = 0.0;
		gdouble _tmp60_ = 0.0;
#line 161 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp58_ = oswi;
#line 161 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp59_ = ow;
#line 161 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp60_ = oh;
#line 161 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		oshi = (_tmp58_ / _tmp59_) * _tmp60_;
#line 464 "gitg-diff-image-side-by-side.c"
	}
#line 164 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp61_ = nw;
#line 164 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	if (_tmp61_ != ((gdouble) 0)) {
#line 470 "gitg-diff-image-side-by-side.c"
		gdouble _tmp62_ = 0.0;
		gdouble _tmp63_ = 0.0;
		gdouble _tmp64_ = 0.0;
#line 166 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp62_ = nswi;
#line 166 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp63_ = nw;
#line 166 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp64_ = nh;
#line 166 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		nshi = (_tmp62_ / _tmp63_) * _tmp64_;
#line 482 "gitg-diff-image-side-by-side.c"
	}
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp65_ = osw;
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp66_ = oswi;
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp67_ = oshi;
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	memset (&_tmp68_, 0, sizeof (GitgDiffImageSideBySideSize));
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp68_.width = (gint) _tmp65_;
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp68_.image_width = (gint) _tmp66_;
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp68_.image_height = (gint) _tmp67_;
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp69_ = nsw;
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp70_ = nswi;
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp71_ = nshi;
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	memset (&_tmp72_, 0, sizeof (GitgDiffImageSideBySideSize));
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp72_.width = (gint) _tmp69_;
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp72_.image_width = (gint) _tmp70_;
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp72_.image_height = (gint) _tmp71_;
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	memset (&_tmp73_, 0, sizeof (GitgDiffImageSideBySideSizing));
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp73_.old_size = _tmp68_;
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp73_.new_size = _tmp72_;
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	*result = _tmp73_;
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_g_object_unref0 (window);
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_g_object_unref0 (new_pixbuf);
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_g_object_unref0 (old_pixbuf);
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	return;
#line 528 "gitg-diff-image-side-by-side.c"
}


static void gitg_diff_image_side_by_side_real_style_updated (GtkWidget* base) {
	GitgDiffImageSideBySide * self;
#line 186 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	self = (GitgDiffImageSideBySide*) base;
#line 188 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_g_object_unref0 (self->priv->d_old_size_layout);
#line 188 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	self->priv->d_old_size_layout = NULL;
#line 189 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_g_object_unref0 (self->priv->d_new_size_layout);
#line 189 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	self->priv->d_new_size_layout = NULL;
#line 544 "gitg-diff-image-side-by-side.c"
}


static void gitg_diff_image_side_by_side_real_get_preferred_height_for_width (GtkWidget* base, gint width, gint* minimum_height, gint* natural_height) {
	GitgDiffImageSideBySide * self;
	gint _vala_minimum_height = 0;
	gint _vala_natural_height = 0;
	GitgDiffImageSideBySideSizing sizing = {0};
	gint _tmp0_ = 0;
	GitgDiffImageSideBySideSizing _tmp1_ = {0};
	gdouble h = 0.0;
	GitgDiffImageSideBySideSizing _tmp2_ = {0};
	GitgDiffImageSideBySideSize _tmp3_ = {0};
	gint _tmp4_ = 0;
	GitgDiffImageSideBySideSizing _tmp5_ = {0};
	GitgDiffImageSideBySideSize _tmp6_ = {0};
	gint _tmp7_ = 0;
	gdouble _tmp8_ = 0.0;
	PangoLayout* ol = NULL;
	PangoLayout* _tmp9_ = NULL;
	PangoLayout* _tmp10_ = NULL;
	PangoLayout* _tmp11_ = NULL;
	PangoLayout* nl = NULL;
	PangoLayout* _tmp12_ = NULL;
	PangoLayout* _tmp13_ = NULL;
	PangoLayout* _tmp14_ = NULL;
	gint osw = 0;
	gint osh = 0;
	gint nsw = 0;
	gint nsh = 0;
	PangoLayout* _tmp15_ = NULL;
	PangoLayout* _tmp19_ = NULL;
	gdouble _tmp23_ = 0.0;
	gint _tmp24_ = 0;
	gint _tmp25_ = 0;
	gint _tmp26_ = 0;
	gdouble _tmp27_ = 0.0;
	gdouble _tmp28_ = 0.0;
#line 192 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	self = (GitgDiffImageSideBySide*) base;
#line 194 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp0_ = width;
#line 194 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	gitg_diff_image_side_by_side_get_sizing (self, _tmp0_, &_tmp1_);
#line 194 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	sizing = _tmp1_;
#line 195 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp2_ = sizing;
#line 195 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp3_ = _tmp2_.old_size;
#line 195 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp4_ = _tmp3_.image_height;
#line 195 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp5_ = sizing;
#line 195 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp6_ = _tmp5_.new_size;
#line 195 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp7_ = _tmp6_.image_height;
#line 195 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp8_ = MAX ((gdouble) _tmp4_, (gdouble) _tmp7_);
#line 195 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	h = _tmp8_;
#line 197 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp9_ = gitg_diff_image_side_by_side_get_old_size_layout (self);
#line 197 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp10_ = _tmp9_;
#line 197 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp11_ = _g_object_ref0 (_tmp10_);
#line 197 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	ol = _tmp11_;
#line 198 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp12_ = gitg_diff_image_side_by_side_get_new_size_layout (self);
#line 198 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp13_ = _tmp12_;
#line 198 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp14_ = _g_object_ref0 (_tmp13_);
#line 198 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	nl = _tmp14_;
#line 200 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	osw = 0;
#line 200 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	osh = 0;
#line 200 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	nsw = 0;
#line 200 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	nsh = 0;
#line 202 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp15_ = ol;
#line 202 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	if (_tmp15_ != NULL) {
#line 635 "gitg-diff-image-side-by-side.c"
		PangoLayout* _tmp16_ = NULL;
		gint _tmp17_ = 0;
		gint _tmp18_ = 0;
#line 204 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp16_ = ol;
#line 204 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		pango_layout_get_pixel_size (_tmp16_, &_tmp17_, &_tmp18_);
#line 204 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		osw = _tmp17_;
#line 204 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		osh = _tmp18_;
#line 647 "gitg-diff-image-side-by-side.c"
	}
#line 207 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp19_ = nl;
#line 207 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	if (_tmp19_ != NULL) {
#line 653 "gitg-diff-image-side-by-side.c"
		PangoLayout* _tmp20_ = NULL;
		gint _tmp21_ = 0;
		gint _tmp22_ = 0;
#line 209 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp20_ = nl;
#line 209 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		pango_layout_get_pixel_size (_tmp20_, &_tmp21_, &_tmp22_);
#line 209 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		nsw = _tmp21_;
#line 209 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		nsh = _tmp22_;
#line 665 "gitg-diff-image-side-by-side.c"
	}
#line 212 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp23_ = h;
#line 212 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp24_ = osh;
#line 212 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp25_ = nsh;
#line 212 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp26_ = MAX (_tmp24_, _tmp25_);
#line 212 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	h = _tmp23_ + (GITG_DIFF_IMAGE_SIDE_BY_SIDE_TEXT_SPACING + _tmp26_);
#line 214 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp27_ = h;
#line 214 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_vala_minimum_height = (gint) _tmp27_;
#line 215 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp28_ = h;
#line 215 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_vala_natural_height = (gint) _tmp28_;
#line 192 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_g_object_unref0 (nl);
#line 192 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_g_object_unref0 (ol);
#line 192 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	if (minimum_height) {
#line 192 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		*minimum_height = _vala_minimum_height;
#line 693 "gitg-diff-image-side-by-side.c"
	}
#line 192 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	if (natural_height) {
#line 192 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		*natural_height = _vala_natural_height;
#line 699 "gitg-diff-image-side-by-side.c"
	}
}


static GtkSizeRequestMode gitg_diff_image_side_by_side_real_get_request_mode (GtkWidget* base) {
	GitgDiffImageSideBySide * self;
	GtkSizeRequestMode result = 0;
#line 218 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	self = (GitgDiffImageSideBySide*) base;
#line 220 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	result = GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH;
#line 220 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	return result;
#line 713 "gitg-diff-image-side-by-side.c"
}


static gboolean gitg_diff_image_side_by_side_real_draw (GtkWidget* base, cairo_t* cr) {
	GitgDiffImageSideBySide * self;
	gboolean result = FALSE;
	GdkWindow* window = NULL;
	GdkWindow* _tmp0_ = NULL;
	GdkWindow* _tmp1_ = NULL;
	GtkAllocation alloc = {0};
	GtkAllocation _tmp2_ = {0};
	GitgDiffImageSideBySideSizing sizing = {0};
	GtkAllocation _tmp3_ = {0};
	gint _tmp4_ = 0;
	GitgDiffImageSideBySideSizing _tmp5_ = {0};
	cairo_surface_t* old_surface = NULL;
	GitgDiffImageSurfaceCache* _tmp6_ = NULL;
	GdkWindow* _tmp7_ = NULL;
	cairo_surface_t* _tmp8_ = NULL;
	cairo_surface_t* new_surface = NULL;
	GitgDiffImageSurfaceCache* _tmp9_ = NULL;
	GdkWindow* _tmp10_ = NULL;
	cairo_surface_t* _tmp11_ = NULL;
	GtkStyleContext* ctx = NULL;
	GtkStyleContext* _tmp12_ = NULL;
	GtkStyleContext* _tmp13_ = NULL;
	GtkStyleContext* _tmp14_ = NULL;
	cairo_t* _tmp15_ = NULL;
	GtkAllocation _tmp16_ = {0};
	gint _tmp17_ = 0;
	GtkAllocation _tmp18_ = {0};
	gint _tmp19_ = 0;
	GtkAllocation _tmp20_ = {0};
	gint _tmp21_ = 0;
	GtkAllocation _tmp22_ = {0};
	gint _tmp23_ = 0;
	gdouble max_height = 0.0;
	GitgDiffImageSideBySideSizing _tmp24_ = {0};
	GitgDiffImageSideBySideSize _tmp25_ = {0};
	gint _tmp26_ = 0;
	GitgDiffImageSideBySideSizing _tmp27_ = {0};
	GitgDiffImageSideBySideSize _tmp28_ = {0};
	gint _tmp29_ = 0;
	gdouble _tmp30_ = 0.0;
	gdouble spread_factor = 0.0;
	gboolean _tmp31_ = FALSE;
	cairo_surface_t* _tmp32_ = NULL;
	cairo_surface_t* _tmp34_ = NULL;
	cairo_surface_t* _tmp69_ = NULL;
#line 223 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	self = (GitgDiffImageSideBySide*) base;
#line 223 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	g_return_val_if_fail (cr != NULL, FALSE);
#line 225 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp0_ = gtk_widget_get_window ((GtkWidget*) self);
#line 225 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 225 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	window = _tmp1_;
#line 228 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	gtk_widget_get_allocation ((GtkWidget*) self, &_tmp2_);
#line 228 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	alloc = _tmp2_;
#line 230 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp3_ = alloc;
#line 230 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp4_ = _tmp3_.width;
#line 230 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	gitg_diff_image_side_by_side_get_sizing (self, _tmp4_, &_tmp5_);
#line 230 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	sizing = _tmp5_;
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp6_ = self->priv->_cache;
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp7_ = window;
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp8_ = gitg_diff_image_surface_cache_get_old_surface (_tmp6_, _tmp7_);
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	old_surface = _tmp8_;
#line 233 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp9_ = self->priv->_cache;
#line 233 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp10_ = window;
#line 233 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp11_ = gitg_diff_image_surface_cache_get_new_surface (_tmp9_, _tmp10_);
#line 233 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	new_surface = _tmp11_;
#line 235 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp12_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 235 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp13_ = _g_object_ref0 (_tmp12_);
#line 235 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	ctx = _tmp13_;
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp14_ = ctx;
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp15_ = cr;
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp16_ = alloc;
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp17_ = _tmp16_.x;
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp18_ = alloc;
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp19_ = _tmp18_.y;
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp20_ = alloc;
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp21_ = _tmp20_.width;
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp22_ = alloc;
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp23_ = _tmp22_.height;
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	gtk_render_background (_tmp14_, _tmp15_, (gdouble) _tmp17_, (gdouble) _tmp19_, (gdouble) _tmp21_, (gdouble) _tmp23_);
#line 239 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp24_ = sizing;
#line 239 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp25_ = _tmp24_.old_size;
#line 239 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp26_ = _tmp25_.image_height;
#line 239 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp27_ = sizing;
#line 239 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp28_ = _tmp27_.new_size;
#line 239 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp29_ = _tmp28_.image_height;
#line 239 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp30_ = MAX ((gdouble) _tmp26_, (gdouble) _tmp29_);
#line 239 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	max_height = _tmp30_;
#line 240 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	spread_factor = 0.5;
#line 242 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp32_ = old_surface;
#line 242 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	if (_tmp32_ != NULL) {
#line 851 "gitg-diff-image-side-by-side.c"
		cairo_surface_t* _tmp33_ = NULL;
#line 242 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp33_ = new_surface;
#line 242 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp31_ = _tmp33_ != NULL;
#line 857 "gitg-diff-image-side-by-side.c"
	} else {
#line 242 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp31_ = FALSE;
#line 861 "gitg-diff-image-side-by-side.c"
	}
#line 242 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	if (_tmp31_) {
#line 244 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		spread_factor = 2.0 / 3.0;
#line 867 "gitg-diff-image-side-by-side.c"
	}
#line 247 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp34_ = old_surface;
#line 247 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	if (_tmp34_ != NULL) {
#line 873 "gitg-diff-image-side-by-side.c"
		gdouble x = 0.0;
		GitgDiffImageSideBySideSizing _tmp35_ = {0};
		GitgDiffImageSideBySideSize _tmp36_ = {0};
		gint _tmp37_ = 0;
		GitgDiffImageSideBySideSizing _tmp38_ = {0};
		GitgDiffImageSideBySideSize _tmp39_ = {0};
		gint _tmp40_ = 0;
		gdouble _tmp41_ = 0.0;
		gdouble y = 0.0;
		gdouble _tmp42_ = 0.0;
		GitgDiffImageSideBySideSizing _tmp43_ = {0};
		GitgDiffImageSideBySideSize _tmp44_ = {0};
		gint _tmp45_ = 0;
		cairo_t* _tmp46_ = NULL;
		cairo_surface_t* _tmp47_ = NULL;
		gdouble _tmp48_ = 0.0;
		gdouble _tmp49_ = 0.0;
		cairo_t* _tmp50_ = NULL;
		PangoRectangle rect = {0};
		PangoLayout* _tmp51_ = NULL;
		PangoLayout* _tmp52_ = NULL;
		PangoRectangle _tmp53_ = {0};
		GtkStyleContext* _tmp54_ = NULL;
		cairo_t* _tmp55_ = NULL;
		gdouble _tmp56_ = 0.0;
		PangoRectangle _tmp57_ = {0};
		gint _tmp58_ = 0;
		GitgDiffImageSideBySideSizing _tmp59_ = {0};
		GitgDiffImageSideBySideSize _tmp60_ = {0};
		gint _tmp61_ = 0;
		PangoRectangle _tmp62_ = {0};
		gint _tmp63_ = 0;
		PangoRectangle _tmp64_ = {0};
		gint _tmp65_ = 0;
		gdouble _tmp66_ = 0.0;
		PangoLayout* _tmp67_ = NULL;
		PangoLayout* _tmp68_ = NULL;
#line 249 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp35_ = sizing;
#line 249 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp36_ = _tmp35_.old_size;
#line 249 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp37_ = _tmp36_.width;
#line 249 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp38_ = sizing;
#line 249 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp39_ = _tmp38_.old_size;
#line 249 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp40_ = _tmp39_.image_width;
#line 249 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp41_ = spread_factor;
#line 249 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		x = (_tmp37_ - _tmp40_) * _tmp41_;
#line 250 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp42_ = max_height;
#line 250 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp43_ = sizing;
#line 250 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp44_ = _tmp43_.old_size;
#line 250 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp45_ = _tmp44_.image_height;
#line 250 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		y = (_tmp42_ - _tmp45_) / 2;
#line 252 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp46_ = cr;
#line 252 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp47_ = old_surface;
#line 252 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp48_ = x;
#line 252 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp49_ = y;
#line 252 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		cairo_set_source_surface (_tmp46_, _tmp47_, _tmp48_, _tmp49_);
#line 253 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp50_ = cr;
#line 253 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		cairo_paint (_tmp50_);
#line 257 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp51_ = gitg_diff_image_side_by_side_get_old_size_layout (self);
#line 257 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp52_ = _tmp51_;
#line 257 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		pango_layout_get_pixel_extents (_tmp52_, NULL, &_tmp53_);
#line 257 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		rect = _tmp53_;
#line 259 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp54_ = ctx;
#line 259 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp55_ = cr;
#line 259 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp56_ = x;
#line 259 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp57_ = rect;
#line 259 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp58_ = _tmp57_.x;
#line 259 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp59_ = sizing;
#line 259 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp60_ = _tmp59_.old_size;
#line 259 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp61_ = _tmp60_.image_width;
#line 259 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp62_ = rect;
#line 259 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp63_ = _tmp62_.width;
#line 259 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp64_ = rect;
#line 259 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp65_ = _tmp64_.y;
#line 259 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp66_ = max_height;
#line 259 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp67_ = gitg_diff_image_side_by_side_get_old_size_layout (self);
#line 259 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp68_ = _tmp67_;
#line 259 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		gtk_render_layout (_tmp54_, _tmp55_, (_tmp56_ + _tmp58_) + ((_tmp61_ - _tmp63_) / 2), (_tmp65_ + _tmp66_) + GITG_DIFF_IMAGE_SIDE_BY_SIDE_TEXT_SPACING, _tmp68_);
#line 991 "gitg-diff-image-side-by-side.c"
	}
#line 265 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp69_ = new_surface;
#line 265 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	if (_tmp69_ != NULL) {
#line 997 "gitg-diff-image-side-by-side.c"
		gdouble x = 0.0;
		GitgDiffImageSideBySideSizing _tmp70_ = {0};
		GitgDiffImageSideBySideSize _tmp71_ = {0};
		gint _tmp72_ = 0;
		GitgDiffImageSideBySideSizing _tmp73_ = {0};
		GitgDiffImageSideBySideSize _tmp74_ = {0};
		gint _tmp75_ = 0;
		gdouble _tmp76_ = 0.0;
		gdouble y = 0.0;
		gdouble _tmp77_ = 0.0;
		GitgDiffImageSideBySideSizing _tmp78_ = {0};
		GitgDiffImageSideBySideSize _tmp79_ = {0};
		gint _tmp80_ = 0;
		GitgDiffImageSurfaceCache* _tmp81_ = NULL;
		GdkPixbuf* _tmp82_ = NULL;
		GdkPixbuf* _tmp83_ = NULL;
		cairo_t* _tmp89_ = NULL;
		cairo_surface_t* _tmp90_ = NULL;
		gdouble _tmp91_ = 0.0;
		gdouble _tmp92_ = 0.0;
		cairo_t* _tmp93_ = NULL;
		PangoRectangle rect = {0};
		PangoLayout* _tmp94_ = NULL;
		PangoLayout* _tmp95_ = NULL;
		PangoRectangle _tmp96_ = {0};
		GtkStyleContext* _tmp97_ = NULL;
		cairo_t* _tmp98_ = NULL;
		gdouble _tmp99_ = 0.0;
		PangoRectangle _tmp100_ = {0};
		gint _tmp101_ = 0;
		GitgDiffImageSideBySideSizing _tmp102_ = {0};
		GitgDiffImageSideBySideSize _tmp103_ = {0};
		gint _tmp104_ = 0;
		PangoRectangle _tmp105_ = {0};
		gint _tmp106_ = 0;
		PangoRectangle _tmp107_ = {0};
		gint _tmp108_ = 0;
		gdouble _tmp109_ = 0.0;
		PangoLayout* _tmp110_ = NULL;
		PangoLayout* _tmp111_ = NULL;
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp70_ = sizing;
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp71_ = _tmp70_.new_size;
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp72_ = _tmp71_.width;
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp73_ = sizing;
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp74_ = _tmp73_.new_size;
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp75_ = _tmp74_.image_width;
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp76_ = spread_factor;
#line 267 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		x = (_tmp72_ - _tmp75_) * (1.0 - _tmp76_);
#line 268 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp77_ = max_height;
#line 268 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp78_ = sizing;
#line 268 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp79_ = _tmp78_.new_size;
#line 268 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp80_ = _tmp79_.image_height;
#line 268 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		y = (_tmp77_ - _tmp80_) / 2;
#line 270 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp81_ = self->priv->_cache;
#line 270 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp82_ = gitg_diff_image_surface_cache_get_old_pixbuf (_tmp81_);
#line 270 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp83_ = _tmp82_;
#line 270 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		if (_tmp83_ != NULL) {
#line 1072 "gitg-diff-image-side-by-side.c"
			gdouble _tmp84_ = 0.0;
			GitgDiffImageSideBySideSizing _tmp85_ = {0};
			GitgDiffImageSideBySideSize _tmp86_ = {0};
			gint _tmp87_ = 0;
			gint _tmp88_ = 0;
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp84_ = x;
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp85_ = sizing;
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp86_ = _tmp85_.old_size;
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp87_ = _tmp86_.width;
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp88_ = self->priv->_spacing;
#line 272 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			x = _tmp84_ + (_tmp87_ + _tmp88_);
#line 1090 "gitg-diff-image-side-by-side.c"
		}
#line 275 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp89_ = cr;
#line 275 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp90_ = new_surface;
#line 275 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp91_ = x;
#line 275 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp92_ = y;
#line 275 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		cairo_set_source_surface (_tmp89_, _tmp90_, _tmp91_, _tmp92_);
#line 276 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp93_ = cr;
#line 276 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		cairo_paint (_tmp93_);
#line 280 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp94_ = gitg_diff_image_side_by_side_get_new_size_layout (self);
#line 280 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp95_ = _tmp94_;
#line 280 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		pango_layout_get_pixel_extents (_tmp95_, NULL, &_tmp96_);
#line 280 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		rect = _tmp96_;
#line 282 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp97_ = ctx;
#line 282 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp98_ = cr;
#line 282 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp99_ = x;
#line 282 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp100_ = rect;
#line 282 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp101_ = _tmp100_.x;
#line 282 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp102_ = sizing;
#line 282 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp103_ = _tmp102_.new_size;
#line 282 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp104_ = _tmp103_.image_width;
#line 282 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp105_ = rect;
#line 282 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp106_ = _tmp105_.width;
#line 282 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp107_ = rect;
#line 282 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp108_ = _tmp107_.y;
#line 282 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp109_ = max_height;
#line 282 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp110_ = gitg_diff_image_side_by_side_get_new_size_layout (self);
#line 282 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp111_ = _tmp110_;
#line 282 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		gtk_render_layout (_tmp97_, _tmp98_, (_tmp99_ + _tmp101_) + ((_tmp104_ - _tmp106_) / 2), (_tmp108_ + _tmp109_) + GITG_DIFF_IMAGE_SIDE_BY_SIDE_TEXT_SPACING, _tmp111_);
#line 1146 "gitg-diff-image-side-by-side.c"
	}
#line 288 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	result = TRUE;
#line 288 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_g_object_unref0 (ctx);
#line 288 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_cairo_surface_destroy0 (new_surface);
#line 288 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_cairo_surface_destroy0 (old_surface);
#line 288 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_g_object_unref0 (window);
#line 288 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	return result;
#line 1160 "gitg-diff-image-side-by-side.c"
}


static void gitg_diff_image_side_by_side_real_realize (GtkWidget* base) {
	GitgDiffImageSideBySide * self;
#line 291 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	self = (GitgDiffImageSideBySide*) base;
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	GTK_WIDGET_CLASS (gitg_diff_image_side_by_side_parent_class)->realize ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_drawing_area_get_type (), GtkDrawingArea));
#line 294 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	gtk_widget_queue_resize ((GtkWidget*) self);
#line 1172 "gitg-diff-image-side-by-side.c"
}


GitgDiffImageSideBySide* gitg_diff_image_side_by_side_construct (GType object_type) {
	GitgDiffImageSideBySide * self = NULL;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	self = (GitgDiffImageSideBySide*) g_object_new (object_type, NULL);
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	return self;
#line 1182 "gitg-diff-image-side-by-side.c"
}


GitgDiffImageSideBySide* gitg_diff_image_side_by_side_new (void) {
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	return gitg_diff_image_side_by_side_construct (GITG_TYPE_DIFF_IMAGE_SIDE_BY_SIDE);
#line 1189 "gitg-diff-image-side-by-side.c"
}


static PangoLayout* gitg_diff_image_side_by_side_get_old_size_layout (GitgDiffImageSideBySide* self) {
	PangoLayout* result;
	gboolean _tmp0_ = FALSE;
	PangoLayout* _tmp1_ = NULL;
	PangoLayout* _tmp28_ = NULL;
#line 29 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 31 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp1_ = self->priv->d_old_size_layout;
#line 31 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	if (_tmp1_ == NULL) {
#line 1204 "gitg-diff-image-side-by-side.c"
		GitgDiffImageSurfaceCache* _tmp2_ = NULL;
		GdkPixbuf* _tmp3_ = NULL;
		GdkPixbuf* _tmp4_ = NULL;
#line 31 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp2_ = self->priv->_cache;
#line 31 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp3_ = gitg_diff_image_surface_cache_get_old_pixbuf (_tmp2_);
#line 31 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp4_ = _tmp3_;
#line 31 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp0_ = _tmp4_ != NULL;
#line 1216 "gitg-diff-image-side-by-side.c"
	} else {
#line 31 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp0_ = FALSE;
#line 1220 "gitg-diff-image-side-by-side.c"
	}
#line 31 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	if (_tmp0_) {
#line 1224 "gitg-diff-image-side-by-side.c"
		gchar* message = NULL;
		GitgDiffImageSurfaceCache* _tmp5_ = NULL;
		GdkPixbuf* _tmp6_ = NULL;
		GdkPixbuf* _tmp7_ = NULL;
		const gchar* _tmp10_ = NULL;
		GitgDiffImageSurfaceCache* _tmp11_ = NULL;
		GdkPixbuf* _tmp12_ = NULL;
		GdkPixbuf* _tmp13_ = NULL;
		gint _tmp14_ = 0;
		gchar* _tmp15_ = NULL;
		gchar* _tmp16_ = NULL;
		GitgDiffImageSurfaceCache* _tmp17_ = NULL;
		GdkPixbuf* _tmp18_ = NULL;
		GdkPixbuf* _tmp19_ = NULL;
		gint _tmp20_ = 0;
		gchar* _tmp21_ = NULL;
		gchar* _tmp22_ = NULL;
		gchar* _tmp23_ = NULL;
		gchar* _tmp24_ = NULL;
		gchar* _tmp25_ = NULL;
		gchar* _tmp26_ = NULL;
		PangoLayout* _tmp27_ = NULL;
#line 35 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp5_ = self->priv->_cache;
#line 35 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp6_ = gitg_diff_image_surface_cache_get_new_pixbuf (_tmp5_);
#line 35 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp7_ = _tmp6_;
#line 35 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		if (_tmp7_ != NULL) {
#line 1255 "gitg-diff-image-side-by-side.c"
			gchar* _tmp8_ = NULL;
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp8_ = g_strdup (_ ("before (%s)"));
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_g_free0 (message);
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			message = _tmp8_;
#line 1263 "gitg-diff-image-side-by-side.c"
		} else {
			gchar* _tmp9_ = NULL;
#line 45 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp9_ = g_strdup (_ ("removed (%s)"));
#line 45 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_g_free0 (message);
#line 45 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			message = _tmp9_;
#line 1272 "gitg-diff-image-side-by-side.c"
		}
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp10_ = message;
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp11_ = self->priv->_cache;
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp12_ = gitg_diff_image_surface_cache_get_old_pixbuf (_tmp11_);
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp13_ = _tmp12_;
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp14_ = gdk_pixbuf_get_width (_tmp13_);
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp15_ = g_strdup_printf ("%i", _tmp14_);
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp16_ = _tmp15_;
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp17_ = self->priv->_cache;
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp18_ = gitg_diff_image_surface_cache_get_old_pixbuf (_tmp17_);
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp19_ = _tmp18_;
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp20_ = gdk_pixbuf_get_height (_tmp19_);
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp21_ = g_strdup_printf ("%i", _tmp20_);
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp22_ = _tmp21_;
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp23_ = g_strconcat (_tmp16_, " × ", _tmp22_, NULL);
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp24_ = _tmp23_;
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp25_ = g_strdup_printf (_tmp10_, _tmp24_);
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp26_ = _tmp25_;
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp27_ = gtk_widget_create_pango_layout ((GtkWidget*) self, _tmp26_);
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_g_object_unref0 (self->priv->d_old_size_layout);
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		self->priv->d_old_size_layout = _tmp27_;
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_g_free0 (_tmp26_);
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_g_free0 (_tmp24_);
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_g_free0 (_tmp22_);
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_g_free0 (_tmp16_);
#line 31 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_g_free0 (message);
#line 1324 "gitg-diff-image-side-by-side.c"
	}
#line 51 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp28_ = self->priv->d_old_size_layout;
#line 51 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	result = _tmp28_;
#line 51 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	return result;
#line 1332 "gitg-diff-image-side-by-side.c"
}


static PangoLayout* gitg_diff_image_side_by_side_get_new_size_layout (GitgDiffImageSideBySide* self) {
	PangoLayout* result;
	gboolean _tmp0_ = FALSE;
	PangoLayout* _tmp1_ = NULL;
	PangoLayout* _tmp28_ = NULL;
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 59 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp1_ = self->priv->d_new_size_layout;
#line 59 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	if (_tmp1_ == NULL) {
#line 1347 "gitg-diff-image-side-by-side.c"
		GitgDiffImageSurfaceCache* _tmp2_ = NULL;
		GdkPixbuf* _tmp3_ = NULL;
		GdkPixbuf* _tmp4_ = NULL;
#line 59 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp2_ = self->priv->_cache;
#line 59 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp3_ = gitg_diff_image_surface_cache_get_new_pixbuf (_tmp2_);
#line 59 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp4_ = _tmp3_;
#line 59 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp0_ = _tmp4_ != NULL;
#line 1359 "gitg-diff-image-side-by-side.c"
	} else {
#line 59 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp0_ = FALSE;
#line 1363 "gitg-diff-image-side-by-side.c"
	}
#line 59 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	if (_tmp0_) {
#line 1367 "gitg-diff-image-side-by-side.c"
		gchar* message = NULL;
		GitgDiffImageSurfaceCache* _tmp5_ = NULL;
		GdkPixbuf* _tmp6_ = NULL;
		GdkPixbuf* _tmp7_ = NULL;
		const gchar* _tmp10_ = NULL;
		GitgDiffImageSurfaceCache* _tmp11_ = NULL;
		GdkPixbuf* _tmp12_ = NULL;
		GdkPixbuf* _tmp13_ = NULL;
		gint _tmp14_ = 0;
		gchar* _tmp15_ = NULL;
		gchar* _tmp16_ = NULL;
		GitgDiffImageSurfaceCache* _tmp17_ = NULL;
		GdkPixbuf* _tmp18_ = NULL;
		GdkPixbuf* _tmp19_ = NULL;
		gint _tmp20_ = 0;
		gchar* _tmp21_ = NULL;
		gchar* _tmp22_ = NULL;
		gchar* _tmp23_ = NULL;
		gchar* _tmp24_ = NULL;
		gchar* _tmp25_ = NULL;
		gchar* _tmp26_ = NULL;
		PangoLayout* _tmp27_ = NULL;
#line 63 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp5_ = self->priv->_cache;
#line 63 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp6_ = gitg_diff_image_surface_cache_get_old_pixbuf (_tmp5_);
#line 63 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp7_ = _tmp6_;
#line 63 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		if (_tmp7_ != NULL) {
#line 1398 "gitg-diff-image-side-by-side.c"
			gchar* _tmp8_ = NULL;
#line 67 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp8_ = g_strdup (_ ("after (%s)"));
#line 67 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_g_free0 (message);
#line 67 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			message = _tmp8_;
#line 1406 "gitg-diff-image-side-by-side.c"
		} else {
			gchar* _tmp9_ = NULL;
#line 73 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_tmp9_ = g_strdup (_ ("added (%s)"));
#line 73 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			_g_free0 (message);
#line 73 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
			message = _tmp9_;
#line 1415 "gitg-diff-image-side-by-side.c"
		}
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp10_ = message;
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp11_ = self->priv->_cache;
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp12_ = gitg_diff_image_surface_cache_get_new_pixbuf (_tmp11_);
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp13_ = _tmp12_;
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp14_ = gdk_pixbuf_get_width (_tmp13_);
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp15_ = g_strdup_printf ("%i", _tmp14_);
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp16_ = _tmp15_;
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp17_ = self->priv->_cache;
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp18_ = gitg_diff_image_surface_cache_get_new_pixbuf (_tmp17_);
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp19_ = _tmp18_;
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp20_ = gdk_pixbuf_get_height (_tmp19_);
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp21_ = g_strdup_printf ("%i", _tmp20_);
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp22_ = _tmp21_;
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp23_ = g_strconcat (_tmp16_, " × ", _tmp22_, NULL);
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp24_ = _tmp23_;
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp25_ = g_strdup_printf (_tmp10_, _tmp24_);
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp26_ = _tmp25_;
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp27_ = gtk_widget_create_pango_layout ((GtkWidget*) self, _tmp26_);
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_g_object_unref0 (self->priv->d_new_size_layout);
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		self->priv->d_new_size_layout = _tmp27_;
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_g_free0 (_tmp26_);
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_g_free0 (_tmp24_);
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_g_free0 (_tmp22_);
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_g_free0 (_tmp16_);
#line 59 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_g_free0 (message);
#line 1467 "gitg-diff-image-side-by-side.c"
	}
#line 79 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp28_ = self->priv->d_new_size_layout;
#line 79 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	result = _tmp28_;
#line 79 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	return result;
#line 1475 "gitg-diff-image-side-by-side.c"
}


GitgDiffImageSurfaceCache* gitg_diff_image_side_by_side_get_cache (GitgDiffImageSideBySide* self) {
	GitgDiffImageSurfaceCache* result;
	GitgDiffImageSurfaceCache* _tmp0_ = NULL;
#line 83 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 83 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp0_ = self->priv->_cache;
#line 83 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	result = _tmp0_;
#line 83 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	return result;
#line 1490 "gitg-diff-image-side-by-side.c"
}


void gitg_diff_image_side_by_side_set_cache (GitgDiffImageSideBySide* self, GitgDiffImageSurfaceCache* value) {
#line 83 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	g_return_if_fail (self != NULL);
#line 83 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	if (gitg_diff_image_side_by_side_get_cache (self) != value) {
#line 1499 "gitg-diff-image-side-by-side.c"
		GitgDiffImageSurfaceCache* _tmp0_ = NULL;
		GitgDiffImageSurfaceCache* _tmp1_ = NULL;
#line 83 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp0_ = value;
#line 83 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp1_ = _g_object_ref0 (_tmp0_);
#line 83 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_g_object_unref0 (self->priv->_cache);
#line 83 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		self->priv->_cache = _tmp1_;
#line 83 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		g_object_notify ((GObject *) self, "cache");
#line 1512 "gitg-diff-image-side-by-side.c"
	}
}


gint gitg_diff_image_side_by_side_get_spacing (GitgDiffImageSideBySide* self) {
	gint result;
	gint _tmp0_ = 0;
#line 84 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 84 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_tmp0_ = self->priv->_spacing;
#line 84 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	result = _tmp0_;
#line 84 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	return result;
#line 1528 "gitg-diff-image-side-by-side.c"
}


void gitg_diff_image_side_by_side_set_spacing (GitgDiffImageSideBySide* self, gint value) {
#line 84 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	g_return_if_fail (self != NULL);
#line 84 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	if (gitg_diff_image_side_by_side_get_spacing (self) != value) {
#line 1537 "gitg-diff-image-side-by-side.c"
		gint _tmp0_ = 0;
#line 84 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		_tmp0_ = value;
#line 84 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		self->priv->_spacing = _tmp0_;
#line 84 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		g_object_notify ((GObject *) self, "spacing");
#line 1545 "gitg-diff-image-side-by-side.c"
	}
}


static GitgDiffImageSideBySideSize* gitg_diff_image_side_by_side_size_dup (const GitgDiffImageSideBySideSize* self) {
	GitgDiffImageSideBySideSize* dup;
#line 86 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	dup = g_new0 (GitgDiffImageSideBySideSize, 1);
#line 86 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	memcpy (dup, self, sizeof (GitgDiffImageSideBySideSize));
#line 86 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	return dup;
#line 1558 "gitg-diff-image-side-by-side.c"
}


static void gitg_diff_image_side_by_side_size_free (GitgDiffImageSideBySideSize* self) {
#line 86 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	g_free (self);
#line 1565 "gitg-diff-image-side-by-side.c"
}


static GType gitg_diff_image_side_by_side_size_get_type (void) {
	static volatile gsize gitg_diff_image_side_by_side_size_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_diff_image_side_by_side_size_type_id__volatile)) {
		GType gitg_diff_image_side_by_side_size_type_id;
		gitg_diff_image_side_by_side_size_type_id = g_boxed_type_register_static ("GitgDiffImageSideBySideSize", (GBoxedCopyFunc) gitg_diff_image_side_by_side_size_dup, (GBoxedFreeFunc) gitg_diff_image_side_by_side_size_free);
		g_once_init_leave (&gitg_diff_image_side_by_side_size_type_id__volatile, gitg_diff_image_side_by_side_size_type_id);
	}
	return gitg_diff_image_side_by_side_size_type_id__volatile;
}


static GitgDiffImageSideBySideSizing* gitg_diff_image_side_by_side_sizing_dup (const GitgDiffImageSideBySideSizing* self) {
	GitgDiffImageSideBySideSizing* dup;
#line 94 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	dup = g_new0 (GitgDiffImageSideBySideSizing, 1);
#line 94 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	memcpy (dup, self, sizeof (GitgDiffImageSideBySideSizing));
#line 94 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	return dup;
#line 1588 "gitg-diff-image-side-by-side.c"
}


static void gitg_diff_image_side_by_side_sizing_free (GitgDiffImageSideBySideSizing* self) {
#line 94 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	g_free (self);
#line 1595 "gitg-diff-image-side-by-side.c"
}


static GType gitg_diff_image_side_by_side_sizing_get_type (void) {
	static volatile gsize gitg_diff_image_side_by_side_sizing_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_diff_image_side_by_side_sizing_type_id__volatile)) {
		GType gitg_diff_image_side_by_side_sizing_type_id;
		gitg_diff_image_side_by_side_sizing_type_id = g_boxed_type_register_static ("GitgDiffImageSideBySideSizing", (GBoxedCopyFunc) gitg_diff_image_side_by_side_sizing_dup, (GBoxedFreeFunc) gitg_diff_image_side_by_side_sizing_free);
		g_once_init_leave (&gitg_diff_image_side_by_side_sizing_type_id__volatile, gitg_diff_image_side_by_side_sizing_type_id);
	}
	return gitg_diff_image_side_by_side_sizing_type_id__volatile;
}


static void gitg_diff_image_side_by_side_class_init (GitgDiffImageSideBySideClass * klass) {
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	gitg_diff_image_side_by_side_parent_class = g_type_class_peek_parent (klass);
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	g_type_class_add_private (klass, sizeof (GitgDiffImageSideBySidePrivate));
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	((GtkWidgetClass *) klass)->style_updated = gitg_diff_image_side_by_side_real_style_updated;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	((GtkWidgetClass *) klass)->get_preferred_height_for_width = gitg_diff_image_side_by_side_real_get_preferred_height_for_width;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	((GtkWidgetClass *) klass)->get_request_mode = gitg_diff_image_side_by_side_real_get_request_mode;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	((GtkWidgetClass *) klass)->draw = gitg_diff_image_side_by_side_real_draw;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	((GtkWidgetClass *) klass)->realize = gitg_diff_image_side_by_side_real_realize;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_diff_image_side_by_side_get_property;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_diff_image_side_by_side_set_property;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_diff_image_side_by_side_finalize;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_IMAGE_SIDE_BY_SIDE_CACHE, g_param_spec_object ("cache", "cache", "cache", GITG_TYPE_DIFF_IMAGE_SURFACE_CACHE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_IMAGE_SIDE_BY_SIDE_SPACING, g_param_spec_int ("spacing", "spacing", "spacing", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 1635 "gitg-diff-image-side-by-side.c"
}


static void gitg_diff_image_side_by_side_instance_init (GitgDiffImageSideBySide * self) {
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	self->priv = GITG_DIFF_IMAGE_SIDE_BY_SIDE_GET_PRIVATE (self);
#line 1642 "gitg-diff-image-side-by-side.c"
}


static void gitg_diff_image_side_by_side_finalize (GObject * obj) {
	GitgDiffImageSideBySide * self;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_DIFF_IMAGE_SIDE_BY_SIDE, GitgDiffImageSideBySide);
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_g_object_unref0 (self->priv->d_old_size_layout);
#line 23 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_g_object_unref0 (self->priv->d_new_size_layout);
#line 83 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	_g_object_unref0 (self->priv->_cache);
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	G_OBJECT_CLASS (gitg_diff_image_side_by_side_parent_class)->finalize (obj);
#line 1658 "gitg-diff-image-side-by-side.c"
}


GType gitg_diff_image_side_by_side_get_type (void) {
	static volatile gsize gitg_diff_image_side_by_side_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_diff_image_side_by_side_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgDiffImageSideBySideClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_diff_image_side_by_side_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgDiffImageSideBySide), 0, (GInstanceInitFunc) gitg_diff_image_side_by_side_instance_init, NULL };
		GType gitg_diff_image_side_by_side_type_id;
		gitg_diff_image_side_by_side_type_id = g_type_register_static (gtk_drawing_area_get_type (), "GitgDiffImageSideBySide", &g_define_type_info, 0);
		g_once_init_leave (&gitg_diff_image_side_by_side_type_id__volatile, gitg_diff_image_side_by_side_type_id);
	}
	return gitg_diff_image_side_by_side_type_id__volatile;
}


static void _vala_gitg_diff_image_side_by_side_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgDiffImageSideBySide * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_DIFF_IMAGE_SIDE_BY_SIDE, GitgDiffImageSideBySide);
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	switch (property_id) {
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		case GITG_DIFF_IMAGE_SIDE_BY_SIDE_CACHE:
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		g_value_set_object (value, gitg_diff_image_side_by_side_get_cache (self));
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		break;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		case GITG_DIFF_IMAGE_SIDE_BY_SIDE_SPACING:
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		g_value_set_int (value, gitg_diff_image_side_by_side_get_spacing (self));
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		break;
#line 1691 "gitg-diff-image-side-by-side.c"
		default:
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		break;
#line 1697 "gitg-diff-image-side-by-side.c"
	}
}


static void _vala_gitg_diff_image_side_by_side_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgDiffImageSideBySide * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_DIFF_IMAGE_SIDE_BY_SIDE, GitgDiffImageSideBySide);
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
	switch (property_id) {
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		case GITG_DIFF_IMAGE_SIDE_BY_SIDE_CACHE:
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		gitg_diff_image_side_by_side_set_cache (self, g_value_get_object (value));
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		break;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		case GITG_DIFF_IMAGE_SIDE_BY_SIDE_SPACING:
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		gitg_diff_image_side_by_side_set_spacing (self, g_value_get_int (value));
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		break;
#line 1719 "gitg-diff-image-side-by-side.c"
		default:
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-image-side-by-side.vala"
		break;
#line 1725 "gitg-diff-image-side-by-side.c"
	}
}



