/* gitg-preferences-dialog.c generated by valac 0.34.7, the Vala compiler
 * generated from gitg-preferences-dialog.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 <stdlib.h>
#include <string.h>
#include <libpeas/peas.h>


#define GITG_TYPE_PREFERENCES_DIALOG (gitg_preferences_dialog_get_type ())
#define GITG_PREFERENCES_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_PREFERENCES_DIALOG, GitgPreferencesDialog))
#define GITG_PREFERENCES_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_PREFERENCES_DIALOG, GitgPreferencesDialogClass))
#define GITG_IS_PREFERENCES_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_PREFERENCES_DIALOG))
#define GITG_IS_PREFERENCES_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_PREFERENCES_DIALOG))
#define GITG_PREFERENCES_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_PREFERENCES_DIALOG, GitgPreferencesDialogClass))

typedef struct _GitgPreferencesDialog GitgPreferencesDialog;
typedef struct _GitgPreferencesDialogClass GitgPreferencesDialogClass;
typedef struct _GitgPreferencesDialogPrivate GitgPreferencesDialogPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _Block81Data Block81Data;
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))

#define GITG_TYPE_PLUGINS_ENGINE (gitg_plugins_engine_get_type ())
#define GITG_PLUGINS_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_PLUGINS_ENGINE, GitgPluginsEngine))
#define GITG_PLUGINS_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_PLUGINS_ENGINE, GitgPluginsEngineClass))
#define GITG_IS_PLUGINS_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_PLUGINS_ENGINE))
#define GITG_IS_PLUGINS_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_PLUGINS_ENGINE))
#define GITG_PLUGINS_ENGINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_PLUGINS_ENGINE, GitgPluginsEngineClass))

typedef struct _GitgPluginsEngine GitgPluginsEngine;
typedef struct _GitgPluginsEngineClass GitgPluginsEngineClass;

#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;

#define GITG_TYPE_PREFERENCES_HISTORY (gitg_preferences_history_get_type ())
#define GITG_PREFERENCES_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_PREFERENCES_HISTORY, GitgPreferencesHistory))
#define GITG_PREFERENCES_HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_PREFERENCES_HISTORY, GitgPreferencesHistoryClass))
#define GITG_IS_PREFERENCES_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_PREFERENCES_HISTORY))
#define GITG_IS_PREFERENCES_HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_PREFERENCES_HISTORY))
#define GITG_PREFERENCES_HISTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_PREFERENCES_HISTORY, GitgPreferencesHistoryClass))

typedef struct _GitgPreferencesHistory GitgPreferencesHistory;
typedef struct _GitgPreferencesHistoryClass GitgPreferencesHistoryClass;

#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;

struct _GitgPreferencesDialog {
	GtkDialog parent_instance;
	GitgPreferencesDialogPrivate * priv;
};

struct _GitgPreferencesDialogClass {
	GtkDialogClass parent_class;
};

struct _GitgPreferencesDialogPrivate {
	GtkNotebook* d_notebook;
};

struct _Block81Data {
	int _ref_count_;
	GitgPreferencesDialog* self;
	GHashTable* pages;
};


static gpointer gitg_preferences_dialog_parent_class = NULL;
static GtkBuildableIface* gitg_preferences_dialog_gtk_buildable_parent_iface = NULL;

GType gitg_preferences_dialog_get_type (void) G_GNUC_CONST;
#define GITG_PREFERENCES_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_PREFERENCES_DIALOG, GitgPreferencesDialogPrivate))
enum  {
	GITG_PREFERENCES_DIALOG_DUMMY_PROPERTY
};
static void gitg_preferences_dialog_real_parser_finished (GtkBuildable* base, GtkBuilder* builder);
void gitg_preferences_dialog_populate (GitgPreferencesDialog* self);
static void gitg_preferences_dialog_add_page (GitgPreferencesDialog* self, GitgExtPreferences* pref, GHashTable* pages);
static Block81Data* block81_data_ref (Block81Data* _data81_);
static void block81_data_unref (void * _userdata_);
GType gitg_plugins_engine_get_type (void) G_GNUC_CONST;
GitgPluginsEngine* gitg_plugins_engine_get_default (void);
static void _g_free0_ (gpointer var);
static void _g_object_unref0_ (gpointer var);
GitgPreferencesInterface* gitg_preferences_interface_new (void);
GitgPreferencesInterface* gitg_preferences_interface_construct (GType object_type);
GType gitg_preferences_interface_get_type (void) G_GNUC_CONST;
GitgPreferencesHistory* gitg_preferences_history_new (void);
GitgPreferencesHistory* gitg_preferences_history_construct (GType object_type);
GType gitg_preferences_history_get_type (void) G_GNUC_CONST;
GitgPreferencesCommit* gitg_preferences_commit_new (void);
GitgPreferencesCommit* gitg_preferences_commit_construct (GType object_type);
GType gitg_preferences_commit_get_type (void) G_GNUC_CONST;
static void __lambda87_ (Block81Data* _data81_, PeasExtensionSet* s, PeasPluginInfo* info, PeasExtension* e);
static void ___lambda87__peas_extension_set_foreach_func (PeasExtensionSet* set, PeasPluginInfo* info, PeasExtension* exten, gpointer self);
GitgPreferencesDialog* gitg_preferences_dialog_new (void);
GitgPreferencesDialog* gitg_preferences_dialog_construct (GType object_type);
static void gitg_preferences_dialog_finalize (GObject* obj);


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


static void gitg_preferences_dialog_real_parser_finished (GtkBuildable* base, GtkBuilder* builder) {
	GitgPreferencesDialog * self;
	GtkBuilder* _tmp0_ = NULL;
	GObject* _tmp1_ = NULL;
	GtkNotebook* _tmp2_ = NULL;
	GtkBuilder* _tmp3_ = NULL;
#line 27 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	self = (GitgPreferencesDialog*) base;
#line 27 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	g_return_if_fail (builder != NULL);
#line 30 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp0_ = builder;
#line 30 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp1_ = gtk_builder_get_object (_tmp0_, "notebook_elements");
#line 30 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_notebook_get_type ()) ? ((GtkNotebook*) _tmp1_) : NULL);
#line 30 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_g_object_unref0 (self->priv->d_notebook);
#line 30 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	self->priv->d_notebook = _tmp2_;
#line 33 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	gitg_preferences_dialog_populate (self);
#line 35 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp3_ = builder;
#line 35 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	gitg_preferences_dialog_gtk_buildable_parent_iface->parser_finished ((GtkBuildable*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), _tmp3_);
#line 174 "gitg-preferences-dialog.c"
}


static void gitg_preferences_dialog_add_page (GitgPreferencesDialog* self, GitgExtPreferences* pref, GHashTable* pages) {
	GtkBox* page = NULL;
	GHashTable* _tmp0_ = NULL;
	GitgExtPreferences* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gconstpointer _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
	GtkBox* _tmp7_ = NULL;
	gboolean _tmp8_ = FALSE;
	GtkBox* _tmp27_ = NULL;
	GitgExtPreferences* _tmp28_ = NULL;
	GtkWidget* _tmp29_ = NULL;
	GtkWidget* _tmp30_ = NULL;
	GtkWidget* _tmp31_ = NULL;
	GtkNotebook* _tmp32_ = NULL;
	GtkBox* _tmp33_ = NULL;
	GValue _tmp34_ = {0};
#line 38 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	g_return_if_fail (self != NULL);
#line 38 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	g_return_if_fail (pref != NULL);
#line 38 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	g_return_if_fail (pages != NULL);
#line 42 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp0_ = pages;
#line 42 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp1_ = pref;
#line 42 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp2_ = gitg_ext_preferences_get_id (_tmp1_);
#line 42 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp3_ = _tmp2_;
#line 42 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp4_ = _tmp3_;
#line 42 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp6_ = g_hash_table_lookup_extended (_tmp0_, _tmp4_, NULL, &_tmp5_);
#line 42 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_g_object_unref0 (page);
#line 42 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp7_ = _g_object_ref0 (_tmp5_);
#line 42 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	page = _tmp7_;
#line 42 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp8_ = !_tmp6_;
#line 42 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_g_free0 (_tmp4_);
#line 42 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	if (_tmp8_) {
#line 227 "gitg-preferences-dialog.c"
		GtkBox* _tmp9_ = NULL;
		GtkBox* _tmp10_ = NULL;
		GHashTable* _tmp11_ = NULL;
		GitgExtPreferences* _tmp12_ = NULL;
		gchar* _tmp13_ = NULL;
		gchar* _tmp14_ = NULL;
		GtkBox* _tmp15_ = NULL;
		GtkBox* _tmp16_ = NULL;
		GtkLabel* lbl = NULL;
		GitgExtPreferences* _tmp17_ = NULL;
		gchar* _tmp18_ = NULL;
		gchar* _tmp19_ = NULL;
		gchar* _tmp20_ = NULL;
		GtkLabel* _tmp21_ = NULL;
		GtkLabel* _tmp22_ = NULL;
		GtkLabel* _tmp23_ = NULL;
		GtkNotebook* _tmp24_ = NULL;
		GtkBox* _tmp25_ = NULL;
		GtkLabel* _tmp26_ = NULL;
#line 44 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_tmp9_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
#line 44 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		g_object_ref_sink (_tmp9_);
#line 44 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_g_object_unref0 (page);
#line 44 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		page = _tmp9_;
#line 46 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_tmp10_ = page;
#line 46 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		gtk_widget_show ((GtkWidget*) _tmp10_);
#line 47 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_tmp11_ = pages;
#line 47 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_tmp12_ = pref;
#line 47 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_tmp13_ = gitg_ext_preferences_get_id (_tmp12_);
#line 47 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_tmp14_ = _tmp13_;
#line 47 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_tmp15_ = page;
#line 47 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_tmp16_ = _g_object_ref0 (_tmp15_);
#line 47 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		g_hash_table_insert (_tmp11_, _tmp14_, _tmp16_);
#line 49 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_tmp17_ = pref;
#line 49 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_tmp18_ = gitg_ext_preferences_get_display_name (_tmp17_);
#line 49 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_tmp19_ = _tmp18_;
#line 49 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_tmp20_ = _tmp19_;
#line 49 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_tmp21_ = (GtkLabel*) gtk_label_new (_tmp20_);
#line 49 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		g_object_ref_sink (_tmp21_);
#line 49 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_tmp22_ = _tmp21_;
#line 49 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_g_free0 (_tmp20_);
#line 49 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		lbl = _tmp22_;
#line 50 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_tmp23_ = lbl;
#line 50 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		gtk_widget_show ((GtkWidget*) _tmp23_);
#line 52 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_tmp24_ = self->priv->d_notebook;
#line 52 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_tmp25_ = page;
#line 52 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_tmp26_ = lbl;
#line 52 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		gtk_notebook_append_page (_tmp24_, (GtkWidget*) _tmp25_, (GtkWidget*) _tmp26_);
#line 42 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_g_object_unref0 (lbl);
#line 305 "gitg-preferences-dialog.c"
	}
#line 55 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp27_ = page;
#line 55 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp28_ = pref;
#line 55 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp29_ = gitg_ext_preferences_get_widget (_tmp28_);
#line 55 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp30_ = _tmp29_;
#line 55 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp31_ = _tmp30_;
#line 55 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	gtk_container_add ((GtkContainer*) _tmp27_, _tmp31_);
#line 55 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_g_object_unref0 (_tmp31_);
#line 57 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp32_ = self->priv->d_notebook;
#line 57 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp33_ = page;
#line 57 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	g_value_init (&_tmp34_, G_TYPE_BOOLEAN);
#line 57 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	g_value_set_boolean (&_tmp34_, TRUE);
#line 57 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	gtk_container_child_set_property ((GtkContainer*) _tmp32_, (GtkWidget*) _tmp33_, "tab-expand", &_tmp34_);
#line 57 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	G_IS_VALUE (&_tmp34_) ? (g_value_unset (&_tmp34_), NULL) : NULL;
#line 38 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_g_object_unref0 (page);
#line 335 "gitg-preferences-dialog.c"
}


static Block81Data* block81_data_ref (Block81Data* _data81_) {
#line 60 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	g_atomic_int_inc (&_data81_->_ref_count_);
#line 60 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	return _data81_;
#line 344 "gitg-preferences-dialog.c"
}


static void block81_data_unref (void * _userdata_) {
	Block81Data* _data81_;
	_data81_ = (Block81Data*) _userdata_;
#line 60 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	if (g_atomic_int_dec_and_test (&_data81_->_ref_count_)) {
#line 353 "gitg-preferences-dialog.c"
		GitgPreferencesDialog* self;
#line 60 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		self = _data81_->self;
#line 60 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_g_hash_table_unref0 (_data81_->pages);
#line 60 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		_g_object_unref0 (self);
#line 60 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
		g_slice_free (Block81Data, _data81_);
#line 363 "gitg-preferences-dialog.c"
	}
}


static void _g_free0_ (gpointer var) {
#line 65 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	var = (g_free (var), NULL);
#line 371 "gitg-preferences-dialog.c"
}


static void _g_object_unref0_ (gpointer var) {
#line 65 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 378 "gitg-preferences-dialog.c"
}


static void __lambda87_ (Block81Data* _data81_, PeasExtensionSet* s, PeasPluginInfo* info, PeasExtension* e) {
	GitgPreferencesDialog* self;
	PeasExtension* _tmp0_ = NULL;
#line 71 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	self = _data81_->self;
#line 71 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	g_return_if_fail (s != NULL);
#line 71 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	g_return_if_fail (info != NULL);
#line 71 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	g_return_if_fail (e != NULL);
#line 72 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp0_ = e;
#line 72 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	gitg_preferences_dialog_add_page (self, G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, GITG_EXT_TYPE_PREFERENCES) ? ((GitgExtPreferences*) _tmp0_) : NULL, _data81_->pages);
#line 397 "gitg-preferences-dialog.c"
}


static void ___lambda87__peas_extension_set_foreach_func (PeasExtensionSet* set, PeasPluginInfo* info, PeasExtension* exten, gpointer self) {
#line 71 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	__lambda87_ (self, set, info, exten);
#line 404 "gitg-preferences-dialog.c"
}


void gitg_preferences_dialog_populate (GitgPreferencesDialog* self) {
	Block81Data* _data81_;
	GitgPluginsEngine* engine = NULL;
	GitgPluginsEngine* _tmp0_ = NULL;
	PeasExtensionSet* ext = NULL;
	PeasExtensionSet* _tmp1_ = NULL;
	GHashFunc _tmp2_ = NULL;
	GEqualFunc _tmp3_ = NULL;
	GHashTable* _tmp4_ = NULL;
	GitgPreferencesInterface* _tmp5_ = NULL;
	GitgPreferencesInterface* _tmp6_ = NULL;
	GitgPreferencesHistory* _tmp7_ = NULL;
	GitgPreferencesHistory* _tmp8_ = NULL;
	GitgPreferencesCommit* _tmp9_ = NULL;
	GitgPreferencesCommit* _tmp10_ = NULL;
#line 60 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	g_return_if_fail (self != NULL);
#line 60 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_data81_ = g_slice_new0 (Block81Data);
#line 60 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_data81_->_ref_count_ = 1;
#line 60 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_data81_->self = g_object_ref (self);
#line 62 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp0_ = gitg_plugins_engine_get_default ();
#line 62 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	engine = _tmp0_;
#line 63 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp1_ = peas_extension_set_new ((PeasEngine*) engine, GITG_EXT_TYPE_PREFERENCES, NULL);
#line 63 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	ext = _tmp1_;
#line 65 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp2_ = g_str_hash;
#line 65 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp3_ = g_str_equal;
#line 65 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp4_ = g_hash_table_new_full (_tmp2_, _tmp3_, _g_free0_, _g_object_unref0_);
#line 65 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_data81_->pages = _tmp4_;
#line 67 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp5_ = gitg_preferences_interface_new ();
#line 67 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	g_object_ref_sink (_tmp5_);
#line 67 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp6_ = _tmp5_;
#line 67 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	gitg_preferences_dialog_add_page (self, (GitgExtPreferences*) _tmp6_, _data81_->pages);
#line 67 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_g_object_unref0 (_tmp6_);
#line 68 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp7_ = gitg_preferences_history_new ();
#line 68 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	g_object_ref_sink (_tmp7_);
#line 68 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp8_ = _tmp7_;
#line 68 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	gitg_preferences_dialog_add_page (self, (GitgExtPreferences*) _tmp8_, _data81_->pages);
#line 68 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_g_object_unref0 (_tmp8_);
#line 69 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp9_ = gitg_preferences_commit_new ();
#line 69 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	g_object_ref_sink (_tmp9_);
#line 69 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_tmp10_ = _tmp9_;
#line 69 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	gitg_preferences_dialog_add_page (self, (GitgExtPreferences*) _tmp10_, _data81_->pages);
#line 69 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_g_object_unref0 (_tmp10_);
#line 71 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	peas_extension_set_foreach (ext, ___lambda87__peas_extension_set_foreach_func, _data81_);
#line 60 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_g_object_unref0 (ext);
#line 60 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_g_object_unref0 (engine);
#line 60 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	block81_data_unref (_data81_);
#line 60 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_data81_ = NULL;
#line 487 "gitg-preferences-dialog.c"
}


GitgPreferencesDialog* gitg_preferences_dialog_construct (GType object_type) {
	GitgPreferencesDialog * self = NULL;
#line 23 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	self = (GitgPreferencesDialog*) g_object_new (object_type, NULL);
#line 23 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	return self;
#line 497 "gitg-preferences-dialog.c"
}


GitgPreferencesDialog* gitg_preferences_dialog_new (void) {
#line 23 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	return gitg_preferences_dialog_construct (GITG_TYPE_PREFERENCES_DIALOG);
#line 504 "gitg-preferences-dialog.c"
}


static void gitg_preferences_dialog_class_init (GitgPreferencesDialogClass * klass) {
#line 23 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	gitg_preferences_dialog_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	g_type_class_add_private (klass, sizeof (GitgPreferencesDialogPrivate));
#line 23 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_preferences_dialog_finalize;
#line 515 "gitg-preferences-dialog.c"
}


static void gitg_preferences_dialog_gtk_buildable_interface_init (GtkBuildableIface * iface) {
#line 23 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	gitg_preferences_dialog_gtk_buildable_parent_iface = g_type_interface_peek_parent (iface);
#line 23 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	iface->parser_finished = (void (*)(GtkBuildable*, GtkBuilder*)) gitg_preferences_dialog_real_parser_finished;
#line 524 "gitg-preferences-dialog.c"
}


static void gitg_preferences_dialog_instance_init (GitgPreferencesDialog * self) {
#line 23 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	self->priv = GITG_PREFERENCES_DIALOG_GET_PRIVATE (self);
#line 531 "gitg-preferences-dialog.c"
}


static void gitg_preferences_dialog_finalize (GObject* obj) {
	GitgPreferencesDialog * self;
#line 23 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_PREFERENCES_DIALOG, GitgPreferencesDialog);
#line 25 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	_g_object_unref0 (self->priv->d_notebook);
#line 23 "/home/jesse/dev/gitg/gitg/preferences/gitg-preferences-dialog.vala"
	G_OBJECT_CLASS (gitg_preferences_dialog_parent_class)->finalize (obj);
#line 543 "gitg-preferences-dialog.c"
}


GType gitg_preferences_dialog_get_type (void) {
	static volatile gsize gitg_preferences_dialog_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_preferences_dialog_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgPreferencesDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_preferences_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgPreferencesDialog), 0, (GInstanceInitFunc) gitg_preferences_dialog_instance_init, NULL };
		static const GInterfaceInfo gtk_buildable_info = { (GInterfaceInitFunc) gitg_preferences_dialog_gtk_buildable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_preferences_dialog_type_id;
		gitg_preferences_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "GitgPreferencesDialog", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_preferences_dialog_type_id, GTK_TYPE_BUILDABLE, &gtk_buildable_info);
		g_once_init_leave (&gitg_preferences_dialog_type_id__volatile, gitg_preferences_dialog_type_id);
	}
	return gitg_preferences_dialog_type_id__volatile;
}



