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

/*
 * SPDX-License-Identifier: LGPL-2.1-or-later
 * SPDX-FileCopyrightText: 2015-2024 elementary, Inc. (https://elementary.io)
 * Authored by: Adam Bieńkowski <donadigos159@gmail.com>
 */

#include "network.h"
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <granite-7.h>
#include <glib/gi18n-lib.h>
#include <gio/gio.h>
#include <glib-object.h>
#include <float.h>
#include <math.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  {
	NETWORK_WIDGETS_CONFIGURATION_PAGE_0_PROPERTY,
	NETWORK_WIDGETS_CONFIGURATION_PAGE_NUM_PROPERTIES
};
static GParamSpec* network_widgets_configuration_page_properties[NETWORK_WIDGETS_CONFIGURATION_PAGE_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block15Data Block15Data;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_settings_schema_unref0(var) ((var == NULL) ? NULL : (var = (g_settings_schema_unref (var), NULL)))

#define NETWORK_WIDGETS_CONFIGURATION_PAGE_TYPE_PROXY_SETTING_ROW (network_widgets_configuration_page_proxy_setting_row_get_type ())
#define NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NETWORK_WIDGETS_CONFIGURATION_PAGE_TYPE_PROXY_SETTING_ROW, NetworkWidgetsConfigurationPageProxySettingRow))
#define NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NETWORK_WIDGETS_CONFIGURATION_PAGE_TYPE_PROXY_SETTING_ROW, NetworkWidgetsConfigurationPageProxySettingRowClass))
#define NETWORK_WIDGETS_CONFIGURATION_PAGE_IS_PROXY_SETTING_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NETWORK_WIDGETS_CONFIGURATION_PAGE_TYPE_PROXY_SETTING_ROW))
#define NETWORK_WIDGETS_CONFIGURATION_PAGE_IS_PROXY_SETTING_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NETWORK_WIDGETS_CONFIGURATION_PAGE_TYPE_PROXY_SETTING_ROW))
#define NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NETWORK_WIDGETS_CONFIGURATION_PAGE_TYPE_PROXY_SETTING_ROW, NetworkWidgetsConfigurationPageProxySettingRowClass))

typedef struct _NetworkWidgetsConfigurationPageProxySettingRow NetworkWidgetsConfigurationPageProxySettingRow;
typedef struct _NetworkWidgetsConfigurationPageProxySettingRowClass NetworkWidgetsConfigurationPageProxySettingRowClass;
typedef struct _NetworkWidgetsConfigurationPageProxySettingRowPrivate NetworkWidgetsConfigurationPageProxySettingRowPrivate;
enum  {
	NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_0_PROPERTY,
	NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_LABEL_PROPERTY,
	NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_SCHEMA_ID_PROPERTY,
	NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_HOST_PROPERTY,
	NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_PORT_PROPERTY,
	NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_NUM_PROPERTIES
};
static GParamSpec* network_widgets_configuration_page_proxy_setting_row_properties[NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_NUM_PROPERTIES];
typedef struct _Block16Data Block16Data;

struct _NetworkWidgetsConfigurationPagePrivate {
	GtkCheckButton* auto_radio;
	GtkCheckButton* manual_radio;
};

struct _Block15Data {
	int _ref_count_;
	NetworkWidgetsConfigurationPage* self;
	GraniteMessageDialog* reset_dialog;
};

struct _NetworkWidgetsConfigurationPageProxySettingRow {
	GtkGrid parent_instance;
	NetworkWidgetsConfigurationPageProxySettingRowPrivate * priv;
};

struct _NetworkWidgetsConfigurationPageProxySettingRowClass {
	GtkGridClass parent_class;
};

struct _NetworkWidgetsConfigurationPageProxySettingRowPrivate {
	gchar* _label;
	gchar* _schema_id;
	gchar* _host;
	gint _port;
};

struct _Block16Data {
	int _ref_count_;
	NetworkWidgetsConfigurationPage* self;
	GtkCheckButton* use_all_check;
	NetworkWidgetsConfigurationPageProxySettingRow* http_row;
	NetworkWidgetsConfigurationPageProxySettingRow* https_row;
	NetworkWidgetsConfigurationPageProxySettingRow* ftp_row;
	NetworkWidgetsConfigurationPageProxySettingRow* socks_row;
	GSettings* proxy_settings;
};

static gint NetworkWidgetsConfigurationPage_private_offset;
static gpointer network_widgets_configuration_page_parent_class = NULL;
static gint NetworkWidgetsConfigurationPageProxySettingRow_private_offset;
static gpointer network_widgets_configuration_page_proxy_setting_row_parent_class = NULL;

static void network_widgets_configuration_page_update_radios (NetworkWidgetsConfigurationPage* self,
                                                       const gchar* mode);
static void network_widgets_configuration_page_on_reset_btn_clicked (NetworkWidgetsConfigurationPage* self);
static Block15Data* block15_data_ref (Block15Data* _data15_);
static void block15_data_unref (void * _userdata_);
static void __lambda35_ (Block15Data* _data15_,
                  gint response);
static void ___lambda35__gtk_dialog_response (GtkDialog* _sender,
                                       gint response_id,
                                       gpointer self);
static GType network_widgets_configuration_page_proxy_setting_row_get_type (void) G_GNUC_CONST  G_GNUC_UNUSED ;
static NetworkWidgetsConfigurationPageProxySettingRow* network_widgets_configuration_page_proxy_setting_row_new (const gchar* label,
                                                                                                          const gchar* schema_id);
static NetworkWidgetsConfigurationPageProxySettingRow* network_widgets_configuration_page_proxy_setting_row_construct (GType object_type,
                                                                                                                const gchar* label,
                                                                                                                const gchar* schema_id);
static const gchar* network_widgets_configuration_page_proxy_setting_row_get_label (NetworkWidgetsConfigurationPageProxySettingRow* self);
static void network_widgets_configuration_page_proxy_setting_row_set_label (NetworkWidgetsConfigurationPageProxySettingRow* self,
                                                                     const gchar* value);
static const gchar* network_widgets_configuration_page_proxy_setting_row_get_schema_id (NetworkWidgetsConfigurationPageProxySettingRow* self);
static void network_widgets_configuration_page_proxy_setting_row_set_schema_id (NetworkWidgetsConfigurationPageProxySettingRow* self,
                                                                         const gchar* value);
static const gchar* network_widgets_configuration_page_proxy_setting_row_get_host (NetworkWidgetsConfigurationPageProxySettingRow* self);
static void network_widgets_configuration_page_proxy_setting_row_set_host (NetworkWidgetsConfigurationPageProxySettingRow* self,
                                                                    const gchar* value);
static gint network_widgets_configuration_page_proxy_setting_row_get_port (NetworkWidgetsConfigurationPageProxySettingRow* self);
static void network_widgets_configuration_page_proxy_setting_row_set_port (NetworkWidgetsConfigurationPageProxySettingRow* self,
                                                                    gint value);
static GObject * network_widgets_configuration_page_proxy_setting_row_constructor (GType type,
                                                                            guint n_construct_properties,
                                                                            GObjectConstructParam * construct_properties);
static void network_widgets_configuration_page_proxy_setting_row_finalize (GObject * obj);
static GType network_widgets_configuration_page_proxy_setting_row_get_type_once (void);
static void _vala_network_widgets_configuration_page_proxy_setting_row_get_property (GObject * object,
                                                                              guint property_id,
                                                                              GValue * value,
                                                                              GParamSpec * pspec);
static void _vala_network_widgets_configuration_page_proxy_setting_row_set_property (GObject * object,
                                                                              guint property_id,
                                                                              const GValue * value,
                                                                              GParamSpec * pspec);
static GObject * network_widgets_configuration_page_constructor (GType type,
                                                          guint n_construct_properties,
                                                          GObjectConstructParam * construct_properties);
static Block16Data* block16_data_ref (Block16Data* _data16_);
static void block16_data_unref (void * _userdata_);
static void _network_widgets_configuration_page_on_reset_btn_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                                  gpointer self);
static void _network_widgets_configuration_page___lambda36_ (Block16Data* _data16_);
static void __network_widgets_configuration_page___lambda36__g_object_notify (GObject* _sender,
                                                                       GParamSpec* pspec,
                                                                       gpointer self);
