/* display-config.c generated by valac 0.17.3.12-6a5ea3, the Vala compiler
 * generated from display-config.vala, do not modify */

/* This file is part of GNOME Boxes. License: LGPLv2+*/

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


#define BOXES_TYPE_ICONFIG (boxes_iconfig_get_type ())
#define BOXES_ICONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_ICONFIG, BoxesIConfig))
#define BOXES_IS_ICONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_ICONFIG))
#define BOXES_ICONFIG_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), BOXES_TYPE_ICONFIG, BoxesIConfigIface))

typedef struct _BoxesIConfig BoxesIConfig;
typedef struct _BoxesIConfigIface BoxesIConfigIface;

#define BOXES_TYPE_DISPLAY_CONFIG (boxes_display_config_get_type ())
#define BOXES_DISPLAY_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_DISPLAY_CONFIG, BoxesDisplayConfig))
#define BOXES_DISPLAY_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_DISPLAY_CONFIG, BoxesDisplayConfigClass))
#define BOXES_IS_DISPLAY_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_DISPLAY_CONFIG))
#define BOXES_IS_DISPLAY_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_DISPLAY_CONFIG))
#define BOXES_DISPLAY_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_DISPLAY_CONFIG, BoxesDisplayConfigClass))

typedef struct _BoxesDisplayConfig BoxesDisplayConfig;
typedef struct _BoxesDisplayConfigClass BoxesDisplayConfigClass;
typedef struct _BoxesDisplayConfigPrivate BoxesDisplayConfigPrivate;

#define BOXES_TYPE_COLLECTION_SOURCE (boxes_collection_source_get_type ())
#define BOXES_COLLECTION_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_COLLECTION_SOURCE, BoxesCollectionSource))
#define BOXES_COLLECTION_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_COLLECTION_SOURCE, BoxesCollectionSourceClass))
#define BOXES_IS_COLLECTION_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_COLLECTION_SOURCE))
#define BOXES_IS_COLLECTION_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_COLLECTION_SOURCE))
#define BOXES_COLLECTION_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_COLLECTION_SOURCE, BoxesCollectionSourceClass))

typedef struct _BoxesCollectionSource BoxesCollectionSource;
typedef struct _BoxesCollectionSourceClass BoxesCollectionSourceClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

struct _BoxesIConfigIface {
	GTypeInterface parent_iface;
	GKeyFile* (*get_keyfile) (BoxesIConfig* self);
	const gchar* (*get_filename) (BoxesIConfig* self);
	void (*set_filename) (BoxesIConfig* self, const gchar* value);
	gboolean (*get_has_file) (BoxesIConfig* self);
	void (*set_has_file) (BoxesIConfig* self, gboolean value);
};

struct _BoxesDisplayConfig {
	GObject parent_instance;
	BoxesDisplayConfigPrivate * priv;
};

struct _BoxesDisplayConfigClass {
	GObjectClass parent_class;
};

struct _BoxesDisplayConfigPrivate {
	BoxesCollectionSource* source;
	gchar* group;
};


static gpointer boxes_display_config_parent_class = NULL;
static BoxesIConfigIface* boxes_display_config_boxes_iconfig_parent_iface = NULL;

GType boxes_iconfig_get_type (void) G_GNUC_CONST;
GType boxes_display_config_get_type (void) G_GNUC_CONST;
GType boxes_collection_source_get_type (void) G_GNUC_CONST;
#define BOXES_DISPLAY_CONFIG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_DISPLAY_CONFIG, BoxesDisplayConfigPrivate))
enum  {
	BOXES_DISPLAY_CONFIG_DUMMY_PROPERTY,
	BOXES_DISPLAY_CONFIG_CATEGORIES
};
BoxesDisplayConfig* boxes_display_config_new (BoxesCollectionSource* source, const gchar* subgroup);
BoxesDisplayConfig* boxes_display_config_construct (GType object_type, BoxesCollectionSource* source, const gchar* subgroup);
void boxes_display_config_add_category (BoxesDisplayConfig* self, const gchar* category);
gchar** boxes_display_config_get_categories (BoxesDisplayConfig* self, int* result_length1);
static gboolean _vala_string_array_contains (gchar** stack, int stack_length, gchar* needle);
static void _vala_array_add1 (gchar*** array, int* length, int* size, gchar* value);
void boxes_display_config_set_categories (BoxesDisplayConfig* self, gchar** value, int value_length1);
void boxes_iconfig_save (BoxesIConfig* self);
void boxes_display_config_save_display_property (BoxesDisplayConfig* self, GObject* display, const gchar* property_name);
GKeyFile* boxes_iconfig_get_keyfile (BoxesIConfig* self);
void boxes_display_config_load_display_property (BoxesDisplayConfig* self, GObject* display, const gchar* property_name, GValue* default_value);
gboolean boxes_iconfig_get_has_file (BoxesIConfig* self);
void boxes_iconfig_set_has_file (BoxesIConfig* self, gboolean value);
const gchar* boxes_iconfig_get_filename (BoxesIConfig* self);
gchar** boxes_iconfig_get_string_list (BoxesIConfig* self, const gchar* group, const gchar* key, int* result_length1);
static void boxes_display_config_finalize (GObject* obj);
static void _vala_boxes_display_config_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_boxes_display_config_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);


