/* ConfigLocationFTP.c generated by valac 0.12.1, the Vala compiler
 * generated from ConfigLocationFTP.vala, do not modify */

/* -*- Mode: Vala; indent-tabs-mode: nil; tab-width: 2 -*- */
/*
    This file is part of Déjà Dup.
    For copyright information, see AUTHORS.

    Déjà Dup 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 3 of the License, or
    (at your option) any later version.

    Déjà Dup 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 Déjà Dup.  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 <common.h>
#include <glib/gi18n-lib.h>


#define DEJA_DUP_TYPE_CONFIG_LOCATION_TABLE (deja_dup_config_location_table_get_type ())
#define DEJA_DUP_CONFIG_LOCATION_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEJA_DUP_TYPE_CONFIG_LOCATION_TABLE, DejaDupConfigLocationTable))
#define DEJA_DUP_CONFIG_LOCATION_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DEJA_DUP_TYPE_CONFIG_LOCATION_TABLE, DejaDupConfigLocationTableClass))
#define DEJA_DUP_IS_CONFIG_LOCATION_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEJA_DUP_TYPE_CONFIG_LOCATION_TABLE))
#define DEJA_DUP_IS_CONFIG_LOCATION_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DEJA_DUP_TYPE_CONFIG_LOCATION_TABLE))
#define DEJA_DUP_CONFIG_LOCATION_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DEJA_DUP_TYPE_CONFIG_LOCATION_TABLE, DejaDupConfigLocationTableClass))

typedef struct _DejaDupConfigLocationTable DejaDupConfigLocationTable;
typedef struct _DejaDupConfigLocationTableClass DejaDupConfigLocationTableClass;
typedef struct _DejaDupConfigLocationTablePrivate DejaDupConfigLocationTablePrivate;

#define DEJA_DUP_TYPE_CONFIG_LOCATION_FTP (deja_dup_config_location_ftp_get_type ())
#define DEJA_DUP_CONFIG_LOCATION_FTP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEJA_DUP_TYPE_CONFIG_LOCATION_FTP, DejaDupConfigLocationFTP))
#define DEJA_DUP_CONFIG_LOCATION_FTP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DEJA_DUP_TYPE_CONFIG_LOCATION_FTP, DejaDupConfigLocationFTPClass))
#define DEJA_DUP_IS_CONFIG_LOCATION_FTP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEJA_DUP_TYPE_CONFIG_LOCATION_FTP))
#define DEJA_DUP_IS_CONFIG_LOCATION_FTP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DEJA_DUP_TYPE_CONFIG_LOCATION_FTP))
#define DEJA_DUP_CONFIG_LOCATION_FTP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DEJA_DUP_TYPE_CONFIG_LOCATION_FTP, DejaDupConfigLocationFTPClass))

typedef struct _DejaDupConfigLocationFTP DejaDupConfigLocationFTP;
typedef struct _DejaDupConfigLocationFTPClass DejaDupConfigLocationFTPClass;
typedef struct _DejaDupConfigLocationFTPPrivate DejaDupConfigLocationFTPPrivate;

#define DEJA_DUP_TYPE_CONFIG_WIDGET (deja_dup_config_widget_get_type ())
#define DEJA_DUP_CONFIG_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEJA_DUP_TYPE_CONFIG_WIDGET, DejaDupConfigWidget))
#define DEJA_DUP_CONFIG_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DEJA_DUP_TYPE_CONFIG_WIDGET, DejaDupConfigWidgetClass))
#define DEJA_DUP_IS_CONFIG_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEJA_DUP_TYPE_CONFIG_WIDGET))
#define DEJA_DUP_IS_CONFIG_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DEJA_DUP_TYPE_CONFIG_WIDGET))
#define DEJA_DUP_CONFIG_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DEJA_DUP_TYPE_CONFIG_WIDGET, DejaDupConfigWidgetClass))

typedef struct _DejaDupConfigWidget DejaDupConfigWidget;
typedef struct _DejaDupConfigWidgetClass DejaDupConfigWidgetClass;

#define DEJA_DUP_TYPE_CONFIG_ENTRY (deja_dup_config_entry_get_type ())
#define DEJA_DUP_CONFIG_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEJA_DUP_TYPE_CONFIG_ENTRY, DejaDupConfigEntry))
#define DEJA_DUP_CONFIG_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DEJA_DUP_TYPE_CONFIG_ENTRY, DejaDupConfigEntryClass))
#define DEJA_DUP_IS_CONFIG_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEJA_DUP_TYPE_CONFIG_ENTRY))
#define DEJA_DUP_IS_CONFIG_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DEJA_DUP_TYPE_CONFIG_ENTRY))
#define DEJA_DUP_CONFIG_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DEJA_DUP_TYPE_CONFIG_ENTRY, DejaDupConfigEntryClass))

typedef struct _DejaDupConfigEntry DejaDupConfigEntry;
typedef struct _DejaDupConfigEntryClass DejaDupConfigEntryClass;

#define DEJA_DUP_TYPE_CONFIG_URL_PART (deja_dup_config_url_part_get_type ())
#define DEJA_DUP_CONFIG_URL_PART(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEJA_DUP_TYPE_CONFIG_URL_PART, DejaDupConfigURLPart))
#define DEJA_DUP_CONFIG_URL_PART_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DEJA_DUP_TYPE_CONFIG_URL_PART, DejaDupConfigURLPartClass))
#define DEJA_DUP_IS_CONFIG_URL_PART(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEJA_DUP_TYPE_CONFIG_URL_PART))
#define DEJA_DUP_IS_CONFIG_URL_PART_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DEJA_DUP_TYPE_CONFIG_URL_PART))
#define DEJA_DUP_CONFIG_URL_PART_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DEJA_DUP_TYPE_CONFIG_URL_PART, DejaDupConfigURLPartClass))

typedef struct _DejaDupConfigURLPart DejaDupConfigURLPart;
typedef struct _DejaDupConfigURLPartClass DejaDupConfigURLPartClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define DEJA_DUP_TYPE_TOGGLABLE (deja_dup_togglable_get_type ())
#define DEJA_DUP_TOGGLABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEJA_DUP_TYPE_TOGGLABLE, DejaDupTogglable))
#define DEJA_DUP_IS_TOGGLABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEJA_DUP_TYPE_TOGGLABLE))
#define DEJA_DUP_TOGGLABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), DEJA_DUP_TYPE_TOGGLABLE, DejaDupTogglableIface))

typedef struct _DejaDupTogglable DejaDupTogglable;
typedef struct _DejaDupTogglableIface DejaDupTogglableIface;

#define DEJA_DUP_CONFIG_URL_PART_TYPE_PART (deja_dup_config_url_part_part_get_type ())

#define DEJA_DUP_TYPE_CONFIG_BOOL (deja_dup_config_bool_get_type ())
#define DEJA_DUP_CONFIG_BOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEJA_DUP_TYPE_CONFIG_BOOL, DejaDupConfigBool))
#define DEJA_DUP_CONFIG_BOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DEJA_DUP_TYPE_CONFIG_BOOL, DejaDupConfigBoolClass))
#define DEJA_DUP_IS_CONFIG_BOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEJA_DUP_TYPE_CONFIG_BOOL))
#define DEJA_DUP_IS_CONFIG_BOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DEJA_DUP_TYPE_CONFIG_BOOL))
#define DEJA_DUP_CONFIG_BOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DEJA_DUP_TYPE_CONFIG_BOOL, DejaDupConfigBoolClass))

typedef struct _DejaDupConfigBool DejaDupConfigBool;
typedef struct _DejaDupConfigBoolClass DejaDupConfigBoolClass;

#define DEJA_DUP_TYPE_CONFIG_URL_PART_BOOL (deja_dup_config_url_part_bool_get_type ())
#define DEJA_DUP_CONFIG_URL_PART_BOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEJA_DUP_TYPE_CONFIG_URL_PART_BOOL, DejaDupConfigURLPartBool))
#define DEJA_DUP_CONFIG_URL_PART_BOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DEJA_DUP_TYPE_CONFIG_URL_PART_BOOL, DejaDupConfigURLPartBoolClass))
#define DEJA_DUP_IS_CONFIG_URL_PART_BOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEJA_DUP_TYPE_CONFIG_URL_PART_BOOL))
#define DEJA_DUP_IS_CONFIG_URL_PART_BOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DEJA_DUP_TYPE_CONFIG_URL_PART_BOOL))
#define DEJA_DUP_CONFIG_URL_PART_BOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DEJA_DUP_TYPE_CONFIG_URL_PART_BOOL, DejaDupConfigURLPartBoolClass))

typedef struct _DejaDupConfigURLPartBool DejaDupConfigURLPartBool;
typedef struct _DejaDupConfigURLPartBoolClass DejaDupConfigURLPartBoolClass;

struct _DejaDupConfigLocationTable {
	GtkGrid parent_instance;
	DejaDupConfigLocationTablePrivate * priv;
	gint row;
};

struct _DejaDupConfigLocationTableClass {
	GtkGridClass parent_class;
};

struct _DejaDupConfigLocationFTP {
	DejaDupConfigLocationTable parent_instance;
	DejaDupConfigLocationFTPPrivate * priv;
};

struct _DejaDupConfigLocationFTPClass {
	DejaDupConfigLocationTableClass parent_class;
};

struct _DejaDupConfigLocationFTPPrivate {
	DejaDupConfigURLPart* user;
};

struct _DejaDupTogglableIface {
	GTypeInterface parent_iface;
	gboolean (*get_active) (DejaDupTogglable* self);
};

typedef enum  {
	DEJA_DUP_CONFIG_URL_PART_PART_SCHEME,
	DEJA_DUP_CONFIG_URL_PART_PART_SERVER,
	DEJA_DUP_CONFIG_URL_PART_PART_PORT,
	DEJA_DUP_CONFIG_URL_PART_PART_USER,
	DEJA_DUP_CONFIG_URL_PART_PART_FOLDER,
	DEJA_DUP_CONFIG_URL_PART_PART_DOMAIN
} DejaDupConfigURLPartPart;

typedef gboolean (*DejaDupConfigURLPartBoolTestActive) (const gchar* val, void* user_data);

static gpointer deja_dup_config_location_ftp_parent_class = NULL;

GType deja_dup_config_location_table_get_type (void) G_GNUC_CONST;
GType deja_dup_config_location_ftp_get_type (void) G_GNUC_CONST;
GType deja_dup_config_widget_get_type (void) G_GNUC_CONST;
GType deja_dup_config_entry_get_type (void) G_GNUC_CONST;
GType deja_dup_config_url_part_get_type (void) G_GNUC_CONST;
#define DEJA_DUP_CONFIG_LOCATION_FTP_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DEJA_DUP_TYPE_CONFIG_LOCATION_FTP, DejaDupConfigLocationFTPPrivate))
enum  {
	DEJA_DUP_CONFIG_LOCATION_FTP_DUMMY_PROPERTY
};
DejaDupConfigLocationFTP* deja_dup_config_location_ftp_new (GtkSizeGroup* sg);
DejaDupConfigLocationFTP* deja_dup_config_location_ftp_construct (GType object_type, GtkSizeGroup* sg);
static gboolean deja_dup_config_location_ftp_is_not_anon (const gchar* val);
GType deja_dup_togglable_get_type (void) G_GNUC_CONST;
static void deja_dup_config_location_ftp_username_toggled (DejaDupConfigLocationFTP* self, DejaDupTogglable* check, gboolean user);
gboolean deja_dup_togglable_get_active (DejaDupTogglable* self);
GType deja_dup_config_url_part_part_get_type (void) G_GNUC_CONST;
void deja_dup_config_url_part_write_uri_part (DejaDupSimpleSettings* settings, const gchar* key, DejaDupConfigURLPartPart part, const gchar* userval);
static GObject * deja_dup_config_location_ftp_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
void deja_dup_config_location_table_add_widget (DejaDupConfigLocationTable* self, const gchar* msg, GtkWidget* w, DejaDupTogglable* check, GtkWidget* mnemonic);
DejaDupConfigURLPart* deja_dup_config_url_part_new (DejaDupConfigURLPartPart part, const gchar* key, const gchar* ns);
DejaDupConfigURLPart* deja_dup_config_url_part_construct (GType object_type, DejaDupConfigURLPartPart part, const gchar* key, const gchar* ns);
DejaDupConfigURLPartBool* deja_dup_config_url_part_bool_new (DejaDupConfigURLPartPart part, const gchar* key, const gchar* ns, const gchar* label);
DejaDupConfigURLPartBool* deja_dup_config_url_part_bool_construct (GType object_type, DejaDupConfigURLPartPart part, const gchar* key, const gchar* ns, const gchar* label);
GType deja_dup_config_bool_get_type (void) G_GNUC_CONST;
GType deja_dup_config_url_part_bool_get_type (void) G_GNUC_CONST;
static gboolean _deja_dup_config_location_ftp_is_not_anon_deja_dup_config_url_part_bool_test_active (const gchar* val, gpointer self);
void deja_dup_config_url_part_bool_set_test_active (DejaDupConfigURLPartBool* self, DejaDupConfigURLPartBoolTestActive value, gpointer value_target);
static void _deja_dup_config_location_ftp_username_toggled_deja_dup_togglable_toggled (DejaDupTogglable* _sender, DejaDupTogglable* t, gboolean user, gpointer self);
void deja_dup_config_location_table_add_widget_with_label (DejaDupConfigLocationTable* self, GtkWidget* label, GtkWidget* w, DejaDupTogglable* check);
static void deja_dup_config_location_ftp_finalize (GObject* obj);


DejaDupConfigLocationFTP* deja_dup_config_location_ftp_construct (GType object_type, GtkSizeGroup* sg) {
	DejaDupConfigLocationFTP * self = NULL;
	g_return_val_if_fail (sg != NULL, NULL);
	self = (DejaDupConfigLocationFTP*) g_object_new (object_type, "label-sizes", sg, NULL);
	return self;
}


DejaDupConfigLocationFTP* deja_dup_config_location_ftp_new (GtkSizeGroup* sg) {
	return deja_dup_config_location_ftp_construct (DEJA_DUP_TYPE_CONFIG_LOCATION_FTP, sg);
}


static gboolean deja_dup_config_location_ftp_is_not_anon (const gchar* val) {
	gboolean result = FALSE;
	g_return_val_if_fail (val != NULL, FALSE);
	result = g_strcmp0 (val, "anonymous") != 0;
	return result;
}


static void deja_dup_config_location_ftp_username_toggled (DejaDupConfigLocationFTP* self, DejaDupTogglable* check, gboolean user) {
	gboolean _tmp0_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (check != NULL);
	_tmp0_ = deja_dup_togglable_get_active (check);
	if (!_tmp0_) {
		DejaDupSimpleSettings* _tmp1_ = NULL;
		DejaDupSimpleSettings* _tmp2_;
		_tmp1_ = deja_dup_get_settings (DEJA_DUP_FILE_ROOT);
		_tmp2_ = _tmp1_;
		deja_dup_config_url_part_write_uri_part (_tmp2_, DEJA_DUP_FILE_PATH_KEY, DEJA_DUP_CONFIG_URL_PART_PART_USER, "anonymous");
		_g_object_unref0 (_tmp2_);
	}
}


static gboolean _deja_dup_config_location_ftp_is_not_anon_deja_dup_config_url_part_bool_test_active (const gchar* val, gpointer self) {
	gboolean result;
	result = deja_dup_config_location_ftp_is_not_anon (val);
	return result;
}


static void _deja_dup_config_location_ftp_username_toggled_deja_dup_togglable_toggled (DejaDupTogglable* _sender, DejaDupTogglable* t, gboolean user, gpointer self) {
	deja_dup_config_location_ftp_username_toggled (self, t, user);
}


static GObject * deja_dup_config_location_ftp_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	DejaDupConfigLocationFTP * self;
	const gchar* _tmp0_ = NULL;
	DejaDupConfigURLPart* _tmp1_ = NULL;
	DejaDupConfigURLPart* _tmp2_;
	const gchar* _tmp3_ = NULL;
	DejaDupConfigURLPart* _tmp4_ = NULL;
	DejaDupConfigURLPart* _tmp5_;
	const gchar* _tmp6_ = NULL;
	DejaDupConfigURLPart* _tmp7_ = NULL;
	DejaDupConfigURLPart* _tmp8_;
	const gchar* _tmp9_ = NULL;
	DejaDupConfigURLPartBool* _tmp10_ = NULL;
	DejaDupConfigURLPartBool* w;
	DejaDupConfigURLPart* _tmp11_ = NULL;
	parent_class = G_OBJECT_CLASS (deja_dup_config_location_ftp_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = DEJA_DUP_CONFIG_LOCATION_FTP (obj);
	_tmp0_ = _ ("_Server");
	_tmp1_ = deja_dup_config_url_part_new (DEJA_DUP_CONFIG_URL_PART_PART_SERVER, DEJA_DUP_FILE_PATH_KEY, DEJA_DUP_FILE_ROOT);
	_tmp2_ = g_object_ref_sink (_tmp1_);
	deja_dup_config_location_table_add_widget ((DejaDupConfigLocationTable*) self, _tmp0_, (GtkWidget*) _tmp2_, NULL, NULL);
	_g_object_unref0 (_tmp2_);
	_tmp3_ = _ ("_Port");
	_tmp4_ = deja_dup_config_url_part_new (DEJA_DUP_CONFIG_URL_PART_PART_PORT, DEJA_DUP_FILE_PATH_KEY, DEJA_DUP_FILE_ROOT);
	_tmp5_ = g_object_ref_sink (_tmp4_);
	deja_dup_config_location_table_add_widget ((DejaDupConfigLocationTable*) self, _tmp3_, (GtkWidget*) _tmp5_, NULL, NULL);
	_g_object_unref0 (_tmp5_);
	_tmp6_ = _ ("_Folder");
	_tmp7_ = deja_dup_config_url_part_new (DEJA_DUP_CONFIG_URL_PART_PART_FOLDER, DEJA_DUP_FILE_PATH_KEY, DEJA_DUP_FILE_ROOT);
	_tmp8_ = g_object_ref_sink (_tmp7_);
	deja_dup_config_location_table_add_widget ((DejaDupConfigLocationTable*) self, _tmp6_, (GtkWidget*) _tmp8_, NULL, NULL);
	_g_object_unref0 (_tmp8_);
	_tmp9_ = _ ("_Username");
	_tmp10_ = deja_dup_config_url_part_bool_new (DEJA_DUP_CONFIG_URL_PART_PART_USER, DEJA_DUP_FILE_PATH_KEY, DEJA_DUP_FILE_ROOT, _tmp9_);
	w = g_object_ref_sink (_tmp10_);
	gtk_widget_set_halign ((GtkWidget*) w, GTK_ALIGN_END);
	deja_dup_config_url_part_bool_set_test_active (w, _deja_dup_config_location_ftp_is_not_anon_deja_dup_config_url_part_bool_test_active, NULL);
	g_signal_connect_object ((DejaDupTogglable*) w, "toggled", (GCallback) _deja_dup_config_location_ftp_username_toggled_deja_dup_togglable_toggled, self, 0);
	_tmp11_ = deja_dup_config_url_part_new (DEJA_DUP_CONFIG_URL_PART_PART_USER, DEJA_DUP_FILE_PATH_KEY, DEJA_DUP_FILE_ROOT);
	_g_object_unref0 (self->priv->user);
	self->priv->user = g_object_ref_sink (_tmp11_);
	deja_dup_config_location_table_add_widget_with_label ((DejaDupConfigLocationTable*) self, (GtkWidget*) w, (GtkWidget*) self->priv->user, (DejaDupTogglable*) w);
	_g_object_unref0 (w);
	return obj;
}


static void deja_dup_config_location_ftp_class_init (DejaDupConfigLocationFTPClass * klass) {
	deja_dup_config_location_ftp_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (DejaDupConfigLocationFTPPrivate));
	G_OBJECT_CLASS (klass)->constructor = deja_dup_config_location_ftp_constructor;
	G_OBJECT_CLASS (klass)->finalize = deja_dup_config_location_ftp_finalize;
}


static void deja_dup_config_location_ftp_instance_init (DejaDupConfigLocationFTP * self) {
	self->priv = DEJA_DUP_CONFIG_LOCATION_FTP_GET_PRIVATE (self);
}


static void deja_dup_config_location_ftp_finalize (GObject* obj) {
	DejaDupConfigLocationFTP * self;
	self = DEJA_DUP_CONFIG_LOCATION_FTP (obj);
	_g_object_unref0 (self->priv->user);
	G_OBJECT_CLASS (deja_dup_config_location_ftp_parent_class)->finalize (obj);
}


GType deja_dup_config_location_ftp_get_type (void) {
	static volatile gsize deja_dup_config_location_ftp_type_id__volatile = 0;
	if (g_once_init_enter (&deja_dup_config_location_ftp_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (DejaDupConfigLocationFTPClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) deja_dup_config_location_ftp_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DejaDupConfigLocationFTP), 0, (GInstanceInitFunc) deja_dup_config_location_ftp_instance_init, NULL };
		GType deja_dup_config_location_ftp_type_id;
		deja_dup_config_location_ftp_type_id = g_type_register_static (DEJA_DUP_TYPE_CONFIG_LOCATION_TABLE, "DejaDupConfigLocationFTP", &g_define_type_info, 0);
		g_once_init_leave (&deja_dup_config_location_ftp_type_id__volatile, deja_dup_config_location_ftp_type_id);
	}
	return deja_dup_config_location_ftp_type_id__volatile;
}



