/* gitg-diff-stat.c generated by valac 0.28.0, 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_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_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 147 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	g_return_if_fail (self != NULL);
#line 149 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp0_ = gitg_diff_stat_get_added (self);
#line 149 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp1_ = _tmp0_;
#line 149 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp2_ = gitg_diff_stat_get_removed (self);
#line 149 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp3_ = _tmp2_;
#line 149 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp4_ = g_strdup_printf ("%u", _tmp1_ + _tmp3_);
#line 149 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	txt = _tmp4_;
#line 151 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp5_ = self->priv->d_layout;
#line 151 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	if (_tmp5_ == NULL) {
#line 118 "gitg-diff-stat.c"
		const gchar* _tmp6_ = NULL;
		PangoLayout* _tmp7_ = NULL;
#line 153 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp6_ = txt;
#line 153 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp7_ = gtk_widget_create_pango_layout ((GtkWidget*) self, _tmp6_);
#line 153 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_g_object_unref0 (self->priv->d_layout);
#line 153 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		self->priv->d_layout = _tmp7_;
#line 129 "gitg-diff-stat.c"
	} else {
		PangoLayout* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
		const gchar* _tmp10_ = NULL;
		gint _tmp11_ = 0;
		gint _tmp12_ = 0;
#line 157 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp8_ = self->priv->d_layout;
#line 157 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp9_ = txt;
#line 157 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp10_ = txt;
#line 157 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp11_ = strlen (_tmp10_);
#line 157 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp12_ = _tmp11_;
#line 157 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		pango_layout_set_text (_tmp8_, _tmp9_, _tmp12_);
#line 148 "gitg-diff-stat.c"
	}
#line 160 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_widget_queue_resize ((GtkWidget*) self);
#line 147 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_g_free0 (txt);
#line 154 "gitg-diff-stat.c"
}


static void gitg_diff_stat_real_style_updated (GtkWidget* base) {
	GitgDiffStat * self;
#line 163 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	self = (GitgDiffStat*) base;
#line 165 "/home/jesse/devel/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 167 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_g_object_unref0 (self->priv->d_layout);
#line 167 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	self->priv->d_layout = NULL;
#line 169 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gitg_diff_stat_make_layout (self);
#line 170 "gitg-diff-stat.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 175 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	return self ? g_object_ref (self) : NULL;
#line 177 "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;
	GtkStyleContext* _tmp81_ = NULL;
	GtkRegionFlags _tmp82_ = 0;
	guint _tmp83_ = 0U;
	guint _tmp84_ = 0U;
	GtkStyleContext* _tmp85_ = NULL;
	GtkStyleContext* _tmp86_ = NULL;
	cairo_t* _tmp87_ = NULL;
	gint _tmp88_ = 0;
	gint _tmp89_ = 0;
	gint _tmp90_ = 0;
	gint _tmp91_ = 0;
	GtkStyleContext* _tmp92_ = NULL;
	GtkStyleContext* _tmp93_ = NULL;
	gint _tmp94_ = 0;
	gboolean _tmp95_ = FALSE;
	gint _tmp99_ = 0;
	GtkRegionFlags _tmp100_ = 0;
	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;
	gint _tmp110_ = 0;
	GtkStyleContext* _tmp111_ = NULL;
#line 172 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	self = (GitgDiffStat*) base;
#line 172 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	g_return_val_if_fail (context != NULL, FALSE);
#line 175 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp0_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 175 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 175 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	sctx = _tmp1_;
#line 176 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp2_ = sctx;
#line 176 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp3_ = gtk_widget_get_state_flags ((GtkWidget*) self);
#line 176 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_get_padding (_tmp2_, _tmp3_, &_tmp4_);
#line 176 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	padding = _tmp4_;
#line 177 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp5_ = sctx;
#line 177 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp6_ = gtk_widget_get_state_flags ((GtkWidget*) self);
#line 177 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_get_border (_tmp5_, _tmp6_, &_tmp7_);
#line 177 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	border = _tmp7_;
#line 179 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp8_ = gtk_widget_get_allocated_height ((GtkWidget*) self);
#line 179 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	h = _tmp8_;
#line 180 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp9_ = gtk_widget_get_allocated_width ((GtkWidget*) self);
#line 180 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	w = _tmp9_;
#line 182 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp10_ = sctx;
#line 182 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp11_ = context;
#line 182 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp12_ = w;
#line 182 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp13_ = h;
#line 182 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_render_background (_tmp10_, _tmp11_, (gdouble) 0, (gdouble) 0, (gdouble) _tmp12_, (gdouble) _tmp13_);
#line 183 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp14_ = sctx;
#line 183 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp15_ = context;
#line 183 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp16_ = w;
#line 183 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp17_ = h;
#line 183 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_render_frame (_tmp14_, _tmp15_, (gdouble) 0, (gdouble) 0, (gdouble) _tmp16_, (gdouble) _tmp17_);
#line 186 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp18_ = self->priv->d_layout;
#line 186 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	pango_layout_get_extents (_tmp18_, NULL, &_tmp19_);
#line 186 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	rect = _tmp19_;
#line 188 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp20_ = sctx;
#line 188 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp21_ = gtk_style_context_get_state (_tmp20_);
#line 188 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	rtl = (_tmp21_ & GTK_STATE_FLAG_DIR_RTL) != 0;
#line 191 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp22_ = rtl;
#line 191 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	if (!_tmp22_) {
#line 352 "gitg-diff-stat.c"
		GtkBorder _tmp23_ = {0};
		gint16 _tmp24_ = 0;
		GtkBorder _tmp25_ = {0};
		gint16 _tmp26_ = 0;
		PangoRectangle _tmp27_ = {0};
		gint _tmp28_ = 0;
#line 193 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp23_ = padding;
#line 193 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp24_ = _tmp23_.left;
#line 193 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp25_ = border;
#line 193 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp26_ = _tmp25_.left;
#line 193 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp27_ = rect;
#line 193 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp28_ = _tmp27_.x;
#line 193 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		x = (_tmp24_ + _tmp26_) + (_tmp28_ / PANGO_SCALE);
#line 373 "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 197 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp29_ = w;
#line 197 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp30_ = padding;
#line 197 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp31_ = _tmp30_.right;
#line 197 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp32_ = border;
#line 197 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp33_ = _tmp32_.right;
#line 197 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp34_ = rect;
#line 197 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp35_ = _tmp34_.width;
#line 197 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		x = ((_tmp29_ - _tmp31_) - _tmp33_) - (_tmp35_ / PANGO_SCALE);
#line 398 "gitg-diff-stat.c"
	}
#line 200 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp36_ = sctx;
#line 200 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp37_ = context;
#line 200 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp38_ = x;
#line 200 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp39_ = h;
#line 200 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp40_ = rect;
#line 200 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp41_ = _tmp40_.height;
#line 200 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp42_ = rect;
#line 200 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp43_ = _tmp42_.y;
#line 200 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp44_ = self->priv->d_layout;
#line 200 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_render_layout (_tmp36_, _tmp37_, (gdouble) _tmp38_, (gdouble) (((_tmp39_ - (_tmp41_ / PANGO_SCALE)) / 2) + (_tmp43_ / PANGO_SCALE)), _tmp44_);
#line 206 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp45_ = sctx;
#line 206 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_get_style (_tmp45_, "bar-height", &hbar, NULL);
#line 207 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp46_ = h;
#line 207 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp47_ = hbar;
#line 207 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	ybar = (_tmp46_ - _tmp47_) / 2;
#line 209 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp48_ = w;
#line 209 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp49_ = padding;
#line 209 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp50_ = _tmp49_.left;
#line 209 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp51_ = rect;
#line 209 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp52_ = _tmp51_.x;
#line 209 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp53_ = rect;
#line 209 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp54_ = _tmp53_.width;
#line 209 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp55_ = padding;
#line 209 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp56_ = _tmp55_.right;
#line 209 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp57_ = border;
#line 209 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp58_ = _tmp57_.left;
#line 209 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp59_ = border;
#line 209 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp60_ = _tmp59_.right;
#line 209 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	wrest = (gint) (((((_tmp48_ - (_tmp50_ * 2)) - ((_tmp52_ + _tmp54_) / PANGO_SCALE)) - _tmp56_) - _tmp58_) - _tmp60_);
#line 211 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	afrac = (gdouble) 0;
#line 212 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp61_ = gitg_diff_stat_get_added (self);
#line 212 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp62_ = _tmp61_;
#line 212 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp63_ = gitg_diff_stat_get_removed (self);
#line 212 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp64_ = _tmp63_;
#line 212 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	total = _tmp62_ + _tmp64_;
#line 214 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp65_ = total;
#line 214 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	if (_tmp65_ != ((guint) 0)) {
#line 474 "gitg-diff-stat.c"
		guint _tmp66_ = 0U;
		guint _tmp67_ = 0U;
		guint _tmp68_ = 0U;
#line 216 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp66_ = gitg_diff_stat_get_added (self);
#line 216 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp67_ = _tmp66_;
#line 216 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp68_ = total;
#line 216 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		afrac = _tmp67_ / ((gdouble) _tmp68_);
#line 486 "gitg-diff-stat.c"
	}
#line 219 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp69_ = wrest;
#line 219 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp70_ = afrac;
#line 219 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	wbar = (gint) (_tmp69_ * _tmp70_);
#line 221 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp71_ = rtl;
#line 221 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	if (!_tmp71_) {
#line 498 "gitg-diff-stat.c"
		gint _tmp72_ = 0;
		GtkBorder _tmp73_ = {0};
		gint16 _tmp74_ = 0;
		PangoRectangle _tmp75_ = {0};
		gint _tmp76_ = 0;
#line 223 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp72_ = x;
#line 223 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp73_ = padding;
#line 223 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp74_ = _tmp73_.left;
#line 223 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp75_ = rect;
#line 223 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp76_ = _tmp75_.width;
#line 223 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		x = _tmp72_ + (_tmp74_ + (_tmp76_ / PANGO_SCALE));
#line 516 "gitg-diff-stat.c"
	} else {
		gint _tmp77_ = 0;
		GtkBorder _tmp78_ = {0};
		gint16 _tmp79_ = 0;
		gint _tmp80_ = 0;
#line 227 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp77_ = x;
#line 227 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp78_ = padding;
#line 227 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp79_ = _tmp78_.right;
#line 227 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp80_ = wbar;
#line 227 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		x = _tmp77_ - (_tmp79_ + _tmp80_);
#line 532 "gitg-diff-stat.c"
	}
#line 230 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp81_ = sctx;
#line 230 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_save (_tmp81_);
#line 233 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp83_ = gitg_diff_stat_get_removed (self);
#line 233 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp84_ = _tmp83_;
#line 233 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	if (_tmp84_ == ((guint) 0)) {
#line 233 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp82_ = GTK_REGION_ONLY;
#line 546 "gitg-diff-stat.c"
	} else {
#line 233 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp82_ = 0;
#line 550 "gitg-diff-stat.c"
	}
#line 231 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp85_ = sctx;
#line 231 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_add_region (_tmp85_, "added", GTK_REGION_FIRST | _tmp82_);
#line 235 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp86_ = sctx;
#line 235 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp87_ = context;
#line 235 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp88_ = x;
#line 235 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp89_ = ybar;
#line 235 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp90_ = wbar;
#line 235 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp91_ = hbar;
#line 235 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_render_background (_tmp86_, _tmp87_, (gdouble) _tmp88_, (gdouble) _tmp89_, (gdouble) _tmp90_, (gdouble) _tmp91_);
#line 237 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp92_ = sctx;
#line 237 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_restore (_tmp92_);
#line 238 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp93_ = sctx;
#line 238 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_save (_tmp93_);
#line 240 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp95_ = rtl;
#line 240 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	if (_tmp95_) {
#line 582 "gitg-diff-stat.c"
		gint _tmp96_ = 0;
		gint _tmp97_ = 0;
#line 240 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp96_ = wbar;
#line 240 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp97_ = wrest;
#line 240 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp94_ = _tmp96_ - _tmp97_;
#line 591 "gitg-diff-stat.c"
	} else {
		gint _tmp98_ = 0;
#line 240 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp98_ = wbar;
#line 240 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp94_ = _tmp98_;
#line 598 "gitg-diff-stat.c"
	}
#line 240 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp99_ = x;
#line 240 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	x = _tmp99_ + _tmp94_;
#line 244 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp101_ = gitg_diff_stat_get_added (self);
#line 244 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp102_ = _tmp101_;
#line 244 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	if (_tmp102_ == ((guint) 0)) {
#line 244 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp100_ = GTK_REGION_ONLY;
#line 612 "gitg-diff-stat.c"
	} else {
#line 244 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp100_ = 0;
#line 616 "gitg-diff-stat.c"
	}
#line 242 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp103_ = sctx;
#line 242 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_add_region (_tmp103_, "removed", GTK_REGION_LAST | _tmp100_);
#line 246 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp104_ = sctx;
#line 246 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp105_ = context;
#line 246 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp106_ = x;
#line 246 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp107_ = ybar;
#line 246 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp108_ = wrest;
#line 246 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp109_ = wbar;
#line 246 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp110_ = hbar;
#line 246 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_render_background (_tmp104_, _tmp105_, (gdouble) _tmp106_, (gdouble) _tmp107_, (gdouble) (_tmp108_ - _tmp109_), (gdouble) _tmp110_);
#line 252 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp111_ = sctx;
#line 252 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_restore (_tmp111_);
#line 254 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	result = FALSE;
#line 254 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_g_object_unref0 (sctx);
#line 254 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	return result;
#line 648 "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 257 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	self = (GitgDiffStat*) base;
#line 260 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp0_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 260 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 260 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	sctx = _tmp1_;
#line 261 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp2_ = gtk_widget_get_state_flags ((GtkWidget*) self);
#line 261 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_get_padding (sctx, _tmp2_, &_tmp3_);
#line 261 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	padding = _tmp3_;
#line 262 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp4_ = gtk_widget_get_state_flags ((GtkWidget*) self);
#line 262 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_get_border (sctx, _tmp4_, &_tmp5_);
#line 262 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	border = _tmp5_;
#line 265 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp6_ = self->priv->d_layout;
#line 265 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	pango_layout_get_extents (_tmp6_, NULL, &_tmp7_);
#line 265 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	rect = _tmp7_;
#line 267 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp8_ = padding;
#line 267 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp9_ = _tmp8_.top;
#line 267 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp10_ = padding;
#line 267 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp11_ = _tmp10_.bottom;
#line 267 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp12_ = border;
#line 267 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp13_ = _tmp12_.top;
#line 267 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp14_ = border;
#line 267 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp15_ = _tmp14_.bottom;
#line 267 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	h = (gint) (((_tmp9_ + _tmp11_) + _tmp13_) + _tmp15_);
#line 268 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp16_ = rect;
#line 268 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp17_ = _tmp16_.height;
#line 268 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp18_ = rect;
#line 268 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp19_ = _tmp18_.y;
#line 268 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	hlbl = (_tmp17_ + _tmp19_) / PANGO_SCALE;
#line 271 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_get_style (sctx, "bar-height", &bar_height, NULL);
#line 273 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp20_ = h;
#line 273 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp21_ = MAX (hlbl, bar_height);
#line 273 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	h = _tmp20_ + _tmp21_;
#line 275 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp22_ = h;
#line 275 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_vala_minimum_height = _tmp22_;
#line 276 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp23_ = h;
#line 276 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_vala_natural_height = _tmp23_;
#line 257 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_g_object_unref0 (sctx);
#line 257 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	if (minimum_height) {
#line 257 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		*minimum_height = _vala_minimum_height;
#line 763 "gitg-diff-stat.c"
	}
#line 257 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	if (natural_height) {
#line 257 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		*natural_height = _vala_natural_height;
#line 769 "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 279 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	self = (GitgDiffStat*) base;
#line 282 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp0_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 282 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 282 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	sctx = _tmp1_;
#line 283 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp2_ = gtk_widget_get_state_flags ((GtkWidget*) self);
#line 283 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_get_padding (sctx, _tmp2_, &_tmp3_);
#line 283 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	padding = _tmp3_;
#line 284 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp4_ = gtk_widget_get_state_flags ((GtkWidget*) self);
#line 284 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_get_border (sctx, _tmp4_, &_tmp5_);
#line 284 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	border = _tmp5_;
#line 287 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp6_ = self->priv->d_layout;
#line 287 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	pango_layout_get_extents (_tmp6_, &_tmp7_, NULL);
#line 287 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	rect = _tmp7_;
#line 289 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp8_ = padding;
#line 289 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp9_ = _tmp8_.left;
#line 289 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp10_ = padding;
#line 289 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp11_ = _tmp10_.right;
#line 289 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp12_ = border;
#line 289 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp13_ = _tmp12_.left;
#line 289 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp14_ = border;
#line 289 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp15_ = _tmp14_.right;
#line 289 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp16_ = rect;
#line 289 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp17_ = _tmp16_.width;
#line 289 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp18_ = rect;
#line 289 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp19_ = _tmp18_.x;
#line 289 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	w = (((_tmp9_ + _tmp11_) + _tmp13_) + _tmp15_) + ((_tmp17_ + _tmp19_) / PANGO_SCALE);
#line 291 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_vala_minimum_width = w;
#line 292 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_vala_natural_width = 75;
#line 279 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_g_object_unref0 (sctx);
#line 279 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	if (minimum_width) {
#line 279 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		*minimum_width = _vala_minimum_width;
#line 865 "gitg-diff-stat.c"
	}
#line 279 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	if (natural_width) {
#line 279 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		*natural_width = _vala_natural_width;
#line 871 "gitg-diff-stat.c"
	}
}


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


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


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


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


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


void gitg_diff_stat_set_removed (GitgDiffStat* self, guint value) {
	guint _tmp0_ = 0U;
#line 40 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	g_return_if_fail (self != NULL);
#line 42 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp0_ = value;
#line 42 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	self->priv->d_removed = _tmp0_;
#line 43 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gitg_diff_stat_make_layout (self);
#line 40 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	g_object_notify ((GObject *) self, "removed");
#line 951 "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;
	GtkCssProvider* css = NULL;
	GtkCssProvider* _tmp0_ = NULL;
	gchar* fb = NULL;
	gchar* _tmp1_ = NULL;
	GtkStyleContext* _tmp9_ = NULL;
	GtkCssProvider* _tmp10_ = NULL;
	GtkCssProvider* _tmp11_ = NULL;
	gchar* us = NULL;
	gchar* _tmp12_ = NULL;
	GtkStyleContext* _tmp20_ = NULL;
	GtkCssProvider* _tmp21_ = NULL;
	GError * _inner_error_ = NULL;
#line 59 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	parent_class = G_OBJECT_CLASS (gitg_diff_stat_parent_class);
#line 59 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 59 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_DIFF_STAT, GitgDiffStat);
#line 61 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gitg_diff_stat_make_layout (self);
#line 63 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp0_ = gtk_css_provider_new ();
#line 63 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	css = _tmp0_;
#line 65 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp1_ = g_strdup ("\n" \
"			GitgDiffStat {\n" \
"				border: 1px inset shade(@borders, 1.2);\n" \
"				border-radius: 5px;\n" \
"				background-color: shade(@theme_bg_color, 1.2);\n" \
"				-GitgDiffStat-bar-height: 5px;\n" \
"			}\n" \
"\n" \
"			GitgDiffStat.no-frame {\n" \
"				border: 0;\n" \
"				border-radius: 0;\n" \
"				background-color: inherit;\n" \
"			}\n" \
"\n" \
"			GitgDiffStat added,\n" \
"			GitgDiffStat removed,\n" \
"			GitgDiffStat.no-frame added,\n" \
"			GitgDiffStat.no-frame removed {\n" \
"				border: 0;\n" \
"			}\n" \
"\n" \
"			GitgDiffStat added,\n" \
"			GitgDiffStat.no-frame added {\n" \
"				background-color: #33cc33;\n" \
"				border-radius: 3px 0px 0px 3px;\n" \
"			}\n" \
"\n" \
"			GitgDiffStat added:dir(rtl),\n" \
"			GitgDiffStat.no-frame added:dir(rtl) {\n" \
"				border-radius: 0px 3px 3px 0px;\n" \
"			}\n" \
"\n" \
"			GitgDiffStat removed,\n" \
"			GitgDiffStat.no-frame removed {\n" \
"				background-color: #cc3333;\n" \
"				border-radius: 0px 3px 3px 0px;\n" \
"			}\n" \
"\n" \
"			GitgDiffStat removed:dir(rtl),\n" \
"			GitgDiffStat.no-frame removed:dir(rtl) {\n" \
"				border-radius: 3px 0px 0px 3px;\n" \
"			}\n" \
"\n" \
"			GitgDiffStat removed:only-child,\n" \
"			GitgDiffStat added:only-child,\n" \
"			GitgDiffStat.no-frame removed:only-child,\n" \
"			GitgDiffStat.no-frame added:only-child {\n" \
"				border-radius: 3px;\n" \
"			}\n" \
"		");
#line 65 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	fb = _tmp1_;
#line 987 "gitg-diff-stat.c"
	{
		GtkCssProvider* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
		gint _tmp5_ = 0;
		gint _tmp6_ = 0;
#line 118 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp2_ = css;
#line 118 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp3_ = fb;
#line 118 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp4_ = fb;
#line 118 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp5_ = strlen (_tmp4_);
#line 118 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp6_ = _tmp5_;
#line 118 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		gtk_css_provider_load_from_data (_tmp2_, _tmp3_, (gssize) _tmp6_, &_inner_error_);
#line 118 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1008 "gitg-diff-stat.c"
			goto __catch30_g_error;
		}
	}
	goto __finally30;
	__catch30_g_error:
	{
		GError* e = NULL;
		GError* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
#line 116 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		e = _inner_error_;
#line 116 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_inner_error_ = NULL;
#line 122 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp7_ = e;
#line 122 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp8_ = _tmp7_->message;
#line 122 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		g_warning ("gitg-diff-stat.vala:122: Failed to load diff-stat style: %s", _tmp8_);
#line 116 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_g_error_free0 (e);
#line 1030 "gitg-diff-stat.c"
	}
	__finally30:
#line 116 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 116 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_g_free0 (fb);
#line 116 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_g_object_unref0 (css);
#line 116 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 116 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		g_clear_error (&_inner_error_);
#line 1043 "gitg-diff-stat.c"
	}
#line 125 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp9_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 125 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp10_ = css;
#line 125 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_add_provider (_tmp9_, (GtkStyleProvider*) _tmp10_, (guint) GTK_STYLE_PROVIDER_PRIORITY_FALLBACK);
#line 127 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp11_ = gtk_css_provider_new ();
#line 127 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_g_object_unref0 (css);
#line 127 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	css = _tmp11_;
#line 129 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp12_ = g_strdup ("\n			GitgDiffStat {\n				padding: 1px 5px 1px 3px;\n			}\n		");
#line 129 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	us = _tmp12_;
#line 1061 "gitg-diff-stat.c"
	{
		GtkCssProvider* _tmp13_ = NULL;
		const gchar* _tmp14_ = NULL;
		const gchar* _tmp15_ = NULL;
		gint _tmp16_ = 0;
		gint _tmp17_ = 0;
#line 137 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp13_ = css;
#line 137 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp14_ = us;
#line 137 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp15_ = us;
#line 137 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp16_ = strlen (_tmp15_);
#line 137 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp17_ = _tmp16_;
#line 137 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		gtk_css_provider_load_from_data (_tmp13_, _tmp14_, (gssize) _tmp17_, &_inner_error_);
#line 137 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1082 "gitg-diff-stat.c"
			goto __catch31_g_error;
		}
	}
	goto __finally31;
	__catch31_g_error:
	{
		GError* e = NULL;
		GError* _tmp18_ = NULL;
		const gchar* _tmp19_ = NULL;
#line 135 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		e = _inner_error_;
#line 135 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_inner_error_ = NULL;
#line 141 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp18_ = e;
#line 141 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_tmp19_ = _tmp18_->message;
#line 141 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		g_warning ("gitg-diff-stat.vala:141: Failed to load diff-stat style: %s", _tmp19_);
#line 135 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_g_error_free0 (e);
#line 1104 "gitg-diff-stat.c"
	}
	__finally31:
#line 135 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 135 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_g_free0 (us);
#line 135 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_g_free0 (fb);
#line 135 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		_g_object_unref0 (css);
#line 135 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 135 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		g_clear_error (&_inner_error_);
#line 1119 "gitg-diff-stat.c"
	}
#line 144 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp20_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 144 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp21_ = css;
#line 144 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_style_context_add_provider (_tmp20_, (GtkStyleProvider*) _tmp21_, (guint) GTK_STYLE_PROVIDER_PRIORITY_USER);
#line 59 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_g_free0 (us);
#line 59 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_g_free0 (fb);
#line 59 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_g_object_unref0 (css);
#line 59 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	return obj;
#line 1135 "gitg-diff-stat.c"
}


static void gitg_diff_stat_class_init (GitgDiffStatClass * klass) {
	GParamSpecInt* _tmp0_ = NULL;
	GParamSpecInt* _tmp1_ = NULL;
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gitg_diff_stat_parent_class = g_type_class_peek_parent (klass);
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	g_type_class_add_private (klass, sizeof (GitgDiffStatPrivate));
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	((GtkWidgetClass *) klass)->style_updated = gitg_diff_stat_real_style_updated;
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	((GtkWidgetClass *) klass)->draw = gitg_diff_stat_real_draw;
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	((GtkWidgetClass *) klass)->get_preferred_height = gitg_diff_stat_real_get_preferred_height;
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	((GtkWidgetClass *) klass)->get_preferred_width = gitg_diff_stat_real_get_preferred_width;
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_diff_stat_get_property;
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_diff_stat_set_property;
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_diff_stat_constructor;
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_diff_stat_finalize;
#line 20 "/home/jesse/devel/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/devel/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/devel/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/devel/gitg/libgitg/gitg-diff-stat.vala"
	_tmp1_ = _tmp0_;
#line 49 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	gtk_widget_class_install_style_property (GTK_WIDGET_CLASS (klass), (GParamSpec*) _tmp1_);
#line 49 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_g_param_spec_unref0 (_tmp1_);
#line 1174 "gitg-diff-stat.c"
}


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


static void gitg_diff_stat_finalize (GObject* obj) {
	GitgDiffStat * self;
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_DIFF_STAT, GitgDiffStat);
#line 25 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	_g_object_unref0 (self->priv->d_layout);
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
	G_OBJECT_CLASS (gitg_diff_stat_parent_class)->finalize (obj);
#line 1193 "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/devel/gitg/libgitg/gitg-diff-stat.vala"
	switch (property_id) {
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		case GITG_DIFF_STAT_ADDED:
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		g_value_set_uint (value, gitg_diff_stat_get_added (self));
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		break;
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		case GITG_DIFF_STAT_REMOVED:
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		g_value_set_uint (value, gitg_diff_stat_get_removed (self));
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		break;
#line 1226 "gitg-diff-stat.c"
		default:
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		break;
#line 1232 "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/devel/gitg/libgitg/gitg-diff-stat.vala"
	switch (property_id) {
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		case GITG_DIFF_STAT_ADDED:
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		gitg_diff_stat_set_added (self, g_value_get_uint (value));
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		break;
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		case GITG_DIFF_STAT_REMOVED:
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		gitg_diff_stat_set_removed (self, g_value_get_uint (value));
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		break;
#line 1254 "gitg-diff-stat.c"
		default:
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 20 "/home/jesse/devel/gitg/libgitg/gitg-diff-stat.vala"
		break;
#line 1260 "gitg-diff-stat.c"
	}
}