static gpointer _g_object_ref0 (gpointer self) {
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	return self ? g_object_ref (self) : NULL;
#line 105 "display-config.c"
}


BoxesDisplayConfig* boxes_display_config_construct (GType object_type, BoxesCollectionSource* source, const gchar* subgroup) {
	BoxesDisplayConfig * self = NULL;
	BoxesCollectionSource* _tmp0_;
	BoxesCollectionSource* _tmp1_;
	gchar* _tmp2_;
	const gchar* _tmp3_;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	g_return_val_if_fail (source != NULL, NULL);
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	self = (BoxesDisplayConfig*) g_object_new (object_type, NULL);
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp0_ = source;
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_g_object_unref0 (self->priv->source);
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	self->priv->source = _tmp1_;
#line 28 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp2_ = g_strdup ("display");
#line 28 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_g_free0 (self->priv->group);
#line 28 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	self->priv->group = _tmp2_;
#line 29 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp3_ = subgroup;
#line 29 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	if (_tmp3_ != NULL) {
#line 137 "display-config.c"
		const gchar* _tmp4_;
		const gchar* _tmp5_;
		gchar* _tmp6_;
		gchar* _tmp7_;
		gchar* _tmp8_;
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		_tmp4_ = self->priv->group;
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		_tmp5_ = subgroup;
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		_tmp6_ = g_strconcat (" ", _tmp5_, NULL);
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		_tmp7_ = _tmp6_;
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		_tmp8_ = g_strconcat (_tmp4_, _tmp7_, NULL);
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		_g_free0 (self->priv->group);
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		self->priv->group = _tmp8_;
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		_g_free0 (_tmp7_);
#line 159 "display-config.c"
	}
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	return self;
#line 163 "display-config.c"
}


BoxesDisplayConfig* boxes_display_config_new (BoxesCollectionSource* source, const gchar* subgroup) {
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	return boxes_display_config_construct (BOXES_TYPE_DISPLAY_CONFIG, source, subgroup);
#line 170 "display-config.c"
}


static gboolean _vala_string_array_contains (gchar** stack, int stack_length, gchar* needle) {
	int i;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	for (i = 0; i < stack_length; i++) {
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		if (g_strcmp0 (stack[i], needle) == 0) {
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			return TRUE;
#line 182 "display-config.c"
		}
	}
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	return FALSE;
#line 187 "display-config.c"
}


static void _vala_array_add1 (gchar*** array, int* length, int* size, gchar* value) {
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	if ((*length) == (*size)) {
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 198 "display-config.c"
	}
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	(*array)[(*length)++] = value;
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	(*array)[*length] = NULL;
#line 204 "display-config.c"
}


