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

/*
* Copyright (c) 2014-2017 elementary LLC. (https://elementary.io)
*
* 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 3 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
*
* Authored by: Corentin Noël <corentin@elementary.io>
*              Marvin Beckers <beckersmarvin@gmail.com>
*/

#include "useraccounts.h"
#include <switchboard.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <gio/gio.h>
#include <gee.h>
#include <glib-object.h>
#include <glib/gi18n-lib.h>
#include <act/act.h>
#include <polkit/polkit.h>
#include <gmodule.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_USER_ACCOUNTS_PLUG_0_PROPERTY,
	SWITCHBOARD_PLUG_USER_ACCOUNTS_USER_ACCOUNTS_PLUG_NUM_PROPERTIES
};
static GParamSpec* switchboard_plug_user_accounts_user_accounts_plug_properties[SWITCHBOARD_PLUG_USER_ACCOUNTS_USER_ACCOUNTS_PLUG_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 _SwitchboardPlugUserAccountsUserAccountsPlugSearchData SwitchboardPlugUserAccountsUserAccountsPlugSearchData;

struct _SwitchboardPlugUserAccountsUserAccountsPlugPrivate {
	SwitchboardPlugUserAccountsWidgetsMainView* main_view;
};

struct _SwitchboardPlugUserAccountsUserAccountsPlugSearchData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	SwitchboardPlugUserAccountsUserAccountsPlug* self;
	gchar* search;
	GeeTreeMap* result;
	GeeTreeMap* search_results;
	GCompareFunc _tmp0_;
	GEqualFunc _tmp1_;
	GeeTreeMap* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	const gchar* _tmp7_;
	const gchar* _tmp8_;
	gchar* _tmp9_;
	gchar* _tmp10_;
	const gchar* _tmp11_;
	const gchar* _tmp12_;
	gchar* _tmp13_;
	gchar* _tmp14_;
	const gchar* _tmp15_;
	const gchar* _tmp16_;
	gchar* _tmp17_;
	gchar* _tmp18_;
	const gchar* _tmp19_;
	const gchar* _tmp20_;
	gchar* _tmp21_;
	gchar* _tmp22_;
	const gchar* _tmp23_;
	const gchar* _tmp24_;
	gchar* _tmp25_;
	gchar* _tmp26_;
	const gchar* _tmp27_;
	const gchar* _tmp28_;
	gchar* _tmp29_;
	gchar* _tmp30_;
};

SwitchboardPlugUserAccountsUserAccountsPlug* switchboard_plug_user_accounts_plug = NULL;
static gint SwitchboardPlugUserAccountsUserAccountsPlug_private_offset;
static gpointer switchboard_plug_user_accounts_user_accounts_plug_parent_class = NULL;

static GtkWidget* switchboard_plug_user_accounts_user_accounts_plug_real_get_widget (SwitchboardPlug* base);
static void switchboard_plug_user_accounts_user_accounts_plug_real_shown (SwitchboardPlug* base);
static void switchboard_plug_user_accounts_user_accounts_plug_real_hidden (SwitchboardPlug* base);
static void switchboard_plug_user_accounts_user_accounts_plug_real_search_callback (SwitchboardPlug* base,
                                                                             const gchar* location);
static void switchboard_plug_user_accounts_user_accounts_plug_real_search_data_free (gpointer _data);
static void switchboard_plug_user_accounts_user_accounts_plug_real_search (SwitchboardPlug* base,
                                                                    const gchar* search,
                                                                    GAsyncReadyCallback _callback_,
                                                                    gpointer _user_data_);
static gboolean switchboard_plug_user_accounts_user_accounts_plug_real_search_co (SwitchboardPlugUserAccountsUserAccountsPlugSearchData* _data_);
static void switchboard_plug_user_accounts_user_accounts_plug_finalize (GObject * obj);
static GType switchboard_plug_user_accounts_user_accounts_plug_get_type_once (void);

static inline gpointer
switchboard_plug_user_accounts_user_accounts_plug_get_instance_private (SwitchboardPlugUserAccountsUserAccountsPlug* self)
{
	return G_STRUCT_MEMBER_P (self, SwitchboardPlugUserAccountsUserAccountsPlug_private_offset);
}

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

