/* gitg-diff-view-request-icon.c generated by valac 0.28.0, the Vala compiler
 * generated from gitg-diff-view-request-icon.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2014 - 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 <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <webkit2/webkit2.h>
#include <libsoup/soup.h>
#include <gtk/gtk.h>
#include <gdk-pixbuf/gdk-pixbuf.h>


#define GITG_TYPE_DIFF_VIEW_REQUEST (gitg_diff_view_request_get_type ())
#define GITG_DIFF_VIEW_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_VIEW_REQUEST, GitgDiffViewRequest))
#define GITG_DIFF_VIEW_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_VIEW_REQUEST, GitgDiffViewRequestClass))
#define GITG_IS_DIFF_VIEW_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_VIEW_REQUEST))
#define GITG_IS_DIFF_VIEW_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_VIEW_REQUEST))
#define GITG_DIFF_VIEW_REQUEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_VIEW_REQUEST, GitgDiffViewRequestClass))

typedef struct _GitgDiffViewRequest GitgDiffViewRequest;
typedef struct _GitgDiffViewRequestClass GitgDiffViewRequestClass;
typedef struct _GitgDiffViewRequestPrivate GitgDiffViewRequestPrivate;

#define GITG_TYPE_DIFF_VIEW (gitg_diff_view_get_type ())
#define GITG_DIFF_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_VIEW, GitgDiffView))
#define GITG_DIFF_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_VIEW, GitgDiffViewClass))
#define GITG_IS_DIFF_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_VIEW))
#define GITG_IS_DIFF_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_VIEW))
#define GITG_DIFF_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_VIEW, GitgDiffViewClass))

typedef struct _GitgDiffView GitgDiffView;
typedef struct _GitgDiffViewClass GitgDiffViewClass;

#define GITG_TYPE_DIFF_VIEW_REQUEST_ICON (gitg_diff_view_request_icon_get_type ())
#define GITG_DIFF_VIEW_REQUEST_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_VIEW_REQUEST_ICON, GitgDiffViewRequestIcon))
#define GITG_DIFF_VIEW_REQUEST_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_VIEW_REQUEST_ICON, GitgDiffViewRequestIconClass))
#define GITG_IS_DIFF_VIEW_REQUEST_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_VIEW_REQUEST_ICON))
#define GITG_IS_DIFF_VIEW_REQUEST_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_VIEW_REQUEST_ICON))
#define GITG_DIFF_VIEW_REQUEST_ICON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_VIEW_REQUEST_ICON, GitgDiffViewRequestIconClass))

typedef struct _GitgDiffViewRequestIcon GitgDiffViewRequestIcon;
typedef struct _GitgDiffViewRequestIconClass GitgDiffViewRequestIconClass;
typedef struct _GitgDiffViewRequestIconPrivate GitgDiffViewRequestIconPrivate;
#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_bytes_unref0(var) ((var == NULL) ? NULL : (var = (g_bytes_unref (var), NULL)))

typedef enum  {
	GITG_DIFF_VIEW_REQUEST_ICON_ERROR_ICON_NOT_FOUND
} GitgDiffViewRequestIconError;
#define GITG_DIFF_VIEW_REQUEST_ICON_ERROR gitg_diff_view_request_icon_error_quark ()
struct _GitgDiffViewRequest {
	GTypeInstance parent_instance;
	volatile int ref_count;
	GitgDiffViewRequestPrivate * priv;
	GitgDiffView* d_view;
	SoupURI* d_uri;
	gchar* d_mimetype;
	gint64 d_size;
	WebKitURISchemeRequest* d_request;
	gboolean d_hasView;
};

struct _GitgDiffViewRequestClass {
	GTypeClass parent_class;
	void (*finalize) (GitgDiffViewRequest *self);
	GInputStream* (*run_async) (GitgDiffViewRequest* self, GCancellable* cancellable, GError** error);
	gint64 (*get_content_length) (GitgDiffViewRequest* self);
	gchar* (*get_content_type) (GitgDiffViewRequest* self);
};

struct _GitgDiffViewRequestIcon {
	GitgDiffViewRequest parent_instance;
	GitgDiffViewRequestIconPrivate * priv;
};

struct _GitgDiffViewRequestIconClass {
	GitgDiffViewRequestClass parent_class;
};

struct _GitgDiffViewRequestIconPrivate {
	GtkIconTheme* d_theme;
};


static gpointer gitg_diff_view_request_icon_parent_class = NULL;

GQuark gitg_diff_view_request_icon_error_quark (void);
gpointer gitg_diff_view_request_ref (gpointer instance);
void gitg_diff_view_request_unref (gpointer instance);
GParamSpec* gitg_param_spec_diff_view_request (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void gitg_value_set_diff_view_request (GValue* value, gpointer v_object);
void gitg_value_take_diff_view_request (GValue* value, gpointer v_object);
gpointer gitg_value_get_diff_view_request (const GValue* value);
GType gitg_diff_view_request_get_type (void) G_GNUC_CONST;
GType gitg_diff_view_get_type (void) G_GNUC_CONST;
GType gitg_diff_view_request_icon_get_type (void) G_GNUC_CONST;
#define GITG_DIFF_VIEW_REQUEST_ICON_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_DIFF_VIEW_REQUEST_ICON, GitgDiffViewRequestIconPrivate))
enum  {
	GITG_DIFF_VIEW_REQUEST_ICON_DUMMY_PROPERTY
};
GitgDiffViewRequestIcon* gitg_diff_view_request_icon_new (GitgDiffView* view, WebKitURISchemeRequest* request, SoupURI* uri);
GitgDiffViewRequestIcon* gitg_diff_view_request_icon_construct (GType object_type, GitgDiffView* view, WebKitURISchemeRequest* request, SoupURI* uri);
GitgDiffViewRequest* gitg_diff_view_request_new (GitgDiffView* view, WebKitURISchemeRequest* request, SoupURI* uri);
GitgDiffViewRequest* gitg_diff_view_request_construct (GType object_type, GitgDiffView* view, WebKitURISchemeRequest* request, SoupURI* uri);
static GInputStream* gitg_diff_view_request_icon_ensure_icon (GitgDiffViewRequestIcon* self, GCancellable* cancellable, gulong* size, GError** error);
gchar* gitg_diff_view_request_parameter (GitgDiffViewRequest* self, const gchar* v);
static GInputStream* gitg_diff_view_request_icon_real_run_async (GitgDiffViewRequest* base, GCancellable* cancellable, GError** error);
static void gitg_diff_view_request_icon_finalize (GitgDiffViewRequest* obj);


GQuark gitg_diff_view_request_icon_error_quark (void) {
	return g_quark_from_static_string ("gitg_diff_view_request_icon_error-quark");
}


static gpointer _g_object_ref0 (gpointer self) {
#line 37 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	return self ? g_object_ref (self) : NULL;
#line 143 "gitg-diff-view-request-icon.c"
}


GitgDiffViewRequestIcon* gitg_diff_view_request_icon_construct (GType object_type, GitgDiffView* view, WebKitURISchemeRequest* request, SoupURI* uri) {
	GitgDiffViewRequestIcon* self = NULL;
	GitgDiffView* _tmp0_ = NULL;
	WebKitURISchemeRequest* _tmp1_ = NULL;
	SoupURI* _tmp2_ = NULL;
	GitgDiffView* _tmp3_ = NULL;
#line 31 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	g_return_val_if_fail (request != NULL, NULL);
#line 31 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	g_return_val_if_fail (uri != NULL, NULL);
#line 33 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp0_ = view;
#line 33 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp1_ = request;
#line 33 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp2_ = uri;
#line 33 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	self = (GitgDiffViewRequestIcon*) gitg_diff_view_request_construct (object_type, _tmp0_, _tmp1_, _tmp2_);
#line 35 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp3_ = view;
#line 35 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	if (_tmp3_ == NULL) {
#line 169 "gitg-diff-view-request-icon.c"
		GtkIconTheme* _tmp4_ = NULL;
		GtkIconTheme* _tmp5_ = NULL;
#line 37 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp4_ = gtk_icon_theme_get_default ();
#line 37 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp5_ = _g_object_ref0 (_tmp4_);
#line 37 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_g_object_unref0 (self->priv->d_theme);
#line 37 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		self->priv->d_theme = _tmp5_;
#line 180 "gitg-diff-view-request-icon.c"
	} else {
		GitgDiffView* _tmp6_ = NULL;
		GdkScreen* _tmp7_ = NULL;
		GtkIconTheme* _tmp8_ = NULL;
		GtkIconTheme* _tmp9_ = NULL;
#line 41 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp6_ = view;
#line 41 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp7_ = gtk_widget_get_screen ((GtkWidget*) _tmp6_);
#line 41 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp8_ = gtk_icon_theme_get_for_screen (_tmp7_);
#line 41 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp9_ = _g_object_ref0 (_tmp8_);
#line 41 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_g_object_unref0 (self->priv->d_theme);
#line 41 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		self->priv->d_theme = _tmp9_;
#line 198 "gitg-diff-view-request-icon.c"
	}
#line 44 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_g_object_unref0 (((GitgDiffViewRequest*) self)->d_view);
#line 44 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	((GitgDiffViewRequest*) self)->d_view = NULL;
#line 45 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	((GitgDiffViewRequest*) self)->d_hasView = FALSE;
#line 31 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	return self;
#line 208 "gitg-diff-view-request-icon.c"
}


GitgDiffViewRequestIcon* gitg_diff_view_request_icon_new (GitgDiffView* view, WebKitURISchemeRequest* request, SoupURI* uri) {
#line 31 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	return gitg_diff_view_request_icon_construct (GITG_TYPE_DIFF_VIEW_REQUEST_ICON, view, request, uri);
#line 215 "gitg-diff-view-request-icon.c"
}


static gchar* string_slice (const gchar* self, glong start, glong end) {
	gchar* result = NULL;
	glong string_length = 0L;
	gint _tmp0_ = 0;
	gint _tmp1_ = 0;
	glong _tmp2_ = 0L;
	glong _tmp5_ = 0L;
	gboolean _tmp8_ = FALSE;
	glong _tmp9_ = 0L;
	gboolean _tmp12_ = FALSE;
	glong _tmp13_ = 0L;
	glong _tmp16_ = 0L;
	glong _tmp17_ = 0L;
	glong _tmp18_ = 0L;
	glong _tmp19_ = 0L;
	glong _tmp20_ = 0L;
	gchar* _tmp21_ = NULL;
#line 1230 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1231 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp0_ = strlen (self);
#line 1231 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp1_ = _tmp0_;
#line 1231 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	string_length = (glong) _tmp1_;
#line 1232 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp2_ = start;
#line 1232 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	if (_tmp2_ < ((glong) 0)) {
#line 248 "gitg-diff-view-request-icon.c"
		glong _tmp3_ = 0L;
		glong _tmp4_ = 0L;
#line 1233 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp3_ = string_length;
#line 1233 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp4_ = start;
#line 1233 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		start = _tmp3_ + _tmp4_;
#line 257 "gitg-diff-view-request-icon.c"
	}
#line 1235 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp5_ = end;
#line 1235 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	if (_tmp5_ < ((glong) 0)) {
#line 263 "gitg-diff-view-request-icon.c"
		glong _tmp6_ = 0L;
		glong _tmp7_ = 0L;
#line 1236 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp6_ = string_length;
#line 1236 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp7_ = end;
#line 1236 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		end = _tmp6_ + _tmp7_;
#line 272 "gitg-diff-view-request-icon.c"
	}
#line 1238 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp9_ = start;
#line 1238 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	if (_tmp9_ >= ((glong) 0)) {
#line 278 "gitg-diff-view-request-icon.c"
		glong _tmp10_ = 0L;
		glong _tmp11_ = 0L;
#line 1238 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp10_ = start;
#line 1238 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp11_ = string_length;
#line 1238 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp8_ = _tmp10_ <= _tmp11_;
#line 287 "gitg-diff-view-request-icon.c"
	} else {
#line 1238 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp8_ = FALSE;
#line 291 "gitg-diff-view-request-icon.c"
	}
#line 1238 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp8_, NULL);
#line 1239 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp13_ = end;
#line 1239 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	if (_tmp13_ >= ((glong) 0)) {
#line 299 "gitg-diff-view-request-icon.c"
		glong _tmp14_ = 0L;
		glong _tmp15_ = 0L;
#line 1239 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp14_ = end;
#line 1239 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp15_ = string_length;
#line 1239 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp12_ = _tmp14_ <= _tmp15_;
#line 308 "gitg-diff-view-request-icon.c"
	} else {
#line 1239 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp12_ = FALSE;
#line 312 "gitg-diff-view-request-icon.c"
	}
#line 1239 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp12_, NULL);
#line 1240 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp16_ = start;
#line 1240 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp17_ = end;
#line 1240 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp16_ <= _tmp17_, NULL);
#line 1241 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp18_ = start;
#line 1241 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp19_ = end;
#line 1241 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp20_ = start;
#line 1241 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp21_ = g_strndup (((gchar*) self) + _tmp18_, (gsize) (_tmp19_ - _tmp20_));
#line 1241 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	result = _tmp21_;
#line 1241 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	return result;
#line 334 "gitg-diff-view-request-icon.c"
}


static gint _vala_g_bytes_get_length (GBytes* self) {
	gint result;
	gsize _tmp0_ = 0UL;
#line 4471 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, 0);
#line 4473 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp0_ = g_bytes_get_size (self);
#line 4473 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	result = (gint) _tmp0_;
#line 4473 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
	return result;
#line 349 "gitg-diff-view-request-icon.c"
}


static GInputStream* gitg_diff_view_request_icon_ensure_icon (GitgDiffViewRequestIcon* self, GCancellable* cancellable, gulong* size, GError** error) {
	gulong _vala_size = 0UL;
	GInputStream* result = NULL;
	gchar* name = NULL;
	SoupURI* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	gint _tmp5_ = 0;
	gint _tmp6_ = 0;
	gchar* _tmp7_ = NULL;
	gchar* sizes = NULL;
	gchar* _tmp8_ = NULL;
	gint s = 0;
	const gchar* _tmp9_ = NULL;
	GdkPixbuf* icon = NULL;
	GdkPixbuf* _tmp19_ = NULL;
	GMemoryOutputStream* stream = NULL;
	GMemoryOutputStream* _tmp21_ = NULL;
	GBytes* b = NULL;
	GMemoryOutputStream* _tmp28_ = NULL;
	GBytes* _tmp29_ = NULL;
	GBytes* _tmp30_ = NULL;
	gint _tmp31_ = 0;
	gint _tmp32_ = 0;
	GMemoryInputStream* istream = NULL;
	GBytes* _tmp33_ = NULL;
	GMemoryInputStream* _tmp34_ = NULL;
	GError * _inner_error_ = NULL;
#line 48 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 50 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp0_ = ((GitgDiffViewRequest*) self)->d_uri;
#line 50 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp1_ = soup_uri_get_path (_tmp0_);
#line 50 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp2_ = soup_uri_decode (_tmp1_);
#line 50 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	name = _tmp2_;
#line 51 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp3_ = name;
#line 51 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp4_ = name;
#line 51 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp5_ = strlen (_tmp4_);
#line 51 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp6_ = _tmp5_;
#line 51 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp7_ = string_slice (_tmp3_, (glong) 1, (glong) _tmp6_);
#line 51 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_g_free0 (name);
#line 51 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	name = _tmp7_;
#line 53 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp8_ = gitg_diff_view_request_parameter ((GitgDiffViewRequest*) self, "size");
#line 53 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	sizes = _tmp8_;
#line 55 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	s = 60;
#line 57 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp9_ = sizes;
#line 57 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	if (_tmp9_ != NULL) {
#line 417 "gitg-diff-view-request-icon.c"
		const gchar* _tmp10_ = NULL;
		gint _tmp11_ = 0;
#line 59 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp10_ = sizes;
#line 59 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp11_ = atoi (_tmp10_);
#line 59 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		s = _tmp11_;
#line 426 "gitg-diff-view-request-icon.c"
	}
#line 62 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	icon = NULL;
#line 430 "gitg-diff-view-request-icon.c"
	{
		GdkPixbuf* _tmp12_ = NULL;
		GtkIconTheme* _tmp13_ = NULL;
		const gchar* _tmp14_ = NULL;
		gint _tmp15_ = 0;
		GdkPixbuf* _tmp16_ = NULL;
		GdkPixbuf* _tmp17_ = NULL;
#line 66 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp13_ = self->priv->d_theme;
#line 66 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp14_ = name;
#line 66 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp15_ = s;
#line 66 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp16_ = gtk_icon_theme_load_icon (_tmp13_, _tmp14_, _tmp15_, 0, &_inner_error_);
#line 66 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp12_ = _tmp16_;
#line 66 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 450 "gitg-diff-view-request-icon.c"
			goto __catch32_g_error;
		}
#line 66 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp17_ = _tmp12_;
#line 66 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp12_ = NULL;
#line 66 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_g_object_unref0 (icon);
#line 66 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		icon = _tmp17_;
#line 64 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_g_object_unref0 (_tmp12_);
#line 463 "gitg-diff-view-request-icon.c"
	}
	goto __finally32;
	__catch32_g_error:
	{
		GError* e = NULL;
		GError* _tmp18_ = NULL;
#line 64 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		e = _inner_error_;
#line 64 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_inner_error_ = NULL;
#line 69 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp18_ = g_error_new_literal (GITG_DIFF_VIEW_REQUEST_ICON_ERROR, GITG_DIFF_VIEW_REQUEST_ICON_ERROR_ICON_NOT_FOUND, "icon not found");
#line 69 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_inner_error_ = _tmp18_;
#line 69 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_g_error_free0 (e);
#line 480 "gitg-diff-view-request-icon.c"
		goto __finally32;
	}
	__finally32:
#line 64 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 64 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		if (_inner_error_->domain == GITG_DIFF_VIEW_REQUEST_ICON_ERROR) {
#line 64 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			g_propagate_error (error, _inner_error_);
#line 64 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_object_unref0 (icon);
#line 64 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_free0 (sizes);
#line 64 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_free0 (name);
#line 64 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			return NULL;
#line 498 "gitg-diff-view-request-icon.c"
		} else {
#line 64 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_object_unref0 (icon);
#line 64 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_free0 (sizes);
#line 64 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_free0 (name);
#line 64 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.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 64 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			g_clear_error (&_inner_error_);
#line 64 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			return NULL;
#line 512 "gitg-diff-view-request-icon.c"
		}
	}
#line 72 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp19_ = icon;
#line 72 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	if (_tmp19_ == NULL) {
#line 519 "gitg-diff-view-request-icon.c"
		GError* _tmp20_ = NULL;
#line 74 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp20_ = g_error_new_literal (GITG_DIFF_VIEW_REQUEST_ICON_ERROR, GITG_DIFF_VIEW_REQUEST_ICON_ERROR_ICON_NOT_FOUND, "icon not found");
#line 74 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_inner_error_ = _tmp20_;
#line 74 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		if (_inner_error_->domain == GITG_DIFF_VIEW_REQUEST_ICON_ERROR) {
#line 74 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			g_propagate_error (error, _inner_error_);
#line 74 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_object_unref0 (icon);
#line 74 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_free0 (sizes);
#line 74 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_free0 (name);
#line 74 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			return NULL;
#line 537 "gitg-diff-view-request-icon.c"
		} else {
#line 74 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_object_unref0 (icon);
#line 74 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_free0 (sizes);
#line 74 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_free0 (name);
#line 74 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.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 74 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			g_clear_error (&_inner_error_);
#line 74 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			return NULL;
#line 551 "gitg-diff-view-request-icon.c"
		}
	}
#line 77 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp21_ = (GMemoryOutputStream*) g_memory_output_stream_new_resizable ();
#line 77 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	stream = _tmp21_;
#line 558 "gitg-diff-view-request-icon.c"
	{
		GdkPixbuf* _tmp22_ = NULL;
		GMemoryOutputStream* _tmp23_ = NULL;
		GCancellable* _tmp24_ = NULL;
#line 81 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp22_ = icon;
#line 81 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp23_ = stream;
#line 81 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp24_ = cancellable;
#line 81 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		gdk_pixbuf_save_to_stream (_tmp22_, (GOutputStream*) _tmp23_, "png", _tmp24_, &_inner_error_, NULL);
#line 81 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 573 "gitg-diff-view-request-icon.c"
			goto __catch33_g_error;
		}
	}
	goto __finally33;
	__catch33_g_error:
	{
		GError* e = NULL;
		GError* _tmp25_ = NULL;
#line 79 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		e = _inner_error_;
#line 79 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_inner_error_ = NULL;
#line 85 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp25_ = g_error_new_literal (GITG_DIFF_VIEW_REQUEST_ICON_ERROR, GITG_DIFF_VIEW_REQUEST_ICON_ERROR_ICON_NOT_FOUND, "icon not found");
#line 85 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_inner_error_ = _tmp25_;
#line 85 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_g_error_free0 (e);
#line 592 "gitg-diff-view-request-icon.c"
		goto __finally33;
	}
	__finally33:
#line 79 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 79 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		if (_inner_error_->domain == GITG_DIFF_VIEW_REQUEST_ICON_ERROR) {
#line 79 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			g_propagate_error (error, _inner_error_);
#line 79 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_object_unref0 (stream);
#line 79 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_object_unref0 (icon);
#line 79 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_free0 (sizes);
#line 79 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_free0 (name);
#line 79 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			return NULL;
#line 612 "gitg-diff-view-request-icon.c"
		} else {
#line 79 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_object_unref0 (stream);
#line 79 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_object_unref0 (icon);
#line 79 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_free0 (sizes);
#line 79 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_free0 (name);
#line 79 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.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 79 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			g_clear_error (&_inner_error_);
#line 79 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			return NULL;
#line 628 "gitg-diff-view-request-icon.c"
		}
	}
	{
		GMemoryOutputStream* _tmp26_ = NULL;
#line 90 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp26_ = stream;
#line 90 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		g_output_stream_close ((GOutputStream*) _tmp26_, NULL, &_inner_error_);
#line 90 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 639 "gitg-diff-view-request-icon.c"
			goto __catch34_g_error;
		}
	}
	goto __finally34;
	__catch34_g_error:
	{
		GError* e = NULL;
		GError* _tmp27_ = NULL;
#line 88 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		e = _inner_error_;
#line 88 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_inner_error_ = NULL;
#line 94 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_tmp27_ = g_error_new_literal (GITG_DIFF_VIEW_REQUEST_ICON_ERROR, GITG_DIFF_VIEW_REQUEST_ICON_ERROR_ICON_NOT_FOUND, "icon not found");
#line 94 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_inner_error_ = _tmp27_;
#line 94 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		_g_error_free0 (e);
#line 658 "gitg-diff-view-request-icon.c"
		goto __finally34;
	}
	__finally34:
#line 88 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 88 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		if (_inner_error_->domain == GITG_DIFF_VIEW_REQUEST_ICON_ERROR) {
#line 88 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			g_propagate_error (error, _inner_error_);
#line 88 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_object_unref0 (stream);
#line 88 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_object_unref0 (icon);
#line 88 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_free0 (sizes);
#line 88 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_free0 (name);
#line 88 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			return NULL;
#line 678 "gitg-diff-view-request-icon.c"
		} else {
#line 88 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_object_unref0 (stream);
#line 88 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_object_unref0 (icon);
#line 88 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_free0 (sizes);
#line 88 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			_g_free0 (name);
#line 88 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.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 88 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			g_clear_error (&_inner_error_);
#line 88 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
			return NULL;
#line 694 "gitg-diff-view-request-icon.c"
		}
	}
#line 97 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp28_ = stream;
#line 97 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp29_ = g_memory_output_stream_steal_as_bytes (_tmp28_);
#line 97 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	b = _tmp29_;
#line 99 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp30_ = b;
#line 99 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp31_ = _vala_g_bytes_get_length (_tmp30_);
#line 99 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp32_ = _tmp31_;
#line 99 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_vala_size = (gulong) _tmp32_;
#line 101 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp33_ = b;
#line 101 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp34_ = (GMemoryInputStream*) g_memory_input_stream_new_from_bytes (_tmp33_);
#line 101 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	istream = _tmp34_;
#line 102 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	result = (GInputStream*) istream;
#line 102 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_g_bytes_unref0 (b);
#line 102 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_g_object_unref0 (stream);
#line 102 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_g_object_unref0 (icon);
#line 102 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_g_free0 (sizes);
#line 102 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_g_free0 (name);
#line 102 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	if (size) {
#line 102 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		*size = _vala_size;
#line 733 "gitg-diff-view-request-icon.c"
	}
#line 102 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	return result;
#line 737 "gitg-diff-view-request-icon.c"
}


static GInputStream* gitg_diff_view_request_icon_real_run_async (GitgDiffViewRequest* base, GCancellable* cancellable, GError** error) {
	GitgDiffViewRequestIcon * self;
	GInputStream* result = NULL;
	gulong size = 0UL;
	GInputStream* stream = NULL;
	GCancellable* _tmp0_ = NULL;
	gulong _tmp1_ = 0UL;
	GInputStream* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	GError * _inner_error_ = NULL;
#line 105 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	self = (GitgDiffViewRequestIcon*) base;
#line 108 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp0_ = cancellable;
#line 108 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp2_ = gitg_diff_view_request_icon_ensure_icon (self, _tmp0_, &_tmp1_, &_inner_error_);
#line 108 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	size = _tmp1_;
#line 108 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	stream = _tmp2_;
#line 108 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 108 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		g_propagate_error (error, _inner_error_);
#line 108 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
		return NULL;
#line 767 "gitg-diff-view-request-icon.c"
	}
#line 110 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	((GitgDiffViewRequest*) self)->d_size = (gint64) size;
#line 111 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_tmp3_ = g_strdup ("image/png");
#line 111 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_g_free0 (((GitgDiffViewRequest*) self)->d_mimetype);
#line 111 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	((GitgDiffViewRequest*) self)->d_mimetype = _tmp3_;
#line 113 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	result = stream;
#line 113 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	return result;
#line 781 "gitg-diff-view-request-icon.c"
}


static void gitg_diff_view_request_icon_class_init (GitgDiffViewRequestIconClass * klass) {
#line 27 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	gitg_diff_view_request_icon_parent_class = g_type_class_peek_parent (klass);
#line 27 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	((GitgDiffViewRequestClass *) klass)->finalize = gitg_diff_view_request_icon_finalize;
#line 27 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	g_type_class_add_private (klass, sizeof (GitgDiffViewRequestIconPrivate));
#line 27 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	((GitgDiffViewRequestClass *) klass)->run_async = gitg_diff_view_request_icon_real_run_async;
#line 794 "gitg-diff-view-request-icon.c"
}


static void gitg_diff_view_request_icon_instance_init (GitgDiffViewRequestIcon * self) {
#line 27 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	self->priv = GITG_DIFF_VIEW_REQUEST_ICON_GET_PRIVATE (self);
#line 801 "gitg-diff-view-request-icon.c"
}


static void gitg_diff_view_request_icon_finalize (GitgDiffViewRequest* obj) {
	GitgDiffViewRequestIcon * self;
#line 27 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_DIFF_VIEW_REQUEST_ICON, GitgDiffViewRequestIcon);
#line 29 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	_g_object_unref0 (self->priv->d_theme);
#line 27 "/home/jesse/devel/gitg/libgitg/gitg-diff-view-request-icon.vala"
	GITG_DIFF_VIEW_REQUEST_CLASS (gitg_diff_view_request_icon_parent_class)->finalize (obj);
#line 813 "gitg-diff-view-request-icon.c"
}


GType gitg_diff_view_request_icon_get_type (void) {
	static volatile gsize gitg_diff_view_request_icon_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_diff_view_request_icon_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgDiffViewRequestIconClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_diff_view_request_icon_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgDiffViewRequestIcon), 0, (GInstanceInitFunc) gitg_diff_view_request_icon_instance_init, NULL };
		GType gitg_diff_view_request_icon_type_id;
		gitg_diff_view_request_icon_type_id = g_type_register_static (GITG_TYPE_DIFF_VIEW_REQUEST, "GitgDiffViewRequestIcon", &g_define_type_info, 0);
		g_once_init_leave (&gitg_diff_view_request_icon_type_id__volatile, gitg_diff_view_request_icon_type_id);
	}
	return gitg_diff_view_request_icon_type_id__volatile;
}



