/* delete-dialog.c generated by valac 0.22.1, the Vala compiler
 * generated from delete-dialog.vala, do not modify */

/*
 * Seahorse
 *
 * Copyright (C) 2011 Collabora Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this program; if not, see <http://www.gnu.org/licenses/>.
 *
 * Author: Stef Walter <stefw@collabora.co.uk>
 */

#include <glib.h>
#include <glib-object.h>
#include "seahorse-common.h"
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>

#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

struct _SeahorseDeleteDialogPrivate {
	GtkToggleButton* _check;
	gboolean _check_require;
};


static gpointer seahorse_delete_dialog_parent_class = NULL;

#define SEAHORSE_DELETE_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SEAHORSE_TYPE_DELETE_DIALOG, SeahorseDeleteDialogPrivate))
enum  {
	SEAHORSE_DELETE_DIALOG_DUMMY_PROPERTY,
	SEAHORSE_DELETE_DIALOG_CHECK_LABEL,
	SEAHORSE_DELETE_DIALOG_CHECK_VALUE,
	SEAHORSE_DELETE_DIALOG_CHECK_REQUIRE
};
static void seahorse_delete_dialog_update_response_buttons (SeahorseDeleteDialog* self);
static GObject * seahorse_delete_dialog_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static void _seahorse_delete_dialog___lambda12_ (SeahorseDeleteDialog* self, GtkToggleButton* toggle);
static void __seahorse_delete_dialog___lambda12__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self);
static void seahorse_delete_dialog_finalize (GObject* obj);
static void _vala_seahorse_delete_dialog_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_seahorse_delete_dialog_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


GtkDialog* seahorse_delete_dialog_constructv (GType object_type, GtkWindow* parent, const gchar* format, va_list _vala_va_list) {
	SeahorseDeleteDialog * self = NULL;
	GtkWindow* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	va_list _tmp2_ = {0};
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
#line 70 "/data/src/seahorse/common/delete-dialog.vala"
	g_return_val_if_fail (format != NULL, NULL);
#line 73 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp0_ = parent;
#line 73 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp1_ = format;
#line 73 "/data/src/seahorse/common/delete-dialog.vala"
	va_copy (_tmp2_, _vala_va_list);
#line 73 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp3_ = g_strdup_vprintf (_tmp1_, _tmp2_);
#line 73 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp4_ = _tmp3_;
#line 73 "/data/src/seahorse/common/delete-dialog.vala"
	self = (SeahorseDeleteDialog*) g_object_new (object_type, "message-type", GTK_MESSAGE_QUESTION, "transient-for", _tmp0_, "text", _tmp4_, NULL);
#line 73 "/data/src/seahorse/common/delete-dialog.vala"
	_g_free0 (_tmp4_);
#line 73 "/data/src/seahorse/common/delete-dialog.vala"
	va_end (_tmp2_);
#line 70 "/data/src/seahorse/common/delete-dialog.vala"
	return (GtkDialog*) self;
#line 88 "delete-dialog.c"
}


GtkDialog* seahorse_delete_dialog_new (GtkWindow* parent, const gchar* format, ...) {
	va_list _vala_va_list_obj;
#line 70 "/data/src/seahorse/common/delete-dialog.vala"
	va_start (_vala_va_list_obj, format);
#line 70 "/data/src/seahorse/common/delete-dialog.vala"
	return seahorse_delete_dialog_constructv (SEAHORSE_TYPE_DELETE_DIALOG, parent, format, _vala_va_list_obj);
#line 98 "delete-dialog.c"
}


GtkDialog* seahorse_delete_dialog_construct (GType object_type, GtkWindow* parent, const gchar* format, ...) {
	va_list _vala_va_list_obj;
#line 70 "/data/src/seahorse/common/delete-dialog.vala"
	va_start (_vala_va_list_obj, format);
#line 70 "/data/src/seahorse/common/delete-dialog.vala"
	return seahorse_delete_dialog_constructv (object_type, parent, format, _vala_va_list_obj);
#line 108 "delete-dialog.c"
}