void boxes_display_config_add_category (BoxesDisplayConfig* self, const gchar* category) {
	const gchar* _tmp0_;
	gchar** _tmp1_;
	gint _tmp1__length1;
	gchar** _tmp2_;
	gint _tmp2__length1;
	gchar** _tmp3_;
	gint _tmp3__length1;
	gboolean _tmp4_;
	gchar** _tmp5_;
	gint _tmp5__length1;
	gchar** _tmp6_;
	gint _tmp6__length1;
	gchar** categories;
	gint categories_length1;
	gint _categories_size_;
	gchar** _tmp7_;
	gint _tmp7__length1;
	const gchar* _tmp8_;
	gchar* _tmp9_;
	gchar** _tmp10_;
	gint _tmp10__length1;
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	g_return_if_fail (self != NULL);
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	g_return_if_fail (category != NULL);
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp0_ = category;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp1_ = boxes_display_config_get_categories (self, &_tmp1__length1);
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp2_ = _tmp1_;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp2__length1 = _tmp1__length1;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp3_ = _tmp2_;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp3__length1 = _tmp2__length1;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp4_ = _vala_string_array_contains (_tmp3_, _tmp2__length1, _tmp0_);
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp3_ = (_vala_array_free (_tmp3_, _tmp3__length1, (GDestroyNotify) g_free), NULL);
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	if (_tmp4_) {
#line 35 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		return;
#line 254 "display-config.c"
	}
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp5_ = boxes_display_config_get_categories (self, &_tmp5__length1);
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp6_ = _tmp5_;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp6__length1 = _tmp5__length1;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	categories = _tmp6_;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	categories_length1 = _tmp6__length1;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_categories_size_ = categories_length1;
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp7_ = categories;
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp7__length1 = categories_length1;
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp8_ = category;
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp9_ = g_strdup (_tmp8_);
#line 39 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_vala_array_add1 (&categories, &categories_length1, &_categories_size_, _tmp9_);
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp10_ = categories;
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp10__length1 = categories_length1;
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	boxes_display_config_set_categories (self, _tmp10_, _tmp10__length1);
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	boxes_iconfig_save ((BoxesIConfig*) self);
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	categories = (_vala_array_free (categories, categories_length1, (GDestroyNotify) g_free), NULL);
#line 288 "display-config.c"
}


void boxes_display_config_save_display_property (BoxesDisplayConfig* self, GObject* display, const gchar* property_name) {
	GObject* _tmp0_;
	GObjectClass* _tmp1_ = NULL;
	const gchar* _tmp2_;
	GParamSpec* _tmp3_ = NULL;
	GType _tmp4_;
	GValue _tmp5_ = {0};
	GValue value;
	GObject* _tmp6_;
	const gchar* _tmp7_;
	GType _tmp8_ = 0UL;
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	g_return_if_fail (self != NULL);
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	g_return_if_fail (display != NULL);
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	g_return_if_fail (property_name != NULL);
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp0_ = display;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp1_ = G_OBJECT_GET_CLASS (_tmp0_);
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp2_ = property_name;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp3_ = g_object_class_find_property (_tmp1_, _tmp2_);
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp4_ = _tmp3_->value_type;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	g_value_init (&_tmp5_, _tmp4_);
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	value = _tmp5_;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp6_ = display;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp7_ = property_name;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	g_object_get_property (_tmp6_, _tmp7_, &value);
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp8_ = G_VALUE_TYPE (&value);
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	if (_tmp8_ == G_TYPE_STRING) {
#line 333 "display-config.c"
		GKeyFile* _tmp9_;
		GKeyFile* _tmp10_;
		const gchar* _tmp11_;
		const gchar* _tmp12_;
		const gchar* _tmp13_ = NULL;
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		_tmp9_ = boxes_iconfig_get_keyfile ((BoxesIConfig*) self);
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		_tmp10_ = _tmp9_;
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		_tmp11_ = self->priv->group;
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		_tmp12_ = property_name;
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		_tmp13_ = g_value_get_string (&value);
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		g_key_file_set_string (_tmp10_, _tmp11_, _tmp12_, _tmp13_);
#line 351 "display-config.c"
	} else {
		GType _tmp14_ = 0UL;
#line 52 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		_tmp14_ = G_VALUE_TYPE (&value);
#line 52 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		if (_tmp14_ == G_TYPE_BOOLEAN) {
#line 358 "display-config.c"
			GKeyFile* _tmp15_;
			GKeyFile* _tmp16_;
			const gchar* _tmp17_;
			const gchar* _tmp18_;
			gboolean _tmp19_ = FALSE;
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp15_ = boxes_iconfig_get_keyfile ((BoxesIConfig*) self);
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp16_ = _tmp15_;
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp17_ = self->priv->group;
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp18_ = property_name;
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp19_ = g_value_get_boolean (&value);
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			g_key_file_set_boolean (_tmp16_, _tmp17_, _tmp18_, _tmp19_);
#line 376 "display-config.c"
		} else {
			const gchar* _tmp20_;
			gchar* _tmp21_ = NULL;
			gchar* _tmp22_;
			gchar* _tmp23_ = NULL;
			gchar* _tmp24_;
#line 55 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp20_ = property_name;
#line 55 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp21_ = g_strdup_value_contents (&value);
#line 55 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp22_ = _tmp21_;
#line 55 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp23_ = g_strdup_printf ("unhandled property %s type, value: %s", _tmp20_, _tmp22_);
#line 55 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp24_ = _tmp23_;
#line 55 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			g_warning ("display-config.vala:55: %s", _tmp24_);
#line 55 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_g_free0 (_tmp24_);
#line 55 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_g_free0 (_tmp22_);
#line 399 "display-config.c"
		}
	}
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	boxes_iconfig_save ((BoxesIConfig*) self);
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	G_IS_VALUE (&value) ? (g_value_unset (&value), NULL) : NULL;
#line 406 "display-config.c"
}