static void _network_widgets_configuration_page___lambda37_ (Block16Data* _data16_);
static void __network_widgets_configuration_page___lambda37__g_object_notify (GObject* _sender,
                                                                       GParamSpec* pspec,
                                                                       gpointer self);
static void _network_widgets_configuration_page___lambda38_ (Block16Data* _data16_);
static void __network_widgets_configuration_page___lambda38__g_object_notify (GObject* _sender,
                                                                       GParamSpec* pspec,
                                                                       gpointer self);
static void _network_widgets_configuration_page___lambda39_ (Block16Data* _data16_);
static void __network_widgets_configuration_page___lambda39__g_settings_changed (GSettings* _sender,
                                                                          const gchar* key,
                                                                          gpointer self);
static void _network_widgets_configuration_page___lambda40_ (Block16Data* _data16_);
static void __network_widgets_configuration_page___lambda40__gtk_check_button_toggled (GtkCheckButton* _sender,
                                                                                gpointer self);
static void _network_widgets_configuration_page___lambda41_ (Block16Data* _data16_);
static void __network_widgets_configuration_page___lambda41__gtk_check_button_toggled (GtkCheckButton* _sender,
                                                                                gpointer self);
static void network_widgets_configuration_page_finalize (GObject * obj);
static GType network_widgets_configuration_page_get_type_once (void);
static void _vala_array_destroy (gpointer array,
                          gssize array_length,
                          GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array,
                       gssize array_length,
                       GDestroyNotify destroy_func);
static gssize _vala_array_length (gpointer array);

static inline gpointer
network_widgets_configuration_page_get_instance_private (NetworkWidgetsConfigurationPage* self)
{
	return G_STRUCT_MEMBER_P (self, NetworkWidgetsConfigurationPage_private_offset);
}

static void
network_widgets_configuration_page_update_radios (NetworkWidgetsConfigurationPage* self,
                                                  const gchar* mode)
{
	const gchar* _tmp0_;
	GQuark _tmp2_ = 0U;
	static GQuark _tmp1_label0 = 0;
	static GQuark _tmp1_label1 = 0;
	g_return_if_fail (self != NULL);
	g_return_if_fail (mode != NULL);
	_tmp0_ = mode;
	_tmp2_ = (NULL == _tmp0_) ? 0 : g_quark_from_string (_tmp0_);
	if (_tmp2_ == ((0 != _tmp1_label0) ? _tmp1_label0 : (_tmp1_label0 = g_quark_from_static_string ("auto")))) {
		switch (0) {
			default:
			{
				GtkCheckButton* _tmp3_;
				_tmp3_ = self->priv->auto_radio;
				gtk_check_button_set_active (_tmp3_, TRUE);
				break;
			}
		}
	} else if (_tmp2_ == ((0 != _tmp1_label1) ? _tmp1_label1 : (_tmp1_label1 = g_quark_from_static_string ("manual")))) {
		switch (0) {
			default:
			{
				GtkCheckButton* _tmp4_;
				_tmp4_ = self->priv->manual_radio;
				gtk_check_button_set_active (_tmp4_, TRUE);
				break;
			}
		}
	}
}

static Block15Data*
block15_data_ref (Block15Data* _data15_)
{
	g_atomic_int_inc (&_data15_->_ref_count_);
	return _data15_;
}

static void
block15_data_unref (void * _userdata_)
{
	Block15Data* _data15_;
	_data15_ = (Block15Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data15_->_ref_count_)) {
		NetworkWidgetsConfigurationPage* self;
		self = _data15_->self;
		_g_object_unref0 (_data15_->reset_dialog);
		_g_object_unref0 (self);
		g_slice_free (Block15Data, _data15_);
	}
}

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

static void
__lambda35_ (Block15Data* _data15_,
             gint response)
{
	NetworkWidgetsConfigurationPage* self;
	self = _data15_->self;
	if (response == ((gint) GTK_RESPONSE_APPLY)) {
		GSettings* settings = NULL;
		GSettings* _tmp0_;
		GSettings* _tmp1_;
		gchar** _tmp2_;
		gchar** _tmp3_;
		GSettings* _tmp21_;
		GSettings* _tmp22_;
		_tmp0_ = g_settings_new ("org.gnome.system.proxy");
		settings = _tmp0_;
		_tmp1_ = settings;
		_tmp3_ = _tmp2_ = g_settings_list_children (_tmp1_);
		{
			gchar** child_collection = NULL;
			gint child_collection_length1 = 0;
			gint _child_collection_size_ = 0;
			gint child_it = 0;
			child_collection = _tmp3_;
			child_collection_length1 = _vala_array_length (_tmp2_);
			for (child_it = 0; child_it < child_collection_length1; child_it = child_it + 1) {
				gchar* _tmp4_;
				gchar* child = NULL;
				_tmp4_ = g_strdup (child_collection[child_it]);
				child = _tmp4_;
				{
					GSettings* child_settings = NULL;
					GSettings* _tmp5_;
					const gchar* _tmp6_;
					GSettings* _tmp7_;
					GSettingsSchema* schema = NULL;
					GSettingsSchemaSource* _tmp8_;
					GSettings* _tmp9_;
					gchar* _tmp10_;
					gchar* _tmp11_;
					gchar* _tmp12_;
					GSettingsSchema* _tmp13_;
					GSettingsSchema* _tmp14_;
					GSettingsSchema* _tmp15_;
					gchar** _tmp16_;
					gchar** _tmp17_;
					_tmp5_ = settings;
					_tmp6_ = child;
					_tmp7_ = g_settings_get_child (_tmp5_, _tmp6_);
					child_settings = _tmp7_;
					_tmp8_ = g_settings_schema_source_get_default ();
					_tmp9_ = child_settings;
					g_object_get (_tmp9_, "schema-id", &_tmp10_, NULL);
					_tmp11_ = _tmp10_;
					_tmp12_ = _tmp11_;
					_tmp13_ = g_settings_schema_source_lookup (_tmp8_, _tmp12_, TRUE);
					_tmp14_ = _tmp13_;
					_g_free0 (_tmp12_);
					schema = _tmp14_;
					_tmp15_ = schema;
					_tmp17_ = _tmp16_ = g_settings_schema_list_keys (_tmp15_);
					{
						gchar** key_collection = NULL;
						gint key_collection_length1 = 0;
						gint _key_collection_size_ = 0;
						gint key_it = 0;
						key_collection = _tmp17_;
						key_collection_length1 = _vala_array_length (_tmp16_);
						for (key_it = 0; key_it < key_collection_length1; key_it = key_it + 1) {
							gchar* _tmp18_;
							gchar* key = NULL;
							_tmp18_ = g_strdup (key_collection[key_it]);
							key = _tmp18_;
							{
								GSettings* _tmp19_;
								const gchar* _tmp20_;
								_tmp19_ = child_settings;
								_tmp20_ = key;
								g_settings_reset (_tmp19_, _tmp20_);
								_g_free0 (key);
							}
						}
						key_collection = (_vala_array_free (key_collection, key_collection_length1, (GDestroyNotify) g_free), NULL);
					}
					_g_settings_schema_unref0 (schema);
					_g_object_unref0 (child_settings);
					_g_free0 (child);
				}
			}
			child_collection = (_vala_array_free (child_collection, child_collection_length1, (GDestroyNotify) g_free), NULL);
		}
		_tmp21_ = network_plug_proxy_settings;
		g_settings_reset (_tmp21_, "mode");
		_tmp22_ = network_plug_proxy_settings;
		g_settings_reset (_tmp22_, "autoconfig-url");
		_g_object_unref0 (settings);
	}
	gtk_window_destroy ((GtkWindow*) _data15_->reset_dialog);
}

