/* preferences-widgets.c generated by valac 0.56.3, the Vala compiler
 * generated from preferences-widgets.vala, do not modify */

/* preferences-widgets.vala
 *
 * Copyright (C) Red Hat, Inc
 *
 * 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, see <http://www.gnu.org/licenses/>.
 *
 * Author: Felipe Borges <felipeborges@gnome.org>
 *
 */

#include <handy.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>

#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif

#define CONNECTIONS_TYPE_PREFERENCES_WINDOW (connections_preferences_window_get_type ())
#define CONNECTIONS_PREFERENCES_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONNECTIONS_TYPE_PREFERENCES_WINDOW, ConnectionsPreferencesWindow))
#define CONNECTIONS_PREFERENCES_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONNECTIONS_TYPE_PREFERENCES_WINDOW, ConnectionsPreferencesWindowClass))
#define CONNECTIONS_IS_PREFERENCES_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONNECTIONS_TYPE_PREFERENCES_WINDOW))
#define CONNECTIONS_IS_PREFERENCES_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONNECTIONS_TYPE_PREFERENCES_WINDOW))
#define CONNECTIONS_PREFERENCES_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONNECTIONS_TYPE_PREFERENCES_WINDOW, ConnectionsPreferencesWindowClass))

typedef struct _ConnectionsPreferencesWindow ConnectionsPreferencesWindow;
typedef struct _ConnectionsPreferencesWindowClass ConnectionsPreferencesWindowClass;
typedef struct _ConnectionsPreferencesWindowPrivate ConnectionsPreferencesWindowPrivate;

#define CONNECTIONS_TYPE_CONNECTION (connections_connection_get_type ())
#define CONNECTIONS_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONNECTIONS_TYPE_CONNECTION, ConnectionsConnection))
#define CONNECTIONS_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONNECTIONS_TYPE_CONNECTION, ConnectionsConnectionClass))
#define CONNECTIONS_IS_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONNECTIONS_TYPE_CONNECTION))
#define CONNECTIONS_IS_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONNECTIONS_TYPE_CONNECTION))
#define CONNECTIONS_CONNECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONNECTIONS_TYPE_CONNECTION, ConnectionsConnectionClass))

typedef struct _ConnectionsConnection ConnectionsConnection;
typedef struct _ConnectionsConnectionClass ConnectionsConnectionClass;
enum  {
	CONNECTIONS_PREFERENCES_WINDOW_0_PROPERTY,
	CONNECTIONS_PREFERENCES_WINDOW_NUM_PROPERTIES
};
static GParamSpec* connections_preferences_window_properties[CONNECTIONS_PREFERENCES_WINDOW_NUM_PROPERTIES];

#define CONNECTIONS_TYPE_APPLICATION (connections_application_get_type ())
#define CONNECTIONS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONNECTIONS_TYPE_APPLICATION, ConnectionsApplication))
#define CONNECTIONS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONNECTIONS_TYPE_APPLICATION, ConnectionsApplicationClass))
#define CONNECTIONS_IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONNECTIONS_TYPE_APPLICATION))
#define CONNECTIONS_IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONNECTIONS_TYPE_APPLICATION))
#define CONNECTIONS_APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONNECTIONS_TYPE_APPLICATION, ConnectionsApplicationClass))

typedef struct _ConnectionsApplication ConnectionsApplication;
typedef struct _ConnectionsApplicationClass ConnectionsApplicationClass;

#define CONNECTIONS_TYPE_WINDOW (connections_window_get_type ())
#define CONNECTIONS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONNECTIONS_TYPE_WINDOW, ConnectionsWindow))
#define CONNECTIONS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONNECTIONS_TYPE_WINDOW, ConnectionsWindowClass))
#define CONNECTIONS_IS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONNECTIONS_TYPE_WINDOW))
#define CONNECTIONS_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONNECTIONS_TYPE_WINDOW))
#define CONNECTIONS_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONNECTIONS_TYPE_WINDOW, ConnectionsWindowClass))

typedef struct _ConnectionsWindow ConnectionsWindow;
typedef struct _ConnectionsWindowClass ConnectionsWindowClass;

#define CONNECTIONS_TYPE_BOOLEAN_PROPERTY (connections_boolean_property_get_type ())
#define CONNECTIONS_BOOLEAN_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONNECTIONS_TYPE_BOOLEAN_PROPERTY, ConnectionsBooleanProperty))
#define CONNECTIONS_BOOLEAN_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONNECTIONS_TYPE_BOOLEAN_PROPERTY, ConnectionsBooleanPropertyClass))
#define CONNECTIONS_IS_BOOLEAN_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONNECTIONS_TYPE_BOOLEAN_PROPERTY))
#define CONNECTIONS_IS_BOOLEAN_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONNECTIONS_TYPE_BOOLEAN_PROPERTY))
#define CONNECTIONS_BOOLEAN_PROPERTY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONNECTIONS_TYPE_BOOLEAN_PROPERTY, ConnectionsBooleanPropertyClass))

