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

/*
 * SPDX-License-Identifier: GPL-3.0-or-later
 * SPDX-FileCopyrightText: 2011-2023 elementary, Inc. (https://elementary.io)
 *
 * Authored by: Akshay Shekher <voldyman666@gmail.com>
 *              Chris Triantafillis <christriant1995@gmail.com>
 */

#include "applications.h"
#include <glib-object.h>
#include <glib.h>
#include <glib/gi18n-lib.h>
#include <gio/gio.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include <granite-7.h>
#include <switchboard.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

enum  {
	DEFAULTS_PLUG_0_PROPERTY,
	DEFAULTS_PLUG_NUM_PROPERTIES
};
static GParamSpec* defaults_plug_properties[DEFAULTS_PLUG_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define DEFAULTS_PLUG_TYPE_SETTINGS_CHILD (defaults_plug_settings_child_get_type ())
#define DEFAULTS_PLUG_SETTINGS_CHILD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEFAULTS_PLUG_TYPE_SETTINGS_CHILD, DefaultsPlugSettingsChild))
#define DEFAULTS_PLUG_SETTINGS_CHILD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DEFAULTS_PLUG_TYPE_SETTINGS_CHILD, DefaultsPlugSettingsChildClass))
#define DEFAULTS_PLUG_IS_SETTINGS_CHILD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEFAULTS_PLUG_TYPE_SETTINGS_CHILD))
#define DEFAULTS_PLUG_IS_SETTINGS_CHILD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DEFAULTS_PLUG_TYPE_SETTINGS_CHILD))
#define DEFAULTS_PLUG_SETTINGS_CHILD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DEFAULTS_PLUG_TYPE_SETTINGS_CHILD, DefaultsPlugSettingsChildClass))

typedef struct _DefaultsPlugSettingsChild DefaultsPlugSettingsChild;
typedef struct _DefaultsPlugSettingsChildClass DefaultsPlugSettingsChildClass;
typedef struct _DefaultsPlugSettingsChildPrivate DefaultsPlugSettingsChildPrivate;
enum  {
	DEFAULTS_PLUG_SETTINGS_CHILD_0_PROPERTY,
	DEFAULTS_PLUG_SETTINGS_CHILD_LABEL_PROPERTY,
	DEFAULTS_PLUG_SETTINGS_CHILD_CONTENT_TYPE_PROPERTY,
	DEFAULTS_PLUG_SETTINGS_CHILD_NUM_PROPERTIES
};
static GParamSpec* defaults_plug_settings_child_properties[DEFAULTS_PLUG_SETTINGS_CHILD_NUM_PROPERTIES];
#define _g_free0(var) (var = (g_free (var), NULL))

struct _DefaultsPlugSettingsChild {
	GtkFlowBoxChild parent_instance;
	DefaultsPlugSettingsChildPrivate * priv;
};

struct _DefaultsPlugSettingsChildClass {
	GtkFlowBoxChildClass parent_class;
};

struct _DefaultsPlugSettingsChildPrivate {
	gchar* _label;
	gchar* _content_type;
};

static gpointer defaults_plug_parent_class = NULL;
static gint DefaultsPlugSettingsChild_private_offset;
static gpointer defaults_plug_settings_child_parent_class = NULL;
static GtkSizeGroup* defaults_plug_settings_child_size_group;
static GtkSizeGroup* defaults_plug_settings_child_size_group = NULL;

static GType defaults_plug_settings_child_get_type (void) G_GNUC_CONST  G_GNUC_UNUSED ;
static DefaultsPlugSettingsChild* defaults_plug_settings_child_new (const gchar* label,
                                                             const gchar* content_type);
static DefaultsPlugSettingsChild* defaults_plug_settings_child_construct (GType object_type,
                                                                   const gchar* label,
                                                                   const gchar* content_type);
static const gchar* defaults_plug_settings_child_get_label (DefaultsPlugSettingsChild* self);
static void defaults_plug_settings_child_set_label (DefaultsPlugSettingsChild* self,
                                             const gchar* value);
static const gchar* defaults_plug_settings_child_get_content_type (DefaultsPlugSettingsChild* self);
static void defaults_plug_settings_child_set_content_type (DefaultsPlugSettingsChild* self,
                                                    const gchar* value);
static GObject * defaults_plug_settings_child_constructor (GType type,
                                                    guint n_construct_properties,
                                                    GObjectConstructParam * construct_properties);
static void defaults_plug_settings_child_finalize (GObject * obj);
static GType defaults_plug_settings_child_get_type_once (void);
static void _vala_defaults_plug_settings_child_get_property (GObject * object,
                                                      guint property_id,
                                                      GValue * value,
                                                      GParamSpec * pspec);
static void _vala_defaults_plug_settings_child_set_property (GObject * object,
                                                      guint property_id,
                                                      const GValue * value,
                                                      GParamSpec * pspec);
static GObject * defaults_plug_constructor (GType type,
                                     guint n_construct_properties,
                                     GObjectConstructParam * construct_properties);
static GType defaults_plug_get_type_once (void);

DefaultsPlug*
defaults_plug_construct (GType object_type)
{
	DefaultsPlug * self = NULL;
	GThemedIcon* _tmp0_;
	GThemedIcon* _tmp1_;
	_tmp0_ = (GThemedIcon*) g_themed_icon_new ("preferences-system");
	_tmp1_ = _tmp0_;
	self = (DefaultsPlug*) g_object_new (object_type, "title", _ ("Defaults"), "icon", _tmp1_, NULL);
	_g_object_unref0 (_tmp1_);
	return self;
}

DefaultsPlug*
defaults_plug_new (void)
{
	return defaults_plug_construct (DEFAULTS_TYPE_PLUG);
}

static inline gpointer
defaults_plug_settings_child_get_instance_private (DefaultsPlugSettingsChild* self)
{
	return G_STRUCT_MEMBER_P (self, DefaultsPlugSettingsChild_private_offset);
}

static DefaultsPlugSettingsChild*
defaults_plug_settings_child_construct (GType object_type,
                                        const gchar* label,
                                        const gchar* content_type)
{
	DefaultsPlugSettingsChild * self = NULL;
	g_return_val_if_fail (label != NULL, NULL);
	g_return_val_if_fail (content_type != NULL, NULL);
	self = (DefaultsPlugSettingsChild*) g_object_new (object_type, "label", label, "content-type", content_type, NULL);
	return self;
}

static DefaultsPlugSettingsChild*
defaults_plug_settings_child_new (const gchar* label,
                                  const gchar* content_type)
{
	return defaults_plug_settings_child_construct (DEFAULTS_PLUG_TYPE_SETTINGS_CHILD, label, content_type);
}

static const gchar*
defaults_plug_settings_child_get_label (DefaultsPlugSettingsChild* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_label;
	result = _tmp0_;
	return result;
}

static void
defaults_plug_settings_child_set_label (DefaultsPlugSettingsChild* self,
                                        const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = defaults_plug_settings_child_get_label (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_label);
		self->priv->_label = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, defaults_plug_settings_child_properties[DEFAULTS_PLUG_SETTINGS_CHILD_LABEL_PROPERTY]);
	}
}

