/* gitg-preferences-interface.c generated by valac 0.32.1, the Vala compiler
 * generated from gitg-preferences-interface.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 <gtk/gtk.h>
#include "libgitg-ext/libgitg-ext.h"
#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <config.h>
#include <glib/gi18n-lib.h>


#define GITG_TYPE_PREFERENCES_INTERFACE (gitg_preferences_interface_get_type ())
#define GITG_PREFERENCES_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_PREFERENCES_INTERFACE, GitgPreferencesInterface))
#define GITG_PREFERENCES_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_PREFERENCES_INTERFACE, GitgPreferencesInterfaceClass))
#define GITG_IS_PREFERENCES_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_PREFERENCES_INTERFACE))
#define GITG_IS_PREFERENCES_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_PREFERENCES_INTERFACE))
#define GITG_PREFERENCES_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_PREFERENCES_INTERFACE, GitgPreferencesInterfaceClass))

typedef struct _GitgPreferencesInterface GitgPreferencesInterface;
typedef struct _GitgPreferencesInterfaceClass GitgPreferencesInterfaceClass;
typedef struct _GitgPreferencesInterfacePrivate GitgPreferencesInterfacePrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _GitgPreferencesInterface {
	GtkGrid parent_instance;
	GitgPreferencesInterfacePrivate * priv;
};

struct _GitgPreferencesInterfaceClass {
	GtkGridClass parent_class;
};

struct _GitgPreferencesInterfacePrivate {
	gboolean d_block;
	GSettings* d_settings;
	GtkCheckButton* d_horizontal_layout_enabled;
	GtkComboBox* d_default_activity;
	GtkCheckButton* d_gravatar_enabled;
	GtkCheckButton* d_monitoring_enabled;
	GtkCheckButton* d_diff_highlighting_enabled;
};


static gpointer gitg_preferences_interface_parent_class = NULL;
static GitgExtPreferencesIface* gitg_preferences_interface_gitg_ext_preferences_parent_iface = NULL;

GType gitg_preferences_interface_get_type (void) G_GNUC_CONST;
#define GITG_PREFERENCES_INTERFACE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_PREFERENCES_INTERFACE, GitgPreferencesInterfacePrivate))
enum  {
	GITG_PREFERENCES_INTERFACE_DUMMY_PROPERTY,
	GITG_PREFERENCES_INTERFACE_WIDGET,
	GITG_PREFERENCES_INTERFACE_ID,
	GITG_PREFERENCES_INTERFACE_DISPLAY_NAME
};
#define GITG_PREFERENCES_INTERFACE_version VERSION
static void gitg_preferences_interface_real_dispose (GObject* base);
static void gitg_preferences_interface_orientation_changed (GitgPreferencesInterface* self, GSettings* settings, const gchar* key);
static void _gitg_preferences_interface_orientation_changed_g_settings_changed (GSettings* _sender, const gchar* key, gpointer self);
GitgPreferencesInterface* gitg_preferences_interface_new (void);
GitgPreferencesInterface* gitg_preferences_interface_construct (GType object_type);
static GObject * gitg_preferences_interface_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static void _gitg_preferences_interface___lambda80_ (GitgPreferencesInterface* self, GObject* obj, GParamSpec* spec);
static void __gitg_preferences_interface___lambda80__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void gitg_preferences_interface_finalize (GObject* obj);
static void _vala_gitg_preferences_interface_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);


static void _gitg_preferences_interface_orientation_changed_g_settings_changed (GSettings* _sender, const gchar* key, gpointer self) {
#line 91 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	gitg_preferences_interface_orientation_changed ((GitgPreferencesInterface*) self, _sender, key);
#line 94 "gitg-preferences-interface.c"
}


static void gitg_preferences_interface_real_dispose (GObject* base) {
	GitgPreferencesInterface * self;
	GSettings* _tmp0_ = NULL;
#line 87 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	self = (GitgPreferencesInterface*) base;
#line 89 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp0_ = self->priv->d_settings;
#line 89 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	if (_tmp0_ != NULL) {
#line 107 "gitg-preferences-interface.c"
		GSettings* _tmp1_ = NULL;
		guint _tmp2_ = 0U;
		GQuark _tmp3_ = 0U;
#line 91 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		_tmp1_ = self->priv->d_settings;
#line 91 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		g_signal_parse_name ("changed::orientation", G_TYPE_SETTINGS, &_tmp2_, &_tmp3_, TRUE);
#line 91 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_DETAIL | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, _tmp3_, NULL, (GCallback) _gitg_preferences_interface_orientation_changed_g_settings_changed, self);
#line 92 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		_g_object_unref0 (self->priv->d_settings);
#line 92 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		self->priv->d_settings = NULL;
#line 121 "gitg-preferences-interface.c"
	}
#line 95 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	G_OBJECT_CLASS (gitg_preferences_interface_parent_class)->dispose ((GObject*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_grid_get_type (), GtkGrid));
#line 125 "gitg-preferences-interface.c"
}


static void gitg_preferences_interface_orientation_changed (GitgPreferencesInterface* self, GSettings* settings, const gchar* key) {
	GtkCheckButton* _tmp0_ = NULL;
	GSettings* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gint _tmp3_ = 0;
#line 98 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	g_return_if_fail (self != NULL);
#line 98 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	g_return_if_fail (settings != NULL);
#line 98 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	g_return_if_fail (key != NULL);
#line 100 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	self->priv->d_block = TRUE;
#line 101 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp0_ = self->priv->d_horizontal_layout_enabled;
#line 101 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp1_ = settings;
#line 101 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp2_ = key;
#line 101 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp3_ = g_settings_get_enum (_tmp1_, _tmp2_);
#line 101 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	gtk_toggle_button_set_active ((GtkToggleButton*) _tmp0_, _tmp3_ == 0);
#line 102 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	self->priv->d_block = FALSE;
#line 154 "gitg-preferences-interface.c"
}


GitgPreferencesInterface* gitg_preferences_interface_construct (GType object_type) {
	GitgPreferencesInterface * self = NULL;
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	self = (GitgPreferencesInterface*) g_object_new (object_type, NULL);
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	return self;
#line 164 "gitg-preferences-interface.c"
}


GitgPreferencesInterface* gitg_preferences_interface_new (void) {
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	return gitg_preferences_interface_construct (GITG_TYPE_PREFERENCES_INTERFACE);
#line 171 "gitg-preferences-interface.c"
}


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


static GtkWidget* gitg_preferences_interface_real_get_widget (GitgExtPreferences* base) {
	GtkWidget* result;
	GitgPreferencesInterface* self;
	GtkWidget* _tmp0_ = NULL;
#line 107 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	self = (GitgPreferencesInterface*) base;
#line 109 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp0_ = _g_object_ref0 ((GtkWidget*) self);
#line 109 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	result = _tmp0_;
#line 109 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	return result;
#line 194 "gitg-preferences-interface.c"
}


static gchar* gitg_preferences_interface_real_get_id (GitgExtPreferences* base) {
	gchar* result;
	GitgPreferencesInterface* self;
	gchar* _tmp0_ = NULL;
#line 115 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	self = (GitgPreferencesInterface*) base;
#line 115 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp0_ = g_strdup ("/org/gnome/gitg/Preferences/Interface");
#line 115 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	result = _tmp0_;
#line 115 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	return result;
#line 210 "gitg-preferences-interface.c"
}


static gchar* gitg_preferences_interface_real_get_display_name (GitgExtPreferences* base) {
	gchar* result;
	GitgPreferencesInterface* self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 120 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	self = (GitgPreferencesInterface*) base;
#line 120 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp0_ = _ ("Interface");
#line 120 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 120 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	result = _tmp1_;
#line 120 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	return result;
#line 229 "gitg-preferences-interface.c"
}


static void _gitg_preferences_interface___lambda80_ (GitgPreferencesInterface* self, GObject* obj, GParamSpec* spec) {
	gboolean _tmp0_ = FALSE;
	gint _tmp1_ = 0;
	GtkCheckButton* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	GSettings* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
#line 52 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	g_return_if_fail (obj != NULL);
#line 52 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	g_return_if_fail (spec != NULL);
#line 53 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp0_ = self->priv->d_block;
#line 53 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	if (_tmp0_) {
#line 55 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		return;
#line 251 "gitg-preferences-interface.c"
	}
#line 58 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp2_ = self->priv->d_horizontal_layout_enabled;
#line 58 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp3_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp2_);
#line 58 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp4_ = _tmp3_;
#line 58 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	if (_tmp4_) {
#line 58 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		_tmp1_ = 0;
#line 263 "gitg-preferences-interface.c"
	} else {
#line 58 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		_tmp1_ = 1;
#line 267 "gitg-preferences-interface.c"
	}
#line 58 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp5_ = self->priv->d_settings;
#line 58 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp6_ = g_settings_set_enum (_tmp5_, "orientation", _tmp1_);
#line 58 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	if (!_tmp6_) {
#line 275 "gitg-preferences-interface.c"
		GtkCheckButton* _tmp7_ = NULL;
		GSettings* _tmp8_ = NULL;
		gint _tmp9_ = 0;
#line 60 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		_tmp7_ = self->priv->d_horizontal_layout_enabled;
#line 60 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		_tmp8_ = self->priv->d_settings;
#line 60 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		_tmp9_ = g_settings_get_enum (_tmp8_, "orientation");
#line 60 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		gtk_toggle_button_set_active ((GtkToggleButton*) _tmp7_, _tmp9_ == 0);
#line 287 "gitg-preferences-interface.c"
	}
}


static void __gitg_preferences_interface___lambda80__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 52 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_gitg_preferences_interface___lambda80_ ((GitgPreferencesInterface*) self, _sender, pspec);
#line 295 "gitg-preferences-interface.c"
}


static GObject * gitg_preferences_interface_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GitgPreferencesInterface * self;
	GSettings* _tmp0_ = NULL;
	GtkCheckButton* _tmp1_ = NULL;
	GSettings* _tmp2_ = NULL;
	gint _tmp3_ = 0;
	GtkCheckButton* _tmp4_ = NULL;
	GSettings* _tmp5_ = NULL;
	GSettings* _tmp6_ = NULL;
	GtkComboBox* _tmp7_ = NULL;
	GSettings* _tmp8_ = NULL;
	GtkCheckButton* _tmp9_ = NULL;
	GSettings* _tmp10_ = NULL;
	GtkCheckButton* _tmp11_ = NULL;
	GSettings* _tmp12_ = NULL;
	GtkCheckButton* _tmp13_ = NULL;
#line 46 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	parent_class = G_OBJECT_CLASS (gitg_preferences_interface_parent_class);
#line 46 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 46 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_PREFERENCES_INTERFACE, GitgPreferencesInterface);
#line 48 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp0_ = g_settings_new ("org.gnome.gitg.preferences.interface");
#line 48 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_g_object_unref0 (self->priv->d_settings);
#line 48 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	self->priv->d_settings = _tmp0_;
#line 50 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp1_ = self->priv->d_horizontal_layout_enabled;
#line 50 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp2_ = self->priv->d_settings;
#line 50 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp3_ = g_settings_get_enum (_tmp2_, "orientation");
#line 50 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	gtk_toggle_button_set_active ((GtkToggleButton*) _tmp1_, _tmp3_ == 0);
#line 52 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp4_ = self->priv->d_horizontal_layout_enabled;
#line 52 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	g_signal_connect_object ((GObject*) _tmp4_, "notify::active", (GCallback) __gitg_preferences_interface___lambda80__g_object_notify, self, 0);
#line 64 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp5_ = self->priv->d_settings;
#line 64 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	g_signal_connect_object (_tmp5_, "changed::orientation", (GCallback) _gitg_preferences_interface_orientation_changed_g_settings_changed, self, 0);
#line 66 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp6_ = self->priv->d_settings;
#line 66 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp7_ = self->priv->d_default_activity;
#line 66 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	g_settings_bind (_tmp6_, "default-activity", (GObject*) _tmp7_, "active-id", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 71 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp8_ = self->priv->d_settings;
#line 71 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp9_ = self->priv->d_gravatar_enabled;
#line 71 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	g_settings_bind (_tmp8_, "use-gravatar", (GObject*) _tmp9_, "active", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 76 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp10_ = self->priv->d_settings;
#line 76 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp11_ = self->priv->d_monitoring_enabled;
#line 76 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	g_settings_bind (_tmp10_, "enable-monitoring", (GObject*) _tmp11_, "active", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 81 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp12_ = self->priv->d_settings;
#line 81 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_tmp13_ = self->priv->d_diff_highlighting_enabled;
#line 81 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	g_settings_bind (_tmp12_, "enable-diff-highlighting", (GObject*) _tmp13_, "active", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 46 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	return obj;
#line 371 "gitg-preferences-interface.c"
}


static void gitg_preferences_interface_class_init (GitgPreferencesInterfaceClass * klass) {
	gint GitgPreferencesInterface_private_offset;
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	gitg_preferences_interface_parent_class = g_type_class_peek_parent (klass);
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	g_type_class_add_private (klass, sizeof (GitgPreferencesInterfacePrivate));
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	((GObjectClass *) klass)->dispose = gitg_preferences_interface_real_dispose;
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_preferences_interface_get_property;
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_preferences_interface_constructor;
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_preferences_interface_finalize;
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_PREFERENCES_INTERFACE_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-interface.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_PREFERENCES_INTERFACE_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-interface.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_PREFERENCES_INTERFACE_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-interface.vala"
	GitgPreferencesInterface_private_offset = g_type_class_get_instance_private_offset (klass);
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/gitg/ui/gitg-preferences-interface.ui");
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "horizontal_layout_enabled", FALSE, GitgPreferencesInterface_private_offset + G_STRUCT_OFFSET (GitgPreferencesInterfacePrivate, d_horizontal_layout_enabled));
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "default_activity", FALSE, GitgPreferencesInterface_private_offset + G_STRUCT_OFFSET (GitgPreferencesInterfacePrivate, d_default_activity));
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "gravatar_enabled", FALSE, GitgPreferencesInterface_private_offset + G_STRUCT_OFFSET (GitgPreferencesInterfacePrivate, d_gravatar_enabled));
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "monitoring_enabled", FALSE, GitgPreferencesInterface_private_offset + G_STRUCT_OFFSET (GitgPreferencesInterfacePrivate, d_monitoring_enabled));
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "diff_highlighting_enabled", FALSE, GitgPreferencesInterface_private_offset + G_STRUCT_OFFSET (GitgPreferencesInterfacePrivate, d_diff_highlighting_enabled));
#line 409 "gitg-preferences-interface.c"
}


static void gitg_preferences_interface_gitg_ext_preferences_interface_init (GitgExtPreferencesIface * iface) {
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	gitg_preferences_interface_gitg_ext_preferences_parent_iface = g_type_interface_peek_parent (iface);
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	iface->get_widget = gitg_preferences_interface_real_get_widget;
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	iface->get_id = gitg_preferences_interface_real_get_id;
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	iface->get_display_name = gitg_preferences_interface_real_get_display_name;
#line 422 "gitg-preferences-interface.c"
}


static void gitg_preferences_interface_instance_init (GitgPreferencesInterface * self) {
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	self->priv = GITG_PREFERENCES_INTERFACE_GET_PRIVATE (self);
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 431 "gitg-preferences-interface.c"
}


static void gitg_preferences_interface_finalize (GObject* obj) {
	GitgPreferencesInterface * self;
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_PREFERENCES_INTERFACE, GitgPreferencesInterface);
#line 29 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_g_object_unref0 (self->priv->d_settings);
#line 32 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_g_object_unref0 (self->priv->d_horizontal_layout_enabled);
#line 35 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_g_object_unref0 (self->priv->d_default_activity);
#line 38 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_g_object_unref0 (self->priv->d_gravatar_enabled);
#line 41 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_g_object_unref0 (self->priv->d_monitoring_enabled);
#line 44 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	_g_object_unref0 (self->priv->d_diff_highlighting_enabled);
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	G_OBJECT_CLASS (gitg_preferences_interface_parent_class)->finalize (obj);
#line 453 "gitg-preferences-interface.c"
}


GType gitg_preferences_interface_get_type (void) {
	static volatile gsize gitg_preferences_interface_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_preferences_interface_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgPreferencesInterfaceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_preferences_interface_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgPreferencesInterface), 0, (GInstanceInitFunc) gitg_preferences_interface_instance_init, NULL };
		static const GInterfaceInfo gitg_ext_preferences_info = { (GInterfaceInitFunc) gitg_preferences_interface_gitg_ext_preferences_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_preferences_interface_type_id;
		gitg_preferences_interface_type_id = g_type_register_static (gtk_grid_get_type (), "GitgPreferencesInterface", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_preferences_interface_type_id, GITG_EXT_TYPE_PREFERENCES, &gitg_ext_preferences_info);
		g_once_init_leave (&gitg_preferences_interface_type_id__volatile, gitg_preferences_interface_type_id);
	}
	return gitg_preferences_interface_type_id__volatile;
}


static void _vala_gitg_preferences_interface_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgPreferencesInterface * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_PREFERENCES_INTERFACE, GitgPreferencesInterface);
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
	switch (property_id) {
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		case GITG_PREFERENCES_INTERFACE_WIDGET:
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		g_value_take_object (value, gitg_ext_preferences_get_widget ((GitgExtPreferences*) self));
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		break;
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		case GITG_PREFERENCES_INTERFACE_ID:
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		g_value_take_string (value, gitg_ext_preferences_get_id ((GitgExtPreferences*) self));
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		break;
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		case GITG_PREFERENCES_INTERFACE_DISPLAY_NAME:
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		g_value_take_string (value, gitg_ext_preferences_get_display_name ((GitgExtPreferences*) self));
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		break;
#line 494 "gitg-preferences-interface.c"
		default:
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 24 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-interface.vala"
		break;
#line 500 "gitg-preferences-interface.c"
	}
}