typedef struct _ConnectionsBooleanProperty ConnectionsBooleanProperty;
typedef struct _ConnectionsBooleanPropertyClass ConnectionsBooleanPropertyClass;
typedef struct _ConnectionsBooleanPropertyPrivate ConnectionsBooleanPropertyPrivate;
enum  {
	CONNECTIONS_BOOLEAN_PROPERTY_0_PROPERTY,
	CONNECTIONS_BOOLEAN_PROPERTY_ACTIVE_PROPERTY,
	CONNECTIONS_BOOLEAN_PROPERTY_NUM_PROPERTIES
};
static GParamSpec* connections_boolean_property_properties[CONNECTIONS_BOOLEAN_PROPERTY_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _ConnectionsPreferencesWindow {
	HdyPreferencesWindow parent_instance;
	ConnectionsPreferencesWindowPrivate * priv;
	ConnectionsConnection* connection;
};

struct _ConnectionsPreferencesWindowClass {
	HdyPreferencesWindowClass parent_class;
};

struct _ConnectionsBooleanProperty {
	HdyActionRow parent_instance;
	ConnectionsBooleanPropertyPrivate * priv;
};

struct _ConnectionsBooleanPropertyClass {
	HdyActionRowClass parent_class;
};

struct _ConnectionsBooleanPropertyPrivate {
	gboolean _active;
};

static gpointer connections_preferences_window_parent_class = NULL;
VALA_EXTERN ConnectionsApplication* connections_application_application;
static gint ConnectionsBooleanProperty_private_offset;
static gpointer connections_boolean_property_parent_class = NULL;

VALA_EXTERN GType connections_preferences_window_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ConnectionsPreferencesWindow, g_object_unref)
VALA_EXTERN GType connections_connection_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ConnectionsConnection, g_object_unref)
VALA_EXTERN void connections_preferences_window_bind_widget_property (ConnectionsPreferencesWindow* self,
                                                          GtkWidget* widget,
                                                          const gchar* widget_property,
                                                          const gchar* connection_property);
VALA_EXTERN ConnectionsPreferencesWindow* connections_preferences_window_new (void);
VALA_EXTERN ConnectionsPreferencesWindow* connections_preferences_window_construct (GType object_type);
static GObject * connections_preferences_window_constructor (GType type,
                                                      guint n_construct_properties,
                                                      GObjectConstructParam * construct_properties);
VALA_EXTERN GType connections_application_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ConnectionsApplication, g_object_unref)
VALA_EXTERN GType connections_window_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ConnectionsWindow, g_object_unref)
VALA_EXTERN ConnectionsWindow* connections_application_get_main_window (ConnectionsApplication* self);
static void connections_preferences_window_finalize (GObject * obj);
static GType connections_preferences_window_get_type_once (void);
VALA_EXTERN GType connections_boolean_property_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ConnectionsBooleanProperty, g_object_unref)
VALA_EXTERN ConnectionsBooleanProperty* connections_boolean_property_new (void);
VALA_EXTERN ConnectionsBooleanProperty* connections_boolean_property_construct (GType object_type);
VALA_EXTERN gboolean connections_boolean_property_get_active (ConnectionsBooleanProperty* self);
VALA_EXTERN void connections_boolean_property_set_active (ConnectionsBooleanProperty* self,
                                              gboolean value);
static GObject * connections_boolean_property_constructor (GType type,
                                                    guint n_construct_properties,
                                                    GObjectConstructParam * construct_properties);
static void connections_boolean_property_finalize (GObject * obj);
static GType connections_boolean_property_get_type_once (void);
static void _vala_connections_boolean_property_get_property (GObject * object,
                                                      guint property_id,
                                                      GValue * value,
                                                      GParamSpec * pspec);
static void _vala_connections_boolean_property_set_property (GObject * object,
                                                      guint property_id,
                                                      const GValue * value,
                                                      GParamSpec * pspec);

