/* conffiles.c generated by valac 0.56.18-dirty, the Vala compiler
 * generated from conffiles.vala, do not modify */

/* 
 *      Copyright 2012 Julien Lavergne <gilir@ubuntu.com>
 *
 *      This program 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.
 *
 *      This program 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 this program; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *      MA 02110-1301, USA.
 */

#include <glib-object.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <gio/gio.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif
#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif

#define LXSESSION_TYPE_CONFFILES_OBJECT (lxsession_conffiles_object_get_type ())
#define LXSESSION_CONFFILES_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_CONFFILES_OBJECT, LxsessionConffilesObject))
#define LXSESSION_CONFFILES_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_CONFFILES_OBJECT, LxsessionConffilesObjectClass))
#define LXSESSION_IS_CONFFILES_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_CONFFILES_OBJECT))
#define LXSESSION_IS_CONFFILES_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_CONFFILES_OBJECT))
#define LXSESSION_CONFFILES_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_CONFFILES_OBJECT, LxsessionConffilesObjectClass))

typedef struct _LxsessionConffilesObject LxsessionConffilesObject;
typedef struct _LxsessionConffilesObjectClass LxsessionConffilesObjectClass;
typedef struct _LxsessionConffilesObjectPrivate LxsessionConffilesObjectPrivate;
enum  {
	LXSESSION_CONFFILES_OBJECT_0_PROPERTY,
	LXSESSION_CONFFILES_OBJECT_NUM_PROPERTIES
};
static GParamSpec* lxsession_conffiles_object_properties[LXSESSION_CONFFILES_OBJECT_NUM_PROPERTIES];
#define _g_key_file_unref0(var) ((var == NULL) ? NULL : (var = (g_key_file_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

#define LXSESSION_TYPE_LXSESSION_CONFIG (lxsession_lxsession_config_get_type ())
#define LXSESSION_LXSESSION_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_LXSESSION_CONFIG, LxsessionLxsessionConfig))
#define LXSESSION_LXSESSION_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_LXSESSION_CONFIG, LxsessionLxsessionConfigClass))
#define LXSESSION_IS_LXSESSION_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_LXSESSION_CONFIG))
#define LXSESSION_IS_LXSESSION_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_LXSESSION_CONFIG))
#define LXSESSION_LXSESSION_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_LXSESSION_CONFIG, LxsessionLxsessionConfigClass))

typedef struct _LxsessionLxsessionConfig LxsessionLxsessionConfig;
typedef struct _LxsessionLxsessionConfigClass LxsessionLxsessionConfigClass;

#define LXSESSION_TYPE_LXSESSION_CONFIG_KEY_FILE (lxsession_lxsession_config_key_file_get_type ())
#define LXSESSION_LXSESSION_CONFIG_KEY_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LXSESSION_TYPE_LXSESSION_CONFIG_KEY_FILE, LxsessionLxsessionConfigKeyFile))
#define LXSESSION_LXSESSION_CONFIG_KEY_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LXSESSION_TYPE_LXSESSION_CONFIG_KEY_FILE, LxsessionLxsessionConfigKeyFileClass))
#define LXSESSION_IS_LXSESSION_CONFIG_KEY_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LXSESSION_TYPE_LXSESSION_CONFIG_KEY_FILE))
#define LXSESSION_IS_LXSESSION_CONFIG_KEY_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LXSESSION_TYPE_LXSESSION_CONFIG_KEY_FILE))
#define LXSESSION_LXSESSION_CONFIG_KEY_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LXSESSION_TYPE_LXSESSION_CONFIG_KEY_FILE, LxsessionLxsessionConfigKeyFileClass))

typedef struct _LxsessionLxsessionConfigKeyFile LxsessionLxsessionConfigKeyFile;
typedef struct _LxsessionLxsessionConfigKeyFileClass LxsessionLxsessionConfigKeyFileClass;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _LxsessionConffilesObject {
	GObject parent_instance;
	LxsessionConffilesObjectPrivate * priv;
	GKeyFile* kf;
	gchar* Openbox_dest;
	gchar* Qt_dest;
	gchar* Leafpad_dest;
	gchar* Lxterminal_dest;
	gchar* XScreensaver_dest;
	gchar* libfm_dest;
	gchar* cairo_dock_dest;
};