static const gchar*
defaults_plug_settings_child_get_content_type (DefaultsPlugSettingsChild* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_content_type;
	result = _tmp0_;
	return result;
}

static void
defaults_plug_settings_child_set_content_type (DefaultsPlugSettingsChild* self,
                                               const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = defaults_plug_settings_child_get_content_type (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_content_type);
		self->priv->_content_type = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, defaults_plug_settings_child_properties[DEFAULTS_PLUG_SETTINGS_CHILD_CONTENT_TYPE_PROPERTY]);
	}
}

static GObject *
defaults_plug_settings_child_constructor (GType type,
                                          guint n_construct_properties,
                                          GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	DefaultsPlugSettingsChild * self;
	GraniteHeaderLabel* setting_label = NULL;
	const gchar* _tmp0_;
	GraniteHeaderLabel* _tmp1_;
	DefaultsAppChooserButton* app_chooser = NULL;
	const gchar* _tmp2_;
	DefaultsAppChooserButton* _tmp3_ = NULL;
	GraniteHeaderLabel* _tmp4_;
	DefaultsAppChooserButton* _tmp5_;
	GtkWidget* _tmp6_;
	GtkBox* box = NULL;
	GtkBox* _tmp7_;
	GtkBox* _tmp8_;
	GraniteHeaderLabel* _tmp9_;
	GtkBox* _tmp10_;
	DefaultsAppChooserButton* _tmp11_;
	GtkBox* _tmp12_;
	GtkSizeGroup* _tmp13_;
	GraniteHeaderLabel* _tmp14_;
	parent_class = G_OBJECT_CLASS (defaults_plug_settings_child_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, DEFAULTS_PLUG_TYPE_SETTINGS_CHILD, DefaultsPlugSettingsChild);
	_tmp0_ = self->priv->_label;
	_tmp1_ = granite_header_label_new (_tmp0_);
	g_object_ref_sink (_tmp1_);
	setting_label = _tmp1_;
	_tmp2_ = self->priv->_content_type;
	_tmp3_ = defaults_app_chooser_button_new (_tmp2_);
	gtk_widget_set_hexpand ((GtkWidget*) _tmp3_, TRUE);
	g_object_ref_sink (_tmp3_);
	app_chooser = _tmp3_;
	_tmp4_ = setting_label;
	_tmp5_ = app_chooser;
	_tmp6_ = gtk_widget_get_first_child ((GtkWidget*) _tmp5_);
	granite_header_label_set_mnemonic_widget (_tmp4_, _tmp6_);
	_tmp7_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
	g_object_ref_sink (_tmp7_);
	box = _tmp7_;
	_tmp8_ = box;
	_tmp9_ = setting_label;
	gtk_box_append (_tmp8_, (GtkWidget*) _tmp9_);
	_tmp10_ = box;
	_tmp11_ = app_chooser;
	gtk_box_append (_tmp10_, (GtkWidget*) _tmp11_);
	gtk_widget_set_focusable ((GtkWidget*) self, FALSE);
	_tmp12_ = box;
	gtk_flow_box_child_set_child ((GtkFlowBoxChild*) self, (GtkWidget*) _tmp12_);
	_tmp13_ = defaults_plug_settings_child_size_group;
	_tmp14_ = setting_label;
	gtk_size_group_add_widget (_tmp13_, (GtkWidget*) _tmp14_);
	_g_object_unref0 (box);
	_g_object_unref0 (app_chooser);
	_g_object_unref0 (setting_label);
	return obj;
}

