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

/*
 * This file is part of gitg
 *
 * Copyright (C) 2013 - 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 <stdlib.h>
#include <string.h>
#include <cairo.h>
#include <float.h>
#include <math.h>


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

typedef struct _GitgDiffStat GitgDiffStat;
typedef struct _GitgDiffStatClass GitgDiffStatClass;
typedef struct _GitgDiffStatPrivate GitgDiffStatPrivate;
#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_param_spec_unref0(var) ((var == NULL) ? NULL : (var = (g_param_spec_unref (var), NULL)))

struct _GitgDiffStat {
	GtkDrawingArea parent_instance;
	GitgDiffStatPrivate * priv;
};

struct _GitgDiffStatClass {
	GtkDrawingAreaClass parent_class;
};

struct _GitgDiffStatPrivate {
	guint d_added;
	guint d_removed;
	PangoLayout* d_layout;
};


static gpointer gitg_diff_stat_parent_class = NULL;

GType gitg_diff_stat_get_type (void) G_GNUC_CONST;
#define GITG_DIFF_STAT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_DIFF_STAT, GitgDiffStatPrivate))
enum  {
	GITG_DIFF_STAT_DUMMY_PROPERTY,
	GITG_DIFF_STAT_ADDED,
	GITG_DIFF_STAT_REMOVED
};
static void gitg_diff_stat_make_layout (GitgDiffStat* self);
guint gitg_diff_stat_get_added (GitgDiffStat* self);
guint gitg_diff_stat_get_removed (GitgDiffStat* self);
static void gitg_diff_stat_real_style_updated (GtkWidget* base);
static gboolean gitg_diff_stat_real_draw (GtkWidget* base, cairo_t* context);
static void gitg_diff_stat_real_get_preferred_height (GtkWidget* base, gint* minimum_height, gint* natural_height);
static void gitg_diff_stat_real_get_preferred_width (GtkWidget* base, gint* minimum_width, gint* natural_width);
GitgDiffStat* gitg_diff_stat_new (void);
GitgDiffStat* gitg_diff_stat_construct (GType object_type);
void gitg_diff_stat_set_added (GitgDiffStat* self, guint value);
void gitg_diff_stat_set_removed (GitgDiffStat* self, guint value);
static GObject * gitg_diff_stat_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static void gitg_diff_stat_finalize (GObject* obj);
static void _vala_gitg_diff_stat_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_diff_stat_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


static void gitg_diff_stat_make_layout (GitgDiffStat* self) {
	gchar* txt = NULL;
	guint _tmp0_ = 0U;
	guint _tmp1_ = 0U;
	guint _tmp2_ = 0U;
	guint _tmp3_ = 0U;
	gchar* _tmp4_ = NULL;
	PangoLayout* _tmp5_ = NULL;
#line 66 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	g_return_if_fail (self != NULL);
#line 68 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp0_ = gitg_diff_stat_get_added (self);
#line 68 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp1_ = _tmp0_;
#line 68 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp2_ = gitg_diff_stat_get_removed (self);
#line 68 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp3_ = _tmp2_;
#line 68 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp4_ = g_strdup_printf ("%u", _tmp1_ + _tmp3_);
#line 68 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	txt = _tmp4_;
#line 70 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp5_ = self->priv->d_layout;
#line 70 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	if (_tmp5_ == NULL) {
#line 117 "gitg-diff-stat.c"
		const gchar* _tmp6_ = NULL;
		PangoLayout* _tmp7_ = NULL;
#line 72 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp6_ = txt;
#line 72 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp7_ = gtk_widget_create_pango_layout ((GtkWidget*) self, _tmp6_);
#line 72 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_g_object_unref0 (self->priv->d_layout);
#line 72 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		self->priv->d_layout = _tmp7_;
#line 128 "gitg-diff-stat.c"
	} else {
		PangoLayout* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
		const gchar* _tmp10_ = NULL;
		gint _tmp11_ = 0;
		gint _tmp12_ = 0;
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp8_ = self->priv->d_layout;
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp9_ = txt;
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp10_ = txt;
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp11_ = strlen (_tmp10_);
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp12_ = _tmp11_;
#line 76 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		pango_layout_set_text (_tmp8_, _tmp9_, _tmp12_);
#line 147 "gitg-diff-stat.c"
	}
#line 79 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	gtk_widget_queue_resize ((GtkWidget*) self);
#line 66 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_g_free0 (txt);
#line 153 "gitg-diff-stat.c"
}


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


static void gitg_diff_stat_real_style_updated (GtkWidget* base) {
	GitgDiffStat * self;
	GtkSettings* settings = NULL;
	GtkSettings* _tmp0_ = NULL;
	GtkSettings* _tmp1_ = NULL;
	gchar* theme = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	GtkSettings* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
	gboolean _tmp7_ = FALSE;
	gboolean dark = FALSE;
	gboolean _tmp12_ = FALSE;
#line 82 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	self = (GitgDiffStat*) base;
#line 84 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	GTK_WIDGET_CLASS (gitg_diff_stat_parent_class)->style_updated ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_drawing_area_get_type (), GtkDrawingArea));
#line 86 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_g_object_unref0 (self->priv->d_layout);
#line 86 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	self->priv->d_layout = NULL;
#line 88 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp0_ = gtk_settings_get_default ();
#line 88 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 88 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	settings = _tmp1_;
#line 89 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp2_ = g_getenv ("GTK_THEME");
#line 89 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 89 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	theme = _tmp3_;
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp5_ = settings;
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	g_object_get (_tmp5_, "gtk-application-prefer-dark-theme", &_tmp6_, NULL);
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp7_ = _tmp6_;
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	if (_tmp7_) {
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp4_ = TRUE;
#line 208 "gitg-diff-stat.c"
	} else {
		gboolean _tmp8_ = FALSE;
		const gchar* _tmp9_ = NULL;
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp9_ = theme;
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		if (_tmp9_ != NULL) {
#line 216 "gitg-diff-stat.c"
			const gchar* _tmp10_ = NULL;
			gboolean _tmp11_ = FALSE;
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp10_ = theme;
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp11_ = g_str_has_suffix (_tmp10_, ":dark");
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp8_ = _tmp11_;
#line 225 "gitg-diff-stat.c"
		} else {
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp8_ = FALSE;
#line 229 "gitg-diff-stat.c"
		}
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp4_ = _tmp8_;
#line 233 "gitg-diff-stat.c"
	}
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	dark = _tmp4_;
#line 93 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp12_ = dark;
#line 93 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	if (_tmp12_) {
#line 241 "gitg-diff-stat.c"
		GtkStyleContext* _tmp13_ = NULL;
#line 95 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp13_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 95 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		gtk_style_context_add_class (_tmp13_, "dark");
#line 247 "gitg-diff-stat.c"
	} else {
		GtkStyleContext* _tmp14_ = NULL;
#line 99 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp14_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 99 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		gtk_style_context_remove_class (_tmp14_, "dark");
#line 254 "gitg-diff-stat.c"
	}
#line 102 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	gitg_diff_stat_make_layout (self);
#line 82 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_g_free0 (theme);
#line 82 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_g_object_unref0 (settings);
#line 262 "gitg-diff-stat.c"
}


static gboolean gitg_diff_stat_real_draw (GtkWidget* base, cairo_t* context) {
	GitgDiffStat * self;
	gboolean result = FALSE;
	GtkStyleContext* sctx = NULL;
	GtkStyleContext* _tmp0_ = NULL;
	GtkStyleContext* _tmp1_ = NULL;
	GtkBorder padding = {0};
	GtkStyleContext* _tmp2_ = NULL;
	GtkStateFlags _tmp3_ = 0;
	GtkBorder _tmp4_ = {0};
	GtkBorder border = {0};
	GtkStyleContext* _tmp5_ = NULL;
	GtkStateFlags _tmp6_ = 0;
	GtkBorder _tmp7_ = {0};
	gint h = 0;
	gint _tmp8_ = 0;
	gint w = 0;
	gint _tmp9_ = 0;
	GtkStyleContext* _tmp10_ = NULL;
	cairo_t* _tmp11_ = NULL;
	gint _tmp12_ = 0;
	gint _tmp13_ = 0;
	GtkStyleContext* _tmp14_ = NULL;
	cairo_t* _tmp15_ = NULL;
	gint _tmp16_ = 0;
	gint _tmp17_ = 0;
	PangoRectangle rect = {0};
	PangoLayout* _tmp18_ = NULL;
	PangoRectangle _tmp19_ = {0};
	gboolean rtl = FALSE;
	GtkStyleContext* _tmp20_ = NULL;
	GtkStateFlags _tmp21_ = 0;
	gint x = 0;
	gboolean _tmp22_ = FALSE;
	GtkStyleContext* _tmp36_ = NULL;
	cairo_t* _tmp37_ = NULL;
	gint _tmp38_ = 0;
	gint _tmp39_ = 0;
	PangoRectangle _tmp40_ = {0};
	gint _tmp41_ = 0;
	PangoRectangle _tmp42_ = {0};
	gint _tmp43_ = 0;
	PangoLayout* _tmp44_ = NULL;
	gint hbar = 0;
	GtkStyleContext* _tmp45_ = NULL;
	gint ybar = 0;
	gint _tmp46_ = 0;
	gint _tmp47_ = 0;
	gint wrest = 0;
	gint _tmp48_ = 0;
	GtkBorder _tmp49_ = {0};
	gint16 _tmp50_ = 0;
	PangoRectangle _tmp51_ = {0};
	gint _tmp52_ = 0;
	PangoRectangle _tmp53_ = {0};
	gint _tmp54_ = 0;
	GtkBorder _tmp55_ = {0};
	gint16 _tmp56_ = 0;
	GtkBorder _tmp57_ = {0};
	gint16 _tmp58_ = 0;
	GtkBorder _tmp59_ = {0};
	gint16 _tmp60_ = 0;
	gdouble afrac = 0.0;
	guint total = 0U;
	guint _tmp61_ = 0U;
	guint _tmp62_ = 0U;
	guint _tmp63_ = 0U;
	guint _tmp64_ = 0U;
	guint _tmp65_ = 0U;
	gint wbar = 0;
	gint _tmp69_ = 0;
	gdouble _tmp70_ = 0.0;
	gboolean _tmp71_ = FALSE;
	gboolean _tmp81_ = FALSE;
	guint _tmp82_ = 0U;
	guint _tmp83_ = 0U;
#line 105 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	self = (GitgDiffStat*) base;
#line 105 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	g_return_val_if_fail (context != NULL, FALSE);
#line 108 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp0_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 108 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 108 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	sctx = _tmp1_;
#line 109 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp2_ = sctx;
#line 109 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp3_ = gtk_widget_get_state_flags ((GtkWidget*) self);
#line 109 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_get_padding (_tmp2_, _tmp3_, &_tmp4_);
#line 109 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	padding = _tmp4_;
#line 110 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp5_ = sctx;
#line 110 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp6_ = gtk_widget_get_state_flags ((GtkWidget*) self);
#line 110 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_get_border (_tmp5_, _tmp6_, &_tmp7_);
#line 110 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	border = _tmp7_;
#line 112 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp8_ = gtk_widget_get_allocated_height ((GtkWidget*) self);
#line 112 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	h = _tmp8_;
#line 113 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp9_ = gtk_widget_get_allocated_width ((GtkWidget*) self);
#line 113 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	w = _tmp9_;
#line 115 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp10_ = sctx;
#line 115 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp11_ = context;
#line 115 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp12_ = w;
#line 115 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp13_ = h;
#line 115 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	gtk_render_background (_tmp10_, _tmp11_, (gdouble) 0, (gdouble) 0, (gdouble) _tmp12_, (gdouble) _tmp13_);
#line 116 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp14_ = sctx;
#line 116 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp15_ = context;
#line 116 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp16_ = w;
#line 116 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp17_ = h;
#line 116 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	gtk_render_frame (_tmp14_, _tmp15_, (gdouble) 0, (gdouble) 0, (gdouble) _tmp16_, (gdouble) _tmp17_);
#line 119 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp18_ = self->priv->d_layout;
#line 119 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	pango_layout_get_extents (_tmp18_, NULL, &_tmp19_);
#line 119 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	rect = _tmp19_;
#line 121 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp20_ = sctx;
#line 121 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp21_ = gtk_style_context_get_state (_tmp20_);
#line 121 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	rtl = (_tmp21_ & GTK_STATE_FLAG_DIR_RTL) != 0;
#line 124 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp22_ = rtl;
#line 124 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	if (!_tmp22_) {
#line 412 "gitg-diff-stat.c"
		GtkBorder _tmp23_ = {0};
		gint16 _tmp24_ = 0;
		GtkBorder _tmp25_ = {0};
		gint16 _tmp26_ = 0;
		PangoRectangle _tmp27_ = {0};
		gint _tmp28_ = 0;
#line 126 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp23_ = padding;
#line 126 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp24_ = _tmp23_.left;
#line 126 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp25_ = border;
#line 126 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp26_ = _tmp25_.left;
#line 126 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp27_ = rect;
#line 126 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp28_ = _tmp27_.x;
#line 126 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		x = (_tmp24_ + _tmp26_) + (_tmp28_ / PANGO_SCALE);
#line 433 "gitg-diff-stat.c"
	} else {
		gint _tmp29_ = 0;
		GtkBorder _tmp30_ = {0};
		gint16 _tmp31_ = 0;
		GtkBorder _tmp32_ = {0};
		gint16 _tmp33_ = 0;
		PangoRectangle _tmp34_ = {0};
		gint _tmp35_ = 0;
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp29_ = w;
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp30_ = padding;
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp31_ = _tmp30_.right;
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp32_ = border;
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp33_ = _tmp32_.right;
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp34_ = rect;
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp35_ = _tmp34_.width;
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		x = ((_tmp29_ - _tmp31_) - _tmp33_) - (_tmp35_ / PANGO_SCALE);
#line 458 "gitg-diff-stat.c"
	}
#line 133 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp36_ = sctx;
#line 133 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp37_ = context;
#line 133 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp38_ = x;
#line 133 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp39_ = h;
#line 133 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp40_ = rect;
#line 133 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp41_ = _tmp40_.height;
#line 133 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp42_ = rect;
#line 133 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp43_ = _tmp42_.y;
#line 133 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp44_ = self->priv->d_layout;
#line 133 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	gtk_render_layout (_tmp36_, _tmp37_, (gdouble) _tmp38_, (gdouble) (((_tmp39_ - (_tmp41_ / PANGO_SCALE)) / 2) + (_tmp43_ / PANGO_SCALE)), _tmp44_);
#line 139 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp45_ = sctx;
#line 139 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_get_style (_tmp45_, "bar-height", &hbar, NULL);
#line 140 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp46_ = h;
#line 140 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp47_ = hbar;
#line 140 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	ybar = (_tmp46_ - _tmp47_) / 2;
#line 142 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp48_ = w;
#line 142 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp49_ = padding;
#line 142 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp50_ = _tmp49_.left;
#line 142 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp51_ = rect;
#line 142 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp52_ = _tmp51_.x;
#line 142 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp53_ = rect;
#line 142 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp54_ = _tmp53_.width;
#line 142 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp55_ = padding;
#line 142 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp56_ = _tmp55_.right;
#line 142 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp57_ = border;
#line 142 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp58_ = _tmp57_.left;
#line 142 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp59_ = border;
#line 142 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp60_ = _tmp59_.right;
#line 142 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	wrest = (gint) (((((_tmp48_ - (_tmp50_ * 2)) - ((_tmp52_ + _tmp54_) / PANGO_SCALE)) - _tmp56_) - _tmp58_) - _tmp60_);
#line 144 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	afrac = (gdouble) 0;
#line 145 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp61_ = gitg_diff_stat_get_added (self);
#line 145 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp62_ = _tmp61_;
#line 145 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp63_ = gitg_diff_stat_get_removed (self);
#line 145 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp64_ = _tmp63_;
#line 145 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	total = _tmp62_ + _tmp64_;
#line 147 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp65_ = total;
#line 147 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	if (_tmp65_ != ((guint) 0)) {
#line 534 "gitg-diff-stat.c"
		guint _tmp66_ = 0U;
		guint _tmp67_ = 0U;
		guint _tmp68_ = 0U;
#line 149 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp66_ = gitg_diff_stat_get_added (self);
#line 149 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp67_ = _tmp66_;
#line 149 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp68_ = total;
#line 149 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		afrac = _tmp67_ / ((gdouble) _tmp68_);
#line 546 "gitg-diff-stat.c"
	}
#line 152 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp69_ = wrest;
#line 152 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp70_ = afrac;
#line 152 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	wbar = (gint) (_tmp69_ * _tmp70_);
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp71_ = rtl;
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	if (!_tmp71_) {
#line 558 "gitg-diff-stat.c"
		gint _tmp72_ = 0;
		GtkBorder _tmp73_ = {0};
		gint16 _tmp74_ = 0;
		PangoRectangle _tmp75_ = {0};
		gint _tmp76_ = 0;
#line 156 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp72_ = x;
#line 156 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp73_ = padding;
#line 156 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp74_ = _tmp73_.left;
#line 156 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp75_ = rect;
#line 156 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp76_ = _tmp75_.width;
#line 156 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		x = _tmp72_ + (_tmp74_ + (_tmp76_ / PANGO_SCALE));
#line 576 "gitg-diff-stat.c"
	} else {
		gint _tmp77_ = 0;
		GtkBorder _tmp78_ = {0};
		gint16 _tmp79_ = 0;
		gint _tmp80_ = 0;
#line 160 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp77_ = x;
#line 160 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp78_ = padding;
#line 160 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp79_ = _tmp78_.right;
#line 160 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp80_ = wbar;
#line 160 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		x = _tmp77_ - (_tmp79_ + _tmp80_);
#line 592 "gitg-diff-stat.c"
	}
#line 163 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp82_ = gitg_diff_stat_get_added (self);
#line 163 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp83_ = _tmp82_;
#line 163 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	if (_tmp83_ == ((guint) 0)) {
#line 600 "gitg-diff-stat.c"
		guint _tmp84_ = 0U;
		guint _tmp85_ = 0U;
#line 163 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp84_ = gitg_diff_stat_get_removed (self);
#line 163 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp85_ = _tmp84_;
#line 163 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp81_ = _tmp85_ == ((guint) 0);
#line 609 "gitg-diff-stat.c"
	} else {
#line 163 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp81_ = FALSE;
#line 613 "gitg-diff-stat.c"
	}
#line 163 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	if (_tmp81_) {
#line 617 "gitg-diff-stat.c"
		GtkStyleContext* _tmp86_ = NULL;
		GtkStyleContext* _tmp87_ = NULL;
		cairo_t* _tmp88_ = NULL;
		gint _tmp89_ = 0;
		gint _tmp90_ = 0;
		gint _tmp91_ = 0;
		gint _tmp92_ = 0;
		GtkStyleContext* _tmp93_ = NULL;
#line 165 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp86_ = sctx;
#line 165 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		gtk_style_context_save (_tmp86_);
#line 166 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp87_ = sctx;
#line 166 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp88_ = context;
#line 166 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp89_ = x;
#line 166 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp90_ = ybar;
#line 166 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp91_ = wrest;
#line 166 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp92_ = hbar;
#line 166 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		gtk_render_background (_tmp87_, _tmp88_, (gdouble) _tmp89_, (gdouble) _tmp90_, (gdouble) _tmp91_, (gdouble) _tmp92_);
#line 167 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp93_ = sctx;
#line 167 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		gtk_style_context_restore (_tmp93_);
#line 648 "gitg-diff-stat.c"
	} else {
		gboolean _tmp94_ = FALSE;
		guint _tmp95_ = 0U;
		guint _tmp96_ = 0U;
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp95_ = gitg_diff_stat_get_added (self);
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		_tmp96_ = _tmp95_;
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		if (_tmp96_ == ((guint) 0)) {
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp94_ = TRUE;
#line 661 "gitg-diff-stat.c"
		} else {
			guint _tmp97_ = 0U;
			guint _tmp98_ = 0U;
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp97_ = gitg_diff_stat_get_removed (self);
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp98_ = _tmp97_;
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp94_ = _tmp98_ == ((guint) 0);
#line 671 "gitg-diff-stat.c"
		}
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		if (_tmp94_) {
#line 675 "gitg-diff-stat.c"
			GtkStyleContext* _tmp99_ = NULL;
			const gchar* _tmp100_ = NULL;
			guint _tmp101_ = 0U;
			guint _tmp102_ = 0U;
			GtkStyleContext* _tmp103_ = NULL;
			GtkStyleContext* _tmp104_ = NULL;
			cairo_t* _tmp105_ = NULL;
			gint _tmp106_ = 0;
			gint _tmp107_ = 0;
			gint _tmp108_ = 0;
			gint _tmp109_ = 0;
			GtkStyleContext* _tmp110_ = NULL;
#line 171 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp99_ = sctx;
#line 171 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			gtk_style_context_save (_tmp99_);
#line 172 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp101_ = gitg_diff_stat_get_added (self);
#line 172 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp102_ = _tmp101_;
#line 172 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			if (_tmp102_ == ((guint) 0)) {
#line 172 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
				_tmp100_ = "removed-only";
#line 700 "gitg-diff-stat.c"
			} else {
#line 172 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
				_tmp100_ = "added-only";
#line 704 "gitg-diff-stat.c"
			}
#line 172 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp103_ = sctx;
#line 172 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			gtk_style_context_add_class (_tmp103_, _tmp100_);
#line 173 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp104_ = sctx;
#line 173 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp105_ = context;
#line 173 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp106_ = x;
#line 173 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp107_ = ybar;
#line 173 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp108_ = wrest;
#line 173 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp109_ = hbar;
#line 173 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			gtk_render_background (_tmp104_, _tmp105_, (gdouble) _tmp106_, (gdouble) _tmp107_, (gdouble) _tmp108_, (gdouble) _tmp109_);
#line 174 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp110_ = sctx;
#line 174 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			gtk_style_context_restore (_tmp110_);
#line 728 "gitg-diff-stat.c"
		} else {
			GtkStyleContext* _tmp111_ = NULL;
			GtkStyleContext* _tmp112_ = NULL;
			GtkStyleContext* _tmp113_ = NULL;
			cairo_t* _tmp114_ = NULL;
			gint _tmp115_ = 0;
			gint _tmp116_ = 0;
			gint _tmp117_ = 0;
			gint _tmp118_ = 0;
			GtkStyleContext* _tmp119_ = NULL;
			GtkStyleContext* _tmp120_ = NULL;
			GtkStyleContext* _tmp121_ = NULL;
			gint _tmp122_ = 0;
			gboolean _tmp123_ = FALSE;
			gint _tmp127_ = 0;
			GtkStyleContext* _tmp128_ = NULL;
			cairo_t* _tmp129_ = NULL;
			gint _tmp130_ = 0;
			gint _tmp131_ = 0;
			gint _tmp132_ = 0;
			gint _tmp133_ = 0;
			gint _tmp134_ = 0;
			GtkStyleContext* _tmp135_ = NULL;
#line 178 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp111_ = sctx;
#line 178 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			gtk_style_context_save (_tmp111_);
#line 179 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp112_ = sctx;
#line 179 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			gtk_style_context_add_class (_tmp112_, "added");
#line 180 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp113_ = sctx;
#line 180 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp114_ = context;
#line 180 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp115_ = x;
#line 180 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp116_ = ybar;
#line 180 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp117_ = wbar;
#line 180 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp118_ = hbar;
#line 180 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			gtk_render_background (_tmp113_, _tmp114_, (gdouble) _tmp115_, (gdouble) _tmp116_, (gdouble) _tmp117_, (gdouble) _tmp118_);
#line 181 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp119_ = sctx;
#line 181 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			gtk_style_context_restore (_tmp119_);
#line 183 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp120_ = sctx;
#line 183 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			gtk_style_context_save (_tmp120_);
#line 184 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp121_ = sctx;
#line 184 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			gtk_style_context_add_class (_tmp121_, "removed");
#line 185 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp123_ = rtl;
#line 185 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			if (_tmp123_) {
#line 790 "gitg-diff-stat.c"
				gint _tmp124_ = 0;
				gint _tmp125_ = 0;
#line 185 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
				_tmp124_ = wbar;
#line 185 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
				_tmp125_ = wrest;
#line 185 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
				_tmp122_ = _tmp124_ - _tmp125_;
#line 799 "gitg-diff-stat.c"
			} else {
				gint _tmp126_ = 0;
#line 185 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
				_tmp126_ = wbar;
#line 185 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
				_tmp122_ = _tmp126_;
#line 806 "gitg-diff-stat.c"
			}
#line 185 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp127_ = x;
#line 185 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			x = _tmp127_ + _tmp122_;
#line 186 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp128_ = sctx;
#line 186 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp129_ = context;
#line 186 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp130_ = x;
#line 186 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp131_ = ybar;
#line 186 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp132_ = wrest;
#line 186 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp133_ = wbar;
#line 186 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp134_ = hbar;
#line 186 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			gtk_render_background (_tmp128_, _tmp129_, (gdouble) _tmp130_, (gdouble) _tmp131_, (gdouble) (_tmp132_ - _tmp133_), (gdouble) _tmp134_);
#line 191 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			_tmp135_ = sctx;
#line 191 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
			gtk_style_context_restore (_tmp135_);
#line 832 "gitg-diff-stat.c"
		}
	}
#line 194 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	result = FALSE;
#line 194 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_g_object_unref0 (sctx);
#line 194 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	return result;
#line 841 "gitg-diff-stat.c"
}


static void gitg_diff_stat_real_get_preferred_height (GtkWidget* base, gint* minimum_height, gint* natural_height) {
	GitgDiffStat * self;
	gint _vala_minimum_height = 0;
	gint _vala_natural_height = 0;
	GtkStyleContext* sctx = NULL;
	GtkStyleContext* _tmp0_ = NULL;
	GtkStyleContext* _tmp1_ = NULL;
	GtkBorder padding = {0};
	GtkStateFlags _tmp2_ = 0;
	GtkBorder _tmp3_ = {0};
	GtkBorder border = {0};
	GtkStateFlags _tmp4_ = 0;
	GtkBorder _tmp5_ = {0};
	PangoRectangle rect = {0};
	PangoLayout* _tmp6_ = NULL;
	PangoRectangle _tmp7_ = {0};
	gint h = 0;
	GtkBorder _tmp8_ = {0};
	gint16 _tmp9_ = 0;
	GtkBorder _tmp10_ = {0};
	gint16 _tmp11_ = 0;
	GtkBorder _tmp12_ = {0};
	gint16 _tmp13_ = 0;
	GtkBorder _tmp14_ = {0};
	gint16 _tmp15_ = 0;
	gint hlbl = 0;
	PangoRectangle _tmp16_ = {0};
	gint _tmp17_ = 0;
	PangoRectangle _tmp18_ = {0};
	gint _tmp19_ = 0;
	gint bar_height = 0;
	gint _tmp20_ = 0;
	gint _tmp21_ = 0;
	gint _tmp22_ = 0;
	gint _tmp23_ = 0;
#line 197 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	self = (GitgDiffStat*) base;
#line 200 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp0_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 200 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 200 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	sctx = _tmp1_;
#line 201 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp2_ = gtk_widget_get_state_flags ((GtkWidget*) self);
#line 201 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_get_padding (sctx, _tmp2_, &_tmp3_);
#line 201 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	padding = _tmp3_;
#line 202 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp4_ = gtk_widget_get_state_flags ((GtkWidget*) self);
#line 202 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_get_border (sctx, _tmp4_, &_tmp5_);
#line 202 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	border = _tmp5_;
#line 205 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp6_ = self->priv->d_layout;
#line 205 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	pango_layout_get_extents (_tmp6_, NULL, &_tmp7_);
#line 205 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	rect = _tmp7_;
#line 207 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp8_ = padding;
#line 207 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp9_ = _tmp8_.top;
#line 207 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp10_ = padding;
#line 207 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp11_ = _tmp10_.bottom;
#line 207 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp12_ = border;
#line 207 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp13_ = _tmp12_.top;
#line 207 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp14_ = border;
#line 207 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp15_ = _tmp14_.bottom;
#line 207 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	h = (gint) (((_tmp9_ + _tmp11_) + _tmp13_) + _tmp15_);
#line 208 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp16_ = rect;
#line 208 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp17_ = _tmp16_.height;
#line 208 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp18_ = rect;
#line 208 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp19_ = _tmp18_.y;
#line 208 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	hlbl = (_tmp17_ + _tmp19_) / PANGO_SCALE;
#line 211 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_get_style (sctx, "bar-height", &bar_height, NULL);
#line 213 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp20_ = h;
#line 213 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp21_ = MAX (hlbl, bar_height);
#line 213 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	h = _tmp20_ + _tmp21_;
#line 215 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp22_ = h;
#line 215 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_vala_minimum_height = _tmp22_;
#line 216 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp23_ = h;
#line 216 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_vala_natural_height = _tmp23_;
#line 197 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_g_object_unref0 (sctx);
#line 197 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	if (minimum_height) {
#line 197 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		*minimum_height = _vala_minimum_height;
#line 956 "gitg-diff-stat.c"
	}
#line 197 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	if (natural_height) {
#line 197 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		*natural_height = _vala_natural_height;
#line 962 "gitg-diff-stat.c"
	}
}


static void gitg_diff_stat_real_get_preferred_width (GtkWidget* base, gint* minimum_width, gint* natural_width) {
	GitgDiffStat * self;
	gint _vala_minimum_width = 0;
	gint _vala_natural_width = 0;
	GtkStyleContext* sctx = NULL;
	GtkStyleContext* _tmp0_ = NULL;
	GtkStyleContext* _tmp1_ = NULL;
	GtkBorder padding = {0};
	GtkStateFlags _tmp2_ = 0;
	GtkBorder _tmp3_ = {0};
	GtkBorder border = {0};
	GtkStateFlags _tmp4_ = 0;
	GtkBorder _tmp5_ = {0};
	PangoRectangle rect = {0};
	PangoLayout* _tmp6_ = NULL;
	PangoRectangle _tmp7_ = {0};
	gint w = 0;
	GtkBorder _tmp8_ = {0};
	gint16 _tmp9_ = 0;
	GtkBorder _tmp10_ = {0};
	gint16 _tmp11_ = 0;
	GtkBorder _tmp12_ = {0};
	gint16 _tmp13_ = 0;
	GtkBorder _tmp14_ = {0};
	gint16 _tmp15_ = 0;
	PangoRectangle _tmp16_ = {0};
	gint _tmp17_ = 0;
	PangoRectangle _tmp18_ = {0};
	gint _tmp19_ = 0;
#line 219 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	self = (GitgDiffStat*) base;
#line 222 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp0_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 222 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 222 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	sctx = _tmp1_;
#line 223 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp2_ = gtk_widget_get_state_flags ((GtkWidget*) self);
#line 223 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_get_padding (sctx, _tmp2_, &_tmp3_);
#line 223 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	padding = _tmp3_;
#line 224 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp4_ = gtk_widget_get_state_flags ((GtkWidget*) self);
#line 224 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_get_border (sctx, _tmp4_, &_tmp5_);
#line 224 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	border = _tmp5_;
#line 227 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp6_ = self->priv->d_layout;
#line 227 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	pango_layout_get_extents (_tmp6_, &_tmp7_, NULL);
#line 227 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	rect = _tmp7_;
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp8_ = padding;
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp9_ = _tmp8_.left;
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp10_ = padding;
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp11_ = _tmp10_.right;
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp12_ = border;
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp13_ = _tmp12_.left;
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp14_ = border;
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp15_ = _tmp14_.right;
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp16_ = rect;
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp17_ = _tmp16_.width;
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp18_ = rect;
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp19_ = _tmp18_.x;
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	w = (((_tmp9_ + _tmp11_) + _tmp13_) + _tmp15_) + ((_tmp17_ + _tmp19_) / PANGO_SCALE);
#line 231 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_vala_minimum_width = w;
#line 232 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_vala_natural_width = 75;
#line 219 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_g_object_unref0 (sctx);
#line 219 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	if (minimum_width) {
#line 219 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		*minimum_width = _vala_minimum_width;
#line 1058 "gitg-diff-stat.c"
	}
#line 219 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	if (natural_width) {
#line 219 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		*natural_width = _vala_natural_width;
#line 1064 "gitg-diff-stat.c"
	}
}


GitgDiffStat* gitg_diff_stat_construct (GType object_type) {
	GitgDiffStat * self = NULL;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	self = (GitgDiffStat*) g_object_new (object_type, NULL);
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	return self;
#line 1075 "gitg-diff-stat.c"
}


GitgDiffStat* gitg_diff_stat_new (void) {
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	return gitg_diff_stat_construct (GITG_TYPE_DIFF_STAT);
#line 1082 "gitg-diff-stat.c"
}


guint gitg_diff_stat_get_added (GitgDiffStat* self) {
	guint result;
	guint _tmp0_ = 0U;
#line 29 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	g_return_val_if_fail (self != NULL, 0U);
#line 29 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp0_ = self->priv->d_added;
#line 29 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	result = _tmp0_;
#line 29 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	return result;
#line 1097 "gitg-diff-stat.c"
}


void gitg_diff_stat_set_added (GitgDiffStat* self, guint value) {
	guint _tmp0_ = 0U;
#line 30 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	g_return_if_fail (self != NULL);
#line 32 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp0_ = value;
#line 32 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	self->priv->d_added = _tmp0_;
#line 33 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	gitg_diff_stat_make_layout (self);
#line 30 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	g_object_notify ((GObject *) self, "added");
#line 1113 "gitg-diff-stat.c"
}


guint gitg_diff_stat_get_removed (GitgDiffStat* self) {
	guint result;
	guint _tmp0_ = 0U;
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	g_return_val_if_fail (self != NULL, 0U);
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp0_ = self->priv->d_removed;
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	result = _tmp0_;
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	return result;
#line 1128 "gitg-diff-stat.c"
}


void gitg_diff_stat_set_removed (GitgDiffStat* self, guint value) {
	guint _tmp0_ = 0U;
#line 40 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	g_return_if_fail (self != NULL);
#line 42 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp0_ = value;
#line 42 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	self->priv->d_removed = _tmp0_;
#line 43 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	gitg_diff_stat_make_layout (self);
#line 40 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	g_object_notify ((GObject *) self, "removed");
#line 1144 "gitg-diff-stat.c"
}


static GObject * gitg_diff_stat_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GitgDiffStat * self;
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	parent_class = G_OBJECT_CLASS (gitg_diff_stat_parent_class);
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_DIFF_STAT, GitgDiffStat);
#line 63 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	gitg_diff_stat_make_layout (self);
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	return obj;
#line 1162 "gitg-diff-stat.c"
}


static void gitg_diff_stat_class_init (GitgDiffStatClass * klass) {
	GParamSpecInt* _tmp0_ = NULL;
	GParamSpecInt* _tmp1_ = NULL;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	gitg_diff_stat_parent_class = g_type_class_peek_parent (klass);
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	g_type_class_add_private (klass, sizeof (GitgDiffStatPrivate));
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	((GtkWidgetClass *) klass)->style_updated = gitg_diff_stat_real_style_updated;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	((GtkWidgetClass *) klass)->draw = gitg_diff_stat_real_draw;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	((GtkWidgetClass *) klass)->get_preferred_height = gitg_diff_stat_real_get_preferred_height;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	((GtkWidgetClass *) klass)->get_preferred_width = gitg_diff_stat_real_get_preferred_width;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_diff_stat_get_property;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_diff_stat_set_property;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_diff_stat_constructor;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_diff_stat_finalize;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_STAT_ADDED, g_param_spec_uint ("added", "added", "added", 0, G_MAXUINT, 0U, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_STAT_REMOVED, g_param_spec_uint ("removed", "removed", "removed", 0, G_MAXUINT, 0U, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 49 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp0_ = g_param_spec_int ("bar-height", "bar height", "bar height", 0, G_MAXINT, 5, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
#line 49 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_tmp1_ = _tmp0_;
#line 49 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	gtk_widget_class_install_style_property (GTK_WIDGET_CLASS (klass), (GParamSpec*) _tmp1_);
#line 49 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_g_param_spec_unref0 (_tmp1_);
#line 58 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	gtk_widget_class_set_css_name (GTK_WIDGET_CLASS (klass), "gitg-diffstat");
#line 1203 "gitg-diff-stat.c"
}


static void gitg_diff_stat_instance_init (GitgDiffStat * self) {
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	self->priv = GITG_DIFF_STAT_GET_PRIVATE (self);
#line 1210 "gitg-diff-stat.c"
}


static void gitg_diff_stat_finalize (GObject* obj) {
	GitgDiffStat * self;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_DIFF_STAT, GitgDiffStat);
#line 25 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	_g_object_unref0 (self->priv->d_layout);
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	G_OBJECT_CLASS (gitg_diff_stat_parent_class)->finalize (obj);
#line 1222 "gitg-diff-stat.c"
}


GType gitg_diff_stat_get_type (void) {
	static volatile gsize gitg_diff_stat_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_diff_stat_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgDiffStatClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_diff_stat_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgDiffStat), 0, (GInstanceInitFunc) gitg_diff_stat_instance_init, NULL };
		GType gitg_diff_stat_type_id;
		gitg_diff_stat_type_id = g_type_register_static (gtk_drawing_area_get_type (), "GitgDiffStat", &g_define_type_info, 0);
		g_once_init_leave (&gitg_diff_stat_type_id__volatile, gitg_diff_stat_type_id);
	}
	return gitg_diff_stat_type_id__volatile;
}


static void _vala_gitg_diff_stat_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgDiffStat * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_DIFF_STAT, GitgDiffStat);
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	switch (property_id) {
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		case GITG_DIFF_STAT_ADDED:
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		g_value_set_uint (value, gitg_diff_stat_get_added (self));
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		break;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		case GITG_DIFF_STAT_REMOVED:
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		g_value_set_uint (value, gitg_diff_stat_get_removed (self));
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		break;
#line 1255 "gitg-diff-stat.c"
		default:
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		break;
#line 1261 "gitg-diff-stat.c"
	}
}


static void _vala_gitg_diff_stat_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgDiffStat * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_DIFF_STAT, GitgDiffStat);
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
	switch (property_id) {
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		case GITG_DIFF_STAT_ADDED:
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		gitg_diff_stat_set_added (self, g_value_get_uint (value));
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		break;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		case GITG_DIFF_STAT_REMOVED:
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		gitg_diff_stat_set_removed (self, g_value_get_uint (value));
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		break;
#line 1283 "gitg-diff-stat.c"
		default:
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-stat.vala"
		break;
#line 1289 "gitg-diff-stat.c"
	}
}



