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

/*
* Copyright 2020 elementary, Inc. (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: Marius Meisenzahl <mariusmeisenzahl@gmail.com>
*/

#include "applications.h"
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include <float.h>
#include <math.h>
#include <granite-7.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  {
	PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_0_PROPERTY,
	PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_DESCRIPTION_PROPERTY,
	PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_ICON_NAME_PROPERTY,
	PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_PRIMARY_TEXT_PROPERTY,
	PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_ACTIVE_PROPERTY,
	PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_NUM_PROPERTIES
};
static GParamSpec* permissions_widgets_permission_settings_widget_properties[PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_NUM_PROPERTIES];
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _PermissionsWidgetsPermissionSettingsWidgetPrivate {
	gchar* _description;
	gchar* _icon_name;
	gchar* _primary_text;
	gboolean _active;
};

static gint PermissionsWidgetsPermissionSettingsWidget_private_offset;
static gpointer permissions_widgets_permission_settings_widget_parent_class = NULL;

static GObject * permissions_widgets_permission_settings_widget_constructor (GType type,
                                                                      guint n_construct_properties,
                                                                      GObjectConstructParam * construct_properties);
static void _permissions_widgets_permission_settings_widget___lambda5_ (PermissionsWidgetsPermissionSettingsWidget* self);
static void __permissions_widgets_permission_settings_widget___lambda5__g_object_notify (GObject* _sender,
                                                                                  GParamSpec* pspec,
                                                                                  gpointer self);
static void permissions_widgets_permission_settings_widget_finalize (GObject * obj);
static GType permissions_widgets_permission_settings_widget_get_type_once (void);
static void _vala_permissions_widgets_permission_settings_widget_get_property (GObject * object,
                                                                        guint property_id,
                                                                        GValue * value,
                                                                        GParamSpec * pspec);
static void _vala_permissions_widgets_permission_settings_widget_set_property (GObject * object,
                                                                        guint property_id,
                                                                        const GValue * value,
                                                                        GParamSpec * pspec);

static inline gpointer
permissions_widgets_permission_settings_widget_get_instance_private (PermissionsWidgetsPermissionSettingsWidget* self)
{
	return G_STRUCT_MEMBER_P (self, PermissionsWidgetsPermissionSettingsWidget_private_offset);
}

PermissionsWidgetsPermissionSettingsWidget*
permissions_widgets_permission_settings_widget_construct (GType object_type,
                                                          const gchar* primary_text,
                                                          const gchar* description,
                                                          const gchar* icon_name)
{
	PermissionsWidgetsPermissionSettingsWidget * self = NULL;
	g_return_val_if_fail (primary_text != NULL, NULL);
	g_return_val_if_fail (description != NULL, NULL);
	g_return_val_if_fail (icon_name != NULL, NULL);
	self = (PermissionsWidgetsPermissionSettingsWidget*) g_object_new (object_type, "description", description, "icon-name", icon_name, "primary-text", primary_text, NULL);
	return self;
}

PermissionsWidgetsPermissionSettingsWidget*
permissions_widgets_permission_settings_widget_new (const gchar* primary_text,
                                                    const gchar* description,
                                                    const gchar* icon_name)
{
	return permissions_widgets_permission_settings_widget_construct (PERMISSIONS_WIDGETS_TYPE_PERMISSION_SETTINGS_WIDGET, primary_text, description, icon_name);
}

const gchar*
permissions_widgets_permission_settings_widget_get_description (PermissionsWidgetsPermissionSettingsWidget* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_description;
	result = _tmp0_;
	return result;
}

static void
permissions_widgets_permission_settings_widget_set_description (PermissionsWidgetsPermissionSettingsWidget* self,
                                                                const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = permissions_widgets_permission_settings_widget_get_description (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_description);
		self->priv->_description = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, permissions_widgets_permission_settings_widget_properties[PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_DESCRIPTION_PROPERTY]);
	}
}

const gchar*
permissions_widgets_permission_settings_widget_get_icon_name (PermissionsWidgetsPermissionSettingsWidget* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_icon_name;
	result = _tmp0_;
	return result;
}

static void
permissions_widgets_permission_settings_widget_set_icon_name (PermissionsWidgetsPermissionSettingsWidget* self,
                                                              const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = permissions_widgets_permission_settings_widget_get_icon_name (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_icon_name);
		self->priv->_icon_name = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, permissions_widgets_permission_settings_widget_properties[PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_ICON_NAME_PROPERTY]);
	}
}