static void
___lambda35__gtk_dialog_response (GtkDialog* _sender,
                                  gint response_id,
                                  gpointer self)
{
	__lambda35_ (self, response_id);
}

static void
network_widgets_configuration_page_on_reset_btn_clicked (NetworkWidgetsConfigurationPage* self)
{
	Block15Data* _data15_;
	GThemedIcon* _tmp0_;
	GThemedIcon* _tmp1_;
	GApplication* _tmp2_;
	GtkWindow* _tmp3_;
	GtkWindow* _tmp4_;
	GtkWindow* _tmp5_;
	GraniteMessageDialog* _tmp6_ = NULL;
	GraniteMessageDialog* _tmp7_;
	GtkButton* reset_button = NULL;
	GtkWidget* _tmp8_;
	GtkButton* _tmp9_;
	g_return_if_fail (self != NULL);
	_data15_ = g_slice_new0 (Block15Data);
	_data15_->_ref_count_ = 1;
	_data15_->self = g_object_ref (self);
	_tmp0_ = (GThemedIcon*) g_themed_icon_new ("dialog-question");
	_tmp1_ = _tmp0_;
	_tmp2_ = g_application_get_default ();
	_tmp3_ = gtk_application_get_active_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_application_get_type (), GtkApplication));
	_tmp4_ = _tmp3_;
	_tmp5_ = _g_object_ref0 (_tmp4_);
	_tmp6_ = granite_message_dialog_new (_ ("Are you sure you want to reset all Proxy settings?"), _ ("All host and port settings will be cleared and can not be restored."), (GIcon*) _tmp1_, GTK_BUTTONS_CANCEL);
	gtk_window_set_modal ((GtkWindow*) _tmp6_, TRUE);
	gtk_window_set_transient_for ((GtkWindow*) _tmp6_, _tmp5_);
	_g_object_unref0 (_tmp5_);
	g_object_ref_sink (_tmp6_);
	_tmp7_ = _tmp6_;
	_g_object_unref0 (_tmp1_);
	_data15_->reset_dialog = _tmp7_;
	_tmp8_ = granite_dialog_add_button ((GraniteDialog*) _data15_->reset_dialog, _ ("Reset Settings"), (gint) GTK_RESPONSE_APPLY);
	_tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_button_get_type (), GtkButton));
	reset_button = _tmp9_;
	gtk_widget_add_css_class ((GtkWidget*) reset_button, GRANITE_STYLE_CLASS_DESTRUCTIVE_ACTION);
	gtk_window_present ((GtkWindow*) _data15_->reset_dialog);
	g_signal_connect_data ((GtkDialog*) _data15_->reset_dialog, "response", (GCallback) ___lambda35__gtk_dialog_response, block15_data_ref (_data15_), (GClosureNotify) block15_data_unref, 0);
	_g_object_unref0 (reset_button);
	block15_data_unref (_data15_);
	_data15_ = NULL;
}

NetworkWidgetsConfigurationPage*
network_widgets_configuration_page_construct (GType object_type)
{
	NetworkWidgetsConfigurationPage * self = NULL;
	self = (NetworkWidgetsConfigurationPage*) g_object_new (object_type, NULL);
	return self;
}

NetworkWidgetsConfigurationPage*
network_widgets_configuration_page_new (void)
{
	return network_widgets_configuration_page_construct (NETWORK_WIDGETS_TYPE_CONFIGURATION_PAGE);
}

static inline gpointer
network_widgets_configuration_page_proxy_setting_row_get_instance_private (NetworkWidgetsConfigurationPageProxySettingRow* self)
{
	return G_STRUCT_MEMBER_P (self, NetworkWidgetsConfigurationPageProxySettingRow_private_offset);
}

static NetworkWidgetsConfigurationPageProxySettingRow*
network_widgets_configuration_page_proxy_setting_row_construct (GType object_type,
                                                                const gchar* label,
                                                                const gchar* schema_id)
{
	NetworkWidgetsConfigurationPageProxySettingRow * self = NULL;
	g_return_val_if_fail (label != NULL, NULL);
	g_return_val_if_fail (schema_id != NULL, NULL);
	self = (NetworkWidgetsConfigurationPageProxySettingRow*) g_object_new (object_type, "label", label, "schema-id", schema_id, NULL);
	return self;
}

static NetworkWidgetsConfigurationPageProxySettingRow*
network_widgets_configuration_page_proxy_setting_row_new (const gchar* label,
                                                          const gchar* schema_id)
{
	return network_widgets_configuration_page_proxy_setting_row_construct (NETWORK_WIDGETS_CONFIGURATION_PAGE_TYPE_PROXY_SETTING_ROW, label, schema_id);
}

static const gchar*
network_widgets_configuration_page_proxy_setting_row_get_label (NetworkWidgetsConfigurationPageProxySettingRow* 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
network_widgets_configuration_page_proxy_setting_row_set_label (NetworkWidgetsConfigurationPageProxySettingRow* self,
                                                                const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = network_widgets_configuration_page_proxy_setting_row_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, network_widgets_configuration_page_proxy_setting_row_properties[NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_LABEL_PROPERTY]);
	}
}

static const gchar*
network_widgets_configuration_page_proxy_setting_row_get_schema_id (NetworkWidgetsConfigurationPageProxySettingRow* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_schema_id;
	result = _tmp0_;
	return result;
}

static void
network_widgets_configuration_page_proxy_setting_row_set_schema_id (NetworkWidgetsConfigurationPageProxySettingRow* self,
                                                                    const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = network_widgets_configuration_page_proxy_setting_row_get_schema_id (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_schema_id);
		self->priv->_schema_id = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, network_widgets_configuration_page_proxy_setting_row_properties[NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_SCHEMA_ID_PROPERTY]);
	}
}

static const gchar*
network_widgets_configuration_page_proxy_setting_row_get_host (NetworkWidgetsConfigurationPageProxySettingRow* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_host;
	result = _tmp0_;
	return result;
}

static void
network_widgets_configuration_page_proxy_setting_row_set_host (NetworkWidgetsConfigurationPageProxySettingRow* self,
                                                               const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = network_widgets_configuration_page_proxy_setting_row_get_host (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_host);
		self->priv->_host = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, network_widgets_configuration_page_proxy_setting_row_properties[NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_HOST_PROPERTY]);
	}
}

static gint
network_widgets_configuration_page_proxy_setting_row_get_port (NetworkWidgetsConfigurationPageProxySettingRow* self)
{
	gint result;
	g_return_val_if_fail (self != NULL, 0);
	result = self->priv->_port;
	return result;
}

static void
network_widgets_configuration_page_proxy_setting_row_set_port (NetworkWidgetsConfigurationPageProxySettingRow* self,
                                                               gint value)
{
	gint old_value;
	g_return_if_fail (self != NULL);
	old_value = network_widgets_configuration_page_proxy_setting_row_get_port (self);
	if (old_value != value) {
		self->priv->_port = value;
		g_object_notify_by_pspec ((GObject *) self, network_widgets_configuration_page_proxy_setting_row_properties[NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_PORT_PROPERTY]);
	}
}