struct _LxsessionConffilesObjectClass {
	GObjectClass parent_class;
};

static gpointer lxsession_conffiles_object_parent_class = NULL;
VALA_EXTERN LxsessionLxsessionConfigKeyFile* lxsession_global_settings;

VALA_EXTERN GType lxsession_conffiles_object_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (LxsessionConffilesObject, g_object_unref)
VALA_EXTERN LxsessionConffilesObject* lxsession_conffiles_object_new (const gchar* conffiles_conf);
VALA_EXTERN LxsessionConffilesObject* lxsession_conffiles_object_construct (GType object_type,
                                                                const gchar* conffiles_conf);
VALA_EXTERN GKeyFile* lxsession_load_keyfile (const gchar* config_path);
VALA_EXTERN GType lxsession_lxsession_config_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (LxsessionLxsessionConfig, g_object_unref)
VALA_EXTERN GType lxsession_lxsession_config_key_file_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (LxsessionLxsessionConfigKeyFile, g_object_unref)
VALA_EXTERN gchar* lxsession_lxsession_config_get_item_string (LxsessionLxsessionConfig* self,
                                                   const gchar* categorie,
                                                   const gchar* key1,
                                                   const gchar* key2);
VALA_EXTERN void lxsession_conffiles_object_copy_file (LxsessionConffilesObject* self,
                                           const gchar* source_path,
                                           const gchar* dest_path);
VALA_EXTERN gchar* lxsession_conffiles_object_load_source_path (LxsessionConffilesObject* self,
                                                    const gchar* config_type);
VALA_EXTERN void lxsession_conffiles_object_copy_conf (LxsessionConffilesObject* self,
                                           const gchar* config_type,
                                           const gchar* dest_path);
VALA_EXTERN void lxsession_conffiles_object_apply (LxsessionConffilesObject* self);
static void lxsession_conffiles_object_finalize (GObject * obj);
static GType lxsession_conffiles_object_get_type_once (void);

LxsessionConffilesObject*
lxsession_conffiles_object_construct (GType object_type,
                                      const gchar* conffiles_conf)
{
	LxsessionConffilesObject * self = NULL;
	GKeyFile* _tmp0_;
	LxsessionLxsessionConfigKeyFile* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gboolean _tmp4_;
	g_return_val_if_fail (conffiles_conf != NULL, NULL);
	self = (LxsessionConffilesObject*) g_object_new (object_type, NULL);
	_tmp0_ = lxsession_load_keyfile (conffiles_conf);
	_g_key_file_unref0 (self->kf);
	self->kf = _tmp0_;
	_tmp1_ = lxsession_global_settings;
	_tmp2_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp1_, "Session", "windows_manager", "command");
	_tmp3_ = _tmp2_;
	_tmp4_ = g_strcmp0 (_tmp3_, "openbox") == 0;
	_g_free0 (_tmp3_);
	if (_tmp4_) {
		LxsessionLxsessionConfigKeyFile* _tmp5_;
		gchar* _tmp6_;
		gchar* _tmp7_;
		gboolean _tmp8_;
		_tmp5_ = lxsession_global_settings;
		_tmp6_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp5_, "Session", "windows_manager", "session");
		_tmp7_ = _tmp6_;
		_tmp8_ = g_strcmp0 (_tmp7_, "LXDE") == 0;
		_g_free0 (_tmp7_);
		if (_tmp8_) {
			const gchar* _tmp9_;
			gchar* _tmp10_;
			_tmp9_ = g_get_user_config_dir ();
			_tmp10_ = g_build_filename (_tmp9_, "openbox", "lxde-rc.xml", NULL);
			_g_free0 (self->Openbox_dest);
			self->Openbox_dest = _tmp10_;
		} else {
			LxsessionLxsessionConfigKeyFile* _tmp11_;
			gchar* _tmp12_;
			gchar* _tmp13_;
			gboolean _tmp14_;
			_tmp11_ = lxsession_global_settings;
			_tmp12_ = lxsession_lxsession_config_get_item_string ((LxsessionLxsessionConfig*) _tmp11_, "Session", "windows_manager", "session");
			_tmp13_ = _tmp12_;
			_tmp14_ = g_strcmp0 (_tmp13_, "Lubuntu") == 0;
			_g_free0 (_tmp13_);
			if (_tmp14_) {
				const gchar* _tmp15_;
				gchar* _tmp16_;
				_tmp15_ = g_get_user_config_dir ();
				_tmp16_ = g_build_filename (_tmp15_, "openbox", "lubuntu-rc.xml", NULL);
				_g_free0 (self->Openbox_dest);
				self->Openbox_dest = _tmp16_;
			}
		}
	} else {
		const gchar* _tmp17_;
		gchar* _tmp18_;
		_tmp17_ = g_get_user_config_dir ();
		_tmp18_ = g_build_filename (_tmp17_, "openbox", "lxde-rc.xml", NULL);
		_g_free0 (self->Openbox_dest);
		self->Openbox_dest = _tmp18_;
	}
	return self;
}