void
connections_preferences_window_bind_widget_property (ConnectionsPreferencesWindow* self,
                                                     GtkWidget* widget,
                                                     const gchar* widget_property,
                                                     const gchar* connection_property)
{
	ConnectionsConnection* _tmp0_;
	GValue value = {0};
	ConnectionsConnection* _tmp1_;
	GObjectClass* _tmp2_;
	GParamSpec* _tmp3_;
	GValue _tmp4_ = {0};
	ConnectionsConnection* _tmp5_;
	GValue _tmp6_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (widget != NULL);
	g_return_if_fail (widget_property != NULL);
	g_return_if_fail (connection_property != NULL);
	_tmp0_ = self->connection;
	g_object_bind_property_with_closures ((GObject*) _tmp0_, connection_property, (GObject*) widget, widget_property, 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)));
	_tmp1_ = self->connection;
	_tmp2_ = G_OBJECT_GET_CLASS ((GObject*) _tmp1_);
	_tmp3_ = g_object_class_find_property (_tmp2_, connection_property);
	g_value_init (&_tmp4_, _tmp3_->value_type);
	value = _tmp4_;
	_tmp5_ = self->connection;
	g_object_get_property ((GObject*) _tmp5_, connection_property, &value);
	_tmp6_ = value;
	g_object_set_property ((GObject*) widget, widget_property, &_tmp6_);
	G_IS_VALUE (&value) ? (g_value_unset (&value), NULL) : NULL;
}

ConnectionsPreferencesWindow*
connections_preferences_window_construct (GType object_type)
{
	ConnectionsPreferencesWindow * self = NULL;
	self = (ConnectionsPreferencesWindow*) g_object_new (object_type, NULL);
	return self;
}

ConnectionsPreferencesWindow*
connections_preferences_window_new (void)
{
	return connections_preferences_window_construct (CONNECTIONS_TYPE_PREFERENCES_WINDOW);
}

static GObject *
connections_preferences_window_constructor (GType type,
                                            guint n_construct_properties,
                                            GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	ConnectionsPreferencesWindow * self;
	ConnectionsApplication* _tmp0_;
	ConnectionsWindow* _tmp1_;
	ConnectionsWindow* _tmp2_;
	parent_class = G_OBJECT_CLASS (connections_preferences_window_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, CONNECTIONS_TYPE_PREFERENCES_WINDOW, ConnectionsPreferencesWindow);
	_tmp0_ = connections_application_application;
	_tmp1_ = connections_application_get_main_window (_tmp0_);
	_tmp2_ = _tmp1_;
	gtk_window_set_transient_for ((GtkWindow*) self, (GtkWindow*) _tmp2_);
	return obj;
}

static void
connections_preferences_window_class_init (ConnectionsPreferencesWindowClass * klass,
                                           gpointer klass_data)
{
	connections_preferences_window_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->constructor = connections_preferences_window_constructor;
	G_OBJECT_CLASS (klass)->finalize = connections_preferences_window_finalize;
}

static void
connections_preferences_window_instance_init (ConnectionsPreferencesWindow * self,
                                              gpointer klass)
{
}

static void
connections_preferences_window_finalize (GObject * obj)
{
	ConnectionsPreferencesWindow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, CONNECTIONS_TYPE_PREFERENCES_WINDOW, ConnectionsPreferencesWindow);
	G_OBJECT_CLASS (connections_preferences_window_parent_class)->finalize (obj);
}

static GType
connections_preferences_window_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ConnectionsPreferencesWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) connections_preferences_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ConnectionsPreferencesWindow), 0, (GInstanceInitFunc) connections_preferences_window_instance_init, NULL };
	GType connections_preferences_window_type_id;
	connections_preferences_window_type_id = g_type_register_static (hdy_preferences_window_get_type (), "ConnectionsPreferencesWindow", &g_define_type_info, 0);
	return connections_preferences_window_type_id;
}

GType
connections_preferences_window_get_type (void)
{
	static volatile gsize connections_preferences_window_type_id__once = 0;
	if (g_once_init_enter (&connections_preferences_window_type_id__once)) {
		GType connections_preferences_window_type_id;
		connections_preferences_window_type_id = connections_preferences_window_get_type_once ();
		g_once_init_leave (&connections_preferences_window_type_id__once, connections_preferences_window_type_id);
	}
	return connections_preferences_window_type_id__once;
}

static inline gpointer
connections_boolean_property_get_instance_private (ConnectionsBooleanProperty* self)
{
	return G_STRUCT_MEMBER_P (self, ConnectionsBooleanProperty_private_offset);
}

ConnectionsBooleanProperty*
connections_boolean_property_construct (GType object_type)
{
	ConnectionsBooleanProperty * self = NULL;
	self = (ConnectionsBooleanProperty*) g_object_new (object_type, NULL);
	return self;
}

ConnectionsBooleanProperty*
connections_boolean_property_new (void)
{
	return connections_boolean_property_construct (CONNECTIONS_TYPE_BOOLEAN_PROPERTY);
}

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

void
connections_boolean_property_set_active (ConnectionsBooleanProperty* self,
                                         gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = connections_boolean_property_get_active (self);
	if (old_value != value) {
		self->priv->_active = value;
		g_object_notify_by_pspec ((GObject *) self, connections_boolean_property_properties[CONNECTIONS_BOOLEAN_PROPERTY_ACTIVE_PROPERTY]);
	}
}