const gchar*
permissions_widgets_permission_settings_widget_get_primary_text (PermissionsWidgetsPermissionSettingsWidget* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_primary_text;
	result = _tmp0_;
	return result;
}

static void
permissions_widgets_permission_settings_widget_set_primary_text (PermissionsWidgetsPermissionSettingsWidget* self,
                                                                 const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = permissions_widgets_permission_settings_widget_get_primary_text (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_primary_text);
		self->priv->_primary_text = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, permissions_widgets_permission_settings_widget_properties[PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_PRIMARY_TEXT_PROPERTY]);
	}
}

gboolean
permissions_widgets_permission_settings_widget_get_active (PermissionsWidgetsPermissionSettingsWidget* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_active;
	return result;
}

void
permissions_widgets_permission_settings_widget_set_active (PermissionsWidgetsPermissionSettingsWidget* self,
                                                           gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = permissions_widgets_permission_settings_widget_get_active (self);
	if (old_value != value) {
		self->priv->_active = value;
		g_object_notify_by_pspec ((GObject *) self, permissions_widgets_permission_settings_widget_properties[PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_ACTIVE_PROPERTY]);
	}
}

static void
_permissions_widgets_permission_settings_widget___lambda5_ (PermissionsWidgetsPermissionSettingsWidget* self)
{
	gboolean _tmp0_;
	_tmp0_ = self->priv->_active;
	gtk_accessible_update_state ((GtkAccessible*) self, GTK_ACCESSIBLE_STATE_CHECKED, _tmp0_, -1, -1);
}

static void
__permissions_widgets_permission_settings_widget___lambda5__g_object_notify (GObject* _sender,
                                                                             GParamSpec* pspec,
                                                                             gpointer self)
{
	_permissions_widgets_permission_settings_widget___lambda5_ ((PermissionsWidgetsPermissionSettingsWidget*) self);
}

