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

/*
 * SPDX-License-Identifier: GPL-3.0-or-later
 * SPDX-FileCopyrightText: 2014-2023 elementary, Inc. (https://elementary.io)
 *
 */

#include "useraccounts.h"
#include <glib-object.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n-lib.h>
#include <gio/gio.h>
#include <polkit/polkit.h>
#include <granite-7.h>
#include <gtk/gtk.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  {
	SWITCHBOARD_PLUG_USER_ACCOUNTS_WIDGETS_GUEST_SETTINGS_VIEW_0_PROPERTY,
	SWITCHBOARD_PLUG_USER_ACCOUNTS_WIDGETS_GUEST_SETTINGS_VIEW_NUM_PROPERTIES
};
static GParamSpec* switchboard_plug_user_accounts_widgets_guest_settings_view_properties[SWITCHBOARD_PLUG_USER_ACCOUNTS_WIDGETS_GUEST_SETTINGS_VIEW_NUM_PROPERTIES];
#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)))
typedef struct _Block3Data Block3Data;
enum  {
	SWITCHBOARD_PLUG_USER_ACCOUNTS_WIDGETS_GUEST_SETTINGS_VIEW_GUEST_SWITCH_CHANGED_SIGNAL,
	SWITCHBOARD_PLUG_USER_ACCOUNTS_WIDGETS_GUEST_SETTINGS_VIEW_NUM_SIGNALS
};
static guint switchboard_plug_user_accounts_widgets_guest_settings_view_signals[SWITCHBOARD_PLUG_USER_ACCOUNTS_WIDGETS_GUEST_SETTINGS_VIEW_NUM_SIGNALS] = {0};

struct _Block3Data {
	int _ref_count_;
	SwitchboardPlugUserAccountsWidgetsGuestSettingsView* self;
	GtkSwitch* guest_autologin_switch;
	GtkInfoBar* infobar_reboot;
};

static gpointer switchboard_plug_user_accounts_widgets_guest_settings_view_parent_class = NULL;

static gboolean switchboard_plug_user_accounts_widgets_guest_settings_view_acquire_permission (SwitchboardPlugUserAccountsWidgetsGuestSettingsView* self);
static void _gtk_window_destroy_gtk_dialog_response (GtkDialog* _sender,
                                              gint response_id,
                                              gpointer self);
static GObject * switchboard_plug_user_accounts_widgets_guest_settings_view_constructor (GType type,
                                                                                  guint n_construct_properties,
                                                                                  GObjectConstructParam * construct_properties);
static Block3Data* block3_data_ref (Block3Data* _data3_);
static void block3_data_unref (void * _userdata_);
static void _switchboard_plug_user_accounts_widgets_guest_settings_view___lambda4_ (Block3Data* _data3_);
static void __switchboard_plug_user_accounts_widgets_guest_settings_view___lambda4__g_object_notify (GObject* _sender,
                                                                                              GParamSpec* pspec,
                                                                                              gpointer self);
static void _switchboard_plug_user_accounts_widgets_guest_settings_view___lambda5_ (Block3Data* _data3_);
static void __switchboard_plug_user_accounts_widgets_guest_settings_view___lambda5__g_object_notify (GObject* _sender,
                                                                                              GParamSpec* pspec,
                                                                                              gpointer self);
static GType switchboard_plug_user_accounts_widgets_guest_settings_view_get_type_once (void);

SwitchboardPlugUserAccountsWidgetsGuestSettingsView*
switchboard_plug_user_accounts_widgets_guest_settings_view_construct (GType object_type)
{
	SwitchboardPlugUserAccountsWidgetsGuestSettingsView * self = NULL;
	gchar* _tmp0_;
	gchar* _tmp1_;
	GThemedIcon* _tmp2_;
	GThemedIcon* _tmp3_;
	_tmp0_ = g_strdup_printf ("%s %s", _ ("The Guest Session allows someone to use a temporary default account wi" \
"thout a password."), _ ("Once they log out, all of their settings and data will be deleted."));
	_tmp1_ = _tmp0_;
	_tmp2_ = (GThemedIcon*) g_themed_icon_new ("avatar-default");
	_tmp3_ = _tmp2_;
	self = (SwitchboardPlugUserAccountsWidgetsGuestSettingsView*) g_object_new (object_type, "activatable", TRUE, "description", _tmp1_, "icon", _tmp3_, "title", _ ("Guest Session"), NULL);
	_g_object_unref0 (_tmp3_);
	_g_free0 (_tmp1_);
	return self;
}