static GObject *
network_widgets_configuration_page_proxy_setting_row_constructor (GType type,
                                                                  guint n_construct_properties,
                                                                  GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	NetworkWidgetsConfigurationPageProxySettingRow * self;
	GtkEntry* entry = NULL;
	gchar* _tmp0_;
	GtkEntry* _tmp1_ = NULL;
	GraniteHeaderLabel* headerlabel = NULL;
	const gchar* _tmp2_;
	GtkEntry* _tmp3_;
	GtkWidget* _tmp4_;
	GraniteHeaderLabel* _tmp5_ = NULL;
	GtkSpinButton* spinbutton = NULL;
	GtkSpinButton* _tmp6_;
	GtkLabel* port_label = NULL;
	GtkSpinButton* _tmp7_;
	GtkWidget* _tmp8_;
	GtkLabel* _tmp9_ = NULL;
	GraniteHeaderLabel* _tmp10_;
	GtkEntry* _tmp11_;
	GtkLabel* _tmp12_;
	GtkSpinButton* _tmp13_;
	GSettings* settings = NULL;
	const gchar* _tmp14_;
	GSettings* _tmp15_;
	GSettings* _tmp16_;
	GtkEntry* _tmp17_;
	GSettings* _tmp18_;
	GtkSpinButton* _tmp19_;
	GSettings* _tmp20_;
	GSettings* _tmp21_;
	parent_class = G_OBJECT_CLASS (network_widgets_configuration_page_proxy_setting_row_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, NETWORK_WIDGETS_CONFIGURATION_PAGE_TYPE_PROXY_SETTING_ROW, NetworkWidgetsConfigurationPageProxySettingRow);
	_tmp0_ = g_strdup (_ ("proxy.example.com"));
	_tmp1_ = (GtkEntry*) gtk_entry_new ();
	gtk_entry_set_placeholder_text (_tmp1_, _tmp0_);
	_g_free0 (_tmp0_);
	gtk_widget_set_hexpand ((GtkWidget*) _tmp1_, TRUE);
	g_object_ref_sink (_tmp1_);
	entry = _tmp1_;
	_tmp2_ = self->priv->_label;
	_tmp3_ = entry;
	_tmp4_ = _g_object_ref0 ((GtkWidget*) _tmp3_);
	_tmp5_ = granite_header_label_new (_tmp2_);
	granite_header_label_set_mnemonic_widget (_tmp5_, _tmp4_);
	_g_object_unref0 (_tmp4_);
	g_object_ref_sink (_tmp5_);
	headerlabel = _tmp5_;
	_tmp6_ = (GtkSpinButton*) gtk_spin_button_new_with_range ((gdouble) 0, (gdouble) G_MAXUSHORT, (gdouble) 1);
	g_object_ref_sink (_tmp6_);
	spinbutton = _tmp6_;
	_tmp7_ = spinbutton;
	_tmp8_ = _g_object_ref0 ((GtkWidget*) _tmp7_);
	_tmp9_ = (GtkLabel*) gtk_label_new (_ ("Port:"));
	gtk_widget_set_margin_start ((GtkWidget*) _tmp9_, 6);
	gtk_label_set_mnemonic_widget (_tmp9_, _tmp8_);
	_g_object_unref0 (_tmp8_);
	g_object_ref_sink (_tmp9_);
	port_label = _tmp9_;
	gtk_grid_set_column_spacing ((GtkGrid*) self, 6);
	_tmp10_ = headerlabel;
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp10_, 0, 0, 3, 1);
	_tmp11_ = entry;
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp11_, 0, 1, 1, 1);
	_tmp12_ = port_label;
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp12_, 1, 1, 1, 1);
	_tmp13_ = spinbutton;
	gtk_grid_attach ((GtkGrid*) self, (GtkWidget*) _tmp13_, 2, 1, 1, 1);
	_tmp14_ = self->priv->_schema_id;
	_tmp15_ = g_settings_new (_tmp14_);
	settings = _tmp15_;
	_tmp16_ = settings;
	_tmp17_ = entry;
	g_settings_bind (_tmp16_, "host", (GObject*) _tmp17_, "text", G_SETTINGS_BIND_DEFAULT);
	_tmp18_ = settings;
	_tmp19_ = spinbutton;
	g_settings_bind (_tmp18_, "port", (GObject*) _tmp19_, "value", G_SETTINGS_BIND_DEFAULT);
	_tmp20_ = settings;
	g_settings_bind (_tmp20_, "host", (GObject*) self, "host", G_SETTINGS_BIND_DEFAULT);
	_tmp21_ = settings;
	g_settings_bind (_tmp21_, "port", (GObject*) self, "port", G_SETTINGS_BIND_DEFAULT);
	_g_object_unref0 (settings);
	_g_object_unref0 (port_label);
	_g_object_unref0 (spinbutton);
	_g_object_unref0 (headerlabel);
	_g_object_unref0 (entry);
	return obj;
}

static void
network_widgets_configuration_page_proxy_setting_row_class_init (NetworkWidgetsConfigurationPageProxySettingRowClass * klass,
                                                                 gpointer klass_data)
{
	network_widgets_configuration_page_proxy_setting_row_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &NetworkWidgetsConfigurationPageProxySettingRow_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_network_widgets_configuration_page_proxy_setting_row_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_network_widgets_configuration_page_proxy_setting_row_set_property;
	G_OBJECT_CLASS (klass)->constructor = network_widgets_configuration_page_proxy_setting_row_constructor;
	G_OBJECT_CLASS (klass)->finalize = network_widgets_configuration_page_proxy_setting_row_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_LABEL_PROPERTY, network_widgets_configuration_page_proxy_setting_row_properties[NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_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), NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_SCHEMA_ID_PROPERTY, network_widgets_configuration_page_proxy_setting_row_properties[NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_SCHEMA_ID_PROPERTY] = g_param_spec_string ("schema-id", "schema-id", "schema-id", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
	g_object_class_install_property (G_OBJECT_CLASS (klass), NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_HOST_PROPERTY, network_widgets_configuration_page_proxy_setting_row_properties[NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_HOST_PROPERTY] = g_param_spec_string ("host", "host", "host", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_PORT_PROPERTY, network_widgets_configuration_page_proxy_setting_row_properties[NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_PORT_PROPERTY] = g_param_spec_int ("port", "port", "port", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
}

static void
network_widgets_configuration_page_proxy_setting_row_instance_init (NetworkWidgetsConfigurationPageProxySettingRow * self,
                                                                    gpointer klass)
{
	self->priv = network_widgets_configuration_page_proxy_setting_row_get_instance_private (self);
}

static void
network_widgets_configuration_page_proxy_setting_row_finalize (GObject * obj)
{
	NetworkWidgetsConfigurationPageProxySettingRow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, NETWORK_WIDGETS_CONFIGURATION_PAGE_TYPE_PROXY_SETTING_ROW, NetworkWidgetsConfigurationPageProxySettingRow);
	_g_free0 (self->priv->_label);
	_g_free0 (self->priv->_schema_id);
	_g_free0 (self->priv->_host);
	G_OBJECT_CLASS (network_widgets_configuration_page_proxy_setting_row_parent_class)->finalize (obj);
}

static GType
network_widgets_configuration_page_proxy_setting_row_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (NetworkWidgetsConfigurationPageProxySettingRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) network_widgets_configuration_page_proxy_setting_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NetworkWidgetsConfigurationPageProxySettingRow), 0, (GInstanceInitFunc) network_widgets_configuration_page_proxy_setting_row_instance_init, NULL };
	GType network_widgets_configuration_page_proxy_setting_row_type_id;
	network_widgets_configuration_page_proxy_setting_row_type_id = g_type_register_static (gtk_grid_get_type (), "NetworkWidgetsConfigurationPageProxySettingRow", &g_define_type_info, 0);
	NetworkWidgetsConfigurationPageProxySettingRow_private_offset = g_type_add_instance_private (network_widgets_configuration_page_proxy_setting_row_type_id, sizeof (NetworkWidgetsConfigurationPageProxySettingRowPrivate));
	return network_widgets_configuration_page_proxy_setting_row_type_id;
}

static GType
network_widgets_configuration_page_proxy_setting_row_get_type (void)
{
	static volatile gsize network_widgets_configuration_page_proxy_setting_row_type_id__once = 0;
	if (g_once_init_enter (&network_widgets_configuration_page_proxy_setting_row_type_id__once)) {
		GType network_widgets_configuration_page_proxy_setting_row_type_id;
		network_widgets_configuration_page_proxy_setting_row_type_id = network_widgets_configuration_page_proxy_setting_row_get_type_once ();
		g_once_init_leave (&network_widgets_configuration_page_proxy_setting_row_type_id__once, network_widgets_configuration_page_proxy_setting_row_type_id);
	}
	return network_widgets_configuration_page_proxy_setting_row_type_id__once;
}