static void seahorse_delete_dialog_update_response_buttons (SeahorseDeleteDialog* self) {
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp4_ = FALSE;
#line 99 "/data/src/seahorse/common/delete-dialog.vala"
	g_return_if_fail (self != NULL);
#line 101 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp1_ = self->priv->_check_require;
#line 101 "/data/src/seahorse/common/delete-dialog.vala"
	if (!_tmp1_) {
#line 101 "/data/src/seahorse/common/delete-dialog.vala"
		_tmp0_ = TRUE;
#line 124 "delete-dialog.c"
	} else {
		GtkToggleButton* _tmp2_ = NULL;
		gboolean _tmp3_ = FALSE;
#line 101 "/data/src/seahorse/common/delete-dialog.vala"
		_tmp2_ = self->priv->_check;
#line 101 "/data/src/seahorse/common/delete-dialog.vala"
		_tmp3_ = gtk_toggle_button_get_active (_tmp2_);
#line 101 "/data/src/seahorse/common/delete-dialog.vala"
		_tmp0_ = _tmp3_;
#line 134 "delete-dialog.c"
	}
#line 100 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp4_ = _tmp0_;
#line 100 "/data/src/seahorse/common/delete-dialog.vala"
	gtk_dialog_set_response_sensitive ((GtkDialog*) self, (gint) GTK_RESPONSE_OK, _tmp4_);
#line 140 "delete-dialog.c"
}


gboolean seahorse_delete_dialog_prompt (GtkWindow* parent, const gchar* text) {
	gboolean result = FALSE;
	GtkDialog* dialog = NULL;
	GtkWindow* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	SeahorseDeleteDialog* _tmp2_ = NULL;
	gint response = 0;
	gint _tmp3_ = 0;
#line 104 "/data/src/seahorse/common/delete-dialog.vala"
	g_return_val_if_fail (text != NULL, FALSE);
#line 105 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp0_ = parent;
#line 105 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp1_ = text;
#line 105 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp2_ = (SeahorseDeleteDialog*) seahorse_delete_dialog_new (_tmp0_, "%s", _tmp1_, NULL);
#line 105 "/data/src/seahorse/common/delete-dialog.vala"
	g_object_ref_sink (_tmp2_);
#line 105 "/data/src/seahorse/common/delete-dialog.vala"
	dialog = (GtkDialog*) _tmp2_;
#line 106 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp3_ = gtk_dialog_run (dialog);
#line 106 "/data/src/seahorse/common/delete-dialog.vala"
	response = _tmp3_;
#line 107 "/data/src/seahorse/common/delete-dialog.vala"
	gtk_widget_destroy ((GtkWidget*) dialog);
#line 108 "/data/src/seahorse/common/delete-dialog.vala"
	result = response == ((gint) GTK_RESPONSE_OK);
#line 108 "/data/src/seahorse/common/delete-dialog.vala"
	_g_object_unref0 (dialog);
#line 108 "/data/src/seahorse/common/delete-dialog.vala"
	return result;
#line 176 "delete-dialog.c"
}


const gchar* seahorse_delete_dialog_get_check_label (SeahorseDeleteDialog* self) {
	const gchar* result;
	GtkToggleButton* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 30 "/data/src/seahorse/common/delete-dialog.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 31 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp0_ = self->priv->_check;
#line 31 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp1_ = gtk_widget_get_visible ((GtkWidget*) _tmp0_);
#line 31 "/data/src/seahorse/common/delete-dialog.vala"
	if (_tmp1_) {
#line 192 "delete-dialog.c"
		GtkToggleButton* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
#line 32 "/data/src/seahorse/common/delete-dialog.vala"
		_tmp2_ = self->priv->_check;
#line 32 "/data/src/seahorse/common/delete-dialog.vala"
		_tmp3_ = gtk_button_get_label ((GtkButton*) _tmp2_);
#line 32 "/data/src/seahorse/common/delete-dialog.vala"
		result = _tmp3_;
#line 32 "/data/src/seahorse/common/delete-dialog.vala"
		return result;
#line 203 "delete-dialog.c"
	}
#line 33 "/data/src/seahorse/common/delete-dialog.vala"
	result = NULL;
#line 33 "/data/src/seahorse/common/delete-dialog.vala"
	return result;
#line 209 "delete-dialog.c"
}