SwitchboardPlugUserAccountsWidgetsGuestSettingsView*
switchboard_plug_user_accounts_widgets_guest_settings_view_new (void)
{
	return switchboard_plug_user_accounts_widgets_guest_settings_view_construct (SWITCHBOARD_PLUG_USER_ACCOUNTS_WIDGETS_TYPE_GUEST_SETTINGS_VIEW);
}

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

static void
_gtk_window_destroy_gtk_dialog_response (GtkDialog* _sender,
                                         gint response_id,
                                         gpointer self)
{
	gtk_window_destroy ((GtkWindow*) self);
}

static gboolean
switchboard_plug_user_accounts_widgets_guest_settings_view_acquire_permission (SwitchboardPlugUserAccountsWidgetsGuestSettingsView* self)
{
	PolkitPermission* permission = NULL;
	PolkitPermission* _tmp0_;
	PolkitPermission* _tmp1_;
	gboolean _tmp2_;
	gboolean _tmp3_;
	GError* _inner_error0_ = NULL;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = switchboard_plug_user_accounts_get_permission ();
	permission = _tmp0_;
	_tmp1_ = permission;
	_tmp2_ = g_permission_get_allowed ((GPermission*) _tmp1_);
	_tmp3_ = _tmp2_;
	if (!_tmp3_) {
		{
			PolkitPermission* _tmp4_;
			_tmp4_ = permission;
			g_permission_acquire ((GPermission*) _tmp4_, NULL, &_inner_error0_);
			if (G_UNLIKELY (_inner_error0_ != NULL)) {
				goto __catch0_g_error;
			}
		}
		goto __finally0;
		__catch0_g_error:
		{
			GError* e = NULL;
			GError* _tmp5_;
			e = _inner_error0_;
			_inner_error0_ = NULL;
			_tmp5_ = e;
			if (!g_error_matches (_tmp5_, g_io_error_quark (), G_IO_ERROR_CANCELLED)) {
				GraniteMessageDialog* message_dialog = NULL;
				GThemedIcon* _tmp6_;
				GThemedIcon* _tmp7_;
				GThemedIcon* _tmp8_;
				GtkRoot* _tmp9_;
				GtkWindow* _tmp10_;
				GraniteMessageDialog* _tmp11_ = NULL;
				GraniteMessageDialog* _tmp12_;
				GraniteMessageDialog* _tmp13_;
				GError* _tmp14_;
				const gchar* _tmp15_;
				GraniteMessageDialog* _tmp16_;
				GraniteMessageDialog* _tmp17_;
				GraniteMessageDialog* _tmp18_;
				_tmp6_ = (GThemedIcon*) g_themed_icon_new ("dialog-password");
				_tmp7_ = _tmp6_;
				_tmp8_ = (GThemedIcon*) g_themed_icon_new ("dialog-error");
				_tmp9_ = gtk_widget_get_root ((GtkWidget*) self);
				_tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_window_get_type (), GtkWindow));
				_tmp11_ = granite_message_dialog_new (_ ("Unable to acquire permission"), _ ("The guest account cannot be modified without the required system permi" \
"ssion."), (GIcon*) _tmp7_, GTK_BUTTONS_CLOSE);
				granite_message_dialog_set_badge_icon (_tmp11_, (GIcon*) _tmp8_);
				_g_object_unref0 (_tmp8_);
				gtk_window_set_modal ((GtkWindow*) _tmp11_, TRUE);
				gtk_window_set_transient_for ((GtkWindow*) _tmp11_, _tmp10_);
				_g_object_unref0 (_tmp10_);
				g_object_ref_sink (_tmp11_);
				_tmp12_ = _tmp11_;
				_g_object_unref0 (_tmp7_);
				message_dialog = _tmp12_;
				_tmp13_ = message_dialog;
				_tmp14_ = e;
				_tmp15_ = _tmp14_->message;
				granite_message_dialog_show_error_details (_tmp13_, _tmp15_);
				_tmp16_ = message_dialog;
				_tmp17_ = message_dialog;
				g_signal_connect_object ((GtkDialog*) _tmp16_, "response", (GCallback) _gtk_window_destroy_gtk_dialog_response, (GtkWindow*) _tmp17_, 0);
				_tmp18_ = message_dialog;
				gtk_window_present ((GtkWindow*) _tmp18_);
				_g_object_unref0 (message_dialog);
			}
			result = FALSE;
			_g_error_free0 (e);
			_g_object_unref0 (permission);
			return result;
		}
		__finally0:
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			gboolean _tmp19_ = FALSE;
			_g_object_unref0 (permission);
			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 _tmp19_;
		}
	}
	result = TRUE;
	_g_object_unref0 (permission);
	return result;
}