static void
_vala_network_widgets_configuration_page_proxy_setting_row_get_property (GObject * object,
                                                                         guint property_id,
                                                                         GValue * value,
                                                                         GParamSpec * pspec)
{
	NetworkWidgetsConfigurationPageProxySettingRow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, NETWORK_WIDGETS_CONFIGURATION_PAGE_TYPE_PROXY_SETTING_ROW, NetworkWidgetsConfigurationPageProxySettingRow);
	switch (property_id) {
		case NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_LABEL_PROPERTY:
		g_value_set_string (value, network_widgets_configuration_page_proxy_setting_row_get_label (self));
		break;
		case NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_SCHEMA_ID_PROPERTY:
		g_value_set_string (value, network_widgets_configuration_page_proxy_setting_row_get_schema_id (self));
		break;
		case NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_HOST_PROPERTY:
		g_value_set_string (value, network_widgets_configuration_page_proxy_setting_row_get_host (self));
		break;
		case NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_PORT_PROPERTY:
		g_value_set_int (value, network_widgets_configuration_page_proxy_setting_row_get_port (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_network_widgets_configuration_page_proxy_setting_row_set_property (GObject * object,
                                                                         guint property_id,
                                                                         const GValue * value,
                                                                         GParamSpec * pspec)
{
	NetworkWidgetsConfigurationPageProxySettingRow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, NETWORK_WIDGETS_CONFIGURATION_PAGE_TYPE_PROXY_SETTING_ROW, NetworkWidgetsConfigurationPageProxySettingRow);
	switch (property_id) {
		case NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_LABEL_PROPERTY:
		network_widgets_configuration_page_proxy_setting_row_set_label (self, g_value_get_string (value));
		break;
		case NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_SCHEMA_ID_PROPERTY:
		network_widgets_configuration_page_proxy_setting_row_set_schema_id (self, g_value_get_string (value));
		break;
		case NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_HOST_PROPERTY:
		network_widgets_configuration_page_proxy_setting_row_set_host (self, g_value_get_string (value));
		break;
		case NETWORK_WIDGETS_CONFIGURATION_PAGE_PROXY_SETTING_ROW_PORT_PROPERTY:
		network_widgets_configuration_page_proxy_setting_row_set_port (self, g_value_get_int (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static Block16Data*
block16_data_ref (Block16Data* _data16_)
{
	g_atomic_int_inc (&_data16_->_ref_count_);
	return _data16_;
}

static void
block16_data_unref (void * _userdata_)
{
	Block16Data* _data16_;
	_data16_ = (Block16Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data16_->_ref_count_)) {
		NetworkWidgetsConfigurationPage* self;
		self = _data16_->self;
		_g_object_unref0 (_data16_->proxy_settings);
		_g_object_unref0 (_data16_->socks_row);
		_g_object_unref0 (_data16_->ftp_row);
		_g_object_unref0 (_data16_->https_row);
		_g_object_unref0 (_data16_->http_row);
		_g_object_unref0 (_data16_->use_all_check);
		_g_object_unref0 (self);
		g_slice_free (Block16Data, _data16_);
	}
}

static void
_network_widgets_configuration_page_on_reset_btn_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                             gpointer self)
{
	network_widgets_configuration_page_on_reset_btn_clicked ((NetworkWidgetsConfigurationPage*) self);
}

static void
_network_widgets_configuration_page___lambda36_ (Block16Data* _data16_)
{
	NetworkWidgetsConfigurationPage* self;
	GtkCheckButton* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	self = _data16_->self;
	_tmp0_ = _data16_->use_all_check;
	_tmp1_ = gtk_check_button_get_active (_tmp0_);
	_tmp2_ = _tmp1_;
	if (_tmp2_) {
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp3_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp4_;
		const gchar* _tmp5_;
		const gchar* _tmp6_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp7_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp8_;
		gint _tmp9_;
		gint _tmp10_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp11_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp12_;
		const gchar* _tmp13_;
		const gchar* _tmp14_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp15_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp16_;
		gint _tmp17_;
		gint _tmp18_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp19_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp20_;
		const gchar* _tmp21_;
		const gchar* _tmp22_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp23_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp24_;
		gint _tmp25_;
		gint _tmp26_;
		_tmp3_ = _data16_->https_row;
		_tmp4_ = _data16_->http_row;
		_tmp5_ = network_widgets_configuration_page_proxy_setting_row_get_host (_tmp4_);
		_tmp6_ = _tmp5_;
		network_widgets_configuration_page_proxy_setting_row_set_host (_tmp3_, _tmp6_);
		_tmp7_ = _data16_->https_row;
		_tmp8_ = _data16_->http_row;
		_tmp9_ = network_widgets_configuration_page_proxy_setting_row_get_port (_tmp8_);
		_tmp10_ = _tmp9_;
		network_widgets_configuration_page_proxy_setting_row_set_port (_tmp7_, _tmp10_);
		_tmp11_ = _data16_->ftp_row;
		_tmp12_ = _data16_->http_row;
		_tmp13_ = network_widgets_configuration_page_proxy_setting_row_get_host (_tmp12_);
		_tmp14_ = _tmp13_;
		network_widgets_configuration_page_proxy_setting_row_set_host (_tmp11_, _tmp14_);
		_tmp15_ = _data16_->ftp_row;
		_tmp16_ = _data16_->http_row;
		_tmp17_ = network_widgets_configuration_page_proxy_setting_row_get_port (_tmp16_);
		_tmp18_ = _tmp17_;
		network_widgets_configuration_page_proxy_setting_row_set_port (_tmp15_, _tmp18_);
		_tmp19_ = _data16_->socks_row;
		_tmp20_ = _data16_->http_row;
		_tmp21_ = network_widgets_configuration_page_proxy_setting_row_get_host (_tmp20_);
		_tmp22_ = _tmp21_;
		network_widgets_configuration_page_proxy_setting_row_set_host (_tmp19_, _tmp22_);
		_tmp23_ = _data16_->socks_row;
		_tmp24_ = _data16_->http_row;
		_tmp25_ = network_widgets_configuration_page_proxy_setting_row_get_port (_tmp24_);
		_tmp26_ = _tmp25_;
		network_widgets_configuration_page_proxy_setting_row_set_port (_tmp23_, _tmp26_);
	}
}

static void
__network_widgets_configuration_page___lambda36__g_object_notify (GObject* _sender,
                                                                  GParamSpec* pspec,
                                                                  gpointer self)
{
	_network_widgets_configuration_page___lambda36_ (self);
}

static void
_network_widgets_configuration_page___lambda37_ (Block16Data* _data16_)
{
	NetworkWidgetsConfigurationPage* self;
	GtkCheckButton* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	self = _data16_->self;
	_tmp0_ = _data16_->use_all_check;
	_tmp1_ = gtk_check_button_get_active (_tmp0_);
	_tmp2_ = _tmp1_;
	if (_tmp2_) {
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp3_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp4_;
		const gchar* _tmp5_;
		const gchar* _tmp6_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp7_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp8_;
		const gchar* _tmp9_;
		const gchar* _tmp10_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp11_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp12_;
		const gchar* _tmp13_;
		const gchar* _tmp14_;
		_tmp3_ = _data16_->https_row;
		_tmp4_ = _data16_->http_row;
		_tmp5_ = network_widgets_configuration_page_proxy_setting_row_get_host (_tmp4_);
		_tmp6_ = _tmp5_;
		network_widgets_configuration_page_proxy_setting_row_set_host (_tmp3_, _tmp6_);
		_tmp7_ = _data16_->ftp_row;
		_tmp8_ = _data16_->http_row;
		_tmp9_ = network_widgets_configuration_page_proxy_setting_row_get_host (_tmp8_);
		_tmp10_ = _tmp9_;
		network_widgets_configuration_page_proxy_setting_row_set_host (_tmp7_, _tmp10_);
		_tmp11_ = _data16_->socks_row;
		_tmp12_ = _data16_->http_row;
		_tmp13_ = network_widgets_configuration_page_proxy_setting_row_get_host (_tmp12_);
		_tmp14_ = _tmp13_;
		network_widgets_configuration_page_proxy_setting_row_set_host (_tmp11_, _tmp14_);
	}
}

static void
__network_widgets_configuration_page___lambda37__g_object_notify (GObject* _sender,
                                                                  GParamSpec* pspec,
                                                                  gpointer self)
{
	_network_widgets_configuration_page___lambda37_ (self);
}

static void
_network_widgets_configuration_page___lambda38_ (Block16Data* _data16_)
{
	NetworkWidgetsConfigurationPage* self;
	GtkCheckButton* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	self = _data16_->self;
	_tmp0_ = _data16_->use_all_check;
	_tmp1_ = gtk_check_button_get_active (_tmp0_);
	_tmp2_ = _tmp1_;
	if (_tmp2_) {
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp3_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp4_;
		gint _tmp5_;
		gint _tmp6_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp7_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp8_;
		gint _tmp9_;
		gint _tmp10_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp11_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp12_;
		gint _tmp13_;
		gint _tmp14_;
		_tmp3_ = _data16_->https_row;
		_tmp4_ = _data16_->http_row;
		_tmp5_ = network_widgets_configuration_page_proxy_setting_row_get_port (_tmp4_);
		_tmp6_ = _tmp5_;
		network_widgets_configuration_page_proxy_setting_row_set_port (_tmp3_, _tmp6_);
		_tmp7_ = _data16_->ftp_row;
		_tmp8_ = _data16_->http_row;
		_tmp9_ = network_widgets_configuration_page_proxy_setting_row_get_port (_tmp8_);
		_tmp10_ = _tmp9_;
		network_widgets_configuration_page_proxy_setting_row_set_port (_tmp7_, _tmp10_);
		_tmp11_ = _data16_->socks_row;
		_tmp12_ = _data16_->http_row;
		_tmp13_ = network_widgets_configuration_page_proxy_setting_row_get_port (_tmp12_);
		_tmp14_ = _tmp13_;
		network_widgets_configuration_page_proxy_setting_row_set_port (_tmp11_, _tmp14_);
	}
}

static void
__network_widgets_configuration_page___lambda38__g_object_notify (GObject* _sender,
                                                                  GParamSpec* pspec,
                                                                  gpointer self)
{
	_network_widgets_configuration_page___lambda38_ (self);
}

static void
_network_widgets_configuration_page___lambda39_ (Block16Data* _data16_)
{
	NetworkWidgetsConfigurationPage* self;
	GSettings* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	self = _data16_->self;
	_tmp0_ = _data16_->proxy_settings;
	_tmp1_ = g_settings_get_string (_tmp0_, "mode");
	_tmp2_ = _tmp1_;
	network_widgets_configuration_page_update_radios (self, _tmp2_);
	_g_free0 (_tmp2_);
}

static void
__network_widgets_configuration_page___lambda39__g_settings_changed (GSettings* _sender,
                                                                     const gchar* key,
                                                                     gpointer self)
{
	_network_widgets_configuration_page___lambda39_ (self);
}

static void
_network_widgets_configuration_page___lambda40_ (Block16Data* _data16_)
{
	NetworkWidgetsConfigurationPage* self;
	GtkCheckButton* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	self = _data16_->self;
	_tmp0_ = self->priv->auto_radio;
	_tmp1_ = gtk_check_button_get_active (_tmp0_);
	_tmp2_ = _tmp1_;
	if (_tmp2_) {
		GSettings* _tmp3_;
		_tmp3_ = _data16_->proxy_settings;
		g_settings_set_string (_tmp3_, "mode", "auto");
	}
}

static void
__network_widgets_configuration_page___lambda40__gtk_check_button_toggled (GtkCheckButton* _sender,
                                                                           gpointer self)
{
	_network_widgets_configuration_page___lambda40_ (self);
}

static void
_network_widgets_configuration_page___lambda41_ (Block16Data* _data16_)
{
	NetworkWidgetsConfigurationPage* self;
	GtkCheckButton* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	self = _data16_->self;
	_tmp0_ = self->priv->manual_radio;
	_tmp1_ = gtk_check_button_get_active (_tmp0_);
	_tmp2_ = _tmp1_;
	if (_tmp2_) {
		GSettings* _tmp3_;
		_tmp3_ = _data16_->proxy_settings;
		g_settings_set_string (_tmp3_, "mode", "manual");
	}
}

static void
__network_widgets_configuration_page___lambda41__gtk_check_button_toggled (GtkCheckButton* _sender,
                                                                           gpointer self)
{
	_network_widgets_configuration_page___lambda41_ (self);
}

static GObject *
network_widgets_configuration_page_constructor (GType type,
                                                guint n_construct_properties,
                                                GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	NetworkWidgetsConfigurationPage * self;
	Block16Data* _data16_;
	GtkCheckButton* _tmp0_;
	GtkCheckButton* _tmp1_;
	GtkCheckButton* _tmp2_;
	GtkCheckButton* _tmp3_ = NULL;
	GtkEntry* auto_entry = NULL;
	gchar* _tmp4_;
	GtkEntry* _tmp5_ = NULL;
	GtkCheckButton* _tmp6_;
	NetworkWidgetsConfigurationPageProxySettingRow* _tmp7_;
	NetworkWidgetsConfigurationPageProxySettingRow* _tmp8_;
	NetworkWidgetsConfigurationPageProxySettingRow* _tmp9_;
	NetworkWidgetsConfigurationPageProxySettingRow* _tmp10_;
	GtkBox* other_protocols_box = NULL;
	GtkBox* _tmp11_;
	GtkBox* _tmp12_;
	NetworkWidgetsConfigurationPageProxySettingRow* _tmp13_;
	GtkBox* _tmp14_;
	NetworkWidgetsConfigurationPageProxySettingRow* _tmp15_;
	GtkBox* _tmp16_;
	NetworkWidgetsConfigurationPageProxySettingRow* _tmp17_;
	GtkButton* reset_button = NULL;
	GtkButton* _tmp18_ = NULL;
	GtkButton* _tmp19_;
	GtkBox* config_grid = NULL;
	GtkBox* _tmp20_;
	GtkBox* _tmp21_;
	NetworkWidgetsConfigurationPageProxySettingRow* _tmp22_;
	GtkBox* _tmp23_;
	GtkCheckButton* _tmp24_;
	GtkBox* _tmp25_;
	GtkBox* _tmp26_;
	GtkCheckButton* _tmp27_;
	GtkEntry* _tmp28_;
	GtkCheckButton* _tmp29_;
	GtkBox* _tmp30_;
	GtkButton* _tmp31_;
	GtkCheckButton* _tmp32_;
	GtkEntry* _tmp33_;
	GtkCheckButton* _tmp34_;
	GtkBox* _tmp35_;
	GtkCheckButton* _tmp36_;
	GtkBox* _tmp37_;
	GtkCheckButton* _tmp38_;
	NetworkWidgetsConfigurationPageProxySettingRow* _tmp39_;
	NetworkWidgetsConfigurationPageProxySettingRow* _tmp40_;
	gboolean _tmp41_ = FALSE;
	gboolean _tmp42_ = FALSE;
	gboolean _tmp43_ = FALSE;
	gboolean _tmp44_ = FALSE;
	gboolean _tmp45_ = FALSE;
	NetworkWidgetsConfigurationPageProxySettingRow* _tmp46_;
	const gchar* _tmp47_;
	const gchar* _tmp48_;
	NetworkWidgetsConfigurationPageProxySettingRow* _tmp49_;
	const gchar* _tmp50_;
	const gchar* _tmp51_;
	GSettings* _tmp83_;
	GSettings* _tmp84_;
	GtkEntry* _tmp85_;
	GSettings* _tmp86_;
	GSettings* _tmp87_;
	gchar* _tmp88_;
	gchar* _tmp89_;
	GtkCheckButton* _tmp90_;
	GtkCheckButton* _tmp91_;
	parent_class = G_OBJECT_CLASS (network_widgets_configuration_page_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, NETWORK_WIDGETS_TYPE_CONFIGURATION_PAGE, NetworkWidgetsConfigurationPage);
	_data16_ = g_slice_new0 (Block16Data);
	_data16_->_ref_count_ = 1;
	_data16_->self = g_object_ref (self);
	_tmp0_ = (GtkCheckButton*) gtk_check_button_new_with_label (_ ("Automatic proxy configuration"));
	g_object_ref_sink (_tmp0_);
	_g_object_unref0 (self->priv->auto_radio);
	self->priv->auto_radio = _tmp0_;
	_tmp1_ = self->priv->auto_radio;
	_tmp2_ = _g_object_ref0 (_tmp1_);
	_tmp3_ = (GtkCheckButton*) gtk_check_button_new_with_label (_ ("Manual proxy configuration"));
	gtk_check_button_set_group (_tmp3_, _tmp2_);
	_g_object_unref0 (_tmp2_);
	g_object_ref_sink (_tmp3_);
	_g_object_unref0 (self->priv->manual_radio);
	self->priv->manual_radio = _tmp3_;
	_tmp4_ = g_strdup (_ ("URL to configuration script"));
	_tmp5_ = (GtkEntry*) gtk_entry_new ();
	gtk_entry_set_placeholder_text (_tmp5_, _tmp4_);
	_g_free0 (_tmp4_);
	g_object_ref_sink (_tmp5_);
	auto_entry = _tmp5_;
	_tmp6_ = (GtkCheckButton*) gtk_check_button_new_with_label (_ ("Use this proxy server for all protocols"));
	g_object_ref_sink (_tmp6_);
	_data16_->use_all_check = _tmp6_;
	_tmp7_ = network_widgets_configuration_page_proxy_setting_row_new (_ ("HTTP Proxy"), "org.gnome.system.proxy.http");
	g_object_ref_sink (_tmp7_);
	_data16_->http_row = _tmp7_;
	_tmp8_ = network_widgets_configuration_page_proxy_setting_row_new (_ ("HTTPS Proxy"), "org.gnome.system.proxy.https");
	g_object_ref_sink (_tmp8_);
	_data16_->https_row = _tmp8_;
	_tmp9_ = network_widgets_configuration_page_proxy_setting_row_new (_ ("FTP Proxy"), "org.gnome.system.proxy.ftp");
	g_object_ref_sink (_tmp9_);
	_data16_->ftp_row = _tmp9_;
	_tmp10_ = network_widgets_configuration_page_proxy_setting_row_new (_ ("SOCKS Host"), "org.gnome.system.proxy.socks");
	g_object_ref_sink (_tmp10_);
	_data16_->socks_row = _tmp10_;
	_tmp11_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
	g_object_ref_sink (_tmp11_);
	other_protocols_box = _tmp11_;
	_tmp12_ = other_protocols_box;
	_tmp13_ = _data16_->https_row;
	gtk_box_append (_tmp12_, (GtkWidget*) _tmp13_);
	_tmp14_ = other_protocols_box;
	_tmp15_ = _data16_->ftp_row;
	gtk_box_append (_tmp14_, (GtkWidget*) _tmp15_);
	_tmp16_ = other_protocols_box;
	_tmp17_ = _data16_->socks_row;
	gtk_box_append (_tmp16_, (GtkWidget*) _tmp17_);
	_tmp18_ = (GtkButton*) gtk_button_new_with_label (_ ("Reset Settings"));
	gtk_widget_set_halign ((GtkWidget*) _tmp18_, GTK_ALIGN_START);
	gtk_widget_set_valign ((GtkWidget*) _tmp18_, GTK_ALIGN_END);
	gtk_widget_set_vexpand ((GtkWidget*) _tmp18_, TRUE);
	gtk_widget_set_margin_top ((GtkWidget*) _tmp18_, 12);
	g_object_ref_sink (_tmp18_);
	reset_button = _tmp18_;
	_tmp19_ = reset_button;
	g_signal_connect_object (_tmp19_, "clicked", (GCallback) _network_widgets_configuration_page_on_reset_btn_clicked_gtk_button_clicked, self, 0);
	_tmp20_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
	g_object_ref_sink (_tmp20_);
	config_grid = _tmp20_;
	_tmp21_ = config_grid;
	_tmp22_ = _data16_->http_row;
	gtk_box_append (_tmp21_, (GtkWidget*) _tmp22_);
	_tmp23_ = config_grid;
	_tmp24_ = _data16_->use_all_check;
	gtk_box_append (_tmp23_, (GtkWidget*) _tmp24_);
	_tmp25_ = config_grid;
	_tmp26_ = other_protocols_box;
	gtk_box_append (_tmp25_, (GtkWidget*) _tmp26_);
	gtk_widget_set_margin_top ((GtkWidget*) self, 12);
	gtk_orientable_set_orientation ((GtkOrientable*) self, GTK_ORIENTATION_VERTICAL);
	gtk_box_set_spacing ((GtkBox*) self, 12);
	_tmp27_ = self->priv->auto_radio;
	gtk_box_append ((GtkBox*) self, (GtkWidget*) _tmp27_);
	_tmp28_ = auto_entry;
	gtk_box_append ((GtkBox*) self, (GtkWidget*) _tmp28_);
	_tmp29_ = self->priv->manual_radio;
	gtk_box_append ((GtkBox*) self, (GtkWidget*) _tmp29_);
	_tmp30_ = config_grid;
	gtk_box_append ((GtkBox*) self, (GtkWidget*) _tmp30_);
	_tmp31_ = reset_button;
	gtk_box_append ((GtkBox*) self, (GtkWidget*) _tmp31_);
	_tmp32_ = self->priv->auto_radio;
	_tmp33_ = auto_entry;
	g_object_bind_property_with_closures ((GObject*) _tmp32_, "active", (GObject*) _tmp33_, "sensitive", G_BINDING_DEFAULT, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	_tmp34_ = _data16_->use_all_check;
	_tmp35_ = other_protocols_box;
	g_object_bind_property_with_closures ((GObject*) _tmp34_, "active", (GObject*) _tmp35_, "sensitive", G_BINDING_INVERT_BOOLEAN, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	_tmp36_ = self->priv->manual_radio;
	_tmp37_ = config_grid;
	g_object_bind_property_with_closures ((GObject*) _tmp36_, "active", (GObject*) _tmp37_, "sensitive", 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)));
	_tmp38_ = _data16_->use_all_check;
	g_signal_connect_data ((GObject*) _tmp38_, "notify::active", (GCallback) __network_widgets_configuration_page___lambda36__g_object_notify, block16_data_ref (_data16_), (GClosureNotify) block16_data_unref, 0);
	_tmp39_ = _data16_->http_row;
	g_signal_connect_data ((GObject*) _tmp39_, "notify::host", (GCallback) __network_widgets_configuration_page___lambda37__g_object_notify, block16_data_ref (_data16_), (GClosureNotify) block16_data_unref, 0);
	_tmp40_ = _data16_->http_row;
	g_signal_connect_data ((GObject*) _tmp40_, "notify::port", (GCallback) __network_widgets_configuration_page___lambda38__g_object_notify, block16_data_ref (_data16_), (GClosureNotify) block16_data_unref, 0);
	_tmp46_ = _data16_->http_row;
	_tmp47_ = network_widgets_configuration_page_proxy_setting_row_get_host (_tmp46_);
	_tmp48_ = _tmp47_;
	_tmp49_ = _data16_->https_row;
	_tmp50_ = network_widgets_configuration_page_proxy_setting_row_get_host (_tmp49_);
	_tmp51_ = _tmp50_;
	if (g_strcmp0 (_tmp48_, _tmp51_) == 0) {
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp52_;
		const gchar* _tmp53_;
		const gchar* _tmp54_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp55_;
		const gchar* _tmp56_;
		const gchar* _tmp57_;
		_tmp52_ = _data16_->http_row;
		_tmp53_ = network_widgets_configuration_page_proxy_setting_row_get_host (_tmp52_);
		_tmp54_ = _tmp53_;
		_tmp55_ = _data16_->ftp_row;
		_tmp56_ = network_widgets_configuration_page_proxy_setting_row_get_host (_tmp55_);
		_tmp57_ = _tmp56_;
		_tmp45_ = g_strcmp0 (_tmp54_, _tmp57_) == 0;
	} else {
		_tmp45_ = FALSE;
	}
	if (_tmp45_) {
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp58_;
		const gchar* _tmp59_;
		const gchar* _tmp60_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp61_;
		const gchar* _tmp62_;
		const gchar* _tmp63_;
		_tmp58_ = _data16_->http_row;
		_tmp59_ = network_widgets_configuration_page_proxy_setting_row_get_host (_tmp58_);
		_tmp60_ = _tmp59_;
		_tmp61_ = _data16_->socks_row;
		_tmp62_ = network_widgets_configuration_page_proxy_setting_row_get_host (_tmp61_);
		_tmp63_ = _tmp62_;
		_tmp44_ = g_strcmp0 (_tmp60_, _tmp63_) == 0;
	} else {
		_tmp44_ = FALSE;
	}
	if (_tmp44_) {
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp64_;
		gint _tmp65_;
		gint _tmp66_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp67_;
		gint _tmp68_;
		gint _tmp69_;
		_tmp64_ = _data16_->http_row;
		_tmp65_ = network_widgets_configuration_page_proxy_setting_row_get_port (_tmp64_);
		_tmp66_ = _tmp65_;
		_tmp67_ = _data16_->https_row;
		_tmp68_ = network_widgets_configuration_page_proxy_setting_row_get_port (_tmp67_);
		_tmp69_ = _tmp68_;
		_tmp43_ = _tmp66_ == _tmp69_;
	} else {
		_tmp43_ = FALSE;
	}
	if (_tmp43_) {
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp70_;
		gint _tmp71_;
		gint _tmp72_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp73_;
		gint _tmp74_;
		gint _tmp75_;
		_tmp70_ = _data16_->http_row;
		_tmp71_ = network_widgets_configuration_page_proxy_setting_row_get_port (_tmp70_);
		_tmp72_ = _tmp71_;
		_tmp73_ = _data16_->ftp_row;
		_tmp74_ = network_widgets_configuration_page_proxy_setting_row_get_port (_tmp73_);
		_tmp75_ = _tmp74_;
		_tmp42_ = _tmp72_ == _tmp75_;
	} else {
		_tmp42_ = FALSE;
	}
	if (_tmp42_) {
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp76_;
		gint _tmp77_;
		gint _tmp78_;
		NetworkWidgetsConfigurationPageProxySettingRow* _tmp79_;
		gint _tmp80_;
		gint _tmp81_;
		_tmp76_ = _data16_->http_row;
		_tmp77_ = network_widgets_configuration_page_proxy_setting_row_get_port (_tmp76_);
		_tmp78_ = _tmp77_;
		_tmp79_ = _data16_->socks_row;
		_tmp80_ = network_widgets_configuration_page_proxy_setting_row_get_port (_tmp79_);
		_tmp81_ = _tmp80_;
		_tmp41_ = _tmp78_ == _tmp81_;
	} else {
		_tmp41_ = FALSE;
	}
	if (_tmp41_) {
		GtkCheckButton* _tmp82_;
		_tmp82_ = _data16_->use_all_check;
		gtk_check_button_set_active (_tmp82_, TRUE);
	}
	_tmp83_ = g_settings_new ("org.gnome.system.proxy");
	_data16_->proxy_settings = _tmp83_;
	_tmp84_ = _data16_->proxy_settings;
	_tmp85_ = auto_entry;
	g_settings_bind (_tmp84_, "autoconfig-url", (GObject*) _tmp85_, "text", G_SETTINGS_BIND_DEFAULT);
	_tmp86_ = _data16_->proxy_settings;
	g_signal_connect_data (_tmp86_, "changed::mode", (GCallback) __network_widgets_configuration_page___lambda39__g_settings_changed, block16_data_ref (_data16_), (GClosureNotify) block16_data_unref, 0);
	_tmp87_ = _data16_->proxy_settings;
	_tmp88_ = g_settings_get_string (_tmp87_, "mode");
	_tmp89_ = _tmp88_;
	network_widgets_configuration_page_update_radios (self, _tmp89_);
	_g_free0 (_tmp89_);
	_tmp90_ = self->priv->auto_radio;
	g_signal_connect_data (_tmp90_, "toggled", (GCallback) __network_widgets_configuration_page___lambda40__gtk_check_button_toggled, block16_data_ref (_data16_), (GClosureNotify) block16_data_unref, 0);
	_tmp91_ = self->priv->manual_radio;
	g_signal_connect_data (_tmp91_, "toggled", (GCallback) __network_widgets_configuration_page___lambda41__gtk_check_button_toggled, block16_data_ref (_data16_), (GClosureNotify) block16_data_unref, 0);
	_g_object_unref0 (config_grid);
	_g_object_unref0 (reset_button);
	_g_object_unref0 (other_protocols_box);
	_g_object_unref0 (auto_entry);
	block16_data_unref (_data16_);
	_data16_ = NULL;
	return obj;
}

static void
network_widgets_configuration_page_class_init (NetworkWidgetsConfigurationPageClass * klass,
                                               gpointer klass_data)
{
	network_widgets_configuration_page_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &NetworkWidgetsConfigurationPage_private_offset);
	G_OBJECT_CLASS (klass)->constructor = network_widgets_configuration_page_constructor;
	G_OBJECT_CLASS (klass)->finalize = network_widgets_configuration_page_finalize;
}

static void
network_widgets_configuration_page_instance_init (NetworkWidgetsConfigurationPage * self,
                                                  gpointer klass)
{
	self->priv = network_widgets_configuration_page_get_instance_private (self);
}

static void
network_widgets_configuration_page_finalize (GObject * obj)
{
	NetworkWidgetsConfigurationPage * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, NETWORK_WIDGETS_TYPE_CONFIGURATION_PAGE, NetworkWidgetsConfigurationPage);
	_g_object_unref0 (self->priv->auto_radio);
	_g_object_unref0 (self->priv->manual_radio);
	G_OBJECT_CLASS (network_widgets_configuration_page_parent_class)->finalize (obj);
}

static GType
network_widgets_configuration_page_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (NetworkWidgetsConfigurationPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) network_widgets_configuration_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NetworkWidgetsConfigurationPage), 0, (GInstanceInitFunc) network_widgets_configuration_page_instance_init, NULL };
	GType network_widgets_configuration_page_type_id;
	network_widgets_configuration_page_type_id = g_type_register_static (gtk_box_get_type (), "NetworkWidgetsConfigurationPage", &g_define_type_info, 0);
	NetworkWidgetsConfigurationPage_private_offset = g_type_add_instance_private (network_widgets_configuration_page_type_id, sizeof (NetworkWidgetsConfigurationPagePrivate));
	return network_widgets_configuration_page_type_id;
}

GType
network_widgets_configuration_page_get_type (void)
{
	static volatile gsize network_widgets_configuration_page_type_id__once = 0;
	if (g_once_init_enter (&network_widgets_configuration_page_type_id__once)) {
		GType network_widgets_configuration_page_type_id;
		network_widgets_configuration_page_type_id = network_widgets_configuration_page_get_type_once ();
		g_once_init_leave (&network_widgets_configuration_page_type_id__once, network_widgets_configuration_page_type_id);
	}
	return network_widgets_configuration_page_type_id__once;
}

static void
_vala_array_destroy (gpointer array,
                     gssize array_length,
                     GDestroyNotify destroy_func)
{
	if ((array != NULL) && (destroy_func != NULL)) {
		gssize i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}

static void
_vala_array_free (gpointer array,
                  gssize array_length,
                  GDestroyNotify destroy_func)
{
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}

static gssize
_vala_array_length (gpointer array)
{
	gssize length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}