void boxes_display_config_load_display_property (BoxesDisplayConfig* self, GObject* display, const gchar* property_name, GValue* default_value) {
	GObject* _tmp0_;
	GObjectClass* _tmp1_ = NULL;
	const gchar* _tmp2_;
	GParamSpec* _tmp3_ = NULL;
	GType _tmp4_;
	GValue _tmp5_ = {0};
	GValue value;
	GObject* _tmp24_;
	const gchar* _tmp25_;
	GValue _tmp26_;
	GError * _inner_error_ = NULL;
#line 61 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	g_return_if_fail (self != NULL);
#line 61 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	g_return_if_fail (display != NULL);
#line 61 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	g_return_if_fail (property_name != NULL);
#line 61 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	g_return_if_fail (default_value != NULL);
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp0_ = display;
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp1_ = G_OBJECT_GET_CLASS (_tmp0_);
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp2_ = property_name;
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp3_ = g_object_class_find_property (_tmp1_, _tmp2_);
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp4_ = _tmp3_->value_type;
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	g_value_init (&_tmp5_, _tmp4_);
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	value = _tmp5_;
#line 444 "display-config.c"
	{
		GType _tmp6_ = 0UL;
		GType _tmp14_ = 0UL;
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		_tmp6_ = G_VALUE_TYPE (&value);
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		if (_tmp6_ == G_TYPE_STRING) {
#line 452 "display-config.c"
			GKeyFile* _tmp7_;
			GKeyFile* _tmp8_;
			const gchar* _tmp9_;
			const gchar* _tmp10_;
			gchar* _tmp11_ = NULL;
			gchar* _tmp12_;
			GValue _tmp13_ = {0};
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp7_ = boxes_iconfig_get_keyfile ((BoxesIConfig*) self);
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp8_ = _tmp7_;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp9_ = self->priv->group;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp10_ = property_name;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp11_ = g_key_file_get_string (_tmp8_, _tmp9_, _tmp10_, &_inner_error_);
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp12_ = _tmp11_;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			if (_inner_error_ != NULL) {
#line 474 "display-config.c"
				goto __catch10_g_error;
			}
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			g_value_init (&_tmp13_, G_TYPE_STRING);
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			g_value_take_string (&_tmp13_, _tmp12_);
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			G_IS_VALUE (&value) ? (g_value_unset (&value), NULL) : NULL;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			value = _tmp13_;
#line 485 "display-config.c"
		}
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		_tmp14_ = G_VALUE_TYPE (&value);
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		if (_tmp14_ == G_TYPE_BOOLEAN) {
#line 491 "display-config.c"
			GKeyFile* _tmp15_;
			GKeyFile* _tmp16_;
			const gchar* _tmp17_;
			const gchar* _tmp18_;
			gboolean _tmp19_ = FALSE;
			gboolean _tmp20_;
			GValue _tmp21_ = {0};
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp15_ = boxes_iconfig_get_keyfile ((BoxesIConfig*) self);
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp16_ = _tmp15_;
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp17_ = self->priv->group;
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp18_ = property_name;
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp19_ = g_key_file_get_boolean (_tmp16_, _tmp17_, _tmp18_, &_inner_error_);
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp20_ = _tmp19_;
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			if (_inner_error_ != NULL) {
#line 513 "display-config.c"
				goto __catch10_g_error;
			}
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			g_value_init (&_tmp21_, G_TYPE_BOOLEAN);
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			g_value_set_boolean (&_tmp21_, _tmp20_);
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			G_IS_VALUE (&value) ? (g_value_unset (&value), NULL) : NULL;
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			value = _tmp21_;
#line 524 "display-config.c"
		}
	}
	goto __finally10;
	__catch10_g_error:
	{
		GError* err = NULL;
		GValue _tmp22_;
		GValue _tmp23_ = {0};
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		err = _inner_error_;
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		_inner_error_ = NULL;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		_tmp22_ = *default_value;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		if (G_IS_VALUE (&_tmp22_)) {
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			g_value_init (&_tmp23_, G_VALUE_TYPE (&_tmp22_));
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			g_value_copy (&_tmp22_, &_tmp23_);
#line 545 "display-config.c"
		} else {
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			_tmp23_ = _tmp22_;
#line 549 "display-config.c"
		}
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		G_IS_VALUE (&value) ? (g_value_unset (&value), NULL) : NULL;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		value = _tmp23_;
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		_g_error_free0 (err);
#line 557 "display-config.c"
	}
	__finally10:
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	if (_inner_error_ != NULL) {
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		G_IS_VALUE (&value) ? (g_value_unset (&value), NULL) : NULL;
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.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 64 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		g_clear_error (&_inner_error_);
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		return;
#line 570 "display-config.c"
	}
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp24_ = display;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp25_ = property_name;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp26_ = value;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	g_object_set_property (_tmp24_, _tmp25_, &_tmp26_);
#line 61 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	G_IS_VALUE (&value) ? (g_value_unset (&value), NULL) : NULL;
#line 582 "display-config.c"
}