void seahorse_delete_dialog_set_check_label (SeahorseDeleteDialog* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	GtkToggleButton* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
#line 35 "/data/src/seahorse/common/delete-dialog.vala"
	g_return_if_fail (self != NULL);
#line 36 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp0_ = value;
#line 36 "/data/src/seahorse/common/delete-dialog.vala"
	if (_tmp0_ == NULL) {
#line 223 "delete-dialog.c"
		GtkToggleButton* _tmp1_ = NULL;
#line 37 "/data/src/seahorse/common/delete-dialog.vala"
		_tmp1_ = self->priv->_check;
#line 37 "/data/src/seahorse/common/delete-dialog.vala"
		gtk_widget_hide ((GtkWidget*) _tmp1_);
#line 38 "/data/src/seahorse/common/delete-dialog.vala"
		value = "";
#line 231 "delete-dialog.c"
	} else {
		GtkToggleButton* _tmp2_ = NULL;
#line 40 "/data/src/seahorse/common/delete-dialog.vala"
		_tmp2_ = self->priv->_check;
#line 40 "/data/src/seahorse/common/delete-dialog.vala"
		gtk_widget_show ((GtkWidget*) _tmp2_);
#line 238 "delete-dialog.c"
	}
#line 42 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp3_ = self->priv->_check;
#line 42 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp4_ = value;
#line 42 "/data/src/seahorse/common/delete-dialog.vala"
	gtk_button_set_label ((GtkButton*) _tmp3_, _tmp4_);
#line 35 "/data/src/seahorse/common/delete-dialog.vala"
	g_object_notify ((GObject *) self, "check-label");
#line 248 "delete-dialog.c"
}


gboolean seahorse_delete_dialog_get_check_value (SeahorseDeleteDialog* self) {
	gboolean result;
	GtkToggleButton* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 48 "/data/src/seahorse/common/delete-dialog.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 49 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp0_ = self->priv->_check;
#line 49 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp1_ = gtk_widget_get_visible ((GtkWidget*) _tmp0_);
#line 49 "/data/src/seahorse/common/delete-dialog.vala"
	if (_tmp1_) {
#line 264 "delete-dialog.c"
		GtkToggleButton* _tmp2_ = NULL;
		gboolean _tmp3_ = FALSE;
#line 50 "/data/src/seahorse/common/delete-dialog.vala"
		_tmp2_ = self->priv->_check;
#line 50 "/data/src/seahorse/common/delete-dialog.vala"
		_tmp3_ = gtk_toggle_button_get_active (_tmp2_);
#line 50 "/data/src/seahorse/common/delete-dialog.vala"
		result = _tmp3_;
#line 50 "/data/src/seahorse/common/delete-dialog.vala"
		return result;
#line 275 "delete-dialog.c"
	}
#line 51 "/data/src/seahorse/common/delete-dialog.vala"
	result = FALSE;
#line 51 "/data/src/seahorse/common/delete-dialog.vala"
	return result;
#line 281 "delete-dialog.c"
}


void seahorse_delete_dialog_set_check_value (SeahorseDeleteDialog* self, gboolean value) {
	GtkToggleButton* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 53 "/data/src/seahorse/common/delete-dialog.vala"
	g_return_if_fail (self != NULL);
#line 54 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp0_ = self->priv->_check;
#line 54 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp1_ = value;
#line 54 "/data/src/seahorse/common/delete-dialog.vala"
	gtk_toggle_button_set_active (_tmp0_, _tmp1_);
#line 53 "/data/src/seahorse/common/delete-dialog.vala"
	g_object_notify ((GObject *) self, "check-value");
#line 298 "delete-dialog.c"
}


gboolean seahorse_delete_dialog_get_check_require (SeahorseDeleteDialog* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 60 "/data/src/seahorse/common/delete-dialog.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 61 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp0_ = self->priv->_check_require;
#line 61 "/data/src/seahorse/common/delete-dialog.vala"
	result = _tmp0_;
#line 61 "/data/src/seahorse/common/delete-dialog.vala"
	return result;
#line 313 "delete-dialog.c"
}


void seahorse_delete_dialog_set_check_require (SeahorseDeleteDialog* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
#line 63 "/data/src/seahorse/common/delete-dialog.vala"
	g_return_if_fail (self != NULL);
#line 64 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp0_ = value;
#line 64 "/data/src/seahorse/common/delete-dialog.vala"
	self->priv->_check_require = _tmp0_;
#line 65 "/data/src/seahorse/common/delete-dialog.vala"
	seahorse_delete_dialog_update_response_buttons (self);
#line 63 "/data/src/seahorse/common/delete-dialog.vala"
	g_object_notify ((GObject *) self, "check-require");
#line 329 "delete-dialog.c"
}


static void _seahorse_delete_dialog___lambda12_ (SeahorseDeleteDialog* self, GtkToggleButton* toggle) {
#line 86 "/data/src/seahorse/common/delete-dialog.vala"
	g_return_if_fail (toggle != NULL);
#line 87 "/data/src/seahorse/common/delete-dialog.vala"
	seahorse_delete_dialog_update_response_buttons (self);
#line 338 "delete-dialog.c"
}


