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

/*
 * This file is part of gitg
 *
 * Copyright (C) 2013 - Jesse van den Kieboom
 *
 * gitg is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * gitg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with gitg. If not, see <http://www.gnu.org/licenses/>.
 */

#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include "libgitg-ext/libgitg-ext.h"
#include <stdlib.h>
#include <string.h>
#include <config.h>
#include <glib/gi18n-lib.h>
#include <gio/gio.h>


#define GITG_TYPE_PREFERENCES_COMMIT (gitg_preferences_commit_get_type ())
#define GITG_PREFERENCES_COMMIT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_PREFERENCES_COMMIT, GitgPreferencesCommit))
#define GITG_PREFERENCES_COMMIT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_PREFERENCES_COMMIT, GitgPreferencesCommitClass))
#define GITG_IS_PREFERENCES_COMMIT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_PREFERENCES_COMMIT))
#define GITG_IS_PREFERENCES_COMMIT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_PREFERENCES_COMMIT))
#define GITG_PREFERENCES_COMMIT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_PREFERENCES_COMMIT, GitgPreferencesCommitClass))

typedef struct _GitgPreferencesCommit GitgPreferencesCommit;
typedef struct _GitgPreferencesCommitClass GitgPreferencesCommitClass;
typedef struct _GitgPreferencesCommitPrivate GitgPreferencesCommitPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _GitgPreferencesCommit {
	GtkGrid parent_instance;
	GitgPreferencesCommitPrivate * priv;
};

struct _GitgPreferencesCommitClass {
	GtkGridClass parent_class;
};

struct _GitgPreferencesCommitPrivate {
	GtkCheckButton* d_check_button_show_markup;
	GtkGrid* d_grid_show_markup;
	GtkCheckButton* d_check_button_show_subject_margin;
	GtkGrid* d_spin_button_subject_margin_grid;
	GtkSpinButton* d_spin_button_subject_margin;
	GtkCheckButton* d_check_button_show_right_margin;
	GtkGrid* d_spin_button_right_margin_grid;
	GtkSpinButton* d_spin_button_right_margin;
	GtkCheckButton* d_enable_spell_checking;
};


static gpointer gitg_preferences_commit_parent_class = NULL;
static GitgExtPreferencesIface* gitg_preferences_commit_gitg_ext_preferences_parent_iface = NULL;

GType gitg_preferences_commit_get_type (void) G_GNUC_CONST;
#define GITG_PREFERENCES_COMMIT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_PREFERENCES_COMMIT, GitgPreferencesCommitPrivate))
enum  {
	GITG_PREFERENCES_COMMIT_DUMMY_PROPERTY,
	GITG_PREFERENCES_COMMIT_WIDGET,
	GITG_PREFERENCES_COMMIT_ID,
	GITG_PREFERENCES_COMMIT_DISPLAY_NAME
};
#define GITG_PREFERENCES_COMMIT_version VERSION
GitgPreferencesCommit* gitg_preferences_commit_new (void);
GitgPreferencesCommit* gitg_preferences_commit_construct (GType object_type);
static GObject * gitg_preferences_commit_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static void gitg_preferences_commit_finalize (GObject* obj);
static void _vala_gitg_preferences_commit_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);


GitgPreferencesCommit* gitg_preferences_commit_construct (GType object_type) {
	GitgPreferencesCommit * self = NULL;
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	self = (GitgPreferencesCommit*) g_object_new (object_type, NULL);
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	return self;
#line 94 "gitg-preferences-commit.c"
}


GitgPreferencesCommit* gitg_preferences_commit_new (void) {
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	return gitg_preferences_commit_construct (GITG_TYPE_PREFERENCES_COMMIT);
#line 101 "gitg-preferences-commit.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 108 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	return self ? g_object_ref (self) : NULL;
#line 108 "gitg-preferences-commit.c"
}


static GtkWidget* gitg_preferences_commit_real_get_widget (GitgExtPreferences* base) {
	GtkWidget* result;
	GitgPreferencesCommit* self;
	GtkWidget* _tmp0_ = NULL;
#line 106 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	self = (GitgPreferencesCommit*) base;
#line 108 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp0_ = _g_object_ref0 ((GtkWidget*) self);
#line 108 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	result = _tmp0_;
#line 108 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	return result;
#line 124 "gitg-preferences-commit.c"
}


static gchar* gitg_preferences_commit_real_get_id (GitgExtPreferences* base) {
	gchar* result;
	GitgPreferencesCommit* self;
	gchar* _tmp0_ = NULL;
#line 114 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	self = (GitgPreferencesCommit*) base;
#line 114 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp0_ = g_strdup ("/org/gnome/gitg/Preferences/Commit");
#line 114 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	result = _tmp0_;
#line 114 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	return result;
#line 140 "gitg-preferences-commit.c"
}


static gchar* gitg_preferences_commit_real_get_display_name (GitgExtPreferences* base) {
	gchar* result;
	GitgPreferencesCommit* self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 119 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	self = (GitgPreferencesCommit*) base;
#line 119 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp0_ = C_ ("Preferences", "Commit");
#line 119 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 119 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	result = _tmp1_;
#line 119 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	return result;
#line 159 "gitg-preferences-commit.c"
}


