/* ConfigChoice.c generated by valac 0.30.0, the Vala compiler
 * generated from ConfigChoice.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 <gio/gio.h>
#include "deja.h"
#include <stdlib.h>
#include <string.h>


#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;
typedef struct _DejaDupConfigWidgetPrivate DejaDupConfigWidgetPrivate;

#define DEJA_DUP_TYPE_CONFIG_CHOICE (deja_dup_config_choice_get_type ())
#define DEJA_DUP_CONFIG_CHOICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEJA_DUP_TYPE_CONFIG_CHOICE, DejaDupConfigChoice))
#define DEJA_DUP_CONFIG_CHOICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DEJA_DUP_TYPE_CONFIG_CHOICE, DejaDupConfigChoiceClass))
#define DEJA_DUP_IS_CONFIG_CHOICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEJA_DUP_TYPE_CONFIG_CHOICE))
#define DEJA_DUP_IS_CONFIG_CHOICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DEJA_DUP_TYPE_CONFIG_CHOICE))
#define DEJA_DUP_CONFIG_CHOICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DEJA_DUP_TYPE_CONFIG_CHOICE, DejaDupConfigChoiceClass))

typedef struct _DejaDupConfigChoice DejaDupConfigChoice;
typedef struct _DejaDupConfigChoiceClass DejaDupConfigChoiceClass;
typedef struct _DejaDupConfigChoicePrivate DejaDupConfigChoicePrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define __vala_GValue_free0(var) ((var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL)))
typedef struct _DejaDupConfigChoiceSetFromConfigData DejaDupConfigChoiceSetFromConfigData;

struct _DejaDupConfigWidget {
	GtkEventBox parent_instance;
	DejaDupConfigWidgetPrivate * priv;
	gboolean syncing;
	DejaDupFilteredSettings* settings;
	GList* all_settings;
};

struct _DejaDupConfigWidgetClass {
	GtkEventBoxClass parent_class;
	void (*set_from_config) (DejaDupConfigWidget* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*set_from_config_finish) (DejaDupConfigWidget* self, GAsyncResult* _res_);
};

struct _DejaDupConfigChoice {
	DejaDupConfigWidget parent_instance;
	DejaDupConfigChoicePrivate * priv;
	GtkComboBox* combo;
	gchar* default_val;
	gint settings_col;
};

struct _DejaDupConfigChoiceClass {
	DejaDupConfigWidgetClass parent_class;
	void (*handle_changed) (DejaDupConfigChoice* self);
};

struct _DejaDupConfigChoiceSetFromConfigData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	DejaDupConfigChoice* self;
	gchar* confval;
	DejaDupFilteredSettings* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	gchar* _tmp3_;
	gboolean _tmp4_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	const gchar* _tmp7_;
	gchar* _tmp8_;
	const gchar* _tmp9_;
	gboolean valid;
	GtkTreeIter iter;
	GtkComboBox* _tmp10_;
	GtkTreeModel* _tmp11_;
	GtkTreeModel* _tmp12_;
	GtkTreeIter _tmp13_;
	gboolean _tmp14_;
	gboolean _tmp15_;
	GValue val;
	GtkComboBox* _tmp16_;
	GtkTreeModel* _tmp17_;
	GtkTreeModel* _tmp18_;
	GtkTreeIter _tmp19_;
	gint _tmp20_;
	GValue _tmp21_;
	gchar* strval;
	const gchar* _tmp22_;
	gchar* _tmp23_;
	const gchar* _tmp24_;
	const gchar* _tmp25_;
	GtkComboBox* _tmp26_;
	GtkTreeIter _tmp27_;
	GtkComboBox* _tmp28_;
	GtkTreeModel* _tmp29_;
	GtkTreeModel* _tmp30_;
	gboolean _tmp31_;
};


static gpointer deja_dup_config_choice_parent_class = NULL;

GType deja_dup_config_widget_get_type (void) G_GNUC_CONST;
GType deja_dup_config_choice_get_type (void) G_GNUC_CONST;
enum  {
	DEJA_DUP_CONFIG_CHOICE_DUMMY_PROPERTY
};
void deja_dup_config_choice_init (DejaDupConfigChoice* self, GtkTreeModel* model, gint settings_col);
void deja_dup_config_widget_set_from_config (DejaDupConfigWidget* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void deja_dup_config_widget_set_from_config_finish (DejaDupConfigWidget* self, GAsyncResult* _res_);
void deja_dup_config_choice_handle_changed (DejaDupConfigChoice* self);
static void _deja_dup_config_choice_handle_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
GValue* deja_dup_config_choice_get_current_value (DejaDupConfigChoice* self);
static GValue* _g_value_dup (GValue* self);
static void deja_dup_config_choice_real_handle_changed (DejaDupConfigChoice* self);
const gchar* deja_dup_config_widget_get_key (DejaDupConfigWidget* self);
static void _vala_GValue_free (GValue* self);
static void deja_dup_config_choice_real_set_from_config_data_free (gpointer _data);
static void deja_dup_config_choice_real_set_from_config (DejaDupConfigWidget* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean deja_dup_config_choice_real_set_from_config_co (DejaDupConfigChoiceSetFromConfigData* _data_);
DejaDupConfigChoice* deja_dup_config_choice_new (void);
DejaDupConfigChoice* deja_dup_config_choice_construct (GType object_type);
DejaDupConfigWidget* deja_dup_config_widget_construct (GType object_type);
static GObject * deja_dup_config_choice_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static void deja_dup_config_choice_finalize (GObject* obj);


static void _deja_dup_config_choice_handle_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
	deja_dup_config_choice_handle_changed ((DejaDupConfigChoice*) self);
}


void deja_dup_config_choice_init (DejaDupConfigChoice* self, GtkTreeModel* model, gint settings_col) {
	GtkComboBox* _tmp0_ = NULL;
	GtkTreeModel* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	GtkComboBox* _tmp3_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (model != NULL);
	_tmp0_ = self->combo;
	_tmp1_ = model;
	gtk_combo_box_set_model (_tmp0_, _tmp1_);
	_tmp2_ = settings_col;
	self->settings_col = _tmp2_;
	deja_dup_config_widget_set_from_config ((DejaDupConfigWidget*) self, NULL, NULL);
	_tmp3_ = self->combo;
	g_signal_connect_object (_tmp3_, "changed", (GCallback) _deja_dup_config_choice_handle_changed_gtk_combo_box_changed, self, 0);
}


static GValue* _g_value_dup (GValue* self) {
	return g_boxed_copy (G_TYPE_VALUE, self);
}


static gpointer __g_value_dup0 (gpointer self) {
	return self ? _g_value_dup (self) : NULL;
}


GValue* deja_dup_config_choice_get_current_value (DejaDupConfigChoice* self) {
	GValue* result = NULL;
	GtkTreeIter iter = {0};
	GtkComboBox* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	gboolean _tmp2_ = FALSE;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->combo;
	_tmp2_ = gtk_combo_box_get_active_iter (_tmp0_, &_tmp1_);
	iter = _tmp1_;
	if (_tmp2_) {
		GValue val = {0};
		GtkComboBox* _tmp3_ = NULL;
		GtkTreeModel* _tmp4_ = NULL;
		GtkTreeModel* _tmp5_ = NULL;
		GtkTreeIter _tmp6_ = {0};
		gint _tmp7_ = 0;
		GValue _tmp8_ = {0};
		GValue _tmp9_ = {0};
		GValue* _tmp10_ = NULL;
		GValue* _tmp11_ = NULL;
		_tmp3_ = self->combo;
		_tmp4_ = gtk_combo_box_get_model (_tmp3_);
		_tmp5_ = _tmp4_;
		_tmp6_ = iter;
		_tmp7_ = self->settings_col;
		gtk_tree_model_get_value (_tmp5_, &_tmp6_, _tmp7_, &_tmp8_);
		G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL;
		val = _tmp8_;
		_tmp9_ = val;
		_tmp10_ = __g_value_dup0 (&_tmp9_);
		_tmp11_ = _tmp10_;
		G_IS_VALUE (&_tmp9_) ? (g_value_unset (&_tmp9_), NULL) : NULL;
		result = _tmp11_;
		return result;
	}
	result = NULL;
	return result;
}


static void _vala_GValue_free (GValue* self) {
	g_value_unset (self);
	g_free (self);
}


static void deja_dup_config_choice_real_handle_changed (DejaDupConfigChoice* self) {
	GValue* val = NULL;
	GValue* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	GValue* _tmp2_ = NULL;
	gchar* strval = NULL;
	gchar* _tmp5_ = NULL;
	DejaDupFilteredSettings* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = deja_dup_config_choice_get_current_value (self);
	val = _tmp0_;
	_tmp2_ = val;
	if (_tmp2_ == NULL) {
		_tmp1_ = "";
	} else {
		GValue* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
		_tmp3_ = val;
		_tmp4_ = g_value_get_string (_tmp3_);
		_tmp1_ = _tmp4_;
	}
	_tmp5_ = g_strdup (_tmp1_);
	strval = _tmp5_;
	_tmp6_ = ((DejaDupConfigWidget*) self)->settings;
	_tmp7_ = deja_dup_config_widget_get_key ((DejaDupConfigWidget*) self);
	_tmp8_ = _tmp7_;
	deja_dup_filtered_settings_set_string (_tmp6_, _tmp8_, strval);
	g_signal_emit_by_name (self, "choice-changed", strval);
	_g_free0 (strval);
	__vala_GValue_free0 (val);
}


void deja_dup_config_choice_handle_changed (DejaDupConfigChoice* self) {
	g_return_if_fail (self != NULL);
	DEJA_DUP_CONFIG_CHOICE_GET_CLASS (self)->handle_changed (self);
}


static void deja_dup_config_choice_real_set_from_config_data_free (gpointer _data) {
	DejaDupConfigChoiceSetFromConfigData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (DejaDupConfigChoiceSetFromConfigData, _data_);
}


static gpointer _g_object_ref0 (gpointer self) {
	return self ? g_object_ref (self) : NULL;
}


static void deja_dup_config_choice_real_set_from_config (DejaDupConfigWidget* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	DejaDupConfigChoice * self;
	DejaDupConfigChoiceSetFromConfigData* _data_;
	DejaDupConfigChoice* _tmp0_ = NULL;
	self = (DejaDupConfigChoice*) base;
	_data_ = g_slice_new0 (DejaDupConfigChoiceSetFromConfigData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, deja_dup_config_choice_real_set_from_config);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, deja_dup_config_choice_real_set_from_config_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	deja_dup_config_choice_real_set_from_config_co (_data_);
}


static void deja_dup_config_choice_real_set_from_config_finish (DejaDupConfigWidget* base, GAsyncResult* _res_) {
	DejaDupConfigChoiceSetFromConfigData* _data_;
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


static gboolean deja_dup_config_choice_real_set_from_config_co (DejaDupConfigChoiceSetFromConfigData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = NULL;
	_data_->_tmp0_ = ((DejaDupConfigWidget*) _data_->self)->settings;
	_data_->_tmp1_ = NULL;
	_data_->_tmp1_ = deja_dup_config_widget_get_key ((DejaDupConfigWidget*) _data_->self);
	_data_->_tmp2_ = NULL;
	_data_->_tmp2_ = _data_->_tmp1_;
	_data_->_tmp3_ = NULL;
	_data_->_tmp3_ = g_settings_get_string ((GSettings*) _data_->_tmp0_, _data_->_tmp2_);
	_data_->confval = _data_->_tmp3_;
	_data_->_tmp5_ = NULL;
	_data_->_tmp5_ = _data_->confval;
	if (_data_->_tmp5_ == NULL) {
		_data_->_tmp4_ = TRUE;
	} else {
		_data_->_tmp6_ = NULL;
		_data_->_tmp6_ = _data_->confval;
		_data_->_tmp4_ = g_strcmp0 (_data_->_tmp6_, "") == 0;
	}
	if (_data_->_tmp4_) {
		_data_->_tmp7_ = NULL;
		_data_->_tmp7_ = _data_->self->default_val;
		_data_->_tmp8_ = NULL;
		_data_->_tmp8_ = g_strdup (_data_->_tmp7_);
		_g_free0 (_data_->confval);
		_data_->confval = _data_->_tmp8_;
	}
	_data_->_tmp9_ = NULL;
	_data_->_tmp9_ = _data_->confval;
	if (_data_->_tmp9_ == NULL) {
		_g_free0 (_data_->confval);
		if (_data_->_state_ == 0) {
			g_simple_async_result_complete_in_idle (_data_->_async_result);
		} else {
			g_simple_async_result_complete (_data_->_async_result);
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_data_->_tmp10_ = NULL;
	_data_->_tmp10_ = _data_->self->combo;
	_data_->_tmp11_ = NULL;
	_data_->_tmp11_ = gtk_combo_box_get_model (_data_->_tmp10_);
	_data_->_tmp12_ = NULL;
	_data_->_tmp12_ = _data_->_tmp11_;
	memset (&_data_->_tmp13_, 0, sizeof (GtkTreeIter));
	_data_->_tmp14_ = FALSE;
	_data_->_tmp14_ = gtk_tree_model_get_iter_first (_data_->_tmp12_, &_data_->_tmp13_);
	_data_->iter = _data_->_tmp13_;
	_data_->valid = _data_->_tmp14_;
	while (TRUE) {
		_data_->_tmp15_ = FALSE;
		_data_->_tmp15_ = _data_->valid;
		if (!_data_->_tmp15_) {
			break;
		}
		_data_->_tmp16_ = NULL;
		_data_->_tmp16_ = _data_->self->combo;
		_data_->_tmp17_ = NULL;
		_data_->_tmp17_ = gtk_combo_box_get_model (_data_->_tmp16_);
		_data_->_tmp18_ = NULL;
		_data_->_tmp18_ = _data_->_tmp17_;
		memset (&_data_->_tmp19_, 0, sizeof (GtkTreeIter));
		_data_->_tmp19_ = _data_->iter;
		_data_->_tmp20_ = 0;
		_data_->_tmp20_ = _data_->self->settings_col;
		memset (&_data_->_tmp21_, 0, sizeof (GValue));
		gtk_tree_model_get_value (_data_->_tmp18_, &_data_->_tmp19_, _data_->_tmp20_, &_data_->_tmp21_);
		G_IS_VALUE (&_data_->val) ? (g_value_unset (&_data_->val), NULL) : NULL;
		_data_->val = _data_->_tmp21_;
		_data_->_tmp22_ = NULL;
		_data_->_tmp22_ = g_value_get_string (&_data_->val);
		_data_->_tmp23_ = NULL;
		_data_->_tmp23_ = g_strdup (_data_->_tmp22_);
		_data_->strval = _data_->_tmp23_;
		_data_->_tmp24_ = NULL;
		_data_->_tmp24_ = _data_->strval;
		_data_->_tmp25_ = NULL;
		_data_->_tmp25_ = _data_->confval;
		if (g_strcmp0 (_data_->_tmp24_, _data_->_tmp25_) == 0) {
			_data_->_tmp26_ = NULL;
			_data_->_tmp26_ = _data_->self->combo;
			memset (&_data_->_tmp27_, 0, sizeof (GtkTreeIter));
			_data_->_tmp27_ = _data_->iter;
			gtk_combo_box_set_active_iter (_data_->_tmp26_, &_data_->_tmp27_);
			_g_free0 (_data_->strval);
			G_IS_VALUE (&_data_->val) ? (g_value_unset (&_data_->val), NULL) : NULL;
			break;
		}
		_data_->_tmp28_ = NULL;
		_data_->_tmp28_ = _data_->self->combo;
		_data_->_tmp29_ = NULL;
		_data_->_tmp29_ = gtk_combo_box_get_model (_data_->_tmp28_);
		_data_->_tmp30_ = NULL;
		_data_->_tmp30_ = _data_->_tmp29_;
		_data_->_tmp31_ = FALSE;
		_data_->_tmp31_ = gtk_tree_model_iter_next (_data_->_tmp30_, &_data_->iter);
		_data_->valid = _data_->_tmp31_;
		_g_free0 (_data_->strval);
		G_IS_VALUE (&_data_->val) ? (g_value_unset (&_data_->val), NULL) : NULL;
	}
	_g_free0 (_data_->confval);
	if (_data_->_state_ == 0) {
		g_simple_async_result_complete_in_idle (_data_->_async_result);
	} else {
		g_simple_async_result_complete (_data_->_async_result);
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}


DejaDupConfigChoice* deja_dup_config_choice_construct (GType object_type) {
	DejaDupConfigChoice * self = NULL;
	self = (DejaDupConfigChoice*) deja_dup_config_widget_construct (object_type);
	return self;
}


DejaDupConfigChoice* deja_dup_config_choice_new (void) {
	return deja_dup_config_choice_construct (DEJA_DUP_TYPE_CONFIG_CHOICE);
}


static GObject * deja_dup_config_choice_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	DejaDupConfigChoice * self;
	GtkComboBoxText* _tmp0_ = NULL;
	GtkComboBox* _tmp1_ = NULL;
	parent_class = G_OBJECT_CLASS (deja_dup_config_choice_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, DEJA_DUP_TYPE_CONFIG_CHOICE, DejaDupConfigChoice);
	_tmp0_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
	g_object_ref_sink (_tmp0_);
	_g_object_unref0 (self->combo);
	self->combo = (GtkComboBox*) _tmp0_;
	_tmp1_ = self->combo;
	gtk_container_add ((GtkContainer*) self, (GtkWidget*) _tmp1_);
	return obj;
}


static void deja_dup_config_choice_class_init (DejaDupConfigChoiceClass * klass) {
	deja_dup_config_choice_parent_class = g_type_class_peek_parent (klass);
	((DejaDupConfigChoiceClass *) klass)->handle_changed = deja_dup_config_choice_real_handle_changed;
	((DejaDupConfigWidgetClass *) klass)->set_from_config = deja_dup_config_choice_real_set_from_config;
	((DejaDupConfigWidgetClass *) klass)->set_from_config_finish = deja_dup_config_choice_real_set_from_config_finish;
	G_OBJECT_CLASS (klass)->constructor = deja_dup_config_choice_constructor;
	G_OBJECT_CLASS (klass)->finalize = deja_dup_config_choice_finalize;
	g_signal_new ("choice_changed", DEJA_DUP_TYPE_CONFIG_CHOICE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
}


static void deja_dup_config_choice_instance_init (DejaDupConfigChoice * self) {
	self->default_val = NULL;
}


static void deja_dup_config_choice_finalize (GObject* obj) {
	DejaDupConfigChoice * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, DEJA_DUP_TYPE_CONFIG_CHOICE, DejaDupConfigChoice);
	_g_object_unref0 (self->combo);
	_g_free0 (self->default_val);
	G_OBJECT_CLASS (deja_dup_config_choice_parent_class)->finalize (obj);
}


GType deja_dup_config_choice_get_type (void) {
	static volatile gsize deja_dup_config_choice_type_id__volatile = 0;
	if (g_once_init_enter (&deja_dup_config_choice_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (DejaDupConfigChoiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) deja_dup_config_choice_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DejaDupConfigChoice), 0, (GInstanceInitFunc) deja_dup_config_choice_instance_init, NULL };
		GType deja_dup_config_choice_type_id;
		deja_dup_config_choice_type_id = g_type_register_static (DEJA_DUP_TYPE_CONFIG_WIDGET, "DejaDupConfigChoice", &g_define_type_info, 0);
		g_once_init_leave (&deja_dup_config_choice_type_id__volatile, deja_dup_config_choice_type_id);
	}
	return deja_dup_config_choice_type_id__volatile;
}