LxsessionConffilesObject*
lxsession_conffiles_object_new (const gchar* conffiles_conf)
{
	return lxsession_conffiles_object_construct (LXSESSION_TYPE_CONFFILES_OBJECT, conffiles_conf);
}

void
lxsession_conffiles_object_copy_file (LxsessionConffilesObject* self,
                                      const gchar* source_path,
                                      const gchar* dest_path)
{
	GFile* source_file = NULL;
	GFile* _tmp0_;
	GFile* dest_file = NULL;
	GFile* _tmp1_;
	GFile* dest_directory = NULL;
	GFile* _tmp2_;
	GFile* _tmp3_;
	GFile* _tmp4_;
	GError* _inner_error0_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (source_path != NULL);
	g_return_if_fail (dest_path != NULL);
	_tmp0_ = g_file_new_for_path (source_path);
	source_file = _tmp0_;
	_tmp1_ = g_file_new_for_path (dest_path);
	dest_file = _tmp1_;
	_tmp2_ = dest_file;
	_tmp3_ = g_file_get_parent (_tmp2_);
	dest_directory = _tmp3_;
	_tmp4_ = dest_file;
	if (!g_file_query_exists (_tmp4_, NULL)) {
		GFile* _tmp5_;
		_tmp5_ = dest_directory;
		if (!g_file_query_exists (_tmp5_, NULL)) {
			{
				GFile* _tmp6_;
				_tmp6_ = dest_directory;
				g_file_make_directory_with_parents (_tmp6_, NULL, &_inner_error0_);
				if (G_UNLIKELY (_inner_error0_ != NULL)) {
					goto __catch0_g_error;
				}
			}
			goto __finally0;
			__catch0_g_error:
			{
				GError* err = NULL;
				GError* _tmp7_;
				const gchar* _tmp8_;
				err = _inner_error0_;
				_inner_error0_ = NULL;
				_tmp7_ = err;
				_tmp8_ = _tmp7_->message;
				g_message ("conffiles.vala:73: %s", _tmp8_);
				_g_error_free0 (err);
			}
			__finally0:
			if (G_UNLIKELY (_inner_error0_ != NULL)) {
				_g_object_unref0 (dest_directory);
				_g_object_unref0 (dest_file);
				_g_object_unref0 (source_file);
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
				g_clear_error (&_inner_error0_);
				return;
			}
		}
		{
			GFile* _tmp9_;
			GFile* _tmp10_;
			_tmp9_ = source_file;
			_tmp10_ = dest_file;
			g_file_copy (_tmp9_, _tmp10_, G_FILE_COPY_NONE, NULL, NULL, NULL, &_inner_error0_);
			if (G_UNLIKELY (_inner_error0_ != NULL)) {
				goto __catch1_g_error;
			}
		}
		goto __finally1;
		__catch1_g_error:
		{
			GError* err = NULL;
			GError* _tmp11_;
			const gchar* _tmp12_;
			err = _inner_error0_;
			_inner_error0_ = NULL;
			_tmp11_ = err;
			_tmp12_ = _tmp11_->message;
			g_message ("conffiles.vala:83: %s", _tmp12_);
			_g_error_free0 (err);
		}
		__finally1:
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			_g_object_unref0 (dest_directory);
			_g_object_unref0 (dest_file);
			_g_object_unref0 (source_file);
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
			g_clear_error (&_inner_error0_);
			return;
		}
	}
	_g_object_unref0 (dest_directory);
	_g_object_unref0 (dest_file);
	_g_object_unref0 (source_file);
}

