/* gitg-author-details-dialog.c generated by valac 0.32.1, 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 <glib/gstdio.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/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	return self ? g_object_ref (self) : NULL;
#line 120 "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/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_val_if_fail (config != NULL, NULL);
#line 46 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	self = (GitgAuthorDetailsDialog*) g_object_new (object_type, "use-header-bar", 1, NULL);
#line 48 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp0_ = parent;
#line 48 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	if (_tmp0_ != NULL) {
#line 139 "gitg-author-details-dialog.c"
		GtkWindow* _tmp1_ = NULL;
#line 50 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp1_ = parent;
#line 50 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		gtk_window_set_transient_for ((GtkWindow*) self, _tmp1_);
#line 145 "gitg-author-details-dialog.c"
	}
#line 53 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp2_ = repository_name;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 53 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_g_free0 (self->priv->d_repository_name);
#line 53 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	self->priv->d_repository_name = _tmp3_;
#line 54 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp4_ = config;
#line 54 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp5_ = _g_object_ref0 (_tmp4_);
#line 54 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_g_object_unref0 (self->priv->d_config);
#line 54 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	self->priv->d_config = _tmp5_;
#line 44 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	return self;
#line 165 "gitg-author-details-dialog.c"
}


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


GitgAuthorDetailsDialog* gitg_author_details_dialog_show_global (GitgWindow* window) {
	GitgAuthorDetailsDialog* result = NULL;
	gchar* xdg_config_path = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* config_path = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	const gchar* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
	GFile* global_config_file = NULL;
	GFile* _tmp10_ = NULL;
	GFile* _tmp11_ = NULL;
	GgitConfig* global_config = NULL;
	GitgAuthorDetailsDialog* author_details = NULL;
	GitgWindow* _tmp16_ = NULL;
	GgitConfig* _tmp17_ = NULL;
	GitgAuthorDetailsDialog* _tmp18_ = NULL;
	GitgAuthorDetailsDialog* _tmp19_ = NULL;
	GError * _inner_error_ = NULL;
#line 57 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_val_if_fail (window != NULL, NULL);
#line 59 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp0_ = g_get_user_config_dir ();
#line 59 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp1_ = g_build_filename (_tmp0_, "git", "config", NULL);
#line 59 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	xdg_config_path = _tmp1_;
#line 60 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp2_ = g_get_home_dir ();
#line 60 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp3_ = g_build_filename (_tmp2_, ".gitconfig", NULL);
#line 60 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	config_path = _tmp3_;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp5_ = xdg_config_path;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp6_ = g_file_test (_tmp5_, G_FILE_TEST_EXISTS);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	if (!_tmp6_) {
#line 217 "gitg-author-details-dialog.c"
		const gchar* _tmp7_ = NULL;
		gboolean _tmp8_ = FALSE;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp7_ = config_path;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp8_ = g_file_test (_tmp7_, G_FILE_TEST_EXISTS);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp4_ = !_tmp8_;
#line 226 "gitg-author-details-dialog.c"
	} else {
#line 63 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp4_ = FALSE;
#line 230 "gitg-author-details-dialog.c"
	}
#line 63 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	if (_tmp4_) {
#line 234 "gitg-author-details-dialog.c"
		{
			const gchar* _tmp9_ = NULL;
#line 67 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp9_ = config_path;
#line 67 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			g_file_set_contents (_tmp9_, "", (gssize) -1, &_inner_error_);
#line 67 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 243 "gitg-author-details-dialog.c"
				goto __catch47_g_error;
			}
		}
		goto __finally47;
		__catch47_g_error:
		{
#line 65 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			g_clear_error (&_inner_error_);
#line 65 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_inner_error_ = NULL;
#line 254 "gitg-author-details-dialog.c"
		}
		__finally47:
#line 65 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 65 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_g_free0 (config_path);
#line 65 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_g_free0 (xdg_config_path);
#line 65 "/home/jesse/dev/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 65 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			g_clear_error (&_inner_error_);
#line 65 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			return NULL;
#line 269 "gitg-author-details-dialog.c"
		}
	}
#line 71 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp10_ = ggit_config_find_global ();
#line 71 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	global_config_file = _tmp10_;
#line 73 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp11_ = global_config_file;
#line 73 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	if (_tmp11_ == NULL) {
#line 75 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		result = NULL;
#line 75 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (global_config_file);
#line 75 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_g_free0 (config_path);
#line 75 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_g_free0 (xdg_config_path);
#line 75 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		return result;
#line 290 "gitg-author-details-dialog.c"
	}
	{
		GgitConfig* _tmp12_ = NULL;
		GFile* _tmp13_ = NULL;
		GgitConfig* _tmp14_ = NULL;
		GgitConfig* _tmp15_ = NULL;
#line 82 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp13_ = global_config_file;
#line 82 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp14_ = ggit_config_new_from_file (_tmp13_, &_inner_error_);
#line 82 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp12_ = _tmp14_;
#line 82 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 305 "gitg-author-details-dialog.c"
			goto __catch48_g_error;
		}
#line 82 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp15_ = _tmp12_;
#line 82 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp12_ = NULL;
#line 82 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (global_config);
#line 82 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		global_config = _tmp15_;
#line 80 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (_tmp12_);
#line 318 "gitg-author-details-dialog.c"
	}
	goto __finally48;
	__catch48_g_error:
	{
#line 80 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 80 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_inner_error_ = NULL;
#line 86 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		result = NULL;
#line 86 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (global_config);
#line 86 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (global_config_file);
#line 86 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_g_free0 (config_path);
#line 86 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_g_free0 (xdg_config_path);
#line 86 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		return result;
#line 339 "gitg-author-details-dialog.c"
	}
	__finally48:
#line 80 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 80 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (global_config);
#line 80 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (global_config_file);
#line 80 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_g_free0 (config_path);
#line 80 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_g_free0 (xdg_config_path);
#line 80 "/home/jesse/dev/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 80 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 80 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		return NULL;
#line 358 "gitg-author-details-dialog.c"
	}
#line 89 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp16_ = window;
#line 89 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp17_ = global_config;
#line 89 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp18_ = gitg_author_details_dialog_new ((GtkWindow*) _tmp16_, _tmp17_, NULL);
#line 89 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_object_ref_sink (_tmp18_);
#line 89 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	author_details = _tmp18_;
#line 90 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp19_ = author_details;
#line 90 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_show ((GtkWidget*) _tmp19_);
#line 92 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	result = author_details;
#line 92 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_g_object_unref0 (global_config);
#line 92 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_g_object_unref0 (global_config_file);
#line 92 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_g_free0 (config_path);
#line 92 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_g_free0 (xdg_config_path);
#line 92 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	return result;
#line 386 "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 95 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_if_fail (self != NULL);
#line 97 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp0_ = _ ("Author Details");
#line 97 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_window_set_title ((GtkWindow*) self, _tmp0_);
#line 98 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp1_ = self->priv->d_label_info;
#line 98 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp2_ = _ ("Enter default details used for all repositories:");
#line 98 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_label_set_label (_tmp1_, _tmp2_);
#line 99 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp3_ = self->priv->d_label_info;
#line 99 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_show ((GtkWidget*) _tmp3_);
#line 411 "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 102 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 102 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_val_if_fail (name != NULL, FALSE);
#line 422 "gitg-author-details-dialog.c"
	{
		GgitConfigEntry* entry = NULL;
		GgitConfig* _tmp0_ = NULL;
		const gchar* _tmp1_ = NULL;
		GgitConfigEntry* _tmp2_ = NULL;
		GgitConfigLevel _tmp3_ = 0;
#line 106 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp0_ = self->priv->d_config;
#line 106 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp1_ = name;
#line 106 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp2_ = ggit_config_get_entry (_tmp0_, _tmp1_, &_inner_error_);
#line 106 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		entry = _tmp2_;
#line 106 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 439 "gitg-author-details-dialog.c"
			goto __catch49_g_error;
		}
#line 107 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp3_ = ggit_config_entry_get_level (entry);
#line 107 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		result = _tmp3_ == GGIT_CONFIG_LEVEL_LOCAL;
#line 107 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_ggit_config_entry_unref0 (entry);
#line 107 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		return result;
#line 450 "gitg-author-details-dialog.c"
	}
	goto __finally49;
	__catch49_g_error:
	{
#line 104 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 104 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_inner_error_ = NULL;
#line 111 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		result = FALSE;
#line 111 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		return result;
#line 463 "gitg-author-details-dialog.c"
	}
	__finally49:
#line 104 "/home/jesse/dev/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 104 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_clear_error (&_inner_error_);
#line 104 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	return FALSE;
#line 472 "gitg-author-details-dialog.c"
}


static void _gitg_author_details_dialog_update_sensitivity_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 123 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	gitg_author_details_dialog_update_sensitivity ((GitgAuthorDetailsDialog*) self);
#line 479 "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 115 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_if_fail (self != NULL);
#line 117 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp0_ = self->priv->d_repository_name;
#line 117 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp1_ = _ ("Author Details");
#line 117 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp2_ = g_strdup_printf ("%s - %s", _tmp0_, _tmp1_);
#line 117 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp3_ = _tmp2_;
#line 117 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_window_set_title ((GtkWindow*) self, _tmp3_);
#line 117 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_g_free0 (_tmp3_);
#line 120 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp4_ = self->priv->d_checkbutton_override_global;
#line 120 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp5_ = _ ("Override global details for repository '%s':");
#line 120 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp6_ = self->priv->d_repository_name;
#line 120 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp7_ = g_strdup_printf (_tmp5_, _tmp6_);
#line 120 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp8_ = _tmp7_;
#line 120 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_button_set_label ((GtkButton*) _tmp4_, _tmp8_);
#line 120 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_g_free0 (_tmp8_);
#line 121 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp10_ = gitg_author_details_dialog_config_is_local (self, "user.name");
#line 121 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	if (_tmp10_) {
#line 121 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp9_ = TRUE;
#line 532 "gitg-author-details-dialog.c"
	} else {
		gboolean _tmp11_ = FALSE;
#line 121 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp11_ = gitg_author_details_dialog_config_is_local (self, "user.email");
#line 121 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp9_ = _tmp11_;
#line 539 "gitg-author-details-dialog.c"
	}
#line 121 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp12_ = self->priv->d_checkbutton_override_global;
#line 121 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_toggle_button_set_active ((GtkToggleButton*) _tmp12_, _tmp9_);
#line 123 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp13_ = self->priv->d_checkbutton_override_global;
#line 123 "/home/jesse/dev/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 124 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp14_ = self->priv->d_checkbutton_override_global;
#line 124 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_show ((GtkWidget*) _tmp14_);
#line 126 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	gitg_author_details_dialog_update_sensitivity (self);
#line 555 "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 129 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_if_fail (self != NULL);
#line 131 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp0_ = self->priv->d_entry_name;
#line 131 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp1_ = self->priv->d_checkbutton_override_global;
#line 131 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp2_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp1_);
#line 131 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp3_ = _tmp2_;
#line 131 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp0_, _tmp3_);
#line 132 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp4_ = self->priv->d_entry_email;
#line 132 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp5_ = self->priv->d_checkbutton_override_global;
#line 132 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp6_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp5_);
#line 132 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp7_ = _tmp6_;
#line 132 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp4_, _tmp7_);
#line 134 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	config = NULL;
#line 595 "gitg-author-details-dialog.c"
	{
		GtkCheckButton* _tmp8_ = NULL;
		gboolean _tmp9_ = FALSE;
		gboolean _tmp10_ = FALSE;
#line 138 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp8_ = self->priv->d_checkbutton_override_global;
#line 138 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp9_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp8_);
#line 138 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp10_ = _tmp9_;
#line 138 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		if (!_tmp10_) {
#line 608 "gitg-author-details-dialog.c"
			GgitConfig* _tmp11_ = NULL;
			GgitConfig* _tmp12_ = NULL;
			GgitConfig* _tmp13_ = NULL;
			GgitConfig* _tmp14_ = NULL;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp12_ = self->priv->d_config;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp13_ = ggit_config_open_level (_tmp12_, GGIT_CONFIG_LEVEL_GLOBAL, &_inner_error_);
#line 140 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp11_ = _tmp13_;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 621 "gitg-author-details-dialog.c"
				goto __catch50_g_error;
			}
#line 140 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp14_ = _tmp11_;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp11_ = NULL;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_g_object_unref0 (config);
#line 140 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			config = _tmp14_;
#line 138 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_g_object_unref0 (_tmp11_);
#line 634 "gitg-author-details-dialog.c"
		} else {
			GgitConfig* _tmp15_ = NULL;
			GgitConfig* _tmp16_ = NULL;
#line 144 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp15_ = self->priv->d_config;
#line 144 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp16_ = _g_object_ref0 (_tmp15_);
#line 144 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_g_object_unref0 (config);
#line 144 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			config = _tmp16_;
#line 646 "gitg-author-details-dialog.c"
		}
	}
	goto __finally50;
	__catch50_g_error:
	{
#line 136 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 136 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_inner_error_ = NULL;
#line 656 "gitg-author-details-dialog.c"
	}
	__finally50:
#line 136 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 136 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (config);
#line 136 "/home/jesse/dev/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 136 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 136 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		return;
#line 669 "gitg-author-details-dialog.c"
	}
#line 148 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp17_ = config;
#line 148 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	if (_tmp17_ != NULL) {
#line 675 "gitg-author-details-dialog.c"
		GgitConfig* _tmp18_ = NULL;
#line 150 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp18_ = config;
#line 150 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		gitg_author_details_dialog_update_entries (self, _tmp18_);
#line 681 "gitg-author-details-dialog.c"
	}
#line 129 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_g_object_unref0 (config);
#line 685 "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 154 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	self = (GitgAuthorDetailsDialog*) base;
#line 156 "/home/jesse/dev/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 158 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp0_ = self->priv->d_repository_name;
#line 158 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	if (_tmp0_ == NULL) {
#line 160 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		gitg_author_details_dialog_build_global (self);
#line 703 "gitg-author-details-dialog.c"
	} else {
#line 164 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		gitg_author_details_dialog_build_repository (self);
#line 707 "gitg-author-details-dialog.c"
	}
#line 167 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp1_ = self->priv->d_config;
#line 167 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	gitg_author_details_dialog_update_entries (self, _tmp1_);
#line 713 "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 170 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 170 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_val_if_fail (config != NULL, NULL);
#line 170 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 170 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_val_if_fail (defval != NULL, NULL);
#line 172 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	ret = NULL;
#line 734 "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 176 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp1_ = config;
#line 176 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp2_ = ggit_config_snapshot (_tmp1_, &_inner_error_);
#line 176 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp0_ = _tmp2_;
#line 176 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 754 "gitg-author-details-dialog.c"
			goto __catch51_g_error;
		}
#line 176 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp4_ = _tmp0_;
#line 176 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp0_ = NULL;
#line 176 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp5_ = _tmp4_;
#line 176 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp6_ = name;
#line 176 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp7_ = ggit_config_get_string (_tmp5_, _tmp6_, &_inner_error_);
#line 176 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp8_ = _tmp7_;
#line 176 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (_tmp5_);
#line 176 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp3_ = _tmp8_;
#line 176 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 176 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_g_object_unref0 (_tmp0_);
#line 777 "gitg-author-details-dialog.c"
			goto __catch51_g_error;
		}
#line 176 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp9_ = g_strdup (_tmp3_);
#line 176 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_g_free0 (ret);
#line 176 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		ret = _tmp9_;
#line 174 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (_tmp0_);
#line 788 "gitg-author-details-dialog.c"
	}
	goto __finally51;
	__catch51_g_error:
	{
#line 174 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 174 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_inner_error_ = NULL;
#line 797 "gitg-author-details-dialog.c"
	}
	__finally51:
#line 174 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 174 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_g_free0 (ret);
#line 174 "/home/jesse/dev/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 174 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 174 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		return NULL;
#line 810 "gitg-author-details-dialog.c"
	}
#line 179 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp11_ = ret;
#line 179 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	if (_tmp11_ != NULL) {
#line 816 "gitg-author-details-dialog.c"
		const gchar* _tmp12_ = NULL;
#line 179 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp12_ = ret;
#line 179 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp10_ = _tmp12_;
#line 822 "gitg-author-details-dialog.c"
	} else {
		const gchar* _tmp13_ = NULL;
#line 179 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp13_ = defval;
#line 179 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp10_ = _tmp13_;
#line 829 "gitg-author-details-dialog.c"
	}
#line 179 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp14_ = g_strdup (_tmp10_);
#line 179 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	result = _tmp14_;
#line 179 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_g_free0 (ret);
#line 179 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	return result;
#line 839 "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 1191 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1192 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp0_ = g_strdup (self);
#line 1192 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_result_ = _tmp0_;
#line 1193 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp1_ = _result_;
#line 1193 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_strchomp (_tmp1_);
#line 1194 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	result = _result_;
#line 1194 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	return result;
#line 862 "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 182 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_if_fail (self != NULL);
#line 182 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_if_fail (config != NULL);
#line 184 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp0_ = self->priv->d_entry_name;
#line 184 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp1_ = config;
#line 184 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp2_ = gitg_author_details_dialog_read_config_string (self, _tmp1_, "user.name", "");
#line 184 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp3_ = _tmp2_;
#line 184 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp4_ = string_chomp (_tmp3_);
#line 184 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp5_ = _tmp4_;
#line 184 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_entry_set_text (_tmp0_, _tmp5_);
#line 184 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_g_free0 (_tmp5_);
#line 184 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_g_free0 (_tmp3_);
#line 185 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp6_ = self->priv->d_entry_email;
#line 185 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp7_ = config;
#line 185 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp8_ = gitg_author_details_dialog_read_config_string (self, _tmp7_, "user.email", "");
#line 185 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp9_ = _tmp8_;
#line 185 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp10_ = string_chomp (_tmp9_);
#line 185 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp11_ = _tmp10_;
#line 185 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_entry_set_text (_tmp6_, _tmp11_);
#line 185 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_g_free0 (_tmp11_);
#line 185 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_g_free0 (_tmp9_);
#line 919 "gitg-author-details-dialog.c"
}


static void gitg_author_details_dialog_delete_local_entries (GitgAuthorDetailsDialog* self) {
	GError * _inner_error_ = NULL;
#line 188 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_if_fail (self != NULL);
#line 927 "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 192 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp1_ = self->priv->d_config;
#line 192 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp2_ = ggit_config_get_entry (_tmp1_, "user.name", &_inner_error_);
#line 192 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp0_ = _tmp2_;
#line 192 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 944 "gitg-author-details-dialog.c"
			goto __catch52_g_error;
		}
#line 192 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp3_ = _tmp0_;
#line 192 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp0_ = NULL;
#line 192 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp4_ = _tmp3_;
#line 192 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp5_ = ggit_config_entry_get_level (_tmp4_);
#line 192 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp6_ = _tmp5_ == GGIT_CONFIG_LEVEL_LOCAL;
#line 192 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_ggit_config_entry_unref0 (_tmp4_);
#line 192 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		if (_tmp6_) {
#line 961 "gitg-author-details-dialog.c"
			GgitConfig* _tmp7_ = NULL;
#line 194 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp7_ = self->priv->d_config;
#line 194 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			ggit_config_delete_entry (_tmp7_, "user.name", &_inner_error_);
#line 194 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 194 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
				_ggit_config_entry_unref0 (_tmp0_);
#line 971 "gitg-author-details-dialog.c"
				goto __catch52_g_error;
			}
		}
#line 190 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_ggit_config_entry_unref0 (_tmp0_);
#line 977 "gitg-author-details-dialog.c"
	}
	goto __finally52;
	__catch52_g_error:
	{
#line 190 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 190 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_inner_error_ = NULL;
#line 986 "gitg-author-details-dialog.c"
	}
	__finally52:
#line 190 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 190 "/home/jesse/dev/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 190 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 190 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		return;
#line 997 "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 200 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp9_ = self->priv->d_config;
#line 200 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp10_ = ggit_config_get_entry (_tmp9_, "user.email", &_inner_error_);
#line 200 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp8_ = _tmp10_;
#line 200 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1015 "gitg-author-details-dialog.c"
			goto __catch53_g_error;
		}
#line 200 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp11_ = _tmp8_;
#line 200 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp8_ = NULL;
#line 200 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp12_ = _tmp11_;
#line 200 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp13_ = ggit_config_entry_get_level (_tmp12_);
#line 200 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_tmp14_ = _tmp13_ == GGIT_CONFIG_LEVEL_LOCAL;
#line 200 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_ggit_config_entry_unref0 (_tmp12_);
#line 200 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		if (_tmp14_) {
#line 1032 "gitg-author-details-dialog.c"
			GgitConfig* _tmp15_ = NULL;
#line 202 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp15_ = self->priv->d_config;
#line 202 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			ggit_config_delete_entry (_tmp15_, "user.email", &_inner_error_);
#line 202 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 202 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
				_ggit_config_entry_unref0 (_tmp8_);
#line 1042 "gitg-author-details-dialog.c"
				goto __catch53_g_error;
			}
		}
#line 198 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_ggit_config_entry_unref0 (_tmp8_);
#line 1048 "gitg-author-details-dialog.c"
	}
	goto __finally53;
	__catch53_g_error:
	{
#line 198 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 198 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_inner_error_ = NULL;
#line 1057 "gitg-author-details-dialog.c"
	}
	__finally53:
#line 198 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 198 "/home/jesse/dev/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/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		g_clear_error (&_inner_error_);
#line 198 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		return;
#line 1068 "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 207 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	self = (GitgAuthorDetailsDialog*) base;
#line 208 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp0_ = id;
#line 208 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	if (_tmp0_ == ((gint) GTK_RESPONSE_OK)) {
#line 1083 "gitg-author-details-dialog.c"
		{
			const gchar* _tmp1_ = NULL;
#line 212 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp1_ = self->priv->d_repository_name;
#line 212 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			if (_tmp1_ != NULL) {
#line 1090 "gitg-author-details-dialog.c"
				GtkCheckButton* _tmp2_ = NULL;
				gboolean _tmp3_ = FALSE;
				gboolean _tmp4_ = FALSE;
#line 214 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
				_tmp2_ = self->priv->d_checkbutton_override_global;
#line 214 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
				_tmp3_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp2_);
#line 214 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
				_tmp4_ = _tmp3_;
#line 214 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
				if (_tmp4_) {
#line 1102 "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 216 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
					_tmp5_ = self->priv->d_config;
#line 216 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
					_tmp6_ = self->priv->d_entry_name;
#line 216 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
					_tmp7_ = gtk_entry_get_text (_tmp6_);
#line 216 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
					ggit_config_set_string (_tmp5_, "user.name", _tmp7_, &_inner_error_);
#line 216 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1119 "gitg-author-details-dialog.c"
						goto __catch54_g_error;
					}
#line 217 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
					_tmp8_ = self->priv->d_config;
#line 217 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
					_tmp9_ = self->priv->d_entry_email;
#line 217 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
					_tmp10_ = gtk_entry_get_text (_tmp9_);
#line 217 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
					ggit_config_set_string (_tmp8_, "user.email", _tmp10_, &_inner_error_);
#line 217 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1132 "gitg-author-details-dialog.c"
						goto __catch54_g_error;
					}
				} else {
#line 221 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
					gitg_author_details_dialog_delete_local_entries (self);
#line 1138 "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 226 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
				_tmp11_ = self->priv->d_config;
#line 226 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
				_tmp12_ = self->priv->d_entry_name;
#line 226 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
				_tmp13_ = gtk_entry_get_text (_tmp12_);
#line 226 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
				ggit_config_set_string (_tmp11_, "user.name", _tmp13_, &_inner_error_);
#line 226 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1157 "gitg-author-details-dialog.c"
					goto __catch54_g_error;
				}
#line 227 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
				_tmp14_ = self->priv->d_config;
#line 227 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
				_tmp15_ = self->priv->d_entry_email;
#line 227 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
				_tmp16_ = gtk_entry_get_text (_tmp15_);
#line 227 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
				ggit_config_set_string (_tmp14_, "user.email", _tmp16_, &_inner_error_);
#line 227 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1170 "gitg-author-details-dialog.c"
					goto __catch54_g_error;
				}
			}
		}
		goto __finally54;
		__catch54_g_error:
		{
			GError* e = NULL;
			const gchar* _tmp17_ = NULL;
			GError* _tmp18_ = NULL;
			const gchar* _tmp19_ = NULL;
#line 210 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			e = _inner_error_;
#line 210 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_inner_error_ = NULL;
#line 232 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp17_ = _ ("Failed to set Git user config.");
#line 232 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp18_ = e;
#line 232 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_tmp19_ = _tmp18_->message;
#line 232 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			gitg_author_details_dialog_show_config_error (self, _tmp17_, _tmp19_);
#line 233 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			gtk_widget_destroy ((GtkWidget*) self);
#line 234 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			_g_error_free0 (e);
#line 234 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			return;
#line 1200 "gitg-author-details-dialog.c"
		}
		__finally54:
#line 210 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 210 "/home/jesse/dev/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 210 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			g_clear_error (&_inner_error_);
#line 210 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
			return;
#line 1211 "gitg-author-details-dialog.c"
		}
	}
#line 238 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_destroy ((GtkWidget*) self);
#line 1216 "gitg-author-details-dialog.c"
}


static Block34Data* block34_data_ref (Block34Data* _data34_) {
#line 241 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_atomic_int_inc (&_data34_->_ref_count_);
#line 241 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	return _data34_;
#line 1225 "gitg-author-details-dialog.c"
}


static void block34_data_unref (void * _userdata_) {
	Block34Data* _data34_;
	_data34_ = (Block34Data*) _userdata_;
#line 241 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	if (g_atomic_int_dec_and_test (&_data34_->_ref_count_)) {
#line 1234 "gitg-author-details-dialog.c"
		GitgAuthorDetailsDialog* self;
#line 241 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		self = _data34_->self;
#line 241 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (_data34_->error_dialog);
#line 241 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		_g_object_unref0 (self);
#line 241 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
		g_slice_free (Block34Data, _data34_);
#line 1244 "gitg-author-details-dialog.c"
	}
}


static void __lambda98_ (Block34Data* _data34_, GtkDialog* d, gint id) {
	GitgAuthorDetailsDialog* self;
#line 251 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	self = _data34_->self;
#line 251 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_if_fail (d != NULL);
#line 252 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_destroy ((GtkWidget*) _data34_->error_dialog);
#line 1257 "gitg-author-details-dialog.c"
}


static void ___lambda98__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 251 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	__lambda98_ (self, _sender, response_id);
#line 1264 "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 241 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_if_fail (self != NULL);
#line 241 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_if_fail (primary_message != NULL);
#line 241 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_return_if_fail (secondary_message != NULL);
#line 241 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_data34_ = g_slice_new0 (Block34Data);
#line 241 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_data34_->_ref_count_ = 1;
#line 241 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_data34_->self = g_object_ref (self);
#line 243 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp0_ = primary_message;
#line 243 "/home/jesse/dev/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, "%s", _tmp0_);
#line 243 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_object_ref_sink (_tmp1_);
#line 243 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_data34_->error_dialog = _tmp1_;
#line 250 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_tmp2_ = secondary_message;
#line 250 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_object_set (_data34_->error_dialog, "secondary-text", _tmp2_, NULL);
#line 251 "/home/jesse/dev/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 255 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	gtk_widget_show ((GtkWidget*) _data34_->error_dialog);
#line 241 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	block34_data_unref (_data34_);
#line 241 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_data34_ = NULL;
#line 1305 "gitg-author-details-dialog.c"
}


static void gitg_author_details_dialog_class_init (GitgAuthorDetailsDialogClass * klass) {
	gint GitgAuthorDetailsDialog_private_offset;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	gitg_author_details_dialog_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	g_type_class_add_private (klass, sizeof (GitgAuthorDetailsDialogPrivate));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	((GtkWidgetClass *) klass)->show = gitg_author_details_dialog_real_show;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	((GtkDialogClass *) klass)->response = gitg_author_details_dialog_real_response;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_author_details_dialog_finalize;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	GitgAuthorDetailsDialog_private_offset = g_type_class_get_instance_private_offset (klass);
#line 23 "/home/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/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 1333 "gitg-author-details-dialog.c"
}


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


static void gitg_author_details_dialog_finalize (GObject* obj) {
	GitgAuthorDetailsDialog * self;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_AUTHOR_DETAILS_DIALOG, GitgAuthorDetailsDialog);
#line 29 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_g_object_unref0 (self->priv->d_entry_name);
#line 32 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_g_object_unref0 (self->priv->d_entry_email);
#line 35 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_g_object_unref0 (self->priv->d_label_info);
#line 38 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_g_object_unref0 (self->priv->d_checkbutton_override_global);
#line 40 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_g_free0 (self->priv->d_repository_name);
#line 42 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	_g_object_unref0 (self->priv->d_config);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-author-details-dialog.vala"
	G_OBJECT_CLASS (gitg_author_details_dialog_parent_class)->finalize (obj);
#line 1364 "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;
}