static GObject *
permissions_widgets_permission_settings_widget_constructor (GType type,
                                                            guint n_construct_properties,
                                                            GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	PermissionsWidgetsPermissionSettingsWidget * self;
	GtkImage* icon = NULL;
	const gchar* _tmp0_;
	GtkImage* _tmp1_ = NULL;
	GtkLabel* name_label = NULL;
	const gchar* _tmp2_;
	GtkLabel* _tmp3_ = NULL;
	GtkLabel* description_label = NULL;
	const gchar* _tmp4_;
	GtkLabel* _tmp5_ = NULL;
	GtkLabel* _tmp6_;
	GtkLabel* _tmp7_;
	GtkSwitch* allow_switch = NULL;
	GtkSwitch* _tmp8_ = NULL;
	GtkGrid* grid = NULL;
	GtkGrid* _tmp9_ = NULL;
	GtkGrid* _tmp10_;
	GtkImage* _tmp11_;
	GtkGrid* _tmp12_;
	GtkLabel* _tmp13_;
	GtkGrid* _tmp14_;
	GtkLabel* _tmp15_;
	GtkGrid* _tmp16_;
	GtkSwitch* _tmp17_;
	GtkGrid* _tmp18_;
	const gchar* _tmp19_;
	const gchar* _tmp20_;
	GtkSwitch* _tmp21_;
	gboolean _tmp22_;
	parent_class = G_OBJECT_CLASS (permissions_widgets_permission_settings_widget_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PERMISSIONS_WIDGETS_TYPE_PERMISSION_SETTINGS_WIDGET, PermissionsWidgetsPermissionSettingsWidget);
	_tmp0_ = self->priv->_icon_name;
	_tmp1_ = (GtkImage*) gtk_image_new_from_icon_name (_tmp0_);
	gtk_image_set_icon_size (_tmp1_, GTK_ICON_SIZE_LARGE);
	g_object_ref_sink (_tmp1_);
	icon = _tmp1_;
	_tmp2_ = self->priv->_primary_text;
	_tmp3_ = (GtkLabel*) gtk_label_new (_tmp2_);
	gtk_widget_set_halign ((GtkWidget*) _tmp3_, GTK_ALIGN_START);
	gtk_widget_set_hexpand ((GtkWidget*) _tmp3_, TRUE);
	g_object_ref_sink (_tmp3_);
	name_label = _tmp3_;
	_tmp4_ = self->priv->_description;
	_tmp5_ = (GtkLabel*) gtk_label_new (_tmp4_);
	gtk_label_set_wrap (_tmp5_, TRUE);
	gtk_label_set_xalign (_tmp5_, (gfloat) 0);
	g_object_ref_sink (_tmp5_);
	description_label = _tmp5_;
	_tmp6_ = description_label;
	gtk_widget_add_css_class ((GtkWidget*) _tmp6_, GRANITE_STYLE_CLASS_DIM_LABEL);
	_tmp7_ = description_label;
	gtk_widget_add_css_class ((GtkWidget*) _tmp7_, GRANITE_STYLE_CLASS_SMALL_LABEL);
	_tmp8_ = (GtkSwitch*) gtk_switch_new ();
	gtk_widget_set_focusable ((GtkWidget*) _tmp8_, FALSE);
	gtk_widget_set_valign ((GtkWidget*) _tmp8_, GTK_ALIGN_CENTER);
	g_object_ref_sink (_tmp8_);
	allow_switch = _tmp8_;
	_tmp9_ = (GtkGrid*) gtk_grid_new ();
	gtk_grid_set_column_spacing (_tmp9_, 6);
	g_object_ref_sink (_tmp9_);
	grid = _tmp9_;
	_tmp10_ = grid;
	_tmp11_ = icon;
	gtk_grid_attach (_tmp10_, (GtkWidget*) _tmp11_, 0, 0, 1, 2);
	_tmp12_ = grid;
	_tmp13_ = name_label;
	gtk_grid_attach (_tmp12_, (GtkWidget*) _tmp13_, 1, 0, 1, 1);
	_tmp14_ = grid;
	_tmp15_ = description_label;
	gtk_grid_attach (_tmp14_, (GtkWidget*) _tmp15_, 1, 1, 1, 1);
	_tmp16_ = grid;
	_tmp17_ = allow_switch;
	gtk_grid_attach (_tmp16_, (GtkWidget*) _tmp17_, 2, 0, 1, 2);
	g_object_set ((GtkAccessible*) self, "accessible-role", GTK_ACCESSIBLE_ROLE_SWITCH, NULL);
	_tmp18_ = grid;
	gtk_list_box_row_set_child ((GtkListBoxRow*) self, (GtkWidget*) _tmp18_);
	_tmp19_ = self->priv->_primary_text;
	_tmp20_ = self->priv->_description;
	gtk_accessible_update_property ((GtkAccessible*) self, GTK_ACCESSIBLE_PROPERTY_LABEL, _tmp19_, GTK_ACCESSIBLE_PROPERTY_DESCRIPTION, _tmp20_, -1, -1);
	_tmp21_ = allow_switch;
	g_object_bind_property_with_closures ((GObject*) self, "active", (GObject*) _tmp21_, "active", G_BINDING_BIDIRECTIONAL, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	_tmp22_ = self->priv->_active;
	gtk_accessible_update_state ((GtkAccessible*) self, GTK_ACCESSIBLE_STATE_CHECKED, _tmp22_, -1, -1);
	g_signal_connect_object ((GObject*) self, "notify::active", (GCallback) __permissions_widgets_permission_settings_widget___lambda5__g_object_notify, self, 0);
	_g_object_unref0 (grid);
	_g_object_unref0 (allow_switch);
	_g_object_unref0 (description_label);
	_g_object_unref0 (name_label);
	_g_object_unref0 (icon);
	return obj;
}

static void
permissions_widgets_permission_settings_widget_class_init (PermissionsWidgetsPermissionSettingsWidgetClass * klass,
                                                           gpointer klass_data)
{
	permissions_widgets_permission_settings_widget_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &PermissionsWidgetsPermissionSettingsWidget_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_permissions_widgets_permission_settings_widget_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_permissions_widgets_permission_settings_widget_set_property;
	G_OBJECT_CLASS (klass)->constructor = permissions_widgets_permission_settings_widget_constructor;
	G_OBJECT_CLASS (klass)->finalize = permissions_widgets_permission_settings_widget_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_DESCRIPTION_PROPERTY, permissions_widgets_permission_settings_widget_properties[PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_DESCRIPTION_PROPERTY] = g_param_spec_string ("description", "description", "description", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_ICON_NAME_PROPERTY, permissions_widgets_permission_settings_widget_properties[PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_ICON_NAME_PROPERTY] = g_param_spec_string ("icon-name", "icon-name", "icon-name", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_PRIMARY_TEXT_PROPERTY, permissions_widgets_permission_settings_widget_properties[PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_PRIMARY_TEXT_PROPERTY] = g_param_spec_string ("primary-text", "primary-text", "primary-text", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_ACTIVE_PROPERTY, permissions_widgets_permission_settings_widget_properties[PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_ACTIVE_PROPERTY] = g_param_spec_boolean ("active", "active", "active", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
}

static void
permissions_widgets_permission_settings_widget_instance_init (PermissionsWidgetsPermissionSettingsWidget * self,
                                                              gpointer klass)
{
	self->priv = permissions_widgets_permission_settings_widget_get_instance_private (self);
}

static void
permissions_widgets_permission_settings_widget_finalize (GObject * obj)
{
	PermissionsWidgetsPermissionSettingsWidget * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PERMISSIONS_WIDGETS_TYPE_PERMISSION_SETTINGS_WIDGET, PermissionsWidgetsPermissionSettingsWidget);
	_g_free0 (self->priv->_description);
	_g_free0 (self->priv->_icon_name);
	_g_free0 (self->priv->_primary_text);
	G_OBJECT_CLASS (permissions_widgets_permission_settings_widget_parent_class)->finalize (obj);
}

static GType
permissions_widgets_permission_settings_widget_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (PermissionsWidgetsPermissionSettingsWidgetClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) permissions_widgets_permission_settings_widget_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PermissionsWidgetsPermissionSettingsWidget), 0, (GInstanceInitFunc) permissions_widgets_permission_settings_widget_instance_init, NULL };
	GType permissions_widgets_permission_settings_widget_type_id;
	permissions_widgets_permission_settings_widget_type_id = g_type_register_static (gtk_list_box_row_get_type (), "PermissionsWidgetsPermissionSettingsWidget", &g_define_type_info, 0);
	PermissionsWidgetsPermissionSettingsWidget_private_offset = g_type_add_instance_private (permissions_widgets_permission_settings_widget_type_id, sizeof (PermissionsWidgetsPermissionSettingsWidgetPrivate));
	return permissions_widgets_permission_settings_widget_type_id;
}

GType
permissions_widgets_permission_settings_widget_get_type (void)
{
	static volatile gsize permissions_widgets_permission_settings_widget_type_id__once = 0;
	if (g_once_init_enter (&permissions_widgets_permission_settings_widget_type_id__once)) {
		GType permissions_widgets_permission_settings_widget_type_id;
		permissions_widgets_permission_settings_widget_type_id = permissions_widgets_permission_settings_widget_get_type_once ();
		g_once_init_leave (&permissions_widgets_permission_settings_widget_type_id__once, permissions_widgets_permission_settings_widget_type_id);
	}
	return permissions_widgets_permission_settings_widget_type_id__once;
}

static void
_vala_permissions_widgets_permission_settings_widget_get_property (GObject * object,
                                                                   guint property_id,
                                                                   GValue * value,
                                                                   GParamSpec * pspec)
{
	PermissionsWidgetsPermissionSettingsWidget * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PERMISSIONS_WIDGETS_TYPE_PERMISSION_SETTINGS_WIDGET, PermissionsWidgetsPermissionSettingsWidget);
	switch (property_id) {
		case PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_DESCRIPTION_PROPERTY:
		g_value_set_string (value, permissions_widgets_permission_settings_widget_get_description (self));
		break;
		case PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_ICON_NAME_PROPERTY:
		g_value_set_string (value, permissions_widgets_permission_settings_widget_get_icon_name (self));
		break;
		case PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_PRIMARY_TEXT_PROPERTY:
		g_value_set_string (value, permissions_widgets_permission_settings_widget_get_primary_text (self));
		break;
		case PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_ACTIVE_PROPERTY:
		g_value_set_boolean (value, permissions_widgets_permission_settings_widget_get_active (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_permissions_widgets_permission_settings_widget_set_property (GObject * object,
                                                                   guint property_id,
                                                                   const GValue * value,
                                                                   GParamSpec * pspec)
{
	PermissionsWidgetsPermissionSettingsWidget * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PERMISSIONS_WIDGETS_TYPE_PERMISSION_SETTINGS_WIDGET, PermissionsWidgetsPermissionSettingsWidget);
	switch (property_id) {
		case PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_DESCRIPTION_PROPERTY:
		permissions_widgets_permission_settings_widget_set_description (self, g_value_get_string (value));
		break;
		case PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_ICON_NAME_PROPERTY:
		permissions_widgets_permission_settings_widget_set_icon_name (self, g_value_get_string (value));
		break;
		case PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_PRIMARY_TEXT_PROPERTY:
		permissions_widgets_permission_settings_widget_set_primary_text (self, g_value_get_string (value));
		break;
		case PERMISSIONS_WIDGETS_PERMISSION_SETTINGS_WIDGET_ACTIVE_PROPERTY:
		permissions_widgets_permission_settings_widget_set_active (self, g_value_get_boolean (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

