/* gitg-author-details-dialog.c generated by valac 0.30.0.38-a55d, the Vala compiler
 * generated from gitg-author-details-dialog.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2013 - Sindhu S
 *
 * 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 <stdlib.h>
#include <string.h>
#include <libgit2-glib/ggit.h>
#include <config.h>
#include <gio/gio.h>
#include <glib/gi18n-lib.h>


#define GITG_TYPE_AUTHOR_DETAILS_DIALOG (gitg_author_details_dialog_get_type ())
#define GITG_AUTHOR_DETAILS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_AUTHOR_DETAILS_DIALOG, GitgAuthorDetailsDialog))
#define GITG_AUTHOR_DETAILS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_AUTHOR_DETAILS_DIALOG, GitgAuthorDetailsDialogClass))
#define GITG_IS_AUTHOR_DETAILS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_AUTHOR_DETAILS_DIALOG))
#define GITG_IS_AUTHOR_DETAILS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_AUTHOR_DETAILS_DIALOG))
#define GITG_AUTHOR_DETAILS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_AUTHOR_DETAILS_DIALOG, GitgAuthorDetailsDialogClass))

typedef struct _GitgAuthorDetailsDialog GitgAuthorDetailsDialog;
typedef struct _GitgAuthorDetailsDialogClass GitgAuthorDetailsDialogClass;
typedef struct _GitgAuthorDetailsDialogPrivate GitgAuthorDetailsDialogPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

#define GITG_TYPE_WINDOW (gitg_window_get_type ())
#define GITG_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_WINDOW, GitgWindow))
#define GITG_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_WINDOW, GitgWindowClass))
#define GITG_IS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_WINDOW))
#define GITG_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_WINDOW))
#define GITG_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_WINDOW, GitgWindowClass))

typedef struct _GitgWindow GitgWindow;
typedef struct _GitgWindowClass GitgWindowClass;
#define _ggit_config_entry_unref0(var) ((var == NULL) ? NULL : (var = (ggit_config_entry_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _Block34Data Block34Data;

struct _GitgAuthorDetailsDialog {
	GtkDialog parent_instance;
	GitgAuthorDetailsDialogPrivate * priv;
};

struct _GitgAuthorDetailsDialogClass {
	GtkDialogClass parent_class;
};

struct _GitgAuthorDetailsDialogPrivate {
	GtkEntry* d_entry_name;
	GtkEntry* d_entry_email;
	GtkLabel* d_label_info;
	GtkCheckButton* d_checkbutton_override_global;
	gchar* d_repository_name;
	GgitConfig* d_config;
};

struct _Block34Data {
	int _ref_count_;
	GitgAuthorDetailsDialog* self;
	GtkMessageDialog* error_dialog;
};


static gpointer gitg_author_details_dialog_parent_class = NULL;

GType gitg_author_details_dialog_get_type (void) G_GNUC_CONST;
#define GITG_AUTHOR_DETAILS_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_AUTHOR_DETAILS_DIALOG, GitgAuthorDetailsDialogPrivate))
enum  {
	GITG_AUTHOR_DETAILS_DIALOG_DUMMY_PROPERTY
};
#define GITG_AUTHOR_DETAILS_DIALOG_version VERSION
GitgAuthorDetailsDialog* gitg_author_details_dialog_new (GtkWindow* parent, GgitConfig* config, const gchar* repository_name);
GitgAuthorDetailsDialog* gitg_author_details_dialog_construct (GType object_type, GtkWindow* parent, GgitConfig* config, const gchar* repository_name);
GType gitg_window_get_type (void) G_GNUC_CONST;
GitgAuthorDetailsDialog* gitg_author_details_dialog_show_global (GitgWindow* window);
static void gitg_author_details_dialog_build_global (GitgAuthorDetailsDialog* self);
static gboolean gitg_author_details_dialog_config_is_local (GitgAuthorDetailsDialog* self, const gchar* name);
static void gitg_author_details_dialog_build_repository (GitgAuthorDetailsDialog* self);
static void gitg_author_details_dialog_update_sensitivity (GitgAuthorDetailsDialog* self);
static void _gitg_author_details_dialog_update_sensitivity_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void gitg_author_details_dialog_update_entries (GitgAuthorDetailsDialog* self, GgitConfig* config);
static void gitg_author_details_dialog_real_show (GtkWidget* base);
static gchar* gitg_author_details_dialog_read_config_string (GitgAuthorDetailsDialog* self, GgitConfig* config, const gchar* name, const gchar* defval);
static void gitg_author_details_dialog_delete_local_entries (GitgAuthorDetailsDialog* self);
static void gitg_author_details_dialog_real_response (GtkDialog* base, gint id);
static void gitg_author_details_dialog_show_config_error (GitgAuthorDetailsDialog* self, const gchar* primary_message, const gchar* secondary_message);
static Block34Data* block34_data_ref (Block34Data* _data34_);
static void block34_data_unref (void * _userdata_);
static void __lambda98_ (Block34Data* _data34_, GtkDialog* d, gint id);
static void ___lambda98__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
static void gitg_author_details_dialog_finalize (GObject* obj);


static gpointer _g_object_ref0 (gpointer self) {
#line 54 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	return self ? g_object_ref (self) : NULL;
#line 119 "gitg-author-details-dialog.c"
}


GitgAuthorDetailsDialog* gitg_author_details_dialog_construct (GType object_type, GtkWindow* parent, GgitConfig* config, const gchar* repository_name) {
	GitgAuthorDetailsDialog * self = NULL;
	GtkWindow* _tmp0_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	GgitConfig* _tmp4_ = NULL;
	GgitConfig* _tmp5_ = NULL;
#line 44 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_val_if_fail (config != NULL, NULL);
#line 46 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	self = (GitgAuthorDetailsDialog*) g_object_new (object_type, "use-header-bar", 1, NULL);
#line 48 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp0_ = parent;
#line 48 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	if (_tmp0_ != NULL) {
#line 138 "gitg-author-details-dialog.c"
		GtkWindow* _tmp1_ = NULL;
#line 50 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp1_ = parent;
#line 50 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		gtk_window_set_transient_for ((GtkWindow*) self, _tmp1_);
#line 144 "gitg-author-details-dialog.c"
	}
#line 53 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp2_ = repository_name;
#line 53 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 53 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_g_free0 (self->priv->d_repository_name);
#line 53 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	self->priv->d_repository_name = _tmp3_;
#line 54 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp4_ = config;
#line 54 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp5_ = _g_object_ref0 (_tmp4_);
#line 54 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_g_object_unref0 (self->priv->d_config);
#line 54 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	self->priv->d_config = _tmp5_;
#line 44 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	return self;
#line 164 "gitg-author-details-dialog.c"
}


GitgAuthorDetailsDialog* gitg_author_details_dialog_new (GtkWindow* parent, GgitConfig* config, const gchar* repository_name) {
#line 44 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	return gitg_author_details_dialog_construct (GITG_TYPE_AUTHOR_DETAILS_DIALOG, parent, config, repository_name);
#line 171 "gitg-author-details-dialog.c"
}


GitgAuthorDetailsDialog* gitg_author_details_dialog_show_global (GitgWindow* window) {
	GitgAuthorDetailsDialog* result = NULL;
	GFile* global_config_file = NULL;
	GFile* _tmp0_ = NULL;
	GFile* _tmp1_ = NULL;
	GgitConfig* global_config = NULL;
	GitgAuthorDetailsDialog* author_details = NULL;
	GitgWindow* _tmp6_ = NULL;
	GgitConfig* _tmp7_ = NULL;
	GitgAuthorDetailsDialog* _tmp8_ = NULL;
	GitgAuthorDetailsDialog* _tmp9_ = NULL;
	GError * _inner_error_ = NULL;
#line 57 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_val_if_fail (window != NULL, NULL);
#line 59 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp0_ = ggit_config_find_global ();
#line 59 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	global_config_file = _tmp0_;
#line 61 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp1_ = global_config_file;
#line 61 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	if (_tmp1_ == NULL) {
#line 63 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		result = NULL;
#line 63 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (global_config_file);
#line 63 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		return result;
#line 203 "gitg-author-details-dialog.c"
	}
	{
		GgitConfig* _tmp2_ = NULL;
		GFile* _tmp3_ = NULL;
		GgitConfig* _tmp4_ = NULL;
		GgitConfig* _tmp5_ = NULL;
#line 70 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp3_ = global_config_file;
#line 70 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp4_ = ggit_config_new_from_file (_tmp3_, &_inner_error_);
#line 70 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp2_ = _tmp4_;
#line 70 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 218 "gitg-author-details-dialog.c"
			goto __catch47_g_error;
		}
#line 70 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp5_ = _tmp2_;
#line 70 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp2_ = NULL;
#line 70 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (global_config);
#line 70 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		global_config = _tmp5_;
#line 68 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (_tmp2_);
#line 231 "gitg-author-details-dialog.c"
	}
	goto __finally47;
	__catch47_g_error:
	{
#line 68 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 68 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_inner_error_ = NULL;
#line 74 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		result = NULL;
#line 74 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (global_config);
#line 74 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (global_config_file);
#line 74 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		return result;
#line 248 "gitg-author-details-dialog.c"
	}
	__finally47:
#line 68 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 68 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (global_config);
#line 68 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (global_config_file);
#line 68 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 68 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 68 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		return NULL;
#line 263 "gitg-author-details-dialog.c"
	}
#line 77 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp6_ = window;
#line 77 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp7_ = global_config;
#line 77 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp8_ = gitg_author_details_dialog_new ((GtkWindow*) _tmp6_, _tmp7_, NULL);
#line 77 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_object_ref_sink (_tmp8_);
#line 77 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	author_details = _tmp8_;
#line 78 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp9_ = author_details;
#line 78 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_show ((GtkWidget*) _tmp9_);
#line 80 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	result = author_details;
#line 80 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_g_object_unref0 (global_config);
#line 80 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_g_object_unref0 (global_config_file);
#line 80 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	return result;
#line 287 "gitg-author-details-dialog.c"
}


static void gitg_author_details_dialog_build_global (GitgAuthorDetailsDialog* self) {
	const gchar* _tmp0_ = NULL;
	GtkLabel* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	GtkLabel* _tmp3_ = NULL;
#line 83 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_if_fail (self != NULL);
#line 85 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp0_ = _ ("Author Details");
#line 85 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_window_set_title ((GtkWindow*) self, _tmp0_);
#line 86 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp1_ = self->priv->d_label_info;
#line 86 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp2_ = _ ("Enter default details used for all repositories:");
#line 86 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_label_set_label (_tmp1_, _tmp2_);
#line 87 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp3_ = self->priv->d_label_info;
#line 87 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_show ((GtkWidget*) _tmp3_);
#line 312 "gitg-author-details-dialog.c"
}


static gboolean gitg_author_details_dialog_config_is_local (GitgAuthorDetailsDialog* self, const gchar* name) {
	gboolean result = FALSE;
	GError * _inner_error_ = NULL;
#line 90 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 90 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_val_if_fail (name != NULL, FALSE);
#line 323 "gitg-author-details-dialog.c"
	{
		GgitConfigEntry* entry = NULL;
		GgitConfig* _tmp0_ = NULL;
		const gchar* _tmp1_ = NULL;
		GgitConfigEntry* _tmp2_ = NULL;
		GgitConfigLevel _tmp3_ = 0;
#line 94 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp0_ = self->priv->d_config;
#line 94 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp1_ = name;
#line 94 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp2_ = ggit_config_get_entry (_tmp0_, _tmp1_, &_inner_error_);
#line 94 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		entry = _tmp2_;
#line 94 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 340 "gitg-author-details-dialog.c"
			goto __catch48_g_error;
		}
#line 95 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp3_ = ggit_config_entry_get_level (entry);
#line 95 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		result = _tmp3_ == GGIT_CONFIG_LEVEL_LOCAL;
#line 95 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_ggit_config_entry_unref0 (entry);
#line 95 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		return result;
#line 351 "gitg-author-details-dialog.c"
	}
	goto __finally48;
	__catch48_g_error:
	{
#line 92 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 92 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_inner_error_ = NULL;
#line 99 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		result = FALSE;
#line 99 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		return result;
#line 364 "gitg-author-details-dialog.c"
	}
	__finally48:
#line 92 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 92 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_clear_error (&_inner_error_);
#line 92 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	return FALSE;
#line 373 "gitg-author-details-dialog.c"
}


static void _gitg_author_details_dialog_update_sensitivity_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 111 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gitg_author_details_dialog_update_sensitivity ((GitgAuthorDetailsDialog*) self);
#line 380 "gitg-author-details-dialog.c"
}


static void gitg_author_details_dialog_build_repository (GitgAuthorDetailsDialog* self) {
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	GtkCheckButton* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gboolean _tmp9_ = FALSE;
	gboolean _tmp10_ = FALSE;
	GtkCheckButton* _tmp12_ = NULL;
	GtkCheckButton* _tmp13_ = NULL;
	GtkCheckButton* _tmp14_ = NULL;
#line 103 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_if_fail (self != NULL);
#line 105 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp0_ = self->priv->d_repository_name;
#line 105 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp1_ = _ ("Author Details");
#line 105 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp2_ = g_strdup_printf ("%s - %s", _tmp0_, _tmp1_);
#line 105 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp3_ = _tmp2_;
#line 105 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_window_set_title ((GtkWindow*) self, _tmp3_);
#line 105 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_g_free0 (_tmp3_);
#line 108 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp4_ = self->priv->d_checkbutton_override_global;
#line 108 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp5_ = _ ("Override global details for repository '%s':");
#line 108 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp6_ = self->priv->d_repository_name;
#line 108 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp7_ = g_strdup_printf (_tmp5_, _tmp6_);
#line 108 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp8_ = _tmp7_;
#line 108 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_button_set_label ((GtkButton*) _tmp4_, _tmp8_);
#line 108 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_g_free0 (_tmp8_);
#line 109 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp10_ = gitg_author_details_dialog_config_is_local (self, "user.name");
#line 109 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	if (_tmp10_) {
#line 109 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp9_ = TRUE;
#line 433 "gitg-author-details-dialog.c"
	} else {
		gboolean _tmp11_ = FALSE;
#line 109 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp11_ = gitg_author_details_dialog_config_is_local (self, "user.email");
#line 109 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp9_ = _tmp11_;
#line 440 "gitg-author-details-dialog.c"
	}
#line 109 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp12_ = self->priv->d_checkbutton_override_global;
#line 109 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_toggle_button_set_active ((GtkToggleButton*) _tmp12_, _tmp9_);
#line 111 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp13_ = self->priv->d_checkbutton_override_global;
#line 111 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_signal_connect_object ((GObject*) _tmp13_, "notify::active", (GCallback) _gitg_author_details_dialog_update_sensitivity_g_object_notify, self, 0);
#line 112 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp14_ = self->priv->d_checkbutton_override_global;
#line 112 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_show ((GtkWidget*) _tmp14_);
#line 114 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gitg_author_details_dialog_update_sensitivity (self);
#line 456 "gitg-author-details-dialog.c"
}


static void gitg_author_details_dialog_update_sensitivity (GitgAuthorDetailsDialog* self) {
	GtkEntry* _tmp0_ = NULL;
	GtkCheckButton* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_ = FALSE;
	GtkEntry* _tmp4_ = NULL;
	GtkCheckButton* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
	gboolean _tmp7_ = FALSE;
	GgitConfig* config = NULL;
	GgitConfig* _tmp17_ = NULL;
	GError * _inner_error_ = NULL;
#line 117 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_if_fail (self != NULL);
#line 119 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp0_ = self->priv->d_entry_name;
#line 119 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp1_ = self->priv->d_checkbutton_override_global;
#line 119 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp2_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp1_);
#line 119 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp3_ = _tmp2_;
#line 119 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp0_, _tmp3_);
#line 120 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp4_ = self->priv->d_entry_email;
#line 120 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp5_ = self->priv->d_checkbutton_override_global;
#line 120 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp6_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp5_);
#line 120 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp7_ = _tmp6_;
#line 120 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp4_, _tmp7_);
#line 122 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	config = NULL;
#line 496 "gitg-author-details-dialog.c"
	{
		GtkCheckButton* _tmp8_ = NULL;
		gboolean _tmp9_ = FALSE;
		gboolean _tmp10_ = FALSE;
#line 126 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp8_ = self->priv->d_checkbutton_override_global;
#line 126 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp9_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp8_);
#line 126 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp10_ = _tmp9_;
#line 126 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		if (!_tmp10_) {
#line 509 "gitg-author-details-dialog.c"
			GgitConfig* _tmp11_ = NULL;
			GgitConfig* _tmp12_ = NULL;
			GgitConfig* _tmp13_ = NULL;
			GgitConfig* _tmp14_ = NULL;
#line 128 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp12_ = self->priv->d_config;
#line 128 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp13_ = ggit_config_open_level (_tmp12_, GGIT_CONFIG_LEVEL_GLOBAL, &_inner_error_);
#line 128 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp11_ = _tmp13_;
#line 128 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 522 "gitg-author-details-dialog.c"
				goto __catch49_g_error;
			}
#line 128 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp14_ = _tmp11_;
#line 128 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp11_ = NULL;
#line 128 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			_g_object_unref0 (config);
#line 128 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			config = _tmp14_;
#line 126 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			_g_object_unref0 (_tmp11_);
#line 535 "gitg-author-details-dialog.c"
		} else {
			GgitConfig* _tmp15_ = NULL;
			GgitConfig* _tmp16_ = NULL;
#line 132 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp15_ = self->priv->d_config;
#line 132 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp16_ = _g_object_ref0 (_tmp15_);
#line 132 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			_g_object_unref0 (config);
#line 132 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			config = _tmp16_;
#line 547 "gitg-author-details-dialog.c"
		}
	}
	goto __finally49;
	__catch49_g_error:
	{
#line 124 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 124 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_inner_error_ = NULL;
#line 557 "gitg-author-details-dialog.c"
	}
	__finally49:
#line 124 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 124 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (config);
#line 124 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 124 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 124 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		return;
#line 570 "gitg-author-details-dialog.c"
	}
#line 136 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp17_ = config;
#line 136 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	if (_tmp17_ != NULL) {
#line 576 "gitg-author-details-dialog.c"
		GgitConfig* _tmp18_ = NULL;
#line 138 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp18_ = config;
#line 138 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		gitg_author_details_dialog_update_entries (self, _tmp18_);
#line 582 "gitg-author-details-dialog.c"
	}
#line 117 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_g_object_unref0 (config);
#line 586 "gitg-author-details-dialog.c"
}


static void gitg_author_details_dialog_real_show (GtkWidget* base) {
	GitgAuthorDetailsDialog * self;
	const gchar* _tmp0_ = NULL;
	GgitConfig* _tmp1_ = NULL;
#line 142 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	self = (GitgAuthorDetailsDialog*) base;
#line 144 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	GTK_WIDGET_CLASS (gitg_author_details_dialog_parent_class)->show ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
#line 146 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp0_ = self->priv->d_repository_name;
#line 146 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	if (_tmp0_ == NULL) {
#line 148 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		gitg_author_details_dialog_build_global (self);
#line 604 "gitg-author-details-dialog.c"
	} else {
#line 152 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		gitg_author_details_dialog_build_repository (self);
#line 608 "gitg-author-details-dialog.c"
	}
#line 155 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp1_ = self->priv->d_config;
#line 155 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gitg_author_details_dialog_update_entries (self, _tmp1_);
#line 614 "gitg-author-details-dialog.c"
}


static gchar* gitg_author_details_dialog_read_config_string (GitgAuthorDetailsDialog* self, GgitConfig* config, const gchar* name, const gchar* defval) {
	gchar* result = NULL;
	gchar* ret = NULL;
	const gchar* _tmp10_ = NULL;
	const gchar* _tmp11_ = NULL;
	gchar* _tmp14_ = NULL;
	GError * _inner_error_ = NULL;
#line 158 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 158 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_val_if_fail (config != NULL, NULL);
#line 158 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 158 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_val_if_fail (defval != NULL, NULL);
#line 160 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	ret = NULL;
#line 635 "gitg-author-details-dialog.c"
	{
		GgitConfig* _tmp0_ = NULL;
		GgitConfig* _tmp1_ = NULL;
		GgitConfig* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		GgitConfig* _tmp4_ = NULL;
		GgitConfig* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
#line 164 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp1_ = config;
#line 164 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp2_ = ggit_config_snapshot (_tmp1_, &_inner_error_);
#line 164 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp0_ = _tmp2_;
#line 164 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 655 "gitg-author-details-dialog.c"
			goto __catch50_g_error;
		}
#line 164 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp4_ = _tmp0_;
#line 164 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp0_ = NULL;
#line 164 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp5_ = _tmp4_;
#line 164 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp6_ = name;
#line 164 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp7_ = ggit_config_get_string (_tmp5_, _tmp6_, &_inner_error_);
#line 164 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp8_ = _tmp7_;
#line 164 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (_tmp5_);
#line 164 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp3_ = _tmp8_;
#line 164 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 164 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			_g_object_unref0 (_tmp0_);
#line 678 "gitg-author-details-dialog.c"
			goto __catch50_g_error;
		}
#line 164 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp9_ = g_strdup (_tmp3_);
#line 164 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_g_free0 (ret);
#line 164 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		ret = _tmp9_;
#line 162 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (_tmp0_);
#line 689 "gitg-author-details-dialog.c"
	}
	goto __finally50;
	__catch50_g_error:
	{
#line 162 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 162 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_inner_error_ = NULL;
#line 698 "gitg-author-details-dialog.c"
	}
	__finally50:
#line 162 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 162 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_g_free0 (ret);
#line 162 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 162 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 162 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		return NULL;
#line 711 "gitg-author-details-dialog.c"
	}
#line 167 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp11_ = ret;
#line 167 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	if (_tmp11_ != NULL) {
#line 717 "gitg-author-details-dialog.c"
		const gchar* _tmp12_ = NULL;
#line 167 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp12_ = ret;
#line 167 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp10_ = _tmp12_;
#line 723 "gitg-author-details-dialog.c"
	} else {
		const gchar* _tmp13_ = NULL;
#line 167 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp13_ = defval;
#line 167 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp10_ = _tmp13_;
#line 730 "gitg-author-details-dialog.c"
	}
#line 167 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp14_ = g_strdup (_tmp10_);
#line 167 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	result = _tmp14_;
#line 167 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_g_free0 (ret);
#line 167 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	return result;
#line 740 "gitg-author-details-dialog.c"
}


static gchar* string_chomp (const gchar* self) {
	gchar* result = NULL;
	gchar* _result_ = NULL;
	gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
#line 1099 "/opt/gnome/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1100 "/opt/gnome/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp0_ = g_strdup (self);
#line 1100 "/opt/gnome/share/vala-0.32/vapi/glib-2.0.vapi"
	_result_ = _tmp0_;
#line 1101 "/opt/gnome/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp1_ = _result_;
#line 1101 "/opt/gnome/share/vala-0.32/vapi/glib-2.0.vapi"
	g_strchomp (_tmp1_);
#line 1102 "/opt/gnome/share/vala-0.32/vapi/glib-2.0.vapi"
	result = _result_;
#line 1102 "/opt/gnome/share/vala-0.32/vapi/glib-2.0.vapi"
	return result;
#line 763 "gitg-author-details-dialog.c"
}


static void gitg_author_details_dialog_update_entries (GitgAuthorDetailsDialog* self, GgitConfig* config) {
	GtkEntry* _tmp0_ = NULL;
	GgitConfig* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	GtkEntry* _tmp6_ = NULL;
	GgitConfig* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
#line 170 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_if_fail (self != NULL);
#line 170 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_if_fail (config != NULL);
#line 172 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp0_ = self->priv->d_entry_name;
#line 172 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp1_ = config;
#line 172 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp2_ = gitg_author_details_dialog_read_config_string (self, _tmp1_, "user.name", "");
#line 172 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp3_ = _tmp2_;
#line 172 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp4_ = string_chomp (_tmp3_);
#line 172 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp5_ = _tmp4_;
#line 172 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_entry_set_text (_tmp0_, _tmp5_);
#line 172 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_g_free0 (_tmp5_);
#line 172 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_g_free0 (_tmp3_);
#line 173 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp6_ = self->priv->d_entry_email;
#line 173 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp7_ = config;
#line 173 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp8_ = gitg_author_details_dialog_read_config_string (self, _tmp7_, "user.email", "");
#line 173 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp9_ = _tmp8_;
#line 173 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp10_ = string_chomp (_tmp9_);
#line 173 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp11_ = _tmp10_;
#line 173 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_entry_set_text (_tmp6_, _tmp11_);
#line 173 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_g_free0 (_tmp11_);
#line 173 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_g_free0 (_tmp9_);
#line 820 "gitg-author-details-dialog.c"
}


static void gitg_author_details_dialog_delete_local_entries (GitgAuthorDetailsDialog* self) {
	GError * _inner_error_ = NULL;
#line 176 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_if_fail (self != NULL);
#line 828 "gitg-author-details-dialog.c"
	{
		GgitConfigEntry* _tmp0_ = NULL;
		GgitConfig* _tmp1_ = NULL;
		GgitConfigEntry* _tmp2_ = NULL;
		GgitConfigEntry* _tmp3_ = NULL;
		GgitConfigEntry* _tmp4_ = NULL;
		GgitConfigLevel _tmp5_ = 0;
		gboolean _tmp6_ = FALSE;
#line 180 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp1_ = self->priv->d_config;
#line 180 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp2_ = ggit_config_get_entry (_tmp1_, "user.name", &_inner_error_);
#line 180 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp0_ = _tmp2_;
#line 180 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 845 "gitg-author-details-dialog.c"
			goto __catch51_g_error;
		}
#line 180 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp3_ = _tmp0_;
#line 180 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp0_ = NULL;
#line 180 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp4_ = _tmp3_;
#line 180 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp5_ = ggit_config_entry_get_level (_tmp4_);
#line 180 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp6_ = _tmp5_ == GGIT_CONFIG_LEVEL_LOCAL;
#line 180 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_ggit_config_entry_unref0 (_tmp4_);
#line 180 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		if (_tmp6_) {
#line 862 "gitg-author-details-dialog.c"
			GgitConfig* _tmp7_ = NULL;
#line 182 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp7_ = self->priv->d_config;
#line 182 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			ggit_config_delete_entry (_tmp7_, "user.name", &_inner_error_);
#line 182 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 182 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
				_ggit_config_entry_unref0 (_tmp0_);
#line 872 "gitg-author-details-dialog.c"
				goto __catch51_g_error;
			}
		}
#line 178 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_ggit_config_entry_unref0 (_tmp0_);
#line 878 "gitg-author-details-dialog.c"
	}
	goto __finally51;
	__catch51_g_error:
	{
#line 178 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 178 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_inner_error_ = NULL;
#line 887 "gitg-author-details-dialog.c"
	}
	__finally51:
#line 178 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 178 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 178 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 178 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		return;
#line 898 "gitg-author-details-dialog.c"
	}
	{
		GgitConfigEntry* _tmp8_ = NULL;
		GgitConfig* _tmp9_ = NULL;
		GgitConfigEntry* _tmp10_ = NULL;
		GgitConfigEntry* _tmp11_ = NULL;
		GgitConfigEntry* _tmp12_ = NULL;
		GgitConfigLevel _tmp13_ = 0;
		gboolean _tmp14_ = FALSE;
#line 188 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp9_ = self->priv->d_config;
#line 188 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp10_ = ggit_config_get_entry (_tmp9_, "user.email", &_inner_error_);
#line 188 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp8_ = _tmp10_;
#line 188 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 916 "gitg-author-details-dialog.c"
			goto __catch52_g_error;
		}
#line 188 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp11_ = _tmp8_;
#line 188 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp8_ = NULL;
#line 188 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp12_ = _tmp11_;
#line 188 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp13_ = ggit_config_entry_get_level (_tmp12_);
#line 188 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp14_ = _tmp13_ == GGIT_CONFIG_LEVEL_LOCAL;
#line 188 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_ggit_config_entry_unref0 (_tmp12_);
#line 188 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		if (_tmp14_) {
#line 933 "gitg-author-details-dialog.c"
			GgitConfig* _tmp15_ = NULL;
#line 190 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp15_ = self->priv->d_config;
#line 190 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			ggit_config_delete_entry (_tmp15_, "user.email", &_inner_error_);
#line 190 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 190 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
				_ggit_config_entry_unref0 (_tmp8_);
#line 943 "gitg-author-details-dialog.c"
				goto __catch52_g_error;
			}
		}
#line 186 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_ggit_config_entry_unref0 (_tmp8_);
#line 949 "gitg-author-details-dialog.c"
	}
	goto __finally52;
	__catch52_g_error:
	{
#line 186 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 186 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_inner_error_ = NULL;
#line 958 "gitg-author-details-dialog.c"
	}
	__finally52:
#line 186 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 186 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 186 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 186 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		return;
#line 969 "gitg-author-details-dialog.c"
	}
}


static void gitg_author_details_dialog_real_response (GtkDialog* base, gint id) {
	GitgAuthorDetailsDialog * self;
	gint _tmp0_ = 0;
	GError * _inner_error_ = NULL;
#line 195 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	self = (GitgAuthorDetailsDialog*) base;
#line 196 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp0_ = id;
#line 196 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	if (_tmp0_ == ((gint) GTK_RESPONSE_OK)) {
#line 984 "gitg-author-details-dialog.c"
		{
			const gchar* _tmp1_ = NULL;
#line 200 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp1_ = self->priv->d_repository_name;
#line 200 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			if (_tmp1_ != NULL) {
#line 991 "gitg-author-details-dialog.c"
				GtkCheckButton* _tmp2_ = NULL;
				gboolean _tmp3_ = FALSE;
				gboolean _tmp4_ = FALSE;
#line 202 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
				_tmp2_ = self->priv->d_checkbutton_override_global;
#line 202 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
				_tmp3_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp2_);
#line 202 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
				_tmp4_ = _tmp3_;
#line 202 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
				if (_tmp4_) {
#line 1003 "gitg-author-details-dialog.c"
					GgitConfig* _tmp5_ = NULL;
					GtkEntry* _tmp6_ = NULL;
					const gchar* _tmp7_ = NULL;
					GgitConfig* _tmp8_ = NULL;
					GtkEntry* _tmp9_ = NULL;
					const gchar* _tmp10_ = NULL;
#line 204 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
					_tmp5_ = self->priv->d_config;
#line 204 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
					_tmp6_ = self->priv->d_entry_name;
#line 204 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
					_tmp7_ = gtk_entry_get_text (_tmp6_);
#line 204 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
					ggit_config_set_string (_tmp5_, "user.name", _tmp7_, &_inner_error_);
#line 204 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1020 "gitg-author-details-dialog.c"
						goto __catch53_g_error;
					}
#line 205 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
					_tmp8_ = self->priv->d_config;
#line 205 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
					_tmp9_ = self->priv->d_entry_email;
#line 205 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
					_tmp10_ = gtk_entry_get_text (_tmp9_);
#line 205 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
					ggit_config_set_string (_tmp8_, "user.email", _tmp10_, &_inner_error_);
#line 205 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1033 "gitg-author-details-dialog.c"
						goto __catch53_g_error;
					}
				} else {
#line 209 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
					gitg_author_details_dialog_delete_local_entries (self);
#line 1039 "gitg-author-details-dialog.c"
				}
			} else {
				GgitConfig* _tmp11_ = NULL;
				GtkEntry* _tmp12_ = NULL;
				const gchar* _tmp13_ = NULL;
				GgitConfig* _tmp14_ = NULL;
				GtkEntry* _tmp15_ = NULL;
				const gchar* _tmp16_ = NULL;
#line 214 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
				_tmp11_ = self->priv->d_config;
#line 214 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
				_tmp12_ = self->priv->d_entry_name;
#line 214 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
				_tmp13_ = gtk_entry_get_text (_tmp12_);
#line 214 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
				ggit_config_set_string (_tmp11_, "user.name", _tmp13_, &_inner_error_);
#line 214 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1058 "gitg-author-details-dialog.c"
					goto __catch53_g_error;
				}
#line 215 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
				_tmp14_ = self->priv->d_config;
#line 215 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
				_tmp15_ = self->priv->d_entry_email;
#line 215 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
				_tmp16_ = gtk_entry_get_text (_tmp15_);
#line 215 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
				ggit_config_set_string (_tmp14_, "user.email", _tmp16_, &_inner_error_);
#line 215 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1071 "gitg-author-details-dialog.c"
					goto __catch53_g_error;
				}
			}
		}
		goto __finally53;
		__catch53_g_error:
		{
			GError* e = NULL;
			const gchar* _tmp17_ = NULL;
			GError* _tmp18_ = NULL;
			const gchar* _tmp19_ = NULL;
#line 198 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			e = _inner_error_;
#line 198 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			_inner_error_ = NULL;
#line 220 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp17_ = _ ("Failed to set Git user config.");
#line 220 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp18_ = e;
#line 220 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp19_ = _tmp18_->message;
#line 220 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			gitg_author_details_dialog_show_config_error (self, _tmp17_, _tmp19_);
#line 221 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			gtk_widget_destroy ((GtkWidget*) self);
#line 222 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			_g_error_free0 (e);
#line 222 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			return;
#line 1101 "gitg-author-details-dialog.c"
		}
		__finally53:
#line 198 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 198 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 198 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			g_clear_error (&_inner_error_);
#line 198 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
			return;
#line 1112 "gitg-author-details-dialog.c"
		}
	}
#line 226 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_destroy ((GtkWidget*) self);
#line 1117 "gitg-author-details-dialog.c"
}


static Block34Data* block34_data_ref (Block34Data* _data34_) {
#line 229 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_atomic_int_inc (&_data34_->_ref_count_);
#line 229 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	return _data34_;
#line 1126 "gitg-author-details-dialog.c"
}


static void block34_data_unref (void * _userdata_) {
	Block34Data* _data34_;
	_data34_ = (Block34Data*) _userdata_;
#line 229 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	if (g_atomic_int_dec_and_test (&_data34_->_ref_count_)) {
#line 1135 "gitg-author-details-dialog.c"
		GitgAuthorDetailsDialog* self;
#line 229 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		self = _data34_->self;
#line 229 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (_data34_->error_dialog);
#line 229 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (self);
#line 229 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
		g_slice_free (Block34Data, _data34_);
#line 1145 "gitg-author-details-dialog.c"
	}
}


static void __lambda98_ (Block34Data* _data34_, GtkDialog* d, gint id) {
	GitgAuthorDetailsDialog* self;
#line 238 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	self = _data34_->self;
#line 238 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_if_fail (d != NULL);
#line 239 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_destroy ((GtkWidget*) _data34_->error_dialog);
#line 1158 "gitg-author-details-dialog.c"
}


static void ___lambda98__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 238 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	__lambda98_ (self, _sender, response_id);
#line 1165 "gitg-author-details-dialog.c"
}


static void gitg_author_details_dialog_show_config_error (GitgAuthorDetailsDialog* self, const gchar* primary_message, const gchar* secondary_message) {
	Block34Data* _data34_;
	const gchar* _tmp0_ = NULL;
	GtkMessageDialog* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
#line 229 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_if_fail (self != NULL);
#line 229 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_if_fail (primary_message != NULL);
#line 229 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_if_fail (secondary_message != NULL);
#line 229 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_data34_ = g_slice_new0 (Block34Data);
#line 229 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_data34_->_ref_count_ = 1;
#line 229 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_data34_->self = g_object_ref (self);
#line 231 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp0_ = primary_message;
#line 231 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp1_ = (GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) self, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _tmp0_);
#line 231 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_object_ref_sink (_tmp1_);
#line 231 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_data34_->error_dialog = _tmp1_;
#line 237 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp2_ = secondary_message;
#line 237 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_object_set (_data34_->error_dialog, "secondary-text", _tmp2_, NULL);
#line 238 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_signal_connect_data ((GtkDialog*) _data34_->error_dialog, "response", (GCallback) ___lambda98__gtk_dialog_response, block34_data_ref (_data34_), (GClosureNotify) block34_data_unref, 0);
#line 242 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_show ((GtkWidget*) _data34_->error_dialog);
#line 229 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	block34_data_unref (_data34_);
#line 229 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_data34_ = NULL;
#line 1206 "gitg-author-details-dialog.c"
}


static void gitg_author_details_dialog_class_init (GitgAuthorDetailsDialogClass * klass) {
	gint GitgAuthorDetailsDialog_private_offset;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gitg_author_details_dialog_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	g_type_class_add_private (klass, sizeof (GitgAuthorDetailsDialogPrivate));
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	((GtkWidgetClass *) klass)->show = gitg_author_details_dialog_real_show;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	((GtkDialogClass *) klass)->response = gitg_author_details_dialog_real_response;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_author_details_dialog_finalize;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	GitgAuthorDetailsDialog_private_offset = g_type_class_get_instance_private_offset (klass);
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/gitg/ui/gitg-author-details-dialog.ui");
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "entry_name", FALSE, GitgAuthorDetailsDialog_private_offset + G_STRUCT_OFFSET (GitgAuthorDetailsDialogPrivate, d_entry_name));
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "entry_email", FALSE, GitgAuthorDetailsDialog_private_offset + G_STRUCT_OFFSET (GitgAuthorDetailsDialogPrivate, d_entry_email));
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "label_info", FALSE, GitgAuthorDetailsDialog_private_offset + G_STRUCT_OFFSET (GitgAuthorDetailsDialogPrivate, d_label_info));
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "checkbutton_override_global", FALSE, GitgAuthorDetailsDialog_private_offset + G_STRUCT_OFFSET (GitgAuthorDetailsDialogPrivate, d_checkbutton_override_global));
#line 1234 "gitg-author-details-dialog.c"
}


static void gitg_author_details_dialog_instance_init (GitgAuthorDetailsDialog * self) {
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	self->priv = GITG_AUTHOR_DETAILS_DIALOG_GET_PRIVATE (self);
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 1243 "gitg-author-details-dialog.c"
}


static void gitg_author_details_dialog_finalize (GObject* obj) {
	GitgAuthorDetailsDialog * self;
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_AUTHOR_DETAILS_DIALOG, GitgAuthorDetailsDialog);
#line 29 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_g_object_unref0 (self->priv->d_entry_name);
#line 32 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_g_object_unref0 (self->priv->d_entry_email);
#line 35 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_g_object_unref0 (self->priv->d_label_info);
#line 38 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_g_object_unref0 (self->priv->d_checkbutton_override_global);
#line 40 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_g_free0 (self->priv->d_repository_name);
#line 42 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	_g_object_unref0 (self->priv->d_config);
#line 23 "/home/nacho/checkout/gnome/gitg/gitg/gitg-author-details-dialog.vala"
	G_OBJECT_CLASS (gitg_author_details_dialog_parent_class)->finalize (obj);
#line 1265 "gitg-author-details-dialog.c"
}


GType gitg_author_details_dialog_get_type (void) {
	static volatile gsize gitg_author_details_dialog_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_author_details_dialog_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgAuthorDetailsDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_author_details_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgAuthorDetailsDialog), 0, (GInstanceInitFunc) gitg_author_details_dialog_instance_init, NULL };
		GType gitg_author_details_dialog_type_id;
		gitg_author_details_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "GitgAuthorDetailsDialog", &g_define_type_info, 0);
		g_once_init_leave (&gitg_author_details_dialog_type_id__volatile, gitg_author_details_dialog_type_id);
	}
	return gitg_author_details_dialog_type_id__volatile;
}