SwitchboardPlugUserAccountsUserAccountsPlug*
switchboard_plug_user_accounts_user_accounts_plug_construct (GType object_type)
{
	SwitchboardPlugUserAccountsUserAccountsPlug * self = NULL;
	GeeTreeMap* settings = NULL;
	GeeTreeMap* _tmp0_;
	SwitchboardPlugUserAccountsUserAccountsPlug* _tmp1_;
	bindtextdomain (BUILD_GETTEXT_PACKAGE, BUILD_LOCALEDIR);
	bind_textdomain_codeset (BUILD_GETTEXT_PACKAGE, "UTF-8");
	_tmp0_ = gee_tree_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
	settings = _tmp0_;
	gee_abstract_map_set ((GeeAbstractMap*) settings, "accounts", NULL);
	self = (SwitchboardPlugUserAccountsUserAccountsPlug*) g_object_new (object_type, "category", SWITCHBOARD_PLUG_CATEGORY_SYSTEM, "code-name", "io.elementary.settings.useraccounts", "display-name", _ ("User Accounts"), "description", _ ("Manage account permissions and configure user names, passwords, and ph" \
"otos"), "icon", "system-users", "supported-settings", settings, NULL);
	_tmp1_ = _g_object_ref0 (self);
	_g_object_unref0 (switchboard_plug_user_accounts_plug);
	switchboard_plug_user_accounts_plug = _tmp1_;
	_g_object_unref0 (settings);
	return self;
}

SwitchboardPlugUserAccountsUserAccountsPlug*
switchboard_plug_user_accounts_user_accounts_plug_new (void)
{
	return switchboard_plug_user_accounts_user_accounts_plug_construct (SWITCHBOARD_PLUG_USER_ACCOUNTS_TYPE_USER_ACCOUNTS_PLUG);
}

static GtkWidget*
switchboard_plug_user_accounts_user_accounts_plug_real_get_widget (SwitchboardPlug* base)
{
	SwitchboardPlugUserAccountsUserAccountsPlug * self;
	SwitchboardPlugUserAccountsWidgetsMainView* _tmp0_;
	SwitchboardPlugUserAccountsWidgetsMainView* _tmp2_;
	GtkWidget* _tmp3_;
	GtkWidget* result;
	self = (SwitchboardPlugUserAccountsUserAccountsPlug*) base;
	_tmp0_ = self->priv->main_view;
	if (_tmp0_ == NULL) {
		SwitchboardPlugUserAccountsWidgetsMainView* _tmp1_;
		_tmp1_ = switchboard_plug_user_accounts_widgets_main_view_new ();
		g_object_ref_sink (_tmp1_);
		_g_object_unref0 (self->priv->main_view);
		self->priv->main_view = _tmp1_;
	}
	_tmp2_ = self->priv->main_view;
	_tmp3_ = _g_object_ref0 ((GtkWidget*) _tmp2_);
	result = _tmp3_;
	return result;
}

static void
switchboard_plug_user_accounts_user_accounts_plug_real_shown (SwitchboardPlug* base)
{
	SwitchboardPlugUserAccountsUserAccountsPlug * self;
	self = (SwitchboardPlugUserAccountsUserAccountsPlug*) base;
}