static void
defaults_plug_settings_child_class_init (DefaultsPlugSettingsChildClass * klass,
                                         gpointer klass_data)
{
	GtkSizeGroup* _tmp0_;
	defaults_plug_settings_child_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &DefaultsPlugSettingsChild_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_defaults_plug_settings_child_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_defaults_plug_settings_child_set_property;
	G_OBJECT_CLASS (klass)->constructor = defaults_plug_settings_child_constructor;
	G_OBJECT_CLASS (klass)->finalize = defaults_plug_settings_child_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), DEFAULTS_PLUG_SETTINGS_CHILD_LABEL_PROPERTY, defaults_plug_settings_child_properties[DEFAULTS_PLUG_SETTINGS_CHILD_LABEL_PROPERTY] = g_param_spec_string ("label", "label", "label", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
	g_object_class_install_property (G_OBJECT_CLASS (klass), DEFAULTS_PLUG_SETTINGS_CHILD_CONTENT_TYPE_PROPERTY, defaults_plug_settings_child_properties[DEFAULTS_PLUG_SETTINGS_CHILD_CONTENT_TYPE_PROPERTY] = g_param_spec_string ("content-type", "content-type", "content-type", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
	_tmp0_ = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
	_g_object_unref0 (defaults_plug_settings_child_size_group);
	defaults_plug_settings_child_size_group = _tmp0_;
}

static void
defaults_plug_settings_child_instance_init (DefaultsPlugSettingsChild * self,
                                            gpointer klass)
{
	self->priv = defaults_plug_settings_child_get_instance_private (self);
}

static void
defaults_plug_settings_child_finalize (GObject * obj)
{
	DefaultsPlugSettingsChild * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, DEFAULTS_PLUG_TYPE_SETTINGS_CHILD, DefaultsPlugSettingsChild);
	_g_free0 (self->priv->_label);
	_g_free0 (self->priv->_content_type);
	G_OBJECT_CLASS (defaults_plug_settings_child_parent_class)->finalize (obj);
}

static GType
defaults_plug_settings_child_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (DefaultsPlugSettingsChildClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) defaults_plug_settings_child_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DefaultsPlugSettingsChild), 0, (GInstanceInitFunc) defaults_plug_settings_child_instance_init, NULL };
	GType defaults_plug_settings_child_type_id;
	defaults_plug_settings_child_type_id = g_type_register_static (gtk_flow_box_child_get_type (), "DefaultsPlugSettingsChild", &g_define_type_info, 0);
	DefaultsPlugSettingsChild_private_offset = g_type_add_instance_private (defaults_plug_settings_child_type_id, sizeof (DefaultsPlugSettingsChildPrivate));
	return defaults_plug_settings_child_type_id;
}