gchar*
lxsession_conffiles_object_load_source_path (LxsessionConffilesObject* self,
                                             const gchar* config_type)
{
	gchar* source = NULL;
	GError* _inner_error0_ = NULL;
	gchar* result;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (config_type != NULL, NULL);
	{
		gchar* _tmp0_ = NULL;
		GKeyFile* _tmp1_;
		gchar* _tmp2_;
		gchar* _tmp3_;
		_tmp1_ = self->kf;
		_tmp2_ = g_key_file_get_value (_tmp1_, config_type, "source", &_inner_error0_);
		_tmp0_ = _tmp2_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			if (_inner_error0_->domain == G_KEY_FILE_ERROR) {
				goto __catch0_g_key_file_error;
			}
			_g_free0 (source);
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
			g_clear_error (&_inner_error0_);
			return NULL;
		}
		_tmp3_ = _tmp0_;
		_tmp0_ = NULL;
		_g_free0 (source);
		source = _tmp3_;
		result = source;
		_g_free0 (_tmp0_);
		return result;
	}
	goto __finally0;
	__catch0_g_key_file_error:
	{
		GError* err = NULL;
		GError* _tmp4_;
		const gchar* _tmp5_;
		gchar* _tmp6_;
		err = _inner_error0_;
		_inner_error0_ = NULL;
		_tmp4_ = err;
		_tmp5_ = _tmp4_->message;
		g_message ("conffiles.vala:97: %s", _tmp5_);
		_tmp6_ = g_strdup ("");
		result = _tmp6_;
		_g_error_free0 (err);
		_g_free0 (source);
		return result;
	}
	__finally0:
	_g_free0 (source);
	g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
	g_clear_error (&_inner_error0_);
	return NULL;
}

void
lxsession_conffiles_object_copy_conf (LxsessionConffilesObject* self,
                                      const gchar* config_type,
                                      const gchar* dest_path)
{
	GKeyFile* _tmp0_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (config_type != NULL);
	g_return_if_fail (dest_path != NULL);
	_tmp0_ = self->kf;
	if (g_key_file_has_group (_tmp0_, config_type)) {
		gchar* _tmp1_;
		gchar* _tmp2_;
		_tmp1_ = lxsession_conffiles_object_load_source_path (self, config_type);
		_tmp2_ = _tmp1_;
		lxsession_conffiles_object_copy_file (self, _tmp2_, dest_path);
		_g_free0 (_tmp2_);
	}
}

void
lxsession_conffiles_object_apply (LxsessionConffilesObject* self)
{
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->Openbox_dest;
	lxsession_conffiles_object_copy_conf (self, "Openbox", _tmp0_);
	_tmp1_ = self->Qt_dest;
	lxsession_conffiles_object_copy_conf (self, "Qt", _tmp1_);
	_tmp2_ = self->Leafpad_dest;
	lxsession_conffiles_object_copy_conf (self, "Leafpad", _tmp2_);
	_tmp3_ = self->Lxterminal_dest;
	lxsession_conffiles_object_copy_conf (self, "Lxterminal", _tmp3_);
	_tmp4_ = self->XScreensaver_dest;
	lxsession_conffiles_object_copy_conf (self, "XScreensaver", _tmp4_);
	_tmp5_ = self->libfm_dest;
	lxsession_conffiles_object_copy_conf (self, "libfm", _tmp5_);
	_tmp6_ = self->cairo_dock_dest;
	lxsession_conffiles_object_copy_conf (self, "cairo-dock", _tmp6_);
}