static void
switchboard_plug_user_accounts_user_accounts_plug_real_hidden (SwitchboardPlug* base)
{
	SwitchboardPlugUserAccountsUserAccountsPlug * self;
	PolkitPermission* _tmp11_;
	PolkitPermission* _tmp12_;
	gboolean _tmp13_;
	gboolean _tmp14_;
	gboolean _tmp15_;
	GError* _inner_error0_ = NULL;
	self = (SwitchboardPlugUserAccountsUserAccountsPlug*) base;
	{
		GList* _tmp0_;
		_tmp0_ = switchboard_plug_user_accounts_get_removal_list ();
		{
			GList* user_collection = NULL;
			GList* user_it = NULL;
			user_collection = _tmp0_;
			for (user_it = user_collection; user_it != NULL; user_it = user_it->next) {
				ActUser* _tmp1_;
				ActUser* user = NULL;
				_tmp1_ = _g_object_ref0 ((ActUser*) user_it->data);
				user = _tmp1_;
				{
					ActUser* _tmp2_;
					const gchar* _tmp3_;
					gchar* _tmp4_;
					gchar* _tmp5_;
					ActUser* _tmp6_;
					ActUserManager* _tmp7_;
					ActUser* _tmp8_;
					_tmp2_ = user;
					_tmp3_ = act_user_get_user_name (_tmp2_);
					_tmp4_ = g_strdup_printf ("Removing user %s from system", _tmp3_);
					_tmp5_ = _tmp4_;
					g_debug ("Plug.vala:58: %s", _tmp5_);
					_g_free0 (_tmp5_);
					_tmp6_ = user;
					g_object_ref ((GObject*) _tmp6_);
					_tmp7_ = switchboard_plug_user_accounts_get_usermanager ();
					_tmp8_ = user;
					act_user_manager_delete_user (_tmp7_, _tmp8_, TRUE, &_inner_error0_);
					if (G_UNLIKELY (_inner_error0_ != NULL)) {
						_g_object_unref0 (user);
						goto __catch0_g_error;
					}
					_g_object_unref0 (user);
				}
			}
		}
		g_debug ("Plug.vala:63: Clearing removal list");
		switchboard_plug_user_accounts_clear_removal_list ();
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp9_;
		const gchar* _tmp10_;
		e = _inner_error0_;
		_inner_error0_ = NULL;
		_tmp9_ = e;
		_tmp10_ = _tmp9_->message;
		g_critical ("Plug.vala:65: %s", _tmp10_);
		_g_error_free0 (e);
	}
	__finally0:
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		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;
	}
	_tmp11_ = switchboard_plug_user_accounts_get_permission ();
	_tmp12_ = _tmp11_;
	_tmp13_ = g_permission_get_allowed ((GPermission*) _tmp12_);
	_tmp14_ = _tmp13_;
	_tmp15_ = _tmp14_;
	_g_object_unref0 (_tmp12_);
	if (_tmp15_) {
		{
			PolkitPermission* _tmp16_;
			PolkitPermission* _tmp17_;
			g_debug ("Plug.vala:69: Releasing administrative permissions");
			_tmp16_ = switchboard_plug_user_accounts_get_permission ();
			_tmp17_ = _tmp16_;
			g_permission_release ((GPermission*) _tmp17_, NULL, &_inner_error0_);
			_g_object_unref0 (_tmp17_);
			if (G_UNLIKELY (_inner_error0_ != NULL)) {
				goto __catch1_g_error;
			}
		}
		goto __finally1;
		__catch1_g_error:
		{
			GError* e = NULL;
			GError* _tmp18_;
			const gchar* _tmp19_;
			e = _inner_error0_;
			_inner_error0_ = NULL;
			_tmp18_ = e;
			_tmp19_ = _tmp18_->message;
			g_critical ("Plug.vala:72: %s", _tmp19_);
			_g_error_free0 (e);
		}
		__finally1:
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			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;
		}
	}
}

static void
switchboard_plug_user_accounts_user_accounts_plug_real_search_callback (SwitchboardPlug* base,
                                                                        const gchar* location)
{
	SwitchboardPlugUserAccountsUserAccountsPlug * self;
	self = (SwitchboardPlugUserAccountsUserAccountsPlug*) base;
	g_return_if_fail (location != NULL);
}

static void
switchboard_plug_user_accounts_user_accounts_plug_real_search_data_free (gpointer _data)
{
	SwitchboardPlugUserAccountsUserAccountsPlugSearchData* _data_;
	_data_ = _data;
	_g_free0 (_data_->search);
	_g_object_unref0 (_data_->result);
	_g_object_unref0 (_data_->self);
	g_slice_free (SwitchboardPlugUserAccountsUserAccountsPlugSearchData, _data_);
}