static void __seahorse_delete_dialog___lambda12__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self) {
#line 86 "/data/src/seahorse/common/delete-dialog.vala"
	_seahorse_delete_dialog___lambda12_ (self, _sender);
#line 345 "delete-dialog.c"
}


static GObject * seahorse_delete_dialog_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	SeahorseDeleteDialog * self;
	GtkCheckButton* _tmp0_ = NULL;
	GtkWidget* _tmp1_ = NULL;
	GtkToggleButton* _tmp2_ = NULL;
	GtkToggleButton* _tmp3_ = NULL;
	GtkButton* cancel = NULL;
	GtkButton* _tmp4_ = NULL;
	GtkButton* _tmp5_ = NULL;
	GtkButton* _tmp6_ = NULL;
	GtkButton* delet = NULL;
	GtkButton* _tmp7_ = NULL;
	GtkButton* _tmp8_ = NULL;
	GtkButton* _tmp9_ = NULL;
#line 80 "/data/src/seahorse/common/delete-dialog.vala"
	parent_class = G_OBJECT_CLASS (seahorse_delete_dialog_parent_class);
#line 80 "/data/src/seahorse/common/delete-dialog.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 80 "/data/src/seahorse/common/delete-dialog.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEAHORSE_TYPE_DELETE_DIALOG, SeahorseDeleteDialog);
#line 81 "/data/src/seahorse/common/delete-dialog.vala"
	gtk_window_set_modal ((GtkWindow*) self, TRUE);
#line 82 "/data/src/seahorse/common/delete-dialog.vala"
	gtk_window_set_destroy_with_parent ((GtkWindow*) self, TRUE);
#line 84 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp0_ = (GtkCheckButton*) gtk_check_button_new ();
#line 84 "/data/src/seahorse/common/delete-dialog.vala"
	g_object_ref_sink (_tmp0_);
#line 84 "/data/src/seahorse/common/delete-dialog.vala"
	_g_object_unref0 (self->priv->_check);
#line 84 "/data/src/seahorse/common/delete-dialog.vala"
	self->priv->_check = (GtkToggleButton*) _tmp0_;
#line 85 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp1_ = gtk_message_dialog_get_message_area ((GtkMessageDialog*) self);
#line 85 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp2_ = self->priv->_check;
#line 85 "/data/src/seahorse/common/delete-dialog.vala"
	gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GTK_TYPE_CONTAINER, GtkContainer), (GtkWidget*) _tmp2_);
#line 86 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp3_ = self->priv->_check;
#line 86 "/data/src/seahorse/common/delete-dialog.vala"
	g_signal_connect_object (_tmp3_, "toggled", (GCallback) __seahorse_delete_dialog___lambda12__gtk_toggle_button_toggled, self, 0);
#line 90 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp4_ = (GtkButton*) gtk_button_new_from_stock (GTK_STOCK_CANCEL);
#line 90 "/data/src/seahorse/common/delete-dialog.vala"
	g_object_ref_sink (_tmp4_);
#line 90 "/data/src/seahorse/common/delete-dialog.vala"
	cancel = _tmp4_;
#line 91 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp5_ = cancel;
#line 91 "/data/src/seahorse/common/delete-dialog.vala"
	gtk_dialog_add_action_widget ((GtkDialog*) self, (GtkWidget*) _tmp5_, (gint) GTK_RESPONSE_CANCEL);
#line 92 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp6_ = cancel;
#line 92 "/data/src/seahorse/common/delete-dialog.vala"
	gtk_widget_show ((GtkWidget*) _tmp6_);
#line 94 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp7_ = (GtkButton*) gtk_button_new_from_stock (GTK_STOCK_DELETE);
#line 94 "/data/src/seahorse/common/delete-dialog.vala"
	g_object_ref_sink (_tmp7_);
#line 94 "/data/src/seahorse/common/delete-dialog.vala"
	delet = _tmp7_;
#line 95 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp8_ = delet;
#line 95 "/data/src/seahorse/common/delete-dialog.vala"
	gtk_dialog_add_action_widget ((GtkDialog*) self, (GtkWidget*) _tmp8_, (gint) GTK_RESPONSE_OK);
#line 96 "/data/src/seahorse/common/delete-dialog.vala"
	_tmp9_ = delet;
#line 96 "/data/src/seahorse/common/delete-dialog.vala"
	gtk_widget_show ((GtkWidget*) _tmp9_);
#line 80 "/data/src/seahorse/common/delete-dialog.vala"
	_g_object_unref0 (delet);
#line 80 "/data/src/seahorse/common/delete-dialog.vala"
	_g_object_unref0 (cancel);