static GType
defaults_plug_settings_child_get_type (void)
{
	static volatile gsize defaults_plug_settings_child_type_id__once = 0;
	if (g_once_init_enter (&defaults_plug_settings_child_type_id__once)) {
		GType defaults_plug_settings_child_type_id;
		defaults_plug_settings_child_type_id = defaults_plug_settings_child_get_type_once ();
		g_once_init_leave (&defaults_plug_settings_child_type_id__once, defaults_plug_settings_child_type_id);
	}
	return defaults_plug_settings_child_type_id__once;
}

static void
_vala_defaults_plug_settings_child_get_property (GObject * object,
                                                 guint property_id,
                                                 GValue * value,
                                                 GParamSpec * pspec)
{
	DefaultsPlugSettingsChild * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, DEFAULTS_PLUG_TYPE_SETTINGS_CHILD, DefaultsPlugSettingsChild);
	switch (property_id) {
		case DEFAULTS_PLUG_SETTINGS_CHILD_LABEL_PROPERTY:
		g_value_set_string (value, defaults_plug_settings_child_get_label (self));
		break;
		case DEFAULTS_PLUG_SETTINGS_CHILD_CONTENT_TYPE_PROPERTY:
		g_value_set_string (value, defaults_plug_settings_child_get_content_type (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_defaults_plug_settings_child_set_property (GObject * object,
                                                 guint property_id,
                                                 const GValue * value,
                                                 GParamSpec * pspec)
{
	DefaultsPlugSettingsChild * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, DEFAULTS_PLUG_TYPE_SETTINGS_CHILD, DefaultsPlugSettingsChild);
	switch (property_id) {
		case DEFAULTS_PLUG_SETTINGS_CHILD_LABEL_PROPERTY:
		defaults_plug_settings_child_set_label (self, g_value_get_string (value));
		break;
		case DEFAULTS_PLUG_SETTINGS_CHILD_CONTENT_TYPE_PROPERTY:
		defaults_plug_settings_child_set_content_type (self, g_value_get_string (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static GObject *
defaults_plug_constructor (GType type,
                           guint n_construct_properties,
                           GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	DefaultsPlug * self;
	DefaultsPlugSettingsChild* browser_setting = NULL;
	DefaultsPlugSettingsChild* _tmp0_;
	DefaultsPlugSettingsChild* email_setting = NULL;
	DefaultsPlugSettingsChild* _tmp1_;
	DefaultsPlugSettingsChild* calendar_setting = NULL;
	DefaultsPlugSettingsChild* _tmp2_;
	DefaultsPlugSettingsChild* videos_setting = NULL;
	DefaultsPlugSettingsChild* _tmp3_;
	DefaultsPlugSettingsChild* music_setting = NULL;
	DefaultsPlugSettingsChild* _tmp4_;
	DefaultsPlugSettingsChild* images_setting = NULL;
	DefaultsPlugSettingsChild* _tmp5_;
	DefaultsPlugSettingsChild* text_setting = NULL;
	DefaultsPlugSettingsChild* _tmp6_;
	DefaultsPlugSettingsChild* files_setting = NULL;
	DefaultsPlugSettingsChild* _tmp7_;
	DefaultsPlugSettingsChild* maps_setting = NULL;
	DefaultsPlugSettingsChild* _tmp8_;
	DefaultsPlugSettingsChild* pdf_setting = NULL;
	DefaultsPlugSettingsChild* _tmp9_;
	GtkFlowBox* flowbox = NULL;
	GtkFlowBox* _tmp10_ = NULL;
	GtkFlowBox* _tmp11_;
	DefaultsPlugSettingsChild* _tmp12_;
	GtkFlowBox* _tmp13_;
	DefaultsPlugSettingsChild* _tmp14_;
	GtkFlowBox* _tmp15_;
	DefaultsPlugSettingsChild* _tmp16_;
	GtkFlowBox* _tmp17_;
	DefaultsPlugSettingsChild* _tmp18_;
	GtkFlowBox* _tmp19_;
	DefaultsPlugSettingsChild* _tmp20_;
	GtkFlowBox* _tmp21_;
	DefaultsPlugSettingsChild* _tmp22_;
	GtkFlowBox* _tmp23_;
	DefaultsPlugSettingsChild* _tmp24_;
	GtkFlowBox* _tmp25_;
	DefaultsPlugSettingsChild* _tmp26_;
	GtkFlowBox* _tmp27_;
	DefaultsPlugSettingsChild* _tmp28_;
	GtkFlowBox* _tmp29_;
	DefaultsPlugSettingsChild* _tmp30_;
	GtkFlowBox* _tmp31_;
	parent_class = G_OBJECT_CLASS (defaults_plug_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, DEFAULTS_TYPE_PLUG, DefaultsPlug);
	_tmp0_ = defaults_plug_settings_child_new (_ ("Web Browser"), "x-scheme-handler/https");
	g_object_ref_sink (_tmp0_);
	browser_setting = _tmp0_;
	_tmp1_ = defaults_plug_settings_child_new (_ ("Email Client"), "x-scheme-handler/mailto");
	g_object_ref_sink (_tmp1_);
	email_setting = _tmp1_;
	_tmp2_ = defaults_plug_settings_child_new (_ ("Calendar"), "text/calendar");
	g_object_ref_sink (_tmp2_);
	calendar_setting = _tmp2_;
	_tmp3_ = defaults_plug_settings_child_new (_ ("Video Player"), "video/x-ogm+ogg");
	g_object_ref_sink (_tmp3_);
	videos_setting = _tmp3_;
	_tmp4_ = defaults_plug_settings_child_new (_ ("Music Player"), "audio/x-vorbis+ogg");
	g_object_ref_sink (_tmp4_);
	music_setting = _tmp4_;
	_tmp5_ = defaults_plug_settings_child_new (_ ("Image Viewer"), "image/jpeg");
	g_object_ref_sink (_tmp5_);
	images_setting = _tmp5_;
	_tmp6_ = defaults_plug_settings_child_new (_ ("Text Editor"), "text/plain");
	g_object_ref_sink (_tmp6_);
	text_setting = _tmp6_;
	_tmp7_ = defaults_plug_settings_child_new (_ ("File Browser"), "inode/directory");
	g_object_ref_sink (_tmp7_);
	files_setting = _tmp7_;
	_tmp8_ = defaults_plug_settings_child_new (_ ("Maps"), "x-scheme-handler/geo");
	g_object_ref_sink (_tmp8_);
	maps_setting = _tmp8_;
	_tmp9_ = defaults_plug_settings_child_new (_ ("PDF Viewer"), "application/pdf");
	g_object_ref_sink (_tmp9_);
	pdf_setting = _tmp9_;
	_tmp10_ = (GtkFlowBox*) gtk_flow_box_new ();
	gtk_flow_box_set_column_spacing (_tmp10_, (guint) 24);
	gtk_flow_box_set_row_spacing (_tmp10_, (guint) 12);
	gtk_flow_box_set_homogeneous (_tmp10_, TRUE);
	gtk_flow_box_set_max_children_per_line (_tmp10_, (guint) 2);
	gtk_flow_box_set_selection_mode (_tmp10_, GTK_SELECTION_NONE);
	gtk_widget_set_valign ((GtkWidget*) _tmp10_, GTK_ALIGN_START);
	g_object_ref_sink (_tmp10_);
	flowbox = _tmp10_;
	_tmp11_ = flowbox;
	_tmp12_ = browser_setting;
	gtk_flow_box_append (_tmp11_, (GtkWidget*) _tmp12_);
	_tmp13_ = flowbox;
	_tmp14_ = music_setting;
	gtk_flow_box_append (_tmp13_, (GtkWidget*) _tmp14_);
	_tmp15_ = flowbox;
	_tmp16_ = email_setting;
	gtk_flow_box_append (_tmp15_, (GtkWidget*) _tmp16_);
	_tmp17_ = flowbox;
	_tmp18_ = images_setting;
	gtk_flow_box_append (_tmp17_, (GtkWidget*) _tmp18_);
	_tmp19_ = flowbox;
	_tmp20_ = calendar_setting;
	gtk_flow_box_append (_tmp19_, (GtkWidget*) _tmp20_);
	_tmp21_ = flowbox;
	_tmp22_ = text_setting;
	gtk_flow_box_append (_tmp21_, (GtkWidget*) _tmp22_);
	_tmp23_ = flowbox;
	_tmp24_ = videos_setting;
	gtk_flow_box_append (_tmp23_, (GtkWidget*) _tmp24_);
	_tmp25_ = flowbox;
	_tmp26_ = files_setting;
	gtk_flow_box_append (_tmp25_, (GtkWidget*) _tmp26_);
	_tmp27_ = flowbox;
	_tmp28_ = maps_setting;
	gtk_flow_box_append (_tmp27_, (GtkWidget*) _tmp28_);
	_tmp29_ = flowbox;
	_tmp30_ = pdf_setting;
	gtk_flow_box_append (_tmp29_, (GtkWidget*) _tmp30_);
	_tmp31_ = flowbox;
	switchboard_settings_page_set_child ((SwitchboardSettingsPage*) self, (GtkWidget*) _tmp31_);
	switchboard_settings_page_set_show_end_title_buttons ((SwitchboardSettingsPage*) self, TRUE);
	_g_object_unref0 (flowbox);
	_g_object_unref0 (pdf_setting);
	_g_object_unref0 (maps_setting);
	_g_object_unref0 (files_setting);
	_g_object_unref0 (text_setting);
	_g_object_unref0 (images_setting);
	_g_object_unref0 (music_setting);
	_g_object_unref0 (videos_setting);
	_g_object_unref0 (calendar_setting);
	_g_object_unref0 (email_setting);
	_g_object_unref0 (browser_setting);
	return obj;
}

static void
defaults_plug_class_init (DefaultsPlugClass * klass,
                          gpointer klass_data)
{
	defaults_plug_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->constructor = defaults_plug_constructor;
}

static void
defaults_plug_instance_init (DefaultsPlug * self,
                             gpointer klass)
{
}

static GType
defaults_plug_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (DefaultsPlugClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) defaults_plug_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DefaultsPlug), 0, (GInstanceInitFunc) defaults_plug_instance_init, NULL };
	GType defaults_plug_type_id;
	defaults_plug_type_id = g_type_register_static (SWITCHBOARD_TYPE_SETTINGS_PAGE, "DefaultsPlug", &g_define_type_info, 0);
	return defaults_plug_type_id;
}

GType
defaults_plug_get_type (void)
{
	static volatile gsize defaults_plug_type_id__once = 0;
	if (g_once_init_enter (&defaults_plug_type_id__once)) {
		GType defaults_plug_type_id;
		defaults_plug_type_id = defaults_plug_get_type_once ();
		g_once_init_leave (&defaults_plug_type_id__once, defaults_plug_type_id);
	}
	return defaults_plug_type_id__once;
}