static gboolean boxes_display_config_real_get_has_file (BoxesIConfig* base) {
	gboolean result;
	BoxesDisplayConfig* self;
	BoxesCollectionSource* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	self = (BoxesDisplayConfig*) base;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp0_ = self->priv->source;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp1_ = boxes_iconfig_get_has_file ((BoxesIConfig*) _tmp0_);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp2_ = _tmp1_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	result = _tmp2_;
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	return result;
#line 604 "display-config.c"
}


static void boxes_display_config_real_set_has_file (BoxesIConfig* base, gboolean value) {
	BoxesDisplayConfig* self;
	BoxesCollectionSource* _tmp0_;
	gboolean _tmp1_;
#line 8 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	self = (BoxesDisplayConfig*) base;
#line 8 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp0_ = self->priv->source;
#line 8 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp1_ = value;
#line 8 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	boxes_iconfig_set_has_file ((BoxesIConfig*) _tmp0_, _tmp1_);
#line 620 "display-config.c"
}


static const gchar* boxes_display_config_real_get_filename (BoxesIConfig* base) {
	const gchar* result;
	BoxesDisplayConfig* self;
	BoxesCollectionSource* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
#line 11 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	self = (BoxesDisplayConfig*) base;
#line 11 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp0_ = self->priv->source;
#line 11 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp1_ = boxes_iconfig_get_filename ((BoxesIConfig*) _tmp0_);
#line 11 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp2_ = _tmp1_;
#line 11 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	result = _tmp2_;
#line 11 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	return result;
#line 642 "display-config.c"
}


static void boxes_display_config_real_set_filename (BoxesIConfig* base, const gchar* value) {
	BoxesDisplayConfig* self;
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	self = (BoxesDisplayConfig*) base;
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	g_warning ("display-config.vala:12: not allowed to change filename");
#line 652 "display-config.c"
}


static GKeyFile* boxes_display_config_real_get_keyfile (BoxesIConfig* base) {
	GKeyFile* result;
	BoxesDisplayConfig* self;
	BoxesCollectionSource* _tmp0_;
	GKeyFile* _tmp1_;
	GKeyFile* _tmp2_;
#line 15 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	self = (BoxesDisplayConfig*) base;
#line 15 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp0_ = self->priv->source;
#line 15 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp1_ = boxes_iconfig_get_keyfile ((BoxesIConfig*) _tmp0_);
#line 15 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp2_ = _tmp1_;
#line 15 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	result = _tmp2_;
#line 15 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	return result;
#line 674 "display-config.c"
}


gchar** boxes_display_config_get_categories (BoxesDisplayConfig* self, int* result_length1) {
	gchar** result;
	const gchar* _tmp0_;
	gint _tmp1_ = 0;
	gchar** _tmp2_ = NULL;
	gchar** _tmp3_;
	gint _tmp3__length1;
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp0_ = self->priv->group;
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp2_ = boxes_iconfig_get_string_list ((BoxesIConfig*) self, _tmp0_, "categories", &_tmp1_);
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp3_ = _tmp2_;
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp3__length1 = _tmp1_;
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	if (result_length1) {
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		*result_length1 = _tmp3__length1;
#line 699 "display-config.c"
	}
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	result = _tmp3_;
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	return result;
#line 705 "display-config.c"
}


