/* gitg-clone-dialog.c generated by valac 0.32.1, the Vala compiler
 * generated from gitg-clone-dialog.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2013 - Ignacio Casal Quinteiro
 *
 * 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 <config.h>
#include <gio/gio.h>
#include <glib/gi18n-lib.h>


#define GITG_TYPE_CLONE_DIALOG (gitg_clone_dialog_get_type ())
#define GITG_CLONE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_CLONE_DIALOG, GitgCloneDialog))
#define GITG_CLONE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_CLONE_DIALOG, GitgCloneDialogClass))
#define GITG_IS_CLONE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_CLONE_DIALOG))
#define GITG_IS_CLONE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_CLONE_DIALOG))
#define GITG_CLONE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_CLONE_DIALOG, GitgCloneDialogClass))

typedef struct _GitgCloneDialog GitgCloneDialog;
typedef struct _GitgCloneDialogClass GitgCloneDialogClass;
typedef struct _GitgCloneDialogPrivate GitgCloneDialogPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block35Data Block35Data;
#define _g_free0(var) (var = (g_free (var), NULL))

struct _GitgCloneDialog {
	GtkDialog parent_instance;
	GitgCloneDialogPrivate * priv;
};

struct _GitgCloneDialogClass {
	GtkDialogClass parent_class;
};

struct _GitgCloneDialogPrivate {
	GtkEntry* d_entry_url;
	GtkFileChooserButton* d_button_location;
	GtkCheckButton* d_bare_repository;
};

struct _Block35Data {
	int _ref_count_;
	GitgCloneDialog* self;
	GSettings* main_settings;
};


static gpointer gitg_clone_dialog_parent_class = NULL;

GType gitg_clone_dialog_get_type (void) G_GNUC_CONST;
#define GITG_CLONE_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_CLONE_DIALOG, GitgCloneDialogPrivate))
enum  {
	GITG_CLONE_DIALOG_DUMMY_PROPERTY,
	GITG_CLONE_DIALOG_IS_BARE,
	GITG_CLONE_DIALOG_LOCATION,
	GITG_CLONE_DIALOG_URL
};
#define GITG_CLONE_DIALOG_version VERSION
GitgCloneDialog* gitg_clone_dialog_new (GtkWindow* parent);
GitgCloneDialog* gitg_clone_dialog_construct (GType object_type, GtkWindow* parent);
gboolean gitg_clone_dialog_get_is_bare (GitgCloneDialog* self);
GFile* gitg_clone_dialog_get_location (GitgCloneDialog* self);
const gchar* gitg_clone_dialog_get_url (GitgCloneDialog* self);
static GObject * gitg_clone_dialog_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static Block35Data* block35_data_ref (Block35Data* _data35_);
static void block35_data_unref (void * _userdata_);
static void _gitg_clone_dialog___lambda114_ (Block35Data* _data35_, GtkFileChooser* c);
static void __gitg_clone_dialog___lambda114__gtk_file_chooser_selection_changed (GtkFileChooser* _sender, gpointer self);
static void _gitg_clone_dialog___lambda115_ (GitgCloneDialog* self, GtkEditable* e);
static void __gitg_clone_dialog___lambda115__gtk_editable_changed (GtkEditable* _sender, gpointer self);
static void gitg_clone_dialog_finalize (GObject* obj);
static void _vala_gitg_clone_dialog_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);


GitgCloneDialog* gitg_clone_dialog_construct (GType object_type, GtkWindow* parent) {
	GitgCloneDialog * self = NULL;
	GtkWindow* _tmp0_ = NULL;
#line 55 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	self = (GitgCloneDialog*) g_object_new (object_type, "use-header-bar", 1, NULL);
#line 57 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp0_ = parent;
#line 57 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	if (_tmp0_ != NULL) {
#line 106 "gitg-clone-dialog.c"
		GtkWindow* _tmp1_ = NULL;
#line 59 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		_tmp1_ = parent;
#line 59 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		gtk_window_set_transient_for ((GtkWindow*) self, _tmp1_);
#line 112 "gitg-clone-dialog.c"
	}
#line 53 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	return self;
#line 116 "gitg-clone-dialog.c"
}


GitgCloneDialog* gitg_clone_dialog_new (GtkWindow* parent) {
#line 53 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	return gitg_clone_dialog_construct (GITG_TYPE_CLONE_DIALOG, parent);
#line 123 "gitg-clone-dialog.c"
}


gboolean gitg_clone_dialog_get_is_bare (GitgCloneDialog* self) {
	gboolean result;
	GtkCheckButton* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
#line 40 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 40 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp0_ = self->priv->d_bare_repository;
#line 40 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp1_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp0_);
#line 40 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp2_ = _tmp1_;
#line 40 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	result = _tmp2_;
#line 40 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	return result;
#line 144 "gitg-clone-dialog.c"
}


GFile* gitg_clone_dialog_get_location (GitgCloneDialog* self) {
	GFile* result;
	GtkFileChooserButton* _tmp0_ = NULL;
	GFile* _tmp1_ = NULL;
#line 45 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 45 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp0_ = self->priv->d_button_location;
#line 45 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp1_ = gtk_file_chooser_get_file ((GtkFileChooser*) _tmp0_);
#line 45 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	result = _tmp1_;
#line 45 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	return result;
#line 162 "gitg-clone-dialog.c"
}


const gchar* gitg_clone_dialog_get_url (GitgCloneDialog* self) {
	const gchar* result;
	GtkEntry* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
#line 50 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 50 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp0_ = self->priv->d_entry_url;
#line 50 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp1_ = gtk_entry_get_text (_tmp0_);
#line 50 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	result = _tmp1_;
#line 50 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	return result;
#line 180 "gitg-clone-dialog.c"
}


static Block35Data* block35_data_ref (Block35Data* _data35_) {
#line 63 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	g_atomic_int_inc (&_data35_->_ref_count_);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	return _data35_;
#line 189 "gitg-clone-dialog.c"
}


static void block35_data_unref (void * _userdata_) {
	Block35Data* _data35_;
	_data35_ = (Block35Data*) _userdata_;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	if (g_atomic_int_dec_and_test (&_data35_->_ref_count_)) {
#line 198 "gitg-clone-dialog.c"
		GitgCloneDialog* self;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		self = _data35_->self;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		_g_object_unref0 (_data35_->main_settings);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		_g_object_unref0 (self);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		g_slice_free (Block35Data, _data35_);
#line 208 "gitg-clone-dialog.c"
	}
}


static void _gitg_clone_dialog___lambda114_ (Block35Data* _data35_, GtkFileChooser* c) {
	GitgCloneDialog* self;
	GSettings* _tmp0_ = NULL;
	GtkFileChooser* _tmp1_ = NULL;
	GFile* _tmp2_ = NULL;
	GFile* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
#line 76 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	self = _data35_->self;
#line 76 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	g_return_if_fail (c != NULL);
#line 77 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp0_ = _data35_->main_settings;
#line 77 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp1_ = c;
#line 77 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp2_ = gtk_file_chooser_get_file (_tmp1_);
#line 77 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp3_ = _tmp2_;
#line 77 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp4_ = g_file_get_path (_tmp3_);
#line 77 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp5_ = _tmp4_;
#line 77 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	g_settings_set_string (_tmp0_, "clone-directory", _tmp5_);
#line 77 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_g_free0 (_tmp5_);
#line 77 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_g_object_unref0 (_tmp3_);
#line 243 "gitg-clone-dialog.c"
}


static void __gitg_clone_dialog___lambda114__gtk_file_chooser_selection_changed (GtkFileChooser* _sender, gpointer self) {
#line 76 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_gitg_clone_dialog___lambda114_ (self, _sender);
#line 250 "gitg-clone-dialog.c"
}


static void _gitg_clone_dialog___lambda115_ (GitgCloneDialog* self, GtkEditable* e) {
	gchar* tooltip_text = NULL;
	gchar* icon_name = NULL;
	gboolean is_valid = FALSE;
	GtkEntry* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	GtkEntry* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	GtkEntry* _tmp9_ = NULL;
	const gchar* _tmp10_ = NULL;
	gboolean _tmp11_ = FALSE;
#line 80 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	g_return_if_fail (e != NULL);
#line 81 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	tooltip_text = NULL;
#line 82 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	icon_name = NULL;
#line 84 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp0_ = self->priv->d_entry_url;
#line 84 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp1_ = gtk_entry_get_text (_tmp0_);
#line 84 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp2_ = _tmp1_;
#line 84 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	is_valid = g_strcmp0 (_tmp2_, "") != 0;
#line 86 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp3_ = is_valid;
#line 86 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	if (!_tmp3_) {
#line 285 "gitg-clone-dialog.c"
		gchar* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
#line 88 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		_tmp4_ = g_strdup ("dialog-warning-symbolic");
#line 88 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		_g_free0 (icon_name);
#line 88 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		icon_name = _tmp4_;
#line 89 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		_tmp5_ = _ ("The URL introduced is not supported");
#line 89 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		_tmp6_ = g_strdup (_tmp5_);
#line 89 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		_g_free0 (tooltip_text);
#line 89 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		tooltip_text = _tmp6_;
#line 303 "gitg-clone-dialog.c"
	}
#line 92 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp7_ = self->priv->d_entry_url;
#line 92 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp8_ = icon_name;
#line 92 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	gtk_entry_set_icon_from_icon_name (_tmp7_, GTK_ENTRY_ICON_SECONDARY, _tmp8_);
#line 93 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp9_ = self->priv->d_entry_url;
#line 93 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp10_ = tooltip_text;
#line 93 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	gtk_entry_set_icon_tooltip_text (_tmp9_, GTK_ENTRY_ICON_SECONDARY, _tmp10_);
#line 95 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp11_ = is_valid;
#line 95 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	gtk_dialog_set_response_sensitive ((GtkDialog*) self, (gint) GTK_RESPONSE_OK, _tmp11_);
#line 80 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_g_free0 (icon_name);
#line 80 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_g_free0 (tooltip_text);
#line 325 "gitg-clone-dialog.c"
}


static void __gitg_clone_dialog___lambda115__gtk_editable_changed (GtkEditable* _sender, gpointer self) {
#line 80 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_gitg_clone_dialog___lambda115_ ((GitgCloneDialog*) self, _sender);
#line 332 "gitg-clone-dialog.c"
}


static GObject * gitg_clone_dialog_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GitgCloneDialog * self;
	Block35Data* _data35_;
	GSettings* _tmp0_ = NULL;
	gchar* default_dir = NULL;
	GSettings* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	GtkFileChooserButton* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	GtkFileChooserButton* _tmp8_ = NULL;
	GtkEntry* _tmp9_ = NULL;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	parent_class = G_OBJECT_CLASS (gitg_clone_dialog_parent_class);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_CLONE_DIALOG, GitgCloneDialog);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_data35_ = g_slice_new0 (Block35Data);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_data35_->_ref_count_ = 1;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_data35_->self = g_object_ref (self);
#line 65 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp0_ = g_settings_new ("org.gnome.gitg.preferences.main");
#line 65 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_data35_->main_settings = _tmp0_;
#line 67 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	gtk_dialog_set_default_response ((GtkDialog*) self, (gint) GTK_RESPONSE_OK);
#line 69 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp1_ = _data35_->main_settings;
#line 69 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp2_ = g_settings_get_string (_tmp1_, "clone-directory");
#line 69 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	default_dir = _tmp2_;
#line 70 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp3_ = default_dir;
#line 70 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	if (g_strcmp0 (_tmp3_, "") == 0) {
#line 378 "gitg-clone-dialog.c"
		const gchar* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
#line 72 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		_tmp4_ = g_get_home_dir ();
#line 72 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		_tmp5_ = g_strdup (_tmp4_);
#line 72 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		_g_free0 (default_dir);
#line 72 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		default_dir = _tmp5_;
#line 389 "gitg-clone-dialog.c"
	}
#line 75 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp6_ = self->priv->d_button_location;
#line 75 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp7_ = default_dir;
#line 75 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	gtk_file_chooser_set_current_folder ((GtkFileChooser*) _tmp6_, _tmp7_);
#line 76 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp8_ = self->priv->d_button_location;
#line 76 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	g_signal_connect_data ((GtkFileChooser*) _tmp8_, "selection-changed", (GCallback) __gitg_clone_dialog___lambda114__gtk_file_chooser_selection_changed, block35_data_ref (_data35_), (GClosureNotify) block35_data_unref, 0);
#line 80 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_tmp9_ = self->priv->d_entry_url;
#line 80 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	g_signal_connect_object ((GtkEditable*) _tmp9_, "changed", (GCallback) __gitg_clone_dialog___lambda115__gtk_editable_changed, self, 0);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_g_free0 (default_dir);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	block35_data_unref (_data35_);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_data35_ = NULL;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	return obj;
#line 413 "gitg-clone-dialog.c"
}


static void gitg_clone_dialog_class_init (GitgCloneDialogClass * klass) {
	gint GitgCloneDialog_private_offset;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	gitg_clone_dialog_parent_class = g_type_class_peek_parent (klass);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	g_type_class_add_private (klass, sizeof (GitgCloneDialogPrivate));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_clone_dialog_get_property;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_clone_dialog_constructor;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_clone_dialog_finalize;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_CLONE_DIALOG_IS_BARE, g_param_spec_boolean ("is-bare", "is-bare", "is-bare", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_CLONE_DIALOG_LOCATION, g_param_spec_object ("location", "location", "location", G_TYPE_FILE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_CLONE_DIALOG_URL, g_param_spec_string ("url", "url", "url", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	GitgCloneDialog_private_offset = g_type_class_get_instance_private_offset (klass);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/gitg/ui/gitg-clone-dialog.ui");
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "entry_url", FALSE, GitgCloneDialog_private_offset + G_STRUCT_OFFSET (GitgCloneDialogPrivate, d_entry_url));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "button_location", FALSE, GitgCloneDialog_private_offset + G_STRUCT_OFFSET (GitgCloneDialogPrivate, d_button_location));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "bare_repository", FALSE, GitgCloneDialog_private_offset + G_STRUCT_OFFSET (GitgCloneDialogPrivate, d_bare_repository));
#line 445 "gitg-clone-dialog.c"
}


static void gitg_clone_dialog_instance_init (GitgCloneDialog * self) {
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	self->priv = GITG_CLONE_DIALOG_GET_PRIVATE (self);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 454 "gitg-clone-dialog.c"
}


static void gitg_clone_dialog_finalize (GObject* obj) {
	GitgCloneDialog * self;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_CLONE_DIALOG, GitgCloneDialog);
#line 30 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_g_object_unref0 (self->priv->d_entry_url);
#line 33 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_g_object_unref0 (self->priv->d_button_location);
#line 36 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	_g_object_unref0 (self->priv->d_bare_repository);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	G_OBJECT_CLASS (gitg_clone_dialog_parent_class)->finalize (obj);
#line 470 "gitg-clone-dialog.c"
}


GType gitg_clone_dialog_get_type (void) {
	static volatile gsize gitg_clone_dialog_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_clone_dialog_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgCloneDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_clone_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgCloneDialog), 0, (GInstanceInitFunc) gitg_clone_dialog_instance_init, NULL };
		GType gitg_clone_dialog_type_id;
		gitg_clone_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "GitgCloneDialog", &g_define_type_info, 0);
		g_once_init_leave (&gitg_clone_dialog_type_id__volatile, gitg_clone_dialog_type_id);
	}
	return gitg_clone_dialog_type_id__volatile;
}


static void _vala_gitg_clone_dialog_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgCloneDialog * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_CLONE_DIALOG, GitgCloneDialog);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
	switch (property_id) {
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		case GITG_CLONE_DIALOG_IS_BARE:
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		g_value_set_boolean (value, gitg_clone_dialog_get_is_bare (self));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		break;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		case GITG_CLONE_DIALOG_LOCATION:
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		g_value_take_object (value, gitg_clone_dialog_get_location (self));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		break;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		case GITG_CLONE_DIALOG_URL:
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		g_value_set_string (value, gitg_clone_dialog_get_url (self));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		break;
#line 509 "gitg-clone-dialog.c"
		default:
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-clone-dialog.vala"
		break;
#line 515 "gitg-clone-dialog.c"
	}
}