static Block3Data*
block3_data_ref (Block3Data* _data3_)
{
	g_atomic_int_inc (&_data3_->_ref_count_);
	return _data3_;
}

static void
block3_data_unref (void * _userdata_)
{
	Block3Data* _data3_;
	_data3_ = (Block3Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) {
		SwitchboardPlugUserAccountsWidgetsGuestSettingsView* self;
		self = _data3_->self;
		_g_object_unref0 (_data3_->infobar_reboot);
		_g_object_unref0 (_data3_->guest_autologin_switch);
		_g_object_unref0 (self);
		g_slice_free (Block3Data, _data3_);
	}
}

static void
_switchboard_plug_user_accounts_widgets_guest_settings_view___lambda4_ (Block3Data* _data3_)
{
	SwitchboardPlugUserAccountsWidgetsGuestSettingsView* self;
	GtkSwitch* _tmp0_;
	GtkSwitch* _tmp1_;
	gboolean _tmp2_;
	gboolean _tmp3_;
	self = _data3_->self;
	_tmp0_ = switchboard_settings_page_get_status_switch ((SwitchboardSettingsPage*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = gtk_switch_get_active (_tmp1_);
	_tmp3_ = _tmp2_;
	if (switchboard_plug_user_accounts_get_guest_session_state ("show") != _tmp3_) {
		GtkInfoBar* _tmp6_;
		GtkSwitch* _tmp7_;
		GtkSwitch* _tmp8_;
		gboolean _tmp9_;
		gboolean _tmp10_;
		if (!switchboard_plug_user_accounts_widgets_guest_settings_view_acquire_permission (self)) {
			GtkSwitch* _tmp4_;
			GtkSwitch* _tmp5_;
			_tmp4_ = switchboard_settings_page_get_status_switch ((SwitchboardSettingsPage*) self);
			_tmp5_ = _tmp4_;
			gtk_switch_set_active (_tmp5_, switchboard_plug_user_accounts_get_guest_session_state ("show"));
			return;
		}
		_tmp6_ = _data3_->infobar_reboot;
		gtk_info_bar_set_revealed (_tmp6_, TRUE);
		_tmp7_ = switchboard_settings_page_get_status_switch ((SwitchboardSettingsPage*) self);
		_tmp8_ = _tmp7_;
		_tmp9_ = gtk_switch_get_active (_tmp8_);
		_tmp10_ = _tmp9_;
		if (_tmp10_) {
			switchboard_plug_user_accounts_set_guest_session_state ("on");
		} else {
			GtkSwitch* _tmp11_;
			switchboard_plug_user_accounts_set_guest_session_state ("off");
			_tmp11_ = _data3_->guest_autologin_switch;
			gtk_switch_set_active (_tmp11_, FALSE);
		}
		g_signal_emit (self, switchboard_plug_user_accounts_widgets_guest_settings_view_signals[SWITCHBOARD_PLUG_USER_ACCOUNTS_WIDGETS_GUEST_SETTINGS_VIEW_GUEST_SWITCH_CHANGED_SIGNAL], 0);
	}
}

static void
__switchboard_plug_user_accounts_widgets_guest_settings_view___lambda4__g_object_notify (GObject* _sender,
                                                                                         GParamSpec* pspec,
                                                                                         gpointer self)
{
	_switchboard_plug_user_accounts_widgets_guest_settings_view___lambda4_ (self);
}

static void
_switchboard_plug_user_accounts_widgets_guest_settings_view___lambda5_ (Block3Data* _data3_)
{
	SwitchboardPlugUserAccountsWidgetsGuestSettingsView* self;
	GtkSwitch* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	self = _data3_->self;
	_tmp0_ = _data3_->guest_autologin_switch;
	_tmp1_ = gtk_switch_get_active (_tmp0_);
	_tmp2_ = _tmp1_;
	if (switchboard_plug_user_accounts_get_guest_session_state ("show-autologin") != _tmp2_) {
		GtkInfoBar* _tmp4_;
		GtkSwitch* _tmp5_;
		gboolean _tmp6_;
		gboolean _tmp7_;
		if (!switchboard_plug_user_accounts_widgets_guest_settings_view_acquire_permission (self)) {
			GtkSwitch* _tmp3_;
			_tmp3_ = _data3_->guest_autologin_switch;
			gtk_switch_set_state (_tmp3_, switchboard_plug_user_accounts_get_guest_session_state ("show-autologin"));
			return;
		}
		_tmp4_ = _data3_->infobar_reboot;
		gtk_info_bar_set_revealed (_tmp4_, TRUE);
		_tmp5_ = _data3_->guest_autologin_switch;
		_tmp6_ = gtk_switch_get_active (_tmp5_);
		_tmp7_ = _tmp6_;
		if (_tmp7_) {
			switchboard_plug_user_accounts_set_guest_session_state ("autologin-on");
		} else {
			switchboard_plug_user_accounts_set_guest_session_state ("autologin-off");
		}
	}
}

static void
__switchboard_plug_user_accounts_widgets_guest_settings_view___lambda5__g_object_notify (GObject* _sender,
                                                                                         GParamSpec* pspec,
                                                                                         gpointer self)
{
	_switchboard_plug_user_accounts_widgets_guest_settings_view___lambda5_ (self);
}

static GObject *
switchboard_plug_user_accounts_widgets_guest_settings_view_constructor (GType type,
                                                                        guint n_construct_properties,
                                                                        GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	SwitchboardPlugUserAccountsWidgetsGuestSettingsView * self;
	Block3Data* _data3_;
	GtkSwitch* _tmp0_ = NULL;
	GtkLabel* guest_autologin_label = NULL;
	GtkLabel* _tmp1_;
	GtkBox* autologin_box = NULL;
	GtkBox* _tmp2_;
	GtkBox* _tmp3_;
	GtkLabel* _tmp4_;
	GtkBox* _tmp5_;
	GtkSwitch* _tmp6_;
	GtkInfoBar* _tmp7_ = NULL;
	GtkInfoBar* _tmp8_;
	GtkLabel* _tmp9_;
	GtkLabel* _tmp10_;
	GtkInfoBar* _tmp11_;
	GtkBox* box = NULL;
	GtkBox* _tmp12_;
	GtkBox* _tmp13_;
	GtkBox* _tmp14_;
	GtkBox* _tmp15_;
	GtkInfoBar* _tmp16_;
	GtkBox* _tmp17_;
	GtkSwitch* _tmp18_;
	GtkSwitch* _tmp19_;
	GtkSwitch* _tmp20_;
	GtkSwitch* _tmp21_;
	GtkSwitch* _tmp22_;
	GtkBox* _tmp23_;
	GtkSwitch* _tmp24_;
	GtkSwitch* _tmp25_;
	GtkSwitch* _tmp26_;
	parent_class = G_OBJECT_CLASS (switchboard_plug_user_accounts_widgets_guest_settings_view_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, SWITCHBOARD_PLUG_USER_ACCOUNTS_WIDGETS_TYPE_GUEST_SETTINGS_VIEW, SwitchboardPlugUserAccountsWidgetsGuestSettingsView);
	_data3_ = g_slice_new0 (Block3Data);
	_data3_->_ref_count_ = 1;
	_data3_->self = g_object_ref (self);
	_tmp0_ = (GtkSwitch*) gtk_switch_new ();
	gtk_widget_set_halign ((GtkWidget*) _tmp0_, GTK_ALIGN_START);
	g_object_ref_sink (_tmp0_);
	_data3_->guest_autologin_switch = _tmp0_;
	_tmp1_ = (GtkLabel*) gtk_label_new (_ ("Log In automatically:"));
	g_object_ref_sink (_tmp1_);
	guest_autologin_label = _tmp1_;
	_tmp2_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
	g_object_ref_sink (_tmp2_);
	autologin_box = _tmp2_;
	_tmp3_ = autologin_box;
	_tmp4_ = guest_autologin_label;
	gtk_box_append (_tmp3_, (GtkWidget*) _tmp4_);
	_tmp5_ = autologin_box;
	_tmp6_ = _data3_->guest_autologin_switch;
	gtk_box_append (_tmp5_, (GtkWidget*) _tmp6_);
	_tmp7_ = (GtkInfoBar*) gtk_info_bar_new ();
	gtk_info_bar_set_message_type (_tmp7_, GTK_MESSAGE_WARNING);
	gtk_info_bar_set_revealed (_tmp7_, FALSE);
	g_object_ref_sink (_tmp7_);
	_data3_->infobar_reboot = _tmp7_;
	_tmp8_ = _data3_->infobar_reboot;
	_tmp9_ = (GtkLabel*) gtk_label_new (_ ("Guest session changes will not take effect until you restart your syst" \
"em"));
	g_object_ref_sink (_tmp9_);
	_tmp10_ = _tmp9_;
	gtk_info_bar_add_child (_tmp8_, (GtkWidget*) _tmp10_);
	_g_object_unref0 (_tmp10_);
	_tmp11_ = _data3_->infobar_reboot;
	gtk_widget_add_css_class ((GtkWidget*) _tmp11_, GRANITE_STYLE_CLASS_FRAME);
	_tmp12_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 24);
	g_object_ref_sink (_tmp12_);
	box = _tmp12_;
	_tmp13_ = box;
	_tmp14_ = autologin_box;
	gtk_box_append (_tmp13_, (GtkWidget*) _tmp14_);
	_tmp15_ = box;
	_tmp16_ = _data3_->infobar_reboot;
	gtk_box_append (_tmp15_, (GtkWidget*) _tmp16_);
	_tmp17_ = box;
	switchboard_settings_page_set_child ((SwitchboardSettingsPage*) self, (GtkWidget*) _tmp17_);
	switchboard_settings_page_set_show_end_title_buttons ((SwitchboardSettingsPage*) self, TRUE);
	_tmp18_ = switchboard_settings_page_get_status_switch ((SwitchboardSettingsPage*) self);
	_tmp19_ = _tmp18_;
	gtk_switch_set_active (_tmp19_, switchboard_plug_user_accounts_get_guest_session_state ("show"));
	_tmp20_ = _data3_->guest_autologin_switch;
	gtk_switch_set_active (_tmp20_, switchboard_plug_user_accounts_get_guest_session_state ("show-autologin"));
	_tmp21_ = switchboard_settings_page_get_status_switch ((SwitchboardSettingsPage*) self);
	_tmp22_ = _tmp21_;
	_tmp23_ = autologin_box;
	g_object_bind_property_with_closures ((GObject*) _tmp22_, "active", (GObject*) _tmp23_, "sensitive", G_BINDING_DEFAULT | G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	_tmp24_ = switchboard_settings_page_get_status_switch ((SwitchboardSettingsPage*) self);
	_tmp25_ = _tmp24_;
	g_signal_connect_data ((GObject*) _tmp25_, "notify::active", (GCallback) __switchboard_plug_user_accounts_widgets_guest_settings_view___lambda4__g_object_notify, block3_data_ref (_data3_), (GClosureNotify) block3_data_unref, 0);
	_tmp26_ = _data3_->guest_autologin_switch;
	g_signal_connect_data ((GObject*) _tmp26_, "notify::active", (GCallback) __switchboard_plug_user_accounts_widgets_guest_settings_view___lambda5__g_object_notify, block3_data_ref (_data3_), (GClosureNotify) block3_data_unref, 0);
	_g_object_unref0 (box);
	_g_object_unref0 (autologin_box);
	_g_object_unref0 (guest_autologin_label);
	block3_data_unref (_data3_);
	_data3_ = NULL;
	return obj;
}

static void
switchboard_plug_user_accounts_widgets_guest_settings_view_class_init (SwitchboardPlugUserAccountsWidgetsGuestSettingsViewClass * klass,
                                                                       gpointer klass_data)
{
	switchboard_plug_user_accounts_widgets_guest_settings_view_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->constructor = switchboard_plug_user_accounts_widgets_guest_settings_view_constructor;
	switchboard_plug_user_accounts_widgets_guest_settings_view_signals[SWITCHBOARD_PLUG_USER_ACCOUNTS_WIDGETS_GUEST_SETTINGS_VIEW_GUEST_SWITCH_CHANGED_SIGNAL] = g_signal_new ("guest-switch-changed", SWITCHBOARD_PLUG_USER_ACCOUNTS_WIDGETS_TYPE_GUEST_SETTINGS_VIEW, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
}

static void
switchboard_plug_user_accounts_widgets_guest_settings_view_instance_init (SwitchboardPlugUserAccountsWidgetsGuestSettingsView * self,
                                                                          gpointer klass)
{
}

static GType
switchboard_plug_user_accounts_widgets_guest_settings_view_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SwitchboardPlugUserAccountsWidgetsGuestSettingsViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) switchboard_plug_user_accounts_widgets_guest_settings_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SwitchboardPlugUserAccountsWidgetsGuestSettingsView), 0, (GInstanceInitFunc) switchboard_plug_user_accounts_widgets_guest_settings_view_instance_init, NULL };
	GType switchboard_plug_user_accounts_widgets_guest_settings_view_type_id;
	switchboard_plug_user_accounts_widgets_guest_settings_view_type_id = g_type_register_static (SWITCHBOARD_TYPE_SETTINGS_PAGE, "SwitchboardPlugUserAccountsWidgetsGuestSettingsView", &g_define_type_info, 0);
	return switchboard_plug_user_accounts_widgets_guest_settings_view_type_id;
}

GType
switchboard_plug_user_accounts_widgets_guest_settings_view_get_type (void)
{
	static volatile gsize switchboard_plug_user_accounts_widgets_guest_settings_view_type_id__once = 0;
	if (g_once_init_enter (&switchboard_plug_user_accounts_widgets_guest_settings_view_type_id__once)) {
		GType switchboard_plug_user_accounts_widgets_guest_settings_view_type_id;
		switchboard_plug_user_accounts_widgets_guest_settings_view_type_id = switchboard_plug_user_accounts_widgets_guest_settings_view_get_type_once ();
		g_once_init_leave (&switchboard_plug_user_accounts_widgets_guest_settings_view_type_id__once, switchboard_plug_user_accounts_widgets_guest_settings_view_type_id);
	}
	return switchboard_plug_user_accounts_widgets_guest_settings_view_type_id__once;
}

