/* gitg-diff-view-options.c generated by valac 0.27.1.26-9b1a5-dirty, the Vala compiler
 * generated from gitg-diff-view-options.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 <gtk/gtk.h>
#include <webkit2/webkit2.h>
#include <float.h>
#include <math.h>
#include <libgit2-glib/ggit.h>


#define GITG_TYPE_DIFF_VIEW_OPTIONS (gitg_diff_view_options_get_type ())
#define GITG_DIFF_VIEW_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_VIEW_OPTIONS, GitgDiffViewOptions))
#define GITG_DIFF_VIEW_OPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_VIEW_OPTIONS, GitgDiffViewOptionsClass))
#define GITG_IS_DIFF_VIEW_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_VIEW_OPTIONS))
#define GITG_IS_DIFF_VIEW_OPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_VIEW_OPTIONS))
#define GITG_DIFF_VIEW_OPTIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_VIEW_OPTIONS, GitgDiffViewOptionsClass))

typedef struct _GitgDiffViewOptions GitgDiffViewOptions;
typedef struct _GitgDiffViewOptionsClass GitgDiffViewOptionsClass;
typedef struct _GitgDiffViewOptionsPrivate GitgDiffViewOptionsPrivate;

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

#define GITG_TYPE_COMMIT (gitg_commit_get_type ())
#define GITG_COMMIT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_COMMIT, GitgCommit))
#define GITG_COMMIT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_COMMIT, GitgCommitClass))
#define GITG_IS_COMMIT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_COMMIT))
#define GITG_IS_COMMIT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_COMMIT))
#define GITG_COMMIT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_COMMIT, GitgCommitClass))

typedef struct _GitgCommit GitgCommit;
typedef struct _GitgCommitClass GitgCommitClass;

struct _GitgDiffViewOptions {
	GtkGrid parent_instance;
	GitgDiffViewOptionsPrivate * priv;
};

struct _GitgDiffViewOptionsClass {
	GtkGridClass parent_class;
};

struct _GitgDiffViewOptionsPrivate {
	GtkSwitch* d_switch_changes_inline;
	GtkLabel* d_label_changes_inline;
	GtkSwitch* d_switch_ignore_whitespace;
	GtkLabel* d_label_ignore_whitespace;
	GtkAdjustment* d_adjustment_context;
	GtkAdjustment* d_adjustment_tab_width;
	GtkButton* d_button_developer_tools;
	GtkSeparator* d_separator_developer_tools;
	GtkSeparator* d_separator_first_options;
	gboolean _changes_inline;
	gboolean _ignore_whitespace;
	gint _context_lines;
	gint _tab_width;
	GitgDiffView* _view;
};


static gpointer gitg_diff_view_options_parent_class = NULL;

GType gitg_diff_view_options_get_type (void) G_GNUC_CONST;
GType gitg_diff_view_get_type (void) G_GNUC_CONST;
#define GITG_DIFF_VIEW_OPTIONS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_DIFF_VIEW_OPTIONS, GitgDiffViewOptionsPrivate))
enum  {
	GITG_DIFF_VIEW_OPTIONS_DUMMY_PROPERTY,
	GITG_DIFF_VIEW_OPTIONS_CHANGES_INLINE,
	GITG_DIFF_VIEW_OPTIONS_IGNORE_WHITESPACE,
	GITG_DIFF_VIEW_OPTIONS_CONTEXT_LINES,
	GITG_DIFF_VIEW_OPTIONS_TAB_WIDTH,
	GITG_DIFF_VIEW_OPTIONS_VIEW
};
GitgDiffViewOptions* gitg_diff_view_options_new (GitgDiffView* view);
GitgDiffViewOptions* gitg_diff_view_options_construct (GType object_type, GitgDiffView* view);
static gboolean gitg_diff_view_options_transform_double_to_int (GitgDiffViewOptions* self, GBinding* binding, GValue* source_value, GValue* target_value);
static gboolean gitg_diff_view_options_transform_int_to_double (GitgDiffViewOptions* self, GBinding* binding, GValue* source_value, GValue* target_value);
static void gitg_diff_view_options_real_constructed (GObject* base);
GitgDiffView* gitg_diff_view_options_get_view (GitgDiffViewOptions* self);
static gboolean _gitg_diff_view_options_transform_int_to_double_gbinding_transform_func (GBinding* binding, GValue* source_value, GValue* target_value, gpointer self);
static gboolean _gitg_diff_view_options_transform_double_to_int_gbinding_transform_func (GBinding* binding, GValue* source_value, GValue* target_value, gpointer self);
GType gitg_commit_get_type (void) G_GNUC_CONST;
GitgCommit* gitg_diff_view_get_commit (GitgDiffView* self);
static void gitg_diff_view_options_on_button_developer_tools_clicked (GitgDiffViewOptions* self);
static void _gitg_diff_view_options_on_button_developer_tools_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
gboolean gitg_diff_view_options_get_changes_inline (GitgDiffViewOptions* self);
void gitg_diff_view_options_set_changes_inline (GitgDiffViewOptions* self, gboolean value);
gboolean gitg_diff_view_options_get_ignore_whitespace (GitgDiffViewOptions* self);
void gitg_diff_view_options_set_ignore_whitespace (GitgDiffViewOptions* self, gboolean value);
gint gitg_diff_view_options_get_context_lines (GitgDiffViewOptions* self);
void gitg_diff_view_options_set_context_lines (GitgDiffViewOptions* self, gint value);
gint gitg_diff_view_options_get_tab_width (GitgDiffViewOptions* self);
void gitg_diff_view_options_set_tab_width (GitgDiffViewOptions* self, gint value);
void gitg_diff_view_options_set_view (GitgDiffViewOptions* self, GitgDiffView* value);
static void gitg_diff_view_options_finalize (GObject* obj);
static void _vala_gitg_diff_view_options_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_diff_view_options_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


GitgDiffViewOptions* gitg_diff_view_options_construct (GType object_type, GitgDiffView* view) {
	GitgDiffViewOptions * self = NULL;
	GitgDiffView* _tmp0_ = NULL;
#line 60 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_return_val_if_fail (view != NULL, NULL);
#line 62 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp0_ = view;
#line 62 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	self = (GitgDiffViewOptions*) g_object_new (object_type, "view", _tmp0_, NULL);
#line 60 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	return self;
#line 142 "gitg-diff-view-options.c"
}


GitgDiffViewOptions* gitg_diff_view_options_new (GitgDiffView* view) {
#line 60 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	return gitg_diff_view_options_construct (GITG_TYPE_DIFF_VIEW_OPTIONS, view);
#line 149 "gitg-diff-view-options.c"
}


static gboolean gitg_diff_view_options_transform_double_to_int (GitgDiffViewOptions* self, GBinding* binding, GValue* source_value, GValue* target_value) {
	gboolean result = FALSE;
	gdouble _tmp0_ = 0.0;
#line 65 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 65 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_return_val_if_fail (binding != NULL, FALSE);
#line 65 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_return_val_if_fail (source_value != NULL, FALSE);
#line 65 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_return_val_if_fail (target_value != NULL, FALSE);
#line 69 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp0_ = g_value_get_double (source_value);
#line 69 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_value_set_int (target_value, (gint) _tmp0_);
#line 70 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	result = TRUE;
#line 70 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	return result;
#line 172 "gitg-diff-view-options.c"
}


static gboolean gitg_diff_view_options_transform_int_to_double (GitgDiffViewOptions* self, GBinding* binding, GValue* source_value, GValue* target_value) {
	gboolean result = FALSE;
	gint _tmp0_ = 0;
#line 73 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 73 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_return_val_if_fail (binding != NULL, FALSE);
#line 73 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_return_val_if_fail (source_value != NULL, FALSE);
#line 73 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_return_val_if_fail (target_value != NULL, FALSE);
#line 77 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp0_ = g_value_get_int (source_value);
#line 77 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_value_set_double (target_value, (gdouble) _tmp0_);
#line 78 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	result = TRUE;
#line 78 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	return result;
#line 195 "gitg-diff-view-options.c"
}


static gboolean _gitg_diff_view_options_transform_int_to_double_gbinding_transform_func (GBinding* binding, GValue* source_value, GValue* target_value, gpointer self) {
	gboolean result;
	result = gitg_diff_view_options_transform_int_to_double ((GitgDiffViewOptions*) self, binding, source_value, target_value);
#line 119 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	return result;
#line 204 "gitg-diff-view-options.c"
}


static gboolean _gitg_diff_view_options_transform_double_to_int_gbinding_transform_func (GBinding* binding, GValue* source_value, GValue* target_value, gpointer self) {
	gboolean result;
	result = gitg_diff_view_options_transform_double_to_int ((GitgDiffViewOptions*) self, binding, source_value, target_value);
#line 119 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	return result;
#line 213 "gitg-diff-view-options.c"
}


static void gitg_diff_view_options_real_constructed (GObject* base) {
	GitgDiffViewOptions * self;
	GitgDiffView* _tmp0_ = NULL;
	GitgDiffView* _tmp1_ = NULL;
	GitgDiffView* _tmp2_ = NULL;
	GitgDiffView* _tmp3_ = NULL;
	GtkSwitch* _tmp4_ = NULL;
	GtkSwitch* _tmp5_ = NULL;
	GtkAdjustment* _tmp6_ = NULL;
	GtkAdjustment* _tmp7_ = NULL;
	gboolean dbg = FALSE;
	const gchar* _tmp8_ = NULL;
	GtkSeparator* _tmp9_ = NULL;
	gboolean _tmp10_ = FALSE;
	GtkButton* _tmp11_ = NULL;
	gboolean _tmp12_ = FALSE;
	GitgDiffView* _tmp13_ = NULL;
	GitgCommit* _tmp14_ = NULL;
	GitgCommit* _tmp15_ = NULL;
#line 81 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	self = (GitgDiffViewOptions*) base;
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp0_ = self->priv->_view;
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp0_, "changes-inline", (GObject*) self, "changes-inline", G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp1_ = self->priv->_view;
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp1_, "ignore-whitespace", (GObject*) self, "ignore-whitespace", G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 95 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp2_ = self->priv->_view;
#line 95 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp2_, "context-lines", (GObject*) self, "context-lines", G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 101 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp3_ = self->priv->_view;
#line 101 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp3_, "tab-width", (GObject*) self, "tab-width", G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 107 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp4_ = self->priv->d_switch_changes_inline;
#line 107 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_object_bind_property_with_closures ((GObject*) self, "changes-inline", (GObject*) _tmp4_, "active", G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 113 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp5_ = self->priv->d_switch_ignore_whitespace;
#line 113 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_object_bind_property_with_closures ((GObject*) self, "ignore-whitespace", (GObject*) _tmp5_, "active", G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 119 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp6_ = self->priv->d_adjustment_context;
#line 119 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_object_bind_property_with_closures ((GObject*) self, "context-lines", (GObject*) _tmp6_, "value", G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE, (GClosure*) ((_gitg_diff_view_options_transform_int_to_double_gbinding_transform_func == NULL) ? NULL : g_cclosure_new ((GCallback) _gitg_diff_view_options_transform_int_to_double_gbinding_transform_func, g_object_ref (self), g_object_unref)), (GClosure*) ((_gitg_diff_view_options_transform_double_to_int_gbinding_transform_func == NULL) ? NULL : g_cclosure_new ((GCallback) _gitg_diff_view_options_transform_double_to_int_gbinding_transform_func, g_object_ref (self), g_object_unref)));
#line 127 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp7_ = self->priv->d_adjustment_tab_width;
#line 127 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_object_bind_property_with_closures ((GObject*) self, "tab-width", (GObject*) _tmp7_, "value", G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE, (GClosure*) ((_gitg_diff_view_options_transform_int_to_double_gbinding_transform_func == NULL) ? NULL : g_cclosure_new ((GCallback) _gitg_diff_view_options_transform_int_to_double_gbinding_transform_func, g_object_ref (self), g_object_unref)), (GClosure*) ((_gitg_diff_view_options_transform_double_to_int_gbinding_transform_func == NULL) ? NULL : g_cclosure_new ((GCallback) _gitg_diff_view_options_transform_double_to_int_gbinding_transform_func, g_object_ref (self), g_object_unref)));
#line 135 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp8_ = g_getenv ("GITG_GTK_DIFF_VIEW_DEBUG");
#line 135 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	dbg = _tmp8_ != NULL;
#line 137 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp9_ = self->priv->d_separator_developer_tools;
#line 137 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp10_ = dbg;
#line 137 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp9_, _tmp10_);
#line 138 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp11_ = self->priv->d_button_developer_tools;
#line 138 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp12_ = dbg;
#line 138 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp11_, _tmp12_);
#line 140 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp13_ = self->priv->_view;
#line 140 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp14_ = gitg_diff_view_get_commit (_tmp13_);
#line 140 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp15_ = _tmp14_;
#line 140 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	if (_tmp15_ == NULL) {
#line 294 "gitg-diff-view-options.c"
		GtkLabel* _tmp16_ = NULL;
		GtkSwitch* _tmp17_ = NULL;
		GtkLabel* _tmp18_ = NULL;
		GtkSwitch* _tmp19_ = NULL;
		GtkSeparator* _tmp20_ = NULL;
#line 142 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		_tmp16_ = self->priv->d_label_changes_inline;
#line 142 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		gtk_widget_set_visible ((GtkWidget*) _tmp16_, FALSE);
#line 143 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		_tmp17_ = self->priv->d_switch_changes_inline;
#line 143 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		gtk_widget_set_visible ((GtkWidget*) _tmp17_, FALSE);
#line 145 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		_tmp18_ = self->priv->d_label_ignore_whitespace;
#line 145 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		gtk_widget_set_visible ((GtkWidget*) _tmp18_, FALSE);
#line 146 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		_tmp19_ = self->priv->d_switch_ignore_whitespace;
#line 146 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		gtk_widget_set_visible ((GtkWidget*) _tmp19_, FALSE);
#line 148 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		_tmp20_ = self->priv->d_separator_first_options;
#line 148 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		gtk_widget_set_visible ((GtkWidget*) _tmp20_, FALSE);
#line 320 "gitg-diff-view-options.c"
	}
}


static void gitg_diff_view_options_on_button_developer_tools_clicked (GitgDiffViewOptions* self) {
	GitgDiffView* _tmp0_ = NULL;
	WebKitWebInspector* _tmp1_ = NULL;
#line 153 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_return_if_fail (self != NULL);
#line 155 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp0_ = self->priv->_view;
#line 155 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp1_ = webkit_web_view_get_inspector ((WebKitWebView*) _tmp0_);
#line 155 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	webkit_web_inspector_show (_tmp1_);
#line 156 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	gtk_widget_hide ((GtkWidget*) self);
#line 338 "gitg-diff-view-options.c"
}


static void _gitg_diff_view_options_on_button_developer_tools_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	gitg_diff_view_options_on_button_developer_tools_clicked ((GitgDiffViewOptions*) self);
#line 345 "gitg-diff-view-options.c"
}


gboolean gitg_diff_view_options_get_changes_inline (GitgDiffViewOptions* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 53 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 53 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp0_ = self->priv->_changes_inline;
#line 53 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	result = _tmp0_;
#line 53 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	return result;
#line 360 "gitg-diff-view-options.c"
}


void gitg_diff_view_options_set_changes_inline (GitgDiffViewOptions* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
#line 53 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_return_if_fail (self != NULL);
#line 53 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp0_ = value;
#line 53 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	self->priv->_changes_inline = _tmp0_;
#line 53 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_object_notify ((GObject *) self, "changes-inline");
#line 374 "gitg-diff-view-options.c"
}


gboolean gitg_diff_view_options_get_ignore_whitespace (GitgDiffViewOptions* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 54 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 54 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp0_ = self->priv->_ignore_whitespace;
#line 54 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	result = _tmp0_;
#line 54 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	return result;
#line 389 "gitg-diff-view-options.c"
}


void gitg_diff_view_options_set_ignore_whitespace (GitgDiffViewOptions* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
#line 54 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_return_if_fail (self != NULL);
#line 54 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp0_ = value;
#line 54 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	self->priv->_ignore_whitespace = _tmp0_;
#line 54 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_object_notify ((GObject *) self, "ignore-whitespace");
#line 403 "gitg-diff-view-options.c"
}


gint gitg_diff_view_options_get_context_lines (GitgDiffViewOptions* self) {
	gint result;
	gint _tmp0_ = 0;
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp0_ = self->priv->_context_lines;
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	result = _tmp0_;
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	return result;
#line 418 "gitg-diff-view-options.c"
}


void gitg_diff_view_options_set_context_lines (GitgDiffViewOptions* self, gint value) {
	gint _tmp0_ = 0;
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_return_if_fail (self != NULL);
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp0_ = value;
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	self->priv->_context_lines = _tmp0_;
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_object_notify ((GObject *) self, "context-lines");
#line 432 "gitg-diff-view-options.c"
}


gint gitg_diff_view_options_get_tab_width (GitgDiffViewOptions* self) {
	gint result;
	gint _tmp0_ = 0;
#line 56 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 56 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp0_ = self->priv->_tab_width;
#line 56 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	result = _tmp0_;
#line 56 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	return result;
#line 447 "gitg-diff-view-options.c"
}


void gitg_diff_view_options_set_tab_width (GitgDiffViewOptions* self, gint value) {
	gint _tmp0_ = 0;
#line 56 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_return_if_fail (self != NULL);
#line 56 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp0_ = value;
#line 56 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	self->priv->_tab_width = _tmp0_;
#line 56 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_object_notify ((GObject *) self, "tab-width");
#line 461 "gitg-diff-view-options.c"
}


GitgDiffView* gitg_diff_view_options_get_view (GitgDiffViewOptions* self) {
	GitgDiffView* result;
	GitgDiffView* _tmp0_ = NULL;
#line 58 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 58 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp0_ = self->priv->_view;
#line 58 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	result = _tmp0_;
#line 58 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	return result;
#line 476 "gitg-diff-view-options.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 58 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	return self ? g_object_ref (self) : NULL;
#line 483 "gitg-diff-view-options.c"
}


void gitg_diff_view_options_set_view (GitgDiffViewOptions* self, GitgDiffView* value) {
	GitgDiffView* _tmp0_ = NULL;
	GitgDiffView* _tmp1_ = NULL;
#line 58 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_return_if_fail (self != NULL);
#line 58 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp0_ = value;
#line 58 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 58 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_g_object_unref0 (self->priv->_view);
#line 58 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	self->priv->_view = _tmp1_;
#line 58 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_object_notify ((GObject *) self, "view");
#line 502 "gitg-diff-view-options.c"
}


static void gitg_diff_view_options_class_init (GitgDiffViewOptionsClass * klass) {
	gint GitgDiffViewOptions_private_offset;
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	gitg_diff_view_options_parent_class = g_type_class_peek_parent (klass);
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_type_class_add_private (klass, sizeof (GitgDiffViewOptionsPrivate));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	((GObjectClass *) klass)->constructed = gitg_diff_view_options_real_constructed;
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_diff_view_options_get_property;
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_diff_view_options_set_property;
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_diff_view_options_finalize;
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_OPTIONS_CHANGES_INLINE, g_param_spec_boolean ("changes-inline", "changes-inline", "changes-inline", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_OPTIONS_IGNORE_WHITESPACE, g_param_spec_boolean ("ignore-whitespace", "ignore-whitespace", "ignore-whitespace", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_OPTIONS_CONTEXT_LINES, g_param_spec_int ("context-lines", "context-lines", "context-lines", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_OPTIONS_TAB_WIDTH, g_param_spec_int ("tab-width", "tab-width", "tab-width", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_OPTIONS_VIEW, g_param_spec_object ("view", "view", "view", GITG_TYPE_DIFF_VIEW, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	GitgDiffViewOptions_private_offset = g_type_class_get_instance_private_offset (klass);
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/gitg/ui/diff-view/diff-view-options.ui");
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "switch_changes_inline", FALSE, GitgDiffViewOptions_private_offset + G_STRUCT_OFFSET (GitgDiffViewOptionsPrivate, d_switch_changes_inline));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "label_changes_inline", FALSE, GitgDiffViewOptions_private_offset + G_STRUCT_OFFSET (GitgDiffViewOptionsPrivate, d_label_changes_inline));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "switch_ignore_whitespace", FALSE, GitgDiffViewOptions_private_offset + G_STRUCT_OFFSET (GitgDiffViewOptionsPrivate, d_switch_ignore_whitespace));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "label_ignore_whitespace", FALSE, GitgDiffViewOptions_private_offset + G_STRUCT_OFFSET (GitgDiffViewOptionsPrivate, d_label_ignore_whitespace));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "adjustment_context", FALSE, GitgDiffViewOptions_private_offset + G_STRUCT_OFFSET (GitgDiffViewOptionsPrivate, d_adjustment_context));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "adjustment_tab_width", FALSE, GitgDiffViewOptions_private_offset + G_STRUCT_OFFSET (GitgDiffViewOptionsPrivate, d_adjustment_tab_width));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "button_developer_tools", FALSE, GitgDiffViewOptions_private_offset + G_STRUCT_OFFSET (GitgDiffViewOptionsPrivate, d_button_developer_tools));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "separator_developer_tools", FALSE, GitgDiffViewOptions_private_offset + G_STRUCT_OFFSET (GitgDiffViewOptionsPrivate, d_separator_developer_tools));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "separator_first_options", FALSE, GitgDiffViewOptions_private_offset + G_STRUCT_OFFSET (GitgDiffViewOptionsPrivate, d_separator_first_options));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_button_developer_tools_clicked", G_CALLBACK(_gitg_diff_view_options_on_button_developer_tools_clicked_gtk_button_clicked));
#line 554 "gitg-diff-view-options.c"
}


static void gitg_diff_view_options_instance_init (GitgDiffViewOptions * self) {
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	self->priv = GITG_DIFF_VIEW_OPTIONS_GET_PRIVATE (self);
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 563 "gitg-diff-view-options.c"
}


static void gitg_diff_view_options_finalize (GObject* obj) {
	GitgDiffViewOptions * self;
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_DIFF_VIEW_OPTIONS, GitgDiffViewOptions);
#line 27 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_g_object_unref0 (self->priv->d_switch_changes_inline);
#line 30 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_g_object_unref0 (self->priv->d_label_changes_inline);
#line 33 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_g_object_unref0 (self->priv->d_switch_ignore_whitespace);
#line 36 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_g_object_unref0 (self->priv->d_label_ignore_whitespace);
#line 39 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_g_object_unref0 (self->priv->d_adjustment_context);
#line 42 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_g_object_unref0 (self->priv->d_adjustment_tab_width);
#line 45 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_g_object_unref0 (self->priv->d_button_developer_tools);
#line 48 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_g_object_unref0 (self->priv->d_separator_developer_tools);
#line 51 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_g_object_unref0 (self->priv->d_separator_first_options);
#line 58 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	_g_object_unref0 (self->priv->_view);
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	G_OBJECT_CLASS (gitg_diff_view_options_parent_class)->finalize (obj);
#line 593 "gitg-diff-view-options.c"
}


GType gitg_diff_view_options_get_type (void) {
	static volatile gsize gitg_diff_view_options_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_diff_view_options_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgDiffViewOptionsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_diff_view_options_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgDiffViewOptions), 0, (GInstanceInitFunc) gitg_diff_view_options_instance_init, NULL };
		GType gitg_diff_view_options_type_id;
		gitg_diff_view_options_type_id = g_type_register_static (gtk_grid_get_type (), "GitgDiffViewOptions", &g_define_type_info, 0);
		g_once_init_leave (&gitg_diff_view_options_type_id__volatile, gitg_diff_view_options_type_id);
	}
	return gitg_diff_view_options_type_id__volatile;
}


static void _vala_gitg_diff_view_options_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgDiffViewOptions * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_DIFF_VIEW_OPTIONS, GitgDiffViewOptions);
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	switch (property_id) {
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		case GITG_DIFF_VIEW_OPTIONS_CHANGES_INLINE:
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		g_value_set_boolean (value, gitg_diff_view_options_get_changes_inline (self));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		break;
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		case GITG_DIFF_VIEW_OPTIONS_IGNORE_WHITESPACE:
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		g_value_set_boolean (value, gitg_diff_view_options_get_ignore_whitespace (self));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		break;
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		case GITG_DIFF_VIEW_OPTIONS_CONTEXT_LINES:
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		g_value_set_int (value, gitg_diff_view_options_get_context_lines (self));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		break;
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		case GITG_DIFF_VIEW_OPTIONS_TAB_WIDTH:
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		g_value_set_int (value, gitg_diff_view_options_get_tab_width (self));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		break;
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		case GITG_DIFF_VIEW_OPTIONS_VIEW:
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		g_value_set_object (value, gitg_diff_view_options_get_view (self));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		break;
#line 644 "gitg-diff-view-options.c"
		default:
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		break;
#line 650 "gitg-diff-view-options.c"
	}
}


static void _vala_gitg_diff_view_options_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgDiffViewOptions * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_DIFF_VIEW_OPTIONS, GitgDiffViewOptions);
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
	switch (property_id) {
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		case GITG_DIFF_VIEW_OPTIONS_CHANGES_INLINE:
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		gitg_diff_view_options_set_changes_inline (self, g_value_get_boolean (value));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		break;
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		case GITG_DIFF_VIEW_OPTIONS_IGNORE_WHITESPACE:
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		gitg_diff_view_options_set_ignore_whitespace (self, g_value_get_boolean (value));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		break;
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		case GITG_DIFF_VIEW_OPTIONS_CONTEXT_LINES:
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		gitg_diff_view_options_set_context_lines (self, g_value_get_int (value));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		break;
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		case GITG_DIFF_VIEW_OPTIONS_TAB_WIDTH:
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		gitg_diff_view_options_set_tab_width (self, g_value_get_int (value));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		break;
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		case GITG_DIFF_VIEW_OPTIONS_VIEW:
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		gitg_diff_view_options_set_view (self, g_value_get_object (value));
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		break;
#line 690 "gitg-diff-view-options.c"
		default:
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-options.vala"
		break;
#line 696 "gitg-diff-view-options.c"
	}
}