static void
lxsession_conffiles_object_class_init (LxsessionConffilesObjectClass * klass,
                                       gpointer klass_data)
{
	lxsession_conffiles_object_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->finalize = lxsession_conffiles_object_finalize;
}

static void
lxsession_conffiles_object_instance_init (LxsessionConffilesObject * self,
                                          gpointer klass)
{
	const gchar* _tmp0_;
	gchar* _tmp1_;
	const gchar* _tmp2_;
	gchar* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_;
	const gchar* _tmp6_;
	gchar* _tmp7_;
	const gchar* _tmp8_;
	gchar* _tmp9_;
	const gchar* _tmp10_;
	gchar* _tmp11_;
	_tmp0_ = g_get_user_config_dir ();
	_tmp1_ = g_build_filename (_tmp0_, "Trolltech.conf", NULL);
	self->Qt_dest = _tmp1_;
	_tmp2_ = g_get_user_config_dir ();
	_tmp3_ = g_build_filename (_tmp2_, "leafpad", "leafpadrc", NULL);
	self->Leafpad_dest = _tmp3_;
	_tmp4_ = g_get_user_config_dir ();
	_tmp5_ = g_build_filename (_tmp4_, "lxterminal", "lxterminal.conf", NULL);
	self->Lxterminal_dest = _tmp5_;
	_tmp6_ = g_get_home_dir ();
	_tmp7_ = g_build_filename (_tmp6_, ".xscreensaver", NULL);
	self->XScreensaver_dest = _tmp7_;
	_tmp8_ = g_get_user_config_dir ();
	_tmp9_ = g_build_filename (_tmp8_, "libfm", "libfm.conf", NULL);
	self->libfm_dest = _tmp9_;
	_tmp10_ = g_get_user_config_dir ();
	_tmp11_ = g_build_filename (_tmp10_, "cairo-dock", "cairo-dock.conf", NULL);
	self->cairo_dock_dest = _tmp11_;
}

static void
lxsession_conffiles_object_finalize (GObject * obj)
{
	LxsessionConffilesObject * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, LXSESSION_TYPE_CONFFILES_OBJECT, LxsessionConffilesObject);
	_g_key_file_unref0 (self->kf);
	_g_free0 (self->Openbox_dest);
	_g_free0 (self->Qt_dest);
	_g_free0 (self->Leafpad_dest);
	_g_free0 (self->Lxterminal_dest);
	_g_free0 (self->XScreensaver_dest);
	_g_free0 (self->libfm_dest);
	_g_free0 (self->cairo_dock_dest);
	G_OBJECT_CLASS (lxsession_conffiles_object_parent_class)->finalize (obj);
}

static GType
lxsession_conffiles_object_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (LxsessionConffilesObjectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) lxsession_conffiles_object_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LxsessionConffilesObject), 0, (GInstanceInitFunc) lxsession_conffiles_object_instance_init, NULL };
	GType lxsession_conffiles_object_type_id;
	lxsession_conffiles_object_type_id = g_type_register_static (G_TYPE_OBJECT, "LxsessionConffilesObject", &g_define_type_info, 0);
	return lxsession_conffiles_object_type_id;
}

GType
lxsession_conffiles_object_get_type (void)
{
	static volatile gsize lxsession_conffiles_object_type_id__once = 0;
	if (g_once_init_enter (&lxsession_conffiles_object_type_id__once)) {
		GType lxsession_conffiles_object_type_id;
		lxsession_conffiles_object_type_id = lxsession_conffiles_object_get_type_once ();
		g_once_init_leave (&lxsession_conffiles_object_type_id__once, lxsession_conffiles_object_type_id);
	}
	return lxsession_conffiles_object_type_id__once;
}