static void
switchboard_plug_user_accounts_user_accounts_plug_real_search (SwitchboardPlug* base,
                                                               const gchar* search,
                                                               GAsyncReadyCallback _callback_,
                                                               gpointer _user_data_)
{
	SwitchboardPlugUserAccountsUserAccountsPlug * self;
	SwitchboardPlugUserAccountsUserAccountsPlugSearchData* _data_;
	SwitchboardPlugUserAccountsUserAccountsPlug* _tmp0_;
	gchar* _tmp1_;
	g_return_if_fail (search != NULL);
	self = (SwitchboardPlugUserAccountsUserAccountsPlug*) base;
	_data_ = g_slice_new0 (SwitchboardPlugUserAccountsUserAccountsPlugSearchData);
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
	g_task_set_task_data (_data_->_async_result, _data_, switchboard_plug_user_accounts_user_accounts_plug_real_search_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = g_strdup (search);
	_g_free0 (_data_->search);
	_data_->search = _tmp1_;
	switchboard_plug_user_accounts_user_accounts_plug_real_search_co (_data_);
}

static GeeTreeMap*
switchboard_plug_user_accounts_user_accounts_plug_search_finish (SwitchboardPlug* base,
                                                                 GAsyncResult* _res_)
{
	GeeTreeMap* result;
	SwitchboardPlugUserAccountsUserAccountsPlugSearchData* _data_;
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
	result = _data_->result;
	_data_->result = NULL;
	return result;
}

static gboolean
switchboard_plug_user_accounts_user_accounts_plug_real_search_co (SwitchboardPlugUserAccountsUserAccountsPlugSearchData* _data_)
{
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = ((GCompareFunc) g_strcmp0);
	_data_->_tmp1_ = g_str_equal;
	_data_->_tmp2_ = gee_tree_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, (GCompareDataFunc) _data_->_tmp0_, NULL, NULL, (GeeEqualDataFunc) _data_->_tmp1_, NULL, NULL);
	_data_->search_results = _data_->_tmp2_;
	_data_->_tmp3_ = switchboard_plug_get_display_name ((SwitchboardPlug*) _data_->self);
	_data_->_tmp4_ = _data_->_tmp3_;
	_data_->_tmp5_ = g_strdup_printf ("%s → %s", _data_->_tmp4_, _ ("Avatar"));
	_data_->_tmp6_ = _data_->_tmp5_;
	gee_abstract_map_set ((GeeAbstractMap*) _data_->search_results, _data_->_tmp6_, "");
	_g_free0 (_data_->_tmp6_);
	_data_->_tmp7_ = switchboard_plug_get_display_name ((SwitchboardPlug*) _data_->self);
	_data_->_tmp8_ = _data_->_tmp7_;
	_data_->_tmp9_ = g_strdup_printf ("%s → %s", _data_->_tmp8_, _ ("Full name"));
	_data_->_tmp10_ = _data_->_tmp9_;
	gee_abstract_map_set ((GeeAbstractMap*) _data_->search_results, _data_->_tmp10_, "");
	_g_free0 (_data_->_tmp10_);
	_data_->_tmp11_ = switchboard_plug_get_display_name ((SwitchboardPlug*) _data_->self);
	_data_->_tmp12_ = _data_->_tmp11_;
	_data_->_tmp13_ = g_strdup_printf ("%s → %s", _data_->_tmp12_, _ ("Account type"));
	_data_->_tmp14_ = _data_->_tmp13_;
	gee_abstract_map_set ((GeeAbstractMap*) _data_->search_results, _data_->_tmp14_, "");
	_g_free0 (_data_->_tmp14_);
	_data_->_tmp15_ = switchboard_plug_get_display_name ((SwitchboardPlug*) _data_->self);
	_data_->_tmp16_ = _data_->_tmp15_;
	_data_->_tmp17_ = g_strdup_printf ("%s → %s", _data_->_tmp16_, _ ("Language"));
	_data_->_tmp18_ = _data_->_tmp17_;
	gee_abstract_map_set ((GeeAbstractMap*) _data_->search_results, _data_->_tmp18_, "");
	_g_free0 (_data_->_tmp18_);
	_data_->_tmp19_ = switchboard_plug_get_display_name ((SwitchboardPlug*) _data_->self);
	_data_->_tmp20_ = _data_->_tmp19_;
	_data_->_tmp21_ = g_strdup_printf ("%s → %s", _data_->_tmp20_, _ ("Log in automatically"));
	_data_->_tmp22_ = _data_->_tmp21_;
	gee_abstract_map_set ((GeeAbstractMap*) _data_->search_results, _data_->_tmp22_, "");
	_g_free0 (_data_->_tmp22_);
	_data_->_tmp23_ = switchboard_plug_get_display_name ((SwitchboardPlug*) _data_->self);
	_data_->_tmp24_ = _data_->_tmp23_;
	_data_->_tmp25_ = g_strdup_printf ("%s → %s", _data_->_tmp24_, _ ("Change Password"));
	_data_->_tmp26_ = _data_->_tmp25_;
	gee_abstract_map_set ((GeeAbstractMap*) _data_->search_results, _data_->_tmp26_, "");
	_g_free0 (_data_->_tmp26_);
	_data_->_tmp27_ = switchboard_plug_get_display_name ((SwitchboardPlug*) _data_->self);
	_data_->_tmp28_ = _data_->_tmp27_;
	_data_->_tmp29_ = g_strdup_printf ("%s → %s", _data_->_tmp28_, _ ("Guest Session"));
	_data_->_tmp30_ = _data_->_tmp29_;
	gee_abstract_map_set ((GeeAbstractMap*) _data_->search_results, _data_->_tmp30_, "");
	_g_free0 (_data_->_tmp30_);
	_data_->result = _data_->search_results;
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
	if (_data_->_state_ != 0) {
		while (!g_task_get_completed (_data_->_async_result)) {
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
		}
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}

static void
switchboard_plug_user_accounts_user_accounts_plug_class_init (SwitchboardPlugUserAccountsUserAccountsPlugClass * klass,
                                                              gpointer klass_data)
{
	switchboard_plug_user_accounts_user_accounts_plug_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &SwitchboardPlugUserAccountsUserAccountsPlug_private_offset);
	((SwitchboardPlugClass *) klass)->get_widget = (GtkWidget* (*) (SwitchboardPlug*)) switchboard_plug_user_accounts_user_accounts_plug_real_get_widget;
	((SwitchboardPlugClass *) klass)->shown = (void (*) (SwitchboardPlug*)) switchboard_plug_user_accounts_user_accounts_plug_real_shown;
	((SwitchboardPlugClass *) klass)->hidden = (void (*) (SwitchboardPlug*)) switchboard_plug_user_accounts_user_accounts_plug_real_hidden;
	((SwitchboardPlugClass *) klass)->search_callback = (void (*) (SwitchboardPlug*, const gchar*)) switchboard_plug_user_accounts_user_accounts_plug_real_search_callback;
	((SwitchboardPlugClass *) klass)->search = (void (*) (SwitchboardPlug*, const gchar*, GAsyncReadyCallback, gpointer)) switchboard_plug_user_accounts_user_accounts_plug_real_search;
	((SwitchboardPlugClass *) klass)->search_finish = (GeeTreeMap* (*) (SwitchboardPlug*, GAsyncResult*)) switchboard_plug_user_accounts_user_accounts_plug_search_finish;
	G_OBJECT_CLASS (klass)->finalize = switchboard_plug_user_accounts_user_accounts_plug_finalize;
}