#line 80 "/data/src/seahorse/common/delete-dialog.vala"
	return obj;
#line 427 "delete-dialog.c"
}


static void seahorse_delete_dialog_class_init (SeahorseDeleteDialogClass * klass) {
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
	seahorse_delete_dialog_parent_class = g_type_class_peek_parent (klass);
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
	g_type_class_add_private (klass, sizeof (SeahorseDeleteDialogPrivate));
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_seahorse_delete_dialog_get_property;
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_seahorse_delete_dialog_set_property;
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
	G_OBJECT_CLASS (klass)->constructor = seahorse_delete_dialog_constructor;
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
	G_OBJECT_CLASS (klass)->finalize = seahorse_delete_dialog_finalize;
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), SEAHORSE_DELETE_DIALOG_CHECK_LABEL, g_param_spec_string ("check-label", "check-label", "check-label", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), SEAHORSE_DELETE_DIALOG_CHECK_VALUE, g_param_spec_boolean ("check-value", "check-value", "check-value", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), SEAHORSE_DELETE_DIALOG_CHECK_REQUIRE, g_param_spec_boolean ("check-require", "check-require", "check-require", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 450 "delete-dialog.c"
}


static void seahorse_delete_dialog_instance_init (SeahorseDeleteDialog * self) {
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
	self->priv = SEAHORSE_DELETE_DIALOG_GET_PRIVATE (self);
#line 457 "delete-dialog.c"
}


static void seahorse_delete_dialog_finalize (GObject* obj) {
	SeahorseDeleteDialog * self;
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEAHORSE_TYPE_DELETE_DIALOG, SeahorseDeleteDialog);
#line 25 "/data/src/seahorse/common/delete-dialog.vala"
	_g_object_unref0 (self->priv->_check);
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
	G_OBJECT_CLASS (seahorse_delete_dialog_parent_class)->finalize (obj);
#line 469 "delete-dialog.c"
}


GType seahorse_delete_dialog_get_type (void) {
	static volatile gsize seahorse_delete_dialog_type_id__volatile = 0;
	if (g_once_init_enter (&seahorse_delete_dialog_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (SeahorseDeleteDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) seahorse_delete_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SeahorseDeleteDialog), 0, (GInstanceInitFunc) seahorse_delete_dialog_instance_init, NULL };
		GType seahorse_delete_dialog_type_id;
		seahorse_delete_dialog_type_id = g_type_register_static (GTK_TYPE_MESSAGE_DIALOG, "SeahorseDeleteDialog", &g_define_type_info, 0);
		g_once_init_leave (&seahorse_delete_dialog_type_id__volatile, seahorse_delete_dialog_type_id);
	}
	return seahorse_delete_dialog_type_id__volatile;
}


static void _vala_seahorse_delete_dialog_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	SeahorseDeleteDialog * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, SEAHORSE_TYPE_DELETE_DIALOG, SeahorseDeleteDialog);
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
	switch (property_id) {
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		case SEAHORSE_DELETE_DIALOG_CHECK_LABEL:
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		g_value_set_string (value, seahorse_delete_dialog_get_check_label (self));
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		break;
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		case SEAHORSE_DELETE_DIALOG_CHECK_VALUE:
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		g_value_set_boolean (value, seahorse_delete_dialog_get_check_value (self));
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		break;
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		case SEAHORSE_DELETE_DIALOG_CHECK_REQUIRE:
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		g_value_set_boolean (value, seahorse_delete_dialog_get_check_require (self));
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		break;
#line 508 "delete-dialog.c"
		default:
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		break;
#line 514 "delete-dialog.c"
	}
}


static void _vala_seahorse_delete_dialog_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	SeahorseDeleteDialog * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, SEAHORSE_TYPE_DELETE_DIALOG, SeahorseDeleteDialog);
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
	switch (property_id) {
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		case SEAHORSE_DELETE_DIALOG_CHECK_LABEL:
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		seahorse_delete_dialog_set_check_label (self, g_value_get_string (value));
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		break;
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		case SEAHORSE_DELETE_DIALOG_CHECK_VALUE:
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		seahorse_delete_dialog_set_check_value (self, g_value_get_boolean (value));
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		break;
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		case SEAHORSE_DELETE_DIALOG_CHECK_REQUIRE:
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		seahorse_delete_dialog_set_check_require (self, g_value_get_boolean (value));
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		break;
#line 542 "delete-dialog.c"
		default:
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 24 "/data/src/seahorse/common/delete-dialog.vala"
		break;
#line 548 "delete-dialog.c"
	}
}