void boxes_display_config_set_categories (BoxesDisplayConfig* self, gchar** value, int value_length1) {
	GKeyFile* _tmp0_;
	GKeyFile* _tmp1_;
	const gchar* _tmp2_;
	gchar** _tmp3_;
	gint _tmp3__length1;
#line 22 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	g_return_if_fail (self != NULL);
#line 22 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp0_ = boxes_iconfig_get_keyfile ((BoxesIConfig*) self);
#line 22 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp1_ = _tmp0_;
#line 22 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp2_ = self->priv->group;
#line 22 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp3_ = value;
#line 22 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_tmp3__length1 = value_length1;
#line 22 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	g_key_file_set_string_list (_tmp1_, _tmp2_, "categories", (const gchar* const*) _tmp3_, _tmp3__length1);
#line 22 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	g_object_notify ((GObject *) self, "categories");
#line 731 "display-config.c"
}


static void boxes_display_config_class_init (BoxesDisplayConfigClass * klass) {
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	boxes_display_config_parent_class = g_type_class_peek_parent (klass);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	g_type_class_add_private (klass, sizeof (BoxesDisplayConfigPrivate));
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_display_config_get_property;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_display_config_set_property;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_display_config_finalize;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_DISPLAY_CONFIG_CATEGORIES, g_param_spec_boxed ("categories", "categories", "categories", G_TYPE_STRV, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 748 "display-config.c"
}


static void boxes_display_config_boxes_iconfig_interface_init (BoxesIConfigIface * iface) {
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	boxes_display_config_boxes_iconfig_parent_iface = g_type_interface_peek_parent (iface);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	iface->get_has_file = boxes_display_config_real_get_has_file;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	iface->set_has_file = boxes_display_config_real_set_has_file;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	iface->get_filename = boxes_display_config_real_get_filename;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	iface->set_filename = boxes_display_config_real_set_filename;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	iface->get_keyfile = boxes_display_config_real_get_keyfile;
#line 765 "display-config.c"
}


static void boxes_display_config_instance_init (BoxesDisplayConfig * self) {
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	self->priv = BOXES_DISPLAY_CONFIG_GET_PRIVATE (self);
#line 772 "display-config.c"
}


static void boxes_display_config_finalize (GObject* obj) {
	BoxesDisplayConfig * self;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_DISPLAY_CONFIG, BoxesDisplayConfig);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_g_object_unref0 (self->priv->source);
#line 18 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	_g_free0 (self->priv->group);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	G_OBJECT_CLASS (boxes_display_config_parent_class)->finalize (obj);
#line 786 "display-config.c"
}


GType boxes_display_config_get_type (void) {
	static volatile gsize boxes_display_config_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_display_config_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesDisplayConfigClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_display_config_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesDisplayConfig), 0, (GInstanceInitFunc) boxes_display_config_instance_init, NULL };
		static const GInterfaceInfo boxes_iconfig_info = { (GInterfaceInitFunc) boxes_display_config_boxes_iconfig_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType boxes_display_config_type_id;
		boxes_display_config_type_id = g_type_register_static (G_TYPE_OBJECT, "BoxesDisplayConfig", &g_define_type_info, 0);
		g_type_add_interface_static (boxes_display_config_type_id, BOXES_TYPE_ICONFIG, &boxes_iconfig_info);
		g_once_init_leave (&boxes_display_config_type_id__volatile, boxes_display_config_type_id);
	}
	return boxes_display_config_type_id__volatile;
}


static void _vala_boxes_display_config_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	BoxesDisplayConfig * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_DISPLAY_CONFIG, BoxesDisplayConfig);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	switch (property_id) {
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		case BOXES_DISPLAY_CONFIG_CATEGORIES:
#line 811 "display-config.c"
		{
			int length;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			g_value_take_boxed (value, boxes_display_config_get_categories (self, &length));
#line 816 "display-config.c"
		}
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		break;
#line 820 "display-config.c"
		default:
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		break;
#line 826 "display-config.c"
	}
}


static void _vala_boxes_display_config_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	BoxesDisplayConfig * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_DISPLAY_CONFIG, BoxesDisplayConfig);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
	switch (property_id) {
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		case BOXES_DISPLAY_CONFIG_CATEGORIES:
#line 838 "display-config.c"
		{
			gpointer boxed;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			boxed = g_value_get_boxed (value);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
			boxes_display_config_set_categories (self, boxed, g_strv_length (boxed));
#line 845 "display-config.c"
		}
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		break;
#line 849 "display-config.c"
		default:
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/display-config.vala"
		break;
#line 855 "display-config.c"
	}
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}