static void
switchboard_plug_user_accounts_user_accounts_plug_instance_init (SwitchboardPlugUserAccountsUserAccountsPlug * self,
                                                                 gpointer klass)
{
	self->priv = switchboard_plug_user_accounts_user_accounts_plug_get_instance_private (self);
}

static void
switchboard_plug_user_accounts_user_accounts_plug_finalize (GObject * obj)
{
	SwitchboardPlugUserAccountsUserAccountsPlug * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, SWITCHBOARD_PLUG_USER_ACCOUNTS_TYPE_USER_ACCOUNTS_PLUG, SwitchboardPlugUserAccountsUserAccountsPlug);
	_g_object_unref0 (self->priv->main_view);
	G_OBJECT_CLASS (switchboard_plug_user_accounts_user_accounts_plug_parent_class)->finalize (obj);
}

static GType
switchboard_plug_user_accounts_user_accounts_plug_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SwitchboardPlugUserAccountsUserAccountsPlugClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) switchboard_plug_user_accounts_user_accounts_plug_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SwitchboardPlugUserAccountsUserAccountsPlug), 0, (GInstanceInitFunc) switchboard_plug_user_accounts_user_accounts_plug_instance_init, NULL };
	GType switchboard_plug_user_accounts_user_accounts_plug_type_id;
	switchboard_plug_user_accounts_user_accounts_plug_type_id = g_type_register_static (SWITCHBOARD_TYPE_PLUG, "SwitchboardPlugUserAccountsUserAccountsPlug", &g_define_type_info, 0);
	SwitchboardPlugUserAccountsUserAccountsPlug_private_offset = g_type_add_instance_private (switchboard_plug_user_accounts_user_accounts_plug_type_id, sizeof (SwitchboardPlugUserAccountsUserAccountsPlugPrivate));
	return switchboard_plug_user_accounts_user_accounts_plug_type_id;
}

GType
switchboard_plug_user_accounts_user_accounts_plug_get_type (void)
{
	static volatile gsize switchboard_plug_user_accounts_user_accounts_plug_type_id__once = 0;
	if (g_once_init_enter (&switchboard_plug_user_accounts_user_accounts_plug_type_id__once)) {
		GType switchboard_plug_user_accounts_user_accounts_plug_type_id;
		switchboard_plug_user_accounts_user_accounts_plug_type_id = switchboard_plug_user_accounts_user_accounts_plug_get_type_once ();
		g_once_init_leave (&switchboard_plug_user_accounts_user_accounts_plug_type_id__once, switchboard_plug_user_accounts_user_accounts_plug_type_id);
	}
	return switchboard_plug_user_accounts_user_accounts_plug_type_id__once;
}

SwitchboardPlug*
get_plug (GModule* module)
{
	SwitchboardPlugUserAccountsUserAccountsPlug* plug = NULL;
	SwitchboardPlugUserAccountsUserAccountsPlug* _tmp0_;
	SwitchboardPlug* result;
	g_return_val_if_fail (module != NULL, NULL);
	g_debug ("Plug.vala:95: Activating User Accounts plug");
	_tmp0_ = switchboard_plug_user_accounts_user_accounts_plug_new ();
	plug = _tmp0_;
	result = (SwitchboardPlug*) plug;
	return result;
}