static GObject * gitg_preferences_commit_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GitgPreferencesCommit * self;
	GSettings* settings = NULL;
	GSettings* _tmp0_ = NULL;
	GSettings* _tmp1_ = NULL;
	GtkCheckButton* _tmp2_ = NULL;
	GSettings* _tmp3_ = NULL;
	GtkGrid* _tmp4_ = NULL;
	GSettings* _tmp5_ = NULL;
	GtkCheckButton* _tmp6_ = NULL;
	GSettings* _tmp7_ = NULL;
	GtkGrid* _tmp8_ = NULL;
	GSettings* _tmp9_ = NULL;
	GtkSpinButton* _tmp10_ = NULL;
	GSettings* _tmp11_ = NULL;
	GtkCheckButton* _tmp12_ = NULL;
	GSettings* _tmp13_ = NULL;
	GtkGrid* _tmp14_ = NULL;
	GSettings* _tmp15_ = NULL;
	GtkSpinButton* _tmp16_ = NULL;
	GSettings* _tmp17_ = NULL;
	GtkCheckButton* _tmp18_ = NULL;
#line 54 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	parent_class = G_OBJECT_CLASS (gitg_preferences_commit_parent_class);
#line 54 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 54 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_PREFERENCES_COMMIT, GitgPreferencesCommit);
#line 56 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp0_ = g_settings_new ("org.gnome.gitg.preferences.commit.message");
#line 56 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	settings = _tmp0_;
#line 58 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp1_ = settings;
#line 58 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp2_ = self->priv->d_check_button_show_markup;
#line 58 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	g_settings_bind (_tmp1_, "show-markup", (GObject*) _tmp2_, "active", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 63 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp3_ = settings;
#line 63 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp4_ = self->priv->d_grid_show_markup;
#line 63 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	g_settings_bind (_tmp3_, "show-markup", (GObject*) _tmp4_, "sensitive", G_SETTINGS_BIND_GET);
#line 68 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp5_ = settings;
#line 68 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp6_ = self->priv->d_check_button_show_subject_margin;
#line 68 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	g_settings_bind (_tmp5_, "show-subject-margin", (GObject*) _tmp6_, "active", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 73 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp7_ = settings;
#line 73 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp8_ = self->priv->d_spin_button_subject_margin_grid;
#line 73 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	g_settings_bind (_tmp7_, "show-subject-margin", (GObject*) _tmp8_, "sensitive", G_SETTINGS_BIND_GET);
#line 78 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp9_ = settings;
#line 78 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp10_ = self->priv->d_spin_button_subject_margin;
#line 78 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	g_settings_bind (_tmp9_, "subject-margin-position", (GObject*) _tmp10_, "value", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 83 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp11_ = settings;
#line 83 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp12_ = self->priv->d_check_button_show_right_margin;
#line 83 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	g_settings_bind (_tmp11_, "show-right-margin", (GObject*) _tmp12_, "active", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 88 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp13_ = settings;
#line 88 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp14_ = self->priv->d_spin_button_right_margin_grid;
#line 88 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	g_settings_bind (_tmp13_, "show-right-margin", (GObject*) _tmp14_, "sensitive", G_SETTINGS_BIND_GET);
#line 93 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp15_ = settings;
#line 93 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp16_ = self->priv->d_spin_button_right_margin;
#line 93 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	g_settings_bind (_tmp15_, "right-margin-position", (GObject*) _tmp16_, "value", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 98 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp17_ = settings;
#line 98 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_tmp18_ = self->priv->d_enable_spell_checking;
#line 98 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	g_settings_bind (_tmp17_, "enable-spell-checking", (GObject*) _tmp18_, "active", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 54 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_g_object_unref0 (settings);
#line 54 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	return obj;
#line 255 "gitg-preferences-commit.c"
}


