/* gitg-files.c generated by valac 0.34.7, the Vala compiler
 * generated from gitg-files.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2012 - 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 "libgitg-ext/libgitg-ext.h"
#include <gtk/gtk.h>
#include <gtksourceview/gtksource.h>
#include <gio/gio.h>
#include "libgitg/libgitg.h"
#include <stdlib.h>
#include <string.h>
#include <config.h>
#include <libgit2-glib/ggit.h>
#include <pango/pango.h>
#include <gee.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <glib/gi18n-lib.h>
#include <libpeas/peas.h>


#define GITG_FILES_TYPE_PANEL (gitg_files_panel_get_type ())
#define GITG_FILES_PANEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_FILES_TYPE_PANEL, GitgFilesPanel))
#define GITG_FILES_PANEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_FILES_TYPE_PANEL, GitgFilesPanelClass))
#define GITG_FILES_IS_PANEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_FILES_TYPE_PANEL))
#define GITG_FILES_IS_PANEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_FILES_TYPE_PANEL))
#define GITG_FILES_PANEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_FILES_TYPE_PANEL, GitgFilesPanelClass))

typedef struct _GitgFilesPanel GitgFilesPanel;
typedef struct _GitgFilesPanelClass GitgFilesPanelClass;
typedef struct _GitgFilesPanelPrivate GitgFilesPanelPrivate;

#define GITG_FILES_TYPE_TREE_STORE (gitg_files_tree_store_get_type ())
#define GITG_FILES_TREE_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_FILES_TYPE_TREE_STORE, GitgFilesTreeStore))
#define GITG_FILES_TREE_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_FILES_TYPE_TREE_STORE, GitgFilesTreeStoreClass))
#define GITG_FILES_IS_TREE_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_FILES_TYPE_TREE_STORE))
#define GITG_FILES_IS_TREE_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_FILES_TYPE_TREE_STORE))
#define GITG_FILES_TREE_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_FILES_TYPE_TREE_STORE, GitgFilesTreeStoreClass))

typedef struct _GitgFilesTreeStore GitgFilesTreeStore;
typedef struct _GitgFilesTreeStoreClass GitgFilesTreeStoreClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _gitg_when_mapped_unref0(var) ((var == NULL) ? NULL : (var = (gitg_when_mapped_unref (var), NULL)))
typedef struct _Block1Data Block1Data;
#define __vala_PangoFontDescription_free0(var) ((var == NULL) ? NULL : (var = (_vala_PangoFontDescription_free (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_settings_schema_source_unref0(var) ((var == NULL) ? NULL : (var = (g_settings_schema_source_unref (var), NULL)))
#define _g_settings_schema_unref0(var) ((var == NULL) ? NULL : (var = (g_settings_schema_unref (var), NULL)))
#define __vala_GgitOId_free0(var) ((var == NULL) ? NULL : (var = (_vala_GgitOId_free (var), NULL)))

struct _GitgFilesPanel {
	GObject parent_instance;
	GitgFilesPanelPrivate * priv;
};

struct _GitgFilesPanelClass {
	GObjectClass parent_class;
};

struct _GitgFilesPanelPrivate {
	GitgExtApplication* _application;
	GitgExtHistory* _history;
	GitgFilesTreeStore* d_model;
	GtkPaned* d_paned;
	GtkSourceView* d_source;
	GSettings* d_fontsettings;
	GSettings* d_stylesettings;
	GtkScrolledWindow* d_scrolled_files;
	GtkScrolledWindow* d_scrolled;
	GtkViewport* d_imagevp;
	GtkImage* d_image;
	GitgWhenMapped* d_whenMapped;
};

struct _Block1Data {
	int _ref_count_;
	GitgFilesPanel* self;
	GgitCommit* commit;
};


static gpointer gitg_files_panel_parent_class = NULL;
static GitgExtUIElementIface* gitg_files_panel_gitg_ext_ui_element_parent_iface = NULL;
static GitgExtHistoryPanelIface* gitg_files_panel_gitg_ext_history_panel_parent_iface = NULL;
static GType gitg_files_panel_type_id = 0;

GType gitg_files_panel_get_type (void) G_GNUC_CONST;
GType gitg_files_panel_register_type (GTypeModule * module);
GType gitg_files_tree_store_get_type (void) G_GNUC_CONST;
GType gitg_files_tree_store_register_type (GTypeModule * module);
#define GITG_FILES_PANEL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_FILES_TYPE_PANEL, GitgFilesPanelPrivate))
enum  {
	GITG_FILES_PANEL_DUMMY_PROPERTY,
	GITG_FILES_PANEL_APPLICATION,
	GITG_FILES_PANEL_HISTORY,
	GITG_FILES_PANEL_ID,
	GITG_FILES_PANEL_AVAILABLE,
	GITG_FILES_PANEL_DISPLAY_NAME,
	GITG_FILES_PANEL_DESCRIPTION,
	GITG_FILES_PANEL_ICON,
	GITG_FILES_PANEL_WIDGET,
	GITG_FILES_PANEL_ENABLED
};
#define GITG_FILES_PANEL_version VERSION
static void gitg_files_panel_on_selection_changed (GitgFilesPanel* self, GitgExtHistory* history);
static gboolean __lambda7_ (GitgFilesPanel* self, GgitCommit* commit);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (void * _userdata_);
static void __lambda8_ (Block1Data* _data1_);
void gitg_files_tree_store_set_tree (GitgFilesTreeStore* self, GgitTree* value);
static void ___lambda8__gitg_when_mapped_on_mapped (gpointer self);
static gboolean ___lambda7__gitg_ext_foreach_commit_selection_func (GgitCommit* object, gpointer self);
static void gitg_files_panel_update_font (GitgFilesPanel* self);
static void _vala_PangoFontDescription_free (PangoFontDescription* self);
static void gitg_files_panel_update_style (GitgFilesPanel* self);
static GSettings* gitg_files_panel_try_settings (GitgFilesPanel* self, const gchar* schema_id);
static void gitg_files_panel_build_ui (GitgFilesPanel* self);
static void gitg_files_panel_selection_changed (GitgFilesPanel* self, GtkTreeSelection* selection);
static void _gitg_files_panel_selection_changed_gtk_tree_selection_changed (GtkTreeSelection* _sender, gpointer self);
static void ___lambda9_ (GitgFilesPanel* self, GSettings* s, const gchar* k);
static void ____lambda9__g_settings_changed (GSettings* _sender, const gchar* key, gpointer self);
static void ___lambda10_ (GitgFilesPanel* self, GSettings* s, const gchar* k);
static void ____lambda10__g_settings_changed (GSettings* _sender, const gchar* key, gpointer self);
static void gitg_files_panel_set_viewer (GitgFilesPanel* self, GtkWidget* wid);
gboolean gitg_files_tree_store_get_isdir (GitgFilesTreeStore* self, GtkTreeIter* iter);
GgitOId* gitg_files_tree_store_get_id (GitgFilesTreeStore* self, GtkTreeIter* iter);
static void _vala_GgitOId_free (GgitOId* self);
gchar* gitg_files_tree_store_get_full_path (GitgFilesTreeStore* self, GtkTreeIter* iter);
static gint gitg_files_panel_real_negotiate_order (GitgExtUIElement* base, GitgExtUIElement* other);
GitgFilesPanel* gitg_files_panel_new (void);
GitgFilesPanel* gitg_files_panel_construct (GType object_type);
static GObject * gitg_files_panel_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
GitgFilesTreeStore* gitg_files_tree_store_new (void);
GitgFilesTreeStore* gitg_files_tree_store_construct (GType object_type);
static void _gitg_files_panel_on_selection_changed_gitg_ext_history_selection_changed (GitgExtHistory* _sender, gpointer self);
static void gitg_files_panel_finalize (GObject* obj);
static void _vala_gitg_files_panel_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_files_panel_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
void peas_register_types (GTypeModule* module);


static gpointer _g_object_ref0 (gpointer self) {
#line 78 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	return self ? g_object_ref (self) : NULL;
#line 165 "gitg-files.c"
}


static Block1Data* block1_data_ref (Block1Data* _data1_) {
#line 78 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_atomic_int_inc (&_data1_->_ref_count_);
#line 78 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	return _data1_;
#line 174 "gitg-files.c"
}


static void block1_data_unref (void * _userdata_) {
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
#line 78 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 183 "gitg-files.c"
		GitgFilesPanel* self;
#line 78 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		self = _data1_->self;
#line 78 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_object_unref0 (_data1_->commit);
#line 78 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_object_unref0 (self);
#line 78 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		g_slice_free (Block1Data, _data1_);
#line 193 "gitg-files.c"
	}
}


static void __lambda8_ (Block1Data* _data1_) {
	GitgFilesPanel* self;
	GitgFilesTreeStore* _tmp0_ = NULL;
	GgitCommit* _tmp1_ = NULL;
	GgitTree* _tmp2_ = NULL;
	GgitTree* _tmp3_ = NULL;
#line 79 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self = _data1_->self;
#line 80 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp0_ = self->priv->d_model;
#line 80 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp1_ = _data1_->commit;
#line 80 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp2_ = ggit_commit_get_tree (_tmp1_);
#line 80 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp3_ = _tmp2_;
#line 80 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	gitg_files_tree_store_set_tree (_tmp0_, _tmp3_);
#line 80 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (_tmp3_);
#line 218 "gitg-files.c"
}


static void ___lambda8__gitg_when_mapped_on_mapped (gpointer self) {
#line 79 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	__lambda8_ (self);
#line 225 "gitg-files.c"
}


static gboolean __lambda7_ (GitgFilesPanel* self, GgitCommit* commit) {
	gboolean result = FALSE;
	Block1Data* _data1_;
	GgitCommit* _tmp0_ = NULL;
	GgitCommit* _tmp1_ = NULL;
	GitgWhenMapped* _tmp2_ = NULL;
#line 78 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_return_val_if_fail (commit != NULL, FALSE);
#line 78 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_data1_ = g_slice_new0 (Block1Data);
#line 78 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_data1_->_ref_count_ = 1;
#line 78 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_data1_->self = g_object_ref (self);
#line 78 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp0_ = commit;
#line 78 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 78 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (_data1_->commit);
#line 78 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_data1_->commit = _tmp1_;
#line 79 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp2_ = self->priv->d_whenMapped;
#line 79 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	gitg_when_mapped_update (_tmp2_, ___lambda8__gitg_when_mapped_on_mapped, block1_data_ref (_data1_), block1_data_unref, (GObject*) self);
#line 83 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	result = FALSE;
#line 83 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	block1_data_unref (_data1_);
#line 83 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_data1_ = NULL;
#line 83 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	return result;
#line 263 "gitg-files.c"
}


static gboolean ___lambda7__gitg_ext_foreach_commit_selection_func (GgitCommit* object, gpointer self) {
	gboolean result;
	result = __lambda7_ ((GitgFilesPanel*) self, object);
#line 78 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	return result;
#line 272 "gitg-files.c"
}


static void gitg_files_panel_on_selection_changed (GitgFilesPanel* self, GitgExtHistory* history) {
	GitgExtHistory* _tmp0_ = NULL;
#line 76 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_return_if_fail (self != NULL);
#line 76 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_return_if_fail (history != NULL);
#line 78 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp0_ = history;
#line 78 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	gitg_ext_history_foreach_selected (_tmp0_, ___lambda7__gitg_ext_foreach_commit_selection_func, self);
#line 286 "gitg-files.c"
}


static void _vala_PangoFontDescription_free (PangoFontDescription* self) {
#line 90 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_boxed_free (pango_font_description_get_type (), self);
#line 293 "gitg-files.c"
}


static void gitg_files_panel_update_font (GitgFilesPanel* self) {
	gchar* fname = NULL;
	GSettings* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	GtkSourceView* _tmp2_ = NULL;
	PangoFontDescription* _tmp3_ = NULL;
	PangoFontDescription* _tmp4_ = NULL;
#line 87 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_return_if_fail (self != NULL);
#line 89 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp0_ = self->priv->d_fontsettings;
#line 89 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp1_ = g_settings_get_string (_tmp0_, "monospace-font-name");
#line 89 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	fname = _tmp1_;
#line 90 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp2_ = self->priv->d_source;
#line 90 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp3_ = pango_font_description_from_string (fname);
#line 90 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp4_ = _tmp3_;
#line 90 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	gtk_widget_override_font ((GtkWidget*) _tmp2_, _tmp4_);
#line 90 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	__vala_PangoFontDescription_free0 (_tmp4_);
#line 87 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_free0 (fname);
#line 324 "gitg-files.c"
}


static void gitg_files_panel_update_style (GitgFilesPanel* self) {
	gchar* scheme = NULL;
	GSettings* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	GtkSourceStyleSchemeManager* manager = NULL;
	GtkSourceStyleSchemeManager* _tmp2_ = NULL;
	GtkSourceStyleSchemeManager* _tmp3_ = NULL;
	GtkSourceStyleScheme* s = NULL;
	GtkSourceStyleSchemeManager* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	GtkSourceStyleScheme* _tmp6_ = NULL;
	GtkSourceStyleScheme* _tmp7_ = NULL;
	GtkSourceStyleScheme* _tmp8_ = NULL;
#line 93 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_return_if_fail (self != NULL);
#line 95 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp0_ = self->priv->d_stylesettings;
#line 95 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp1_ = g_settings_get_string (_tmp0_, "scheme");
#line 95 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	scheme = _tmp1_;
#line 96 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp2_ = gtk_source_style_scheme_manager_get_default ();
#line 96 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 96 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	manager = _tmp3_;
#line 97 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp4_ = manager;
#line 97 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp5_ = scheme;
#line 97 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp6_ = gtk_source_style_scheme_manager_get_scheme (_tmp4_, _tmp5_);
#line 97 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp7_ = _g_object_ref0 (_tmp6_);
#line 97 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	s = _tmp7_;
#line 99 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp8_ = s;
#line 99 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	if (_tmp8_ != NULL) {
#line 369 "gitg-files.c"
		GtkSourceBuffer* buf = NULL;
		GtkSourceView* _tmp9_ = NULL;
		GtkTextBuffer* _tmp10_ = NULL;
		GtkSourceBuffer* _tmp11_ = NULL;
		GtkSourceBuffer* _tmp12_ = NULL;
		GtkSourceStyleScheme* _tmp13_ = NULL;
#line 101 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp9_ = self->priv->d_source;
#line 101 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp10_ = gtk_text_view_get_buffer ((GtkTextView*) _tmp9_);
#line 101 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, gtk_source_buffer_get_type ()) ? ((GtkSourceBuffer*) _tmp10_) : NULL);
#line 101 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		buf = _tmp11_;
#line 102 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp12_ = buf;
#line 102 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp13_ = s;
#line 102 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		gtk_source_buffer_set_style_scheme (_tmp12_, _tmp13_);
#line 99 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_object_unref0 (buf);
#line 392 "gitg-files.c"
	}
#line 93 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (s);
#line 93 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (manager);
#line 93 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_free0 (scheme);
#line 400 "gitg-files.c"
}


static gpointer _g_settings_schema_source_ref0 (gpointer self) {
#line 108 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	return self ? g_settings_schema_source_ref (self) : NULL;
#line 407 "gitg-files.c"
}


static GSettings* gitg_files_panel_try_settings (GitgFilesPanel* self, const gchar* schema_id) {
	GSettings* result = NULL;
	GSettingsSchemaSource* source = NULL;
	GSettingsSchemaSource* _tmp0_ = NULL;
	GSettingsSchemaSource* _tmp1_ = NULL;
	GSettingsSchemaSource* _tmp2_ = NULL;
	GSettingsSchemaSource* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	GSettingsSchema* _tmp5_ = NULL;
	GSettingsSchema* _tmp6_ = NULL;
	gboolean _tmp7_ = FALSE;
#line 106 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 106 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_return_val_if_fail (schema_id != NULL, NULL);
#line 108 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp0_ = g_settings_schema_source_get_default ();
#line 108 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp1_ = _g_settings_schema_source_ref0 (_tmp0_);
#line 108 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	source = _tmp1_;
#line 110 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp2_ = source;
#line 110 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	if (_tmp2_ == NULL) {
#line 112 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		result = NULL;
#line 112 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_settings_schema_source_unref0 (source);
#line 112 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		return result;
#line 442 "gitg-files.c"
	}
#line 115 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp3_ = source;
#line 115 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp4_ = schema_id;
#line 115 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp5_ = g_settings_schema_source_lookup (_tmp3_, _tmp4_, TRUE);
#line 115 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp6_ = _tmp5_;
#line 115 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp7_ = _tmp6_ != NULL;
#line 115 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_settings_schema_unref0 (_tmp6_);
#line 115 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	if (_tmp7_) {
#line 458 "gitg-files.c"
		const gchar* _tmp8_ = NULL;
		GSettings* _tmp9_ = NULL;
#line 117 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp8_ = schema_id;
#line 117 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp9_ = g_settings_new (_tmp8_);
#line 117 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		result = _tmp9_;
#line 117 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_settings_schema_source_unref0 (source);
#line 117 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		return result;
#line 471 "gitg-files.c"
	}
#line 120 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	result = NULL;
#line 120 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_settings_schema_source_unref0 (source);
#line 120 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	return result;
#line 479 "gitg-files.c"
}


static void _gitg_files_panel_selection_changed_gtk_tree_selection_changed (GtkTreeSelection* _sender, gpointer self) {
#line 135 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	gitg_files_panel_selection_changed ((GitgFilesPanel*) self, _sender);
#line 486 "gitg-files.c"
}


static void ___lambda9_ (GitgFilesPanel* self, GSettings* s, const gchar* k) {
#line 151 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_return_if_fail (s != NULL);
#line 151 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_return_if_fail (k != NULL);
#line 152 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	gitg_files_panel_update_font (self);
#line 497 "gitg-files.c"
}


static void ____lambda9__g_settings_changed (GSettings* _sender, const gchar* key, gpointer self) {
#line 151 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	___lambda9_ ((GitgFilesPanel*) self, _sender, key);
#line 504 "gitg-files.c"
}


static void ___lambda10_ (GitgFilesPanel* self, GSettings* s, const gchar* k) {
#line 162 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_return_if_fail (s != NULL);
#line 162 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_return_if_fail (k != NULL);
#line 163 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	gitg_files_panel_update_style (self);
#line 515 "gitg-files.c"
}


static void ____lambda10__g_settings_changed (GSettings* _sender, const gchar* key, gpointer self) {
#line 162 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	___lambda10_ ((GitgFilesPanel*) self, _sender, key);
#line 522 "gitg-files.c"
}


static void gitg_files_panel_build_ui (GitgFilesPanel* self) {
	GeeHashMap* ret = NULL;
	GeeHashMap* _tmp0_ = NULL;
	GtkTreeView* tv = NULL;
	GeeHashMap* _tmp1_ = NULL;
	gpointer _tmp2_ = NULL;
	GObject* _tmp3_ = NULL;
	GtkTreeView* _tmp4_ = NULL;
	GtkTreeView* _tmp5_ = NULL;
	GitgFilesTreeStore* _tmp6_ = NULL;
	GtkTreeView* _tmp7_ = NULL;
	GtkTreeSelection* _tmp8_ = NULL;
	GeeHashMap* _tmp9_ = NULL;
	gpointer _tmp10_ = NULL;
	GObject* _tmp11_ = NULL;
	GtkScrolledWindow* _tmp12_ = NULL;
	GeeHashMap* _tmp13_ = NULL;
	gpointer _tmp14_ = NULL;
	GObject* _tmp15_ = NULL;
	GtkSourceView* _tmp16_ = NULL;
	GeeHashMap* _tmp17_ = NULL;
	gpointer _tmp18_ = NULL;
	GObject* _tmp19_ = NULL;
	GtkPaned* _tmp20_ = NULL;
	GeeHashMap* _tmp21_ = NULL;
	gpointer _tmp22_ = NULL;
	GObject* _tmp23_ = NULL;
	GtkScrolledWindow* _tmp24_ = NULL;
	GtkViewport* _tmp25_ = NULL;
	GtkImage* _tmp26_ = NULL;
	GtkViewport* _tmp27_ = NULL;
	GtkImage* _tmp28_ = NULL;
	GtkViewport* _tmp29_ = NULL;
	GSettings* _tmp30_ = NULL;
	GSettings* _tmp31_ = NULL;
	GSettings* _tmp33_ = NULL;
	GSettings* _tmp34_ = NULL;
	GtkPaned* _tmp36_ = NULL;
	GitgWhenMapped* _tmp37_ = NULL;
	GitgExtHistory* _tmp38_ = NULL;
	GitgExtHistory* _tmp39_ = NULL;
	GitgExtHistory* _tmp40_ = NULL;
#line 123 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_return_if_fail (self != NULL);
#line 125 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp0_ = gitg_ext_ui_from_builder ("files/view-files.ui", "paned_files", "scrolled_window_files", "tree_view_files", "source_view_file", "scrolled_window_file", NULL);
#line 125 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	ret = _tmp0_;
#line 132 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp1_ = ret;
#line 132 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp2_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp1_, "tree_view_files");
#line 132 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp3_ = (GObject*) _tmp2_;
#line 132 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, gtk_tree_view_get_type ()) ? ((GtkTreeView*) _tmp3_) : NULL;
#line 132 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	if (_tmp4_ == NULL) {
#line 132 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_object_unref0 (_tmp3_);
#line 586 "gitg-files.c"
	}
#line 132 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	tv = _tmp4_;
#line 133 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp5_ = tv;
#line 133 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp6_ = self->priv->d_model;
#line 133 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	gtk_tree_view_set_model (_tmp5_, (GtkTreeModel*) _tmp6_);
#line 135 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp7_ = tv;
#line 135 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp8_ = gtk_tree_view_get_selection (_tmp7_);
#line 135 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_signal_connect_object (_tmp8_, "changed", (GCallback) _gitg_files_panel_selection_changed_gtk_tree_selection_changed, self, 0);
#line 137 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp9_ = ret;
#line 137 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp10_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp9_, "scrolled_window_files");
#line 137 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp11_ = (GObject*) _tmp10_;
#line 137 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp12_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, gtk_scrolled_window_get_type ()) ? ((GtkScrolledWindow*) _tmp11_) : NULL;
#line 137 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	if (_tmp12_ == NULL) {
#line 137 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_object_unref0 (_tmp11_);
#line 614 "gitg-files.c"
	}
#line 137 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->d_scrolled_files);
#line 137 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self->priv->d_scrolled_files = _tmp12_;
#line 138 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp13_ = ret;
#line 138 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp14_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp13_, "source_view_file");
#line 138 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp15_ = (GObject*) _tmp14_;
#line 138 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp16_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, gtk_source_view_get_type ()) ? ((GtkSourceView*) _tmp15_) : NULL;
#line 138 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	if (_tmp16_ == NULL) {
#line 138 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_object_unref0 (_tmp15_);
#line 632 "gitg-files.c"
	}
#line 138 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->d_source);
#line 138 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self->priv->d_source = _tmp16_;
#line 139 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp17_ = ret;
#line 139 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp18_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp17_, "paned_files");
#line 139 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp19_ = (GObject*) _tmp18_;
#line 139 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp20_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, gtk_paned_get_type ()) ? ((GtkPaned*) _tmp19_) : NULL;
#line 139 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	if (_tmp20_ == NULL) {
#line 139 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_object_unref0 (_tmp19_);
#line 650 "gitg-files.c"
	}
#line 139 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->d_paned);
#line 139 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self->priv->d_paned = _tmp20_;
#line 140 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp21_ = ret;
#line 140 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp22_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp21_, "scrolled_window_file");
#line 140 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp23_ = (GObject*) _tmp22_;
#line 140 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp24_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp23_, gtk_scrolled_window_get_type ()) ? ((GtkScrolledWindow*) _tmp23_) : NULL;
#line 140 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	if (_tmp24_ == NULL) {
#line 140 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_object_unref0 (_tmp23_);
#line 668 "gitg-files.c"
	}
#line 140 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->d_scrolled);
#line 140 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self->priv->d_scrolled = _tmp24_;
#line 142 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp25_ = (GtkViewport*) gtk_viewport_new (NULL, NULL);
#line 142 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_object_ref_sink (_tmp25_);
#line 142 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->d_imagevp);
#line 142 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self->priv->d_imagevp = _tmp25_;
#line 143 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp26_ = (GtkImage*) gtk_image_new ();
#line 143 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_object_ref_sink (_tmp26_);
#line 143 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->d_image);
#line 143 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self->priv->d_image = _tmp26_;
#line 144 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp27_ = self->priv->d_imagevp;
#line 144 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp28_ = self->priv->d_image;
#line 144 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	gtk_container_add ((GtkContainer*) _tmp27_, (GtkWidget*) _tmp28_);
#line 145 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp29_ = self->priv->d_imagevp;
#line 145 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	gtk_widget_show_all ((GtkWidget*) _tmp29_);
#line 147 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp30_ = gitg_files_panel_try_settings (self, "org.gnome.desktop.interface");
#line 147 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->d_fontsettings);
#line 147 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self->priv->d_fontsettings = _tmp30_;
#line 149 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp31_ = self->priv->d_fontsettings;
#line 149 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	if (_tmp31_ != NULL) {
#line 710 "gitg-files.c"
		GSettings* _tmp32_ = NULL;
#line 151 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp32_ = self->priv->d_fontsettings;
#line 151 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		g_signal_connect_object (_tmp32_, "changed::monospace-font-name", (GCallback) ____lambda9__g_settings_changed, self, 0);
#line 155 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		gitg_files_panel_update_font (self);
#line 718 "gitg-files.c"
	}
#line 158 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp33_ = gitg_files_panel_try_settings (self, "org.gnome.gedit.preferences.editor");
#line 158 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->d_stylesettings);
#line 158 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self->priv->d_stylesettings = _tmp33_;
#line 160 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp34_ = self->priv->d_stylesettings;
#line 160 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	if (_tmp34_ != NULL) {
#line 730 "gitg-files.c"
		GSettings* _tmp35_ = NULL;
#line 162 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp35_ = self->priv->d_stylesettings;
#line 162 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		g_signal_connect_object (_tmp35_, "changed::scheme", (GCallback) ____lambda10__g_settings_changed, self, 0);
#line 166 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		gitg_files_panel_update_style (self);
#line 738 "gitg-files.c"
	}
#line 169 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp36_ = self->priv->d_paned;
#line 169 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp37_ = gitg_when_mapped_new ((GtkWidget*) _tmp36_);
#line 169 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_gitg_when_mapped_unref0 (self->priv->d_whenMapped);
#line 169 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self->priv->d_whenMapped = _tmp37_;
#line 170 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp38_ = gitg_ext_history_panel_get_history ((GitgExtHistoryPanel*) self);
#line 170 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp39_ = _tmp38_;
#line 170 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp40_ = _tmp39_;
#line 170 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	gitg_files_panel_on_selection_changed (self, _tmp40_);
#line 170 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (_tmp40_);
#line 123 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (tv);
#line 123 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (ret);
#line 762 "gitg-files.c"
}


static void gitg_files_panel_set_viewer (GitgFilesPanel* self, GtkWidget* wid) {
	GtkWidget* child = NULL;
	GtkScrolledWindow* _tmp0_ = NULL;
	GtkWidget* _tmp1_ = NULL;
	GtkWidget* _tmp2_ = NULL;
	GtkWidget* _tmp3_ = NULL;
	GtkWidget* _tmp4_ = NULL;
#line 186 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_return_if_fail (self != NULL);
#line 188 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp0_ = self->priv->d_scrolled;
#line 188 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp1_ = gtk_bin_get_child ((GtkBin*) _tmp0_);
#line 188 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 188 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	child = _tmp2_;
#line 190 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp3_ = child;
#line 190 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp4_ = wid;
#line 190 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	if (_tmp3_ != _tmp4_) {
#line 789 "gitg-files.c"
		GtkWidget* _tmp5_ = NULL;
		GtkWidget* _tmp9_ = NULL;
#line 192 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp5_ = child;
#line 192 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		if (_tmp5_ != NULL) {
#line 796 "gitg-files.c"
			GtkScrolledWindow* _tmp6_ = NULL;
			GtkScrolledWindow* _tmp7_ = NULL;
			GtkWidget* _tmp8_ = NULL;
#line 194 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp6_ = self->priv->d_scrolled;
#line 194 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp7_ = self->priv->d_scrolled;
#line 194 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp8_ = gtk_bin_get_child ((GtkBin*) _tmp7_);
#line 194 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			gtk_container_remove ((GtkContainer*) _tmp6_, _tmp8_);
#line 808 "gitg-files.c"
		}
#line 197 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp9_ = wid;
#line 197 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		if (_tmp9_ != NULL) {
#line 814 "gitg-files.c"
			GtkScrolledWindow* _tmp10_ = NULL;
			GtkWidget* _tmp11_ = NULL;
#line 199 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp10_ = self->priv->d_scrolled;
#line 199 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp11_ = wid;
#line 199 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			gtk_container_add ((GtkContainer*) _tmp10_, _tmp11_);
#line 823 "gitg-files.c"
		}
	}
#line 186 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (child);
#line 828 "gitg-files.c"
}


static void _vala_GgitOId_free (GgitOId* self) {
#line 228 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_boxed_free (ggit_oid_get_type (), self);
#line 835 "gitg-files.c"
}


static void gitg_files_panel_selection_changed (GitgFilesPanel* self, GtkTreeSelection* selection) {
	GtkTreeModel* mod = NULL;
	GtkTreeIter iter = {0};
	GtkSourceBuffer* buf = NULL;
	GtkSourceView* _tmp0_ = NULL;
	GtkTextBuffer* _tmp1_ = NULL;
	GtkSourceBuffer* _tmp2_ = NULL;
	GtkSourceBuffer* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	GtkTreeSelection* _tmp5_ = NULL;
	GtkTreeModel* _tmp6_ = NULL;
	GtkTreeIter _tmp7_ = {0};
	gboolean _tmp8_ = FALSE;
	GtkTreeModel* _tmp9_ = NULL;
	GgitOId* id = NULL;
	GitgFilesTreeStore* _tmp14_ = NULL;
	GtkTreeIter _tmp15_ = {0};
	GgitOId* _tmp16_ = NULL;
	GgitBlob* blob = NULL;
	gchar* fname = NULL;
	GitgFilesTreeStore* _tmp29_ = NULL;
	GtkTreeIter _tmp30_ = {0};
	gchar* _tmp31_ = NULL;
	guint8* content = NULL;
	GgitBlob* _tmp32_ = NULL;
	gsize _tmp33_;
	guint8* _tmp34_ = NULL;
	gint content_length1 = 0;
	gint _content_size_ = 0;
	gchar* ct = NULL;
	const gchar* _tmp35_ = NULL;
	guint8* _tmp36_ = NULL;
	gint _tmp36__length1 = 0;
	gchar* _tmp37_ = NULL;
	GtkWidget* wid = NULL;
	const gchar* _tmp38_ = NULL;
	gboolean _tmp39_ = FALSE;
	GtkWidget* _tmp71_ = NULL;
	GError * _inner_error_ = NULL;
#line 204 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_return_if_fail (self != NULL);
#line 204 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_return_if_fail (selection != NULL);
#line 209 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp0_ = self->priv->d_source;
#line 209 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp1_ = gtk_text_view_get_buffer ((GtkTextView*) _tmp0_);
#line 209 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_source_buffer_get_type ()) ? ((GtkSourceBuffer*) _tmp1_) : NULL);
#line 209 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	buf = _tmp2_;
#line 210 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp3_ = buf;
#line 210 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	gtk_text_buffer_set_text ((GtkTextBuffer*) _tmp3_, "", -1);
#line 212 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp5_ = selection;
#line 212 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp8_ = gtk_tree_selection_get_selected (_tmp5_, &_tmp6_, &_tmp7_);
#line 212 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (mod);
#line 212 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp9_ = _g_object_ref0 (_tmp6_);
#line 212 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	mod = _tmp9_;
#line 212 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	iter = _tmp7_;
#line 212 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	if (!_tmp8_) {
#line 212 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp4_ = TRUE;
#line 910 "gitg-files.c"
	} else {
		GitgFilesTreeStore* _tmp10_ = NULL;
		GtkTreeIter _tmp11_ = {0};
		gboolean _tmp12_ = FALSE;
#line 212 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp10_ = self->priv->d_model;
#line 212 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp11_ = iter;
#line 212 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp12_ = gitg_files_tree_store_get_isdir (_tmp10_, &_tmp11_);
#line 212 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp4_ = _tmp12_;
#line 923 "gitg-files.c"
	}
#line 212 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	if (_tmp4_) {
#line 927 "gitg-files.c"
		GtkSourceView* _tmp13_ = NULL;
#line 214 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp13_ = self->priv->d_source;
#line 214 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		gitg_files_panel_set_viewer (self, (GtkWidget*) _tmp13_);
#line 215 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_object_unref0 (buf);
#line 215 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_object_unref0 (mod);
#line 215 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		return;
#line 939 "gitg-files.c"
	}
#line 218 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp14_ = self->priv->d_model;
#line 218 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp15_ = iter;
#line 218 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp16_ = gitg_files_tree_store_get_id (_tmp14_, &_tmp15_);
#line 218 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	id = _tmp16_;
#line 949 "gitg-files.c"
	{
		GgitBlob* _tmp17_ = NULL;
		GitgExtApplication* _tmp18_ = NULL;
		GitgExtApplication* _tmp19_ = NULL;
		GitgExtApplication* _tmp20_ = NULL;
		GitgRepository* _tmp21_ = NULL;
		GitgRepository* _tmp22_ = NULL;
		GitgRepository* _tmp23_ = NULL;
		GgitOId* _tmp24_ = NULL;
		gpointer _tmp25_ = NULL;
		GgitBlob* _tmp26_ = NULL;
		GgitBlob* _tmp27_ = NULL;
#line 223 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp18_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 223 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp19_ = _tmp18_;
#line 223 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp20_ = _tmp19_;
#line 223 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp21_ = gitg_ext_application_get_repository (_tmp20_);
#line 223 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp22_ = _tmp21_;
#line 223 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp23_ = _tmp22_;
#line 223 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp24_ = id;
#line 223 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp25_ = gitg_repository_lookup (_tmp23_, ggit_blob_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _tmp24_, &_inner_error_);
#line 223 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp26_ = (GgitBlob*) _tmp25_;
#line 223 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_object_unref0 (_tmp23_);
#line 223 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_object_unref0 (_tmp20_);
#line 223 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp17_ = _tmp26_;
#line 223 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 988 "gitg-files.c"
			goto __catch0_g_error;
		}
#line 223 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp27_ = _tmp17_;
#line 223 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp17_ = NULL;
#line 223 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_object_unref0 (blob);
#line 223 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		blob = _tmp27_;
#line 221 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_object_unref0 (_tmp17_);
#line 1001 "gitg-files.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
		GtkSourceView* _tmp28_ = NULL;
#line 221 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		g_clear_error (&_inner_error_);
#line 221 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_inner_error_ = NULL;
#line 227 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp28_ = self->priv->d_source;
#line 227 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		gitg_files_panel_set_viewer (self, (GtkWidget*) _tmp28_);
#line 228 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_object_unref0 (blob);
#line 228 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		__vala_GgitOId_free0 (id);
#line 228 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_object_unref0 (buf);
#line 228 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_object_unref0 (mod);
#line 228 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		return;
#line 1025 "gitg-files.c"
	}
	__finally0:
#line 221 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 221 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_object_unref0 (blob);
#line 221 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		__vala_GgitOId_free0 (id);
#line 221 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_object_unref0 (buf);
#line 221 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_object_unref0 (mod);
#line 221 "/home/jesse/dev/gitg/plugins/files/gitg-files.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 221 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		g_clear_error (&_inner_error_);
#line 221 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		return;
#line 1044 "gitg-files.c"
	}
#line 231 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp29_ = self->priv->d_model;
#line 231 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp30_ = iter;
#line 231 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp31_ = gitg_files_tree_store_get_full_path (_tmp29_, &_tmp30_);
#line 231 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	fname = _tmp31_;
#line 232 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp32_ = blob;
#line 232 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp34_ = ggit_blob_get_raw_content (_tmp32_, &_tmp33_);
#line 232 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	content = _tmp34_;
#line 232 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	content_length1 = _tmp33_;
#line 232 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_content_size_ = content_length1;
#line 234 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp35_ = fname;
#line 234 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp36_ = content;
#line 234 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp36__length1 = content_length1;
#line 234 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp37_ = g_content_type_guess (_tmp35_, _tmp36_, (gsize) _tmp36__length1, NULL);
#line 234 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	ct = _tmp37_;
#line 235 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	wid = NULL;
#line 237 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp38_ = ct;
#line 237 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp39_ = g_content_type_is_a (_tmp38_, "image/*");
#line 237 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	if (_tmp39_) {
#line 1082 "gitg-files.c"
		GtkViewport* _tmp40_ = NULL;
		GtkWidget* _tmp41_ = NULL;
		gchar* mtype = NULL;
		const gchar* _tmp42_ = NULL;
		gchar* _tmp43_ = NULL;
		GtkImage* _tmp44_ = NULL;
#line 239 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp40_ = self->priv->d_imagevp;
#line 239 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp41_ = _g_object_ref0 ((GtkWidget*) _tmp40_);
#line 239 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_object_unref0 (wid);
#line 239 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		wid = _tmp41_;
#line 240 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp42_ = ct;
#line 240 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp43_ = g_content_type_get_mime_type (_tmp42_);
#line 240 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		mtype = _tmp43_;
#line 242 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp44_ = self->priv->d_image;
#line 242 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		g_object_set (_tmp44_, "pixbuf", NULL, NULL);
#line 1107 "gitg-files.c"
		{
			GdkPixbufLoader* loader = NULL;
			const gchar* _tmp45_ = NULL;
			GdkPixbufLoader* _tmp46_ = NULL;
			gboolean _tmp47_ = FALSE;
			gboolean _tmp48_ = FALSE;
			GdkPixbufLoader* _tmp49_ = NULL;
			guint8* _tmp50_ = NULL;
			gint _tmp50__length1 = 0;
			gboolean _tmp51_ = FALSE;
#line 246 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp45_ = mtype;
#line 246 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp46_ = gdk_pixbuf_loader_new_with_mime_type (_tmp45_, &_inner_error_);
#line 246 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			loader = _tmp46_;
#line 246 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1126 "gitg-files.c"
				goto __catch1_g_error;
			}
#line 248 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp49_ = loader;
#line 248 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp50_ = content;
#line 248 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp50__length1 = content_length1;
#line 248 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp51_ = gdk_pixbuf_loader_write (_tmp49_, _tmp50_, (gsize) _tmp50__length1, &_inner_error_);
#line 248 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp48_ = _tmp51_;
#line 248 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 248 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
				_g_object_unref0 (loader);
#line 1143 "gitg-files.c"
				goto __catch1_g_error;
			}
#line 248 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			if (_tmp48_) {
#line 1148 "gitg-files.c"
				gboolean _tmp52_ = FALSE;
				GdkPixbufLoader* _tmp53_ = NULL;
				gboolean _tmp54_ = FALSE;
#line 248 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
				_tmp53_ = loader;
#line 248 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
				_tmp54_ = gdk_pixbuf_loader_close (_tmp53_, &_inner_error_);
#line 248 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
				_tmp52_ = _tmp54_;
#line 248 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 248 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
					_g_object_unref0 (loader);
#line 1162 "gitg-files.c"
					goto __catch1_g_error;
				}
#line 248 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
				_tmp47_ = _tmp52_;
#line 1167 "gitg-files.c"
			} else {
#line 248 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
				_tmp47_ = FALSE;
#line 1171 "gitg-files.c"
			}
#line 248 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			if (_tmp47_) {
#line 1175 "gitg-files.c"
				GtkImage* _tmp55_ = NULL;
				GdkPixbufLoader* _tmp56_ = NULL;
				GdkPixbuf* _tmp57_ = NULL;
#line 250 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
				_tmp55_ = self->priv->d_image;
#line 250 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
				_tmp56_ = loader;
#line 250 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
				_tmp57_ = gdk_pixbuf_loader_get_pixbuf (_tmp56_);
#line 250 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
				g_object_set (_tmp55_, "pixbuf", _tmp57_, NULL);
#line 1187 "gitg-files.c"
			}
#line 244 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_g_object_unref0 (loader);
#line 1191 "gitg-files.c"
		}
		goto __finally1;
		__catch1_g_error:
		{
#line 244 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			g_clear_error (&_inner_error_);
#line 244 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_inner_error_ = NULL;
#line 1200 "gitg-files.c"
		}
		__finally1:
#line 244 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 244 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_g_free0 (mtype);
#line 244 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_g_object_unref0 (wid);
#line 244 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_g_free0 (ct);
#line 244 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_g_free0 (fname);
#line 244 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_g_object_unref0 (blob);
#line 244 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			__vala_GgitOId_free0 (id);
#line 244 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_g_object_unref0 (buf);
#line 244 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_g_object_unref0 (mod);
#line 244 "/home/jesse/dev/gitg/plugins/files/gitg-files.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 244 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			g_clear_error (&_inner_error_);
#line 244 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			return;
#line 1227 "gitg-files.c"
		}
#line 237 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_g_free0 (mtype);
#line 1231 "gitg-files.c"
	} else {
		const gchar* _tmp58_ = NULL;
		gboolean _tmp59_ = FALSE;
#line 254 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp58_ = ct;
#line 254 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		_tmp59_ = g_content_type_is_a (_tmp58_, "text/plain");
#line 254 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		if (_tmp59_) {
#line 1241 "gitg-files.c"
			GtkSourceLanguageManager* manager = NULL;
			GtkSourceLanguageManager* _tmp60_ = NULL;
			GtkSourceLanguageManager* _tmp61_ = NULL;
			GtkSourceBuffer* _tmp62_ = NULL;
			guint8* _tmp63_ = NULL;
			gint _tmp63__length1 = 0;
			GtkSourceBuffer* _tmp64_ = NULL;
			GtkSourceLanguageManager* _tmp65_ = NULL;
			const gchar* _tmp66_ = NULL;
			const gchar* _tmp67_ = NULL;
			GtkSourceLanguage* _tmp68_ = NULL;
			GtkSourceView* _tmp69_ = NULL;
			GtkWidget* _tmp70_ = NULL;
#line 256 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp60_ = gtk_source_language_manager_get_default ();
#line 256 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp61_ = _g_object_ref0 (_tmp60_);
#line 256 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			manager = _tmp61_;
#line 258 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp62_ = buf;
#line 258 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp63_ = content;
#line 258 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp63__length1 = content_length1;
#line 258 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			gtk_text_buffer_set_text ((GtkTextBuffer*) _tmp62_, (const gchar*) _tmp63_, -1);
#line 259 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp64_ = buf;
#line 259 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp65_ = manager;
#line 259 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp66_ = fname;
#line 259 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp67_ = ct;
#line 259 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp68_ = gtk_source_language_manager_guess_language (_tmp65_, _tmp66_, _tmp67_);
#line 259 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			gtk_source_buffer_set_language (_tmp64_, _tmp68_);
#line 261 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp69_ = self->priv->d_source;
#line 261 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_tmp70_ = _g_object_ref0 ((GtkWidget*) _tmp69_);
#line 261 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_g_object_unref0 (wid);
#line 261 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			wid = _tmp70_;
#line 254 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
			_g_object_unref0 (manager);
#line 1291 "gitg-files.c"
		}
	}
#line 264 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp71_ = wid;
#line 264 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	gitg_files_panel_set_viewer (self, _tmp71_);
#line 204 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (wid);
#line 204 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_free0 (ct);
#line 204 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_free0 (fname);
#line 204 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (blob);
#line 204 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	__vala_GgitOId_free0 (id);
#line 204 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (buf);
#line 204 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (mod);
#line 1312 "gitg-files.c"
}


static gint gitg_files_panel_real_negotiate_order (GitgExtUIElement* base, GitgExtUIElement* other) {
	GitgFilesPanel * self;
	gint result = 0;
	GitgExtUIElement* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
#line 276 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self = (GitgFilesPanel*) base;
#line 276 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_return_val_if_fail (other != NULL, 0);
#line 279 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp0_ = other;
#line 279 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp1_ = gitg_ext_ui_element_get_id (_tmp0_);
#line 279 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp2_ = _tmp1_;
#line 279 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp3_ = _tmp2_;
#line 279 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp4_ = g_strcmp0 (_tmp3_, "/org/gnome/gitg/Panels/Diff") == 0;
#line 279 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_free0 (_tmp3_);
#line 279 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	if (_tmp4_) {
#line 281 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		result = 1;
#line 281 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		return result;
#line 1346 "gitg-files.c"
	} else {
#line 285 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		result = 0;
#line 285 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		return result;
#line 1352 "gitg-files.c"
	}
}


GitgFilesPanel* gitg_files_panel_construct (GType object_type) {
	GitgFilesPanel * self = NULL;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self = (GitgFilesPanel*) g_object_new (object_type, NULL);
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	return self;
#line 1363 "gitg-files.c"
}


GitgFilesPanel* gitg_files_panel_new (void) {
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	return gitg_files_panel_construct (GITG_FILES_TYPE_PANEL);
#line 1370 "gitg-files.c"
}


static GitgExtApplication* gitg_files_panel_real_get_application (GitgExtUIElement* base) {
	GitgExtApplication* result;
	GitgFilesPanel* self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
#line 27 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self = (GitgFilesPanel*) base;
#line 27 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp0_ = self->priv->_application;
#line 27 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 27 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	result = _tmp1_;
#line 27 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	return result;
#line 1389 "gitg-files.c"
}


static void gitg_files_panel_real_set_application (GitgExtUIElement* base, GitgExtApplication* value) {
	GitgFilesPanel* self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
#line 27 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self = (GitgFilesPanel*) base;
#line 27 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp0_ = value;
#line 27 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 27 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->_application);
#line 27 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self->priv->_application = _tmp1_;
#line 27 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_object_notify ((GObject *) self, "application");
#line 1409 "gitg-files.c"
}


static GitgExtHistory* gitg_files_panel_real_get_history (GitgExtHistoryPanel* base) {
	GitgExtHistory* result;
	GitgFilesPanel* self;
	GitgExtHistory* _tmp0_ = NULL;
	GitgExtHistory* _tmp1_ = NULL;
#line 28 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self = (GitgFilesPanel*) base;
#line 28 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp0_ = self->priv->_history;
#line 28 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	result = _tmp1_;
#line 28 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	return result;
#line 1428 "gitg-files.c"
}


static void gitg_files_panel_real_set_history (GitgExtHistoryPanel* base, GitgExtHistory* value) {
	GitgFilesPanel* self;
	GitgExtHistory* _tmp0_ = NULL;
	GitgExtHistory* _tmp1_ = NULL;
#line 28 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self = (GitgFilesPanel*) base;
#line 28 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp0_ = value;
#line 28 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->_history);
#line 28 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self->priv->_history = _tmp1_;
#line 28 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_object_notify ((GObject *) self, "history");
#line 1448 "gitg-files.c"
}


static gchar* gitg_files_panel_real_get_id (GitgExtUIElement* base) {
	gchar* result;
	GitgFilesPanel* self;
	gchar* _tmp0_ = NULL;
#line 53 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self = (GitgFilesPanel*) base;
#line 53 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp0_ = g_strdup ("/org/gnome/gitg/Panels/Files");
#line 53 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	result = _tmp0_;
#line 53 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	return result;
#line 1464 "gitg-files.c"
}


static gboolean gitg_files_panel_real_get_available (GitgExtUIElement* base) {
	gboolean result;
	GitgFilesPanel* self;
#line 58 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self = (GitgFilesPanel*) base;
#line 58 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	result = TRUE;
#line 58 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	return result;
#line 1477 "gitg-files.c"
}


static gchar* gitg_files_panel_real_get_display_name (GitgExtUIElement* base) {
	gchar* result;
	GitgFilesPanel* self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 63 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self = (GitgFilesPanel*) base;
#line 63 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp0_ = _ ("Files");
#line 63 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 63 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	result = _tmp1_;
#line 63 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	return result;
#line 1496 "gitg-files.c"
}


static gchar* gitg_files_panel_real_get_description (GitgExtUIElement* base) {
	gchar* result;
	GitgFilesPanel* self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 68 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self = (GitgFilesPanel*) base;
#line 68 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp0_ = _ ("Show the files in the tree of the selected commit");
#line 68 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 68 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	result = _tmp1_;
#line 68 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	return result;
#line 1515 "gitg-files.c"
}


static gchar* gitg_files_panel_real_get_icon (GitgExtUIElement* base) {
	gchar* result;
	GitgFilesPanel* self;
	gchar* _tmp0_ = NULL;
#line 73 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self = (GitgFilesPanel*) base;
#line 73 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp0_ = g_strdup ("system-file-manager-symbolic");
#line 73 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	result = _tmp0_;
#line 73 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	return result;
#line 1531 "gitg-files.c"
}


static GtkWidget* gitg_files_panel_real_get_widget (GitgExtUIElement* base) {
	GtkWidget* result;
	GitgFilesPanel* self;
	GtkPaned* _tmp0_ = NULL;
	GtkPaned* _tmp1_ = NULL;
	GtkWidget* _tmp2_ = NULL;
#line 175 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self = (GitgFilesPanel*) base;
#line 177 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp0_ = self->priv->d_paned;
#line 177 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	if (_tmp0_ == NULL) {
#line 179 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		gitg_files_panel_build_ui (self);
#line 1549 "gitg-files.c"
	}
#line 182 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp1_ = self->priv->d_paned;
#line 182 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp2_ = _g_object_ref0 ((GtkWidget*) _tmp1_);
#line 182 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	result = _tmp2_;
#line 182 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	return result;
#line 1559 "gitg-files.c"
}


static gboolean gitg_files_panel_real_get_enabled (GitgExtUIElement* base) {
	gboolean result;
	GitgFilesPanel* self;
#line 269 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self = (GitgFilesPanel*) base;
#line 272 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	result = TRUE;
#line 272 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	return result;
#line 1572 "gitg-files.c"
}


static void _gitg_files_panel_on_selection_changed_gitg_ext_history_selection_changed (GitgExtHistory* _sender, gpointer self) {
#line 48 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	gitg_files_panel_on_selection_changed ((GitgFilesPanel*) self, _sender);
#line 1579 "gitg-files.c"
}


static GObject * gitg_files_panel_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GitgFilesPanel * self;
	GitgFilesTreeStore* _tmp0_ = NULL;
	GitgExtHistory* _tmp1_ = NULL;
	GitgExtHistory* _tmp2_ = NULL;
	GitgExtHistory* _tmp3_ = NULL;
#line 44 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	parent_class = G_OBJECT_CLASS (gitg_files_panel_parent_class);
#line 44 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 44 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_FILES_TYPE_PANEL, GitgFilesPanel);
#line 46 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp0_ = gitg_files_tree_store_new ();
#line 46 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->d_model);
#line 46 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self->priv->d_model = _tmp0_;
#line 48 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp1_ = gitg_ext_history_panel_get_history ((GitgExtHistoryPanel*) self);
#line 48 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp2_ = _tmp1_;
#line 48 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp3_ = _tmp2_;
#line 48 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_signal_connect_object (_tmp3_, "selection-changed", (GCallback) _gitg_files_panel_on_selection_changed_gitg_ext_history_selection_changed, self, 0);
#line 48 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (_tmp3_);
#line 44 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	return obj;
#line 1615 "gitg-files.c"
}


static void gitg_files_panel_class_init (GitgFilesPanelClass * klass) {
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	gitg_files_panel_parent_class = g_type_class_peek_parent (klass);
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_type_class_add_private (klass, sizeof (GitgFilesPanelPrivate));
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_files_panel_get_property;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_files_panel_set_property;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_files_panel_constructor;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_files_panel_finalize;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_FILES_PANEL_APPLICATION, g_param_spec_object ("application", "application", "application", GITG_EXT_TYPE_APPLICATION, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_FILES_PANEL_HISTORY, g_param_spec_object ("history", "history", "history", GITG_EXT_TYPE_HISTORY, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_FILES_PANEL_ID, g_param_spec_string ("id", "id", "id", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_FILES_PANEL_AVAILABLE, g_param_spec_boolean ("available", "available", "available", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_FILES_PANEL_DISPLAY_NAME, g_param_spec_string ("display-name", "display-name", "display-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_FILES_PANEL_DESCRIPTION, g_param_spec_string ("description", "description", "description", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_FILES_PANEL_ICON, g_param_spec_string ("icon", "icon", "icon", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_FILES_PANEL_WIDGET, g_param_spec_object ("widget", "widget", "widget", gtk_widget_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_FILES_PANEL_ENABLED, g_param_spec_boolean ("enabled", "enabled", "enabled", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 1650 "gitg-files.c"
}


static void gitg_files_panel_gitg_ext_ui_element_interface_init (GitgExtUIElementIface * iface) {
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	gitg_files_panel_gitg_ext_ui_element_parent_iface = g_type_interface_peek_parent (iface);
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	iface->negotiate_order = (gint (*)(GitgExtUIElement*, GitgExtUIElement*)) gitg_files_panel_real_negotiate_order;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	iface->get_application = gitg_files_panel_real_get_application;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	iface->set_application = gitg_files_panel_real_set_application;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	iface->get_id = gitg_files_panel_real_get_id;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	iface->get_available = gitg_files_panel_real_get_available;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	iface->get_display_name = gitg_files_panel_real_get_display_name;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	iface->get_description = gitg_files_panel_real_get_description;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	iface->get_icon = gitg_files_panel_real_get_icon;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	iface->get_widget = gitg_files_panel_real_get_widget;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	iface->get_enabled = gitg_files_panel_real_get_enabled;
#line 1677 "gitg-files.c"
}


static void gitg_files_panel_gitg_ext_history_panel_interface_init (GitgExtHistoryPanelIface * iface) {
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	gitg_files_panel_gitg_ext_history_panel_parent_iface = g_type_interface_peek_parent (iface);
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	iface->get_history = gitg_files_panel_real_get_history;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	iface->set_history = gitg_files_panel_real_set_history;
#line 1688 "gitg-files.c"
}


static void gitg_files_panel_instance_init (GitgFilesPanel * self) {
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self->priv = GITG_FILES_PANEL_GET_PRIVATE (self);
#line 1695 "gitg-files.c"
}


static void gitg_files_panel_finalize (GObject* obj) {
	GitgFilesPanel * self;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_FILES_TYPE_PANEL, GitgFilesPanel);
#line 27 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->_application);
#line 28 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->_history);
#line 30 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->d_model);
#line 31 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->d_paned);
#line 32 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->d_source);
#line 33 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->d_fontsettings);
#line 34 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->d_stylesettings);
#line 36 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->d_scrolled_files);
#line 37 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->d_scrolled);
#line 39 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->d_imagevp);
#line 40 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (self->priv->d_image);
#line 42 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_gitg_when_mapped_unref0 (self->priv->d_whenMapped);
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	G_OBJECT_CLASS (gitg_files_panel_parent_class)->finalize (obj);
#line 1729 "gitg-files.c"
}


GType gitg_files_panel_get_type (void) {
	return gitg_files_panel_type_id;
}


GType gitg_files_panel_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (GitgFilesPanelClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_files_panel_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgFilesPanel), 0, (GInstanceInitFunc) gitg_files_panel_instance_init, NULL };
	static const GInterfaceInfo gitg_ext_ui_element_info = { (GInterfaceInitFunc) gitg_files_panel_gitg_ext_ui_element_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	static const GInterfaceInfo gitg_ext_history_panel_info = { (GInterfaceInitFunc) gitg_files_panel_gitg_ext_history_panel_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	gitg_files_panel_type_id = g_type_module_register_type (module, G_TYPE_OBJECT, "GitgFilesPanel", &g_define_type_info, 0);
	g_type_module_add_interface (module, gitg_files_panel_type_id, GITG_EXT_TYPE_UI_ELEMENT, &gitg_ext_ui_element_info);
	g_type_module_add_interface (module, gitg_files_panel_type_id, GITG_EXT_TYPE_HISTORY_PANEL, &gitg_ext_history_panel_info);
	return gitg_files_panel_type_id;
}


static void _vala_gitg_files_panel_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgFilesPanel * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_FILES_TYPE_PANEL, GitgFilesPanel);
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	switch (property_id) {
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		case GITG_FILES_PANEL_APPLICATION:
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		g_value_take_object (value, gitg_ext_ui_element_get_application ((GitgExtUIElement*) self));
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		break;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		case GITG_FILES_PANEL_HISTORY:
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		g_value_take_object (value, gitg_ext_history_panel_get_history ((GitgExtHistoryPanel*) self));
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		break;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		case GITG_FILES_PANEL_ID:
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_id ((GitgExtUIElement*) self));
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		break;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		case GITG_FILES_PANEL_AVAILABLE:
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		g_value_set_boolean (value, gitg_ext_ui_element_get_available ((GitgExtUIElement*) self));
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		break;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		case GITG_FILES_PANEL_DISPLAY_NAME:
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_display_name ((GitgExtUIElement*) self));
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		break;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		case GITG_FILES_PANEL_DESCRIPTION:
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_description ((GitgExtUIElement*) self));
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		break;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		case GITG_FILES_PANEL_ICON:
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_icon ((GitgExtUIElement*) self));
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		break;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		case GITG_FILES_PANEL_WIDGET:
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		g_value_take_object (value, gitg_ext_ui_element_get_widget ((GitgExtUIElement*) self));
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		break;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		case GITG_FILES_PANEL_ENABLED:
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		g_value_set_boolean (value, gitg_ext_ui_element_get_enabled ((GitgExtUIElement*) self));
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		break;
#line 1808 "gitg-files.c"
		default:
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		break;
#line 1814 "gitg-files.c"
	}
}


static void _vala_gitg_files_panel_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgFilesPanel * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_FILES_TYPE_PANEL, GitgFilesPanel);
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	switch (property_id) {
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		case GITG_FILES_PANEL_APPLICATION:
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		gitg_ext_ui_element_set_application ((GitgExtUIElement*) self, g_value_get_object (value));
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		break;
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		case GITG_FILES_PANEL_HISTORY:
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		gitg_ext_history_panel_set_history ((GitgExtHistoryPanel*) self, g_value_get_object (value));
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		break;
#line 1836 "gitg-files.c"
		default:
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 22 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
		break;
#line 1842 "gitg-files.c"
	}
}


void peas_register_types (GTypeModule* module) {
	PeasObjectModule* mod = NULL;
	GTypeModule* _tmp0_ = NULL;
	PeasObjectModule* _tmp1_ = NULL;
#line 292 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	g_return_if_fail (module != NULL);
#line 292 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	gitg_files_panel_register_type (module);
#line 292 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	gitg_files_tree_store_register_type (module);
#line 294 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp0_ = module;
#line 294 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, peas_object_module_get_type ()) ? ((PeasObjectModule*) _tmp0_) : NULL);
#line 294 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	mod = _tmp1_;
#line 296 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	peas_object_module_register_extension_type (mod, GITG_EXT_TYPE_HISTORY_PANEL, GITG_FILES_TYPE_PANEL);
#line 292 "/home/jesse/dev/gitg/plugins/files/gitg-files.vala"
	_g_object_unref0 (mod);
#line 1867 "gitg-files.c"
}