static GObject *
connections_boolean_property_constructor (GType type,
                                          guint n_construct_properties,
                                          GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	ConnectionsBooleanProperty * self;
	GtkSwitch* widget = NULL;
	GtkSwitch* _tmp0_ = NULL;
	GtkSwitch* _tmp1_;
	GtkSwitch* _tmp2_;
	GtkSwitch* _tmp3_;
	parent_class = G_OBJECT_CLASS (connections_boolean_property_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, CONNECTIONS_TYPE_BOOLEAN_PROPERTY, ConnectionsBooleanProperty);
	_tmp0_ = (GtkSwitch*) gtk_switch_new ();
	gtk_widget_set_visible ((GtkWidget*) _tmp0_, TRUE);
	gtk_widget_set_valign ((GtkWidget*) _tmp0_, GTK_ALIGN_CENTER);
	g_object_ref_sink (_tmp0_);
	widget = _tmp0_;
	_tmp1_ = widget;
	g_object_bind_property_with_closures ((GObject*) self, "active", (GObject*) _tmp1_, "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)));
	_tmp2_ = widget;
	gtk_container_add ((GtkContainer*) self, (GtkWidget*) _tmp2_);
	_tmp3_ = widget;
	hdy_action_row_set_activatable_widget ((HdyActionRow*) self, (GtkWidget*) _tmp3_);
	_g_object_unref0 (widget);
	return obj;
}

static void
connections_boolean_property_class_init (ConnectionsBooleanPropertyClass * klass,
                                         gpointer klass_data)
{
	connections_boolean_property_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ConnectionsBooleanProperty_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_connections_boolean_property_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_connections_boolean_property_set_property;
	G_OBJECT_CLASS (klass)->constructor = connections_boolean_property_constructor;
	G_OBJECT_CLASS (klass)->finalize = connections_boolean_property_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), CONNECTIONS_BOOLEAN_PROPERTY_ACTIVE_PROPERTY, connections_boolean_property_properties[CONNECTIONS_BOOLEAN_PROPERTY_ACTIVE_PROPERTY] = g_param_spec_boolean ("active", "active", "active", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
}

static void
connections_boolean_property_instance_init (ConnectionsBooleanProperty * self,
                                            gpointer klass)
{
	self->priv = connections_boolean_property_get_instance_private (self);
}

static void
connections_boolean_property_finalize (GObject * obj)
{
	ConnectionsBooleanProperty * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, CONNECTIONS_TYPE_BOOLEAN_PROPERTY, ConnectionsBooleanProperty);
	G_OBJECT_CLASS (connections_boolean_property_parent_class)->finalize (obj);
}

static GType
connections_boolean_property_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ConnectionsBooleanPropertyClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) connections_boolean_property_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ConnectionsBooleanProperty), 0, (GInstanceInitFunc) connections_boolean_property_instance_init, NULL };
	GType connections_boolean_property_type_id;
	connections_boolean_property_type_id = g_type_register_static (hdy_action_row_get_type (), "ConnectionsBooleanProperty", &g_define_type_info, 0);
	ConnectionsBooleanProperty_private_offset = g_type_add_instance_private (connections_boolean_property_type_id, sizeof (ConnectionsBooleanPropertyPrivate));
	return connections_boolean_property_type_id;
}

GType
connections_boolean_property_get_type (void)
{
	static volatile gsize connections_boolean_property_type_id__once = 0;
	if (g_once_init_enter (&connections_boolean_property_type_id__once)) {
		GType connections_boolean_property_type_id;
		connections_boolean_property_type_id = connections_boolean_property_get_type_once ();
		g_once_init_leave (&connections_boolean_property_type_id__once, connections_boolean_property_type_id);
	}
	return connections_boolean_property_type_id__once;
}

static void
_vala_connections_boolean_property_get_property (GObject * object,
                                                 guint property_id,
                                                 GValue * value,
                                                 GParamSpec * pspec)
{
	ConnectionsBooleanProperty * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, CONNECTIONS_TYPE_BOOLEAN_PROPERTY, ConnectionsBooleanProperty);
	switch (property_id) {
		case CONNECTIONS_BOOLEAN_PROPERTY_ACTIVE_PROPERTY:
		g_value_set_boolean (value, connections_boolean_property_get_active (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_connections_boolean_property_set_property (GObject * object,
                                                 guint property_id,
                                                 const GValue * value,
                                                 GParamSpec * pspec)
{
	ConnectionsBooleanProperty * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, CONNECTIONS_TYPE_BOOLEAN_PROPERTY, ConnectionsBooleanProperty);
	switch (property_id) {
		case CONNECTIONS_BOOLEAN_PROPERTY_ACTIVE_PROPERTY:
		connections_boolean_property_set_active (self, g_value_get_boolean (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