static void gitg_preferences_commit_class_init (GitgPreferencesCommitClass * klass) {
	gint GitgPreferencesCommit_private_offset;
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	gitg_preferences_commit_parent_class = g_type_class_peek_parent (klass);
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	g_type_class_add_private (klass, sizeof (GitgPreferencesCommitPrivate));
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_preferences_commit_get_property;
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_preferences_commit_constructor;
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_preferences_commit_finalize;
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_PREFERENCES_COMMIT_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 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_PREFERENCES_COMMIT_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 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_PREFERENCES_COMMIT_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 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	GitgPreferencesCommit_private_offset = g_type_class_get_instance_private_offset (klass);
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/gitg/ui/gitg-preferences-commit.ui");
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "check_button_show_markup", FALSE, GitgPreferencesCommit_private_offset + G_STRUCT_OFFSET (GitgPreferencesCommitPrivate, d_check_button_show_markup));
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "grid_show_markup", FALSE, GitgPreferencesCommit_private_offset + G_STRUCT_OFFSET (GitgPreferencesCommitPrivate, d_grid_show_markup));
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "check_button_show_subject_margin", FALSE, GitgPreferencesCommit_private_offset + G_STRUCT_OFFSET (GitgPreferencesCommitPrivate, d_check_button_show_subject_margin));
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "spin_button_subject_margin_grid", FALSE, GitgPreferencesCommit_private_offset + G_STRUCT_OFFSET (GitgPreferencesCommitPrivate, d_spin_button_subject_margin_grid));
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "spin_button_subject_margin", FALSE, GitgPreferencesCommit_private_offset + G_STRUCT_OFFSET (GitgPreferencesCommitPrivate, d_spin_button_subject_margin));
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "check_button_show_right_margin", FALSE, GitgPreferencesCommit_private_offset + G_STRUCT_OFFSET (GitgPreferencesCommitPrivate, d_check_button_show_right_margin));
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "spin_button_right_margin_grid", FALSE, GitgPreferencesCommit_private_offset + G_STRUCT_OFFSET (GitgPreferencesCommitPrivate, d_spin_button_right_margin_grid));
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "spin_button_right_margin", FALSE, GitgPreferencesCommit_private_offset + G_STRUCT_OFFSET (GitgPreferencesCommitPrivate, d_spin_button_right_margin));
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "enable_spell_checking", FALSE, GitgPreferencesCommit_private_offset + G_STRUCT_OFFSET (GitgPreferencesCommitPrivate, d_enable_spell_checking));
#line 299 "gitg-preferences-commit.c"
}


static void gitg_preferences_commit_gitg_ext_preferences_interface_init (GitgExtPreferencesIface * iface) {
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	gitg_preferences_commit_gitg_ext_preferences_parent_iface = g_type_interface_peek_parent (iface);
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	iface->get_widget = gitg_preferences_commit_real_get_widget;
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	iface->get_id = gitg_preferences_commit_real_get_id;
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	iface->get_display_name = gitg_preferences_commit_real_get_display_name;
#line 312 "gitg-preferences-commit.c"
}


static void gitg_preferences_commit_instance_init (GitgPreferencesCommit * self) {
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	self->priv = GITG_PREFERENCES_COMMIT_GET_PRIVATE (self);
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 321 "gitg-preferences-commit.c"
}


static void gitg_preferences_commit_finalize (GObject* obj) {
	GitgPreferencesCommit * self;
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_PREFERENCES_COMMIT, GitgPreferencesCommit);
#line 30 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_g_object_unref0 (self->priv->d_check_button_show_markup);
#line 33 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_g_object_unref0 (self->priv->d_grid_show_markup);
#line 36 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_g_object_unref0 (self->priv->d_check_button_show_subject_margin);
#line 39 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_g_object_unref0 (self->priv->d_spin_button_subject_margin_grid);
#line 41 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_g_object_unref0 (self->priv->d_spin_button_subject_margin);
#line 44 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_g_object_unref0 (self->priv->d_check_button_show_right_margin);
#line 47 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_g_object_unref0 (self->priv->d_spin_button_right_margin_grid);
#line 49 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_g_object_unref0 (self->priv->d_spin_button_right_margin);
#line 52 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	_g_object_unref0 (self->priv->d_enable_spell_checking);
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	G_OBJECT_CLASS (gitg_preferences_commit_parent_class)->finalize (obj);
#line 349 "gitg-preferences-commit.c"
}


GType gitg_preferences_commit_get_type (void) {
	static volatile gsize gitg_preferences_commit_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_preferences_commit_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgPreferencesCommitClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_preferences_commit_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgPreferencesCommit), 0, (GInstanceInitFunc) gitg_preferences_commit_instance_init, NULL };
		static const GInterfaceInfo gitg_ext_preferences_info = { (GInterfaceInitFunc) gitg_preferences_commit_gitg_ext_preferences_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_preferences_commit_type_id;
		gitg_preferences_commit_type_id = g_type_register_static (gtk_grid_get_type (), "GitgPreferencesCommit", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_preferences_commit_type_id, GITG_EXT_TYPE_PREFERENCES, &gitg_ext_preferences_info);
		g_once_init_leave (&gitg_preferences_commit_type_id__volatile, gitg_preferences_commit_type_id);
	}
	return gitg_preferences_commit_type_id__volatile;
}


static void _vala_gitg_preferences_commit_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgPreferencesCommit * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_PREFERENCES_COMMIT, GitgPreferencesCommit);
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
	switch (property_id) {
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
		case GITG_PREFERENCES_COMMIT_WIDGET:
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
		g_value_take_object (value, gitg_ext_preferences_get_widget ((GitgExtPreferences*) self));
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
		break;
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
		case GITG_PREFERENCES_COMMIT_ID:
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
		g_value_take_string (value, gitg_ext_preferences_get_id ((GitgExtPreferences*) self));
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
		break;
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
		case GITG_PREFERENCES_COMMIT_DISPLAY_NAME:
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
		g_value_take_string (value, gitg_ext_preferences_get_display_name ((GitgExtPreferences*) self));
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
		break;
#line 390 "gitg-preferences-commit.c"
		default:
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-commit.vala"
		break;
#line 396 "gitg-preferences-commit.c"
	}
}



