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

/*
 * SPDX-License-Identifier: GPL-3.0-or-later
 * SPDX-FileCopyrightText: 2026 elementary, Inc. (https://elementary.io)
 */

#include <glib-object.h>
#include <gcr/gcr.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <granite-7.h>
#include <gio/gio.h>
#include <gtk/gtk.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
#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 AG_TYPE_GCR_PROMPT (ag_gcr_prompt_get_type ())
#define AG_GCR_PROMPT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AG_TYPE_GCR_PROMPT, AgGcrPrompt))
#define AG_GCR_PROMPT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), AG_TYPE_GCR_PROMPT, AgGcrPromptClass))
#define AG_IS_GCR_PROMPT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AG_TYPE_GCR_PROMPT))
#define AG_IS_GCR_PROMPT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), AG_TYPE_GCR_PROMPT))
#define AG_GCR_PROMPT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), AG_TYPE_GCR_PROMPT, AgGcrPromptClass))

typedef struct _AgGcrPrompt AgGcrPrompt;
typedef struct _AgGcrPromptClass AgGcrPromptClass;
typedef struct _AgGcrPromptPrivate AgGcrPromptPrivate;

#define AG_TYPE_GCR_CONFIRM_DIALOG (ag_gcr_confirm_dialog_get_type ())
#define AG_GCR_CONFIRM_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AG_TYPE_GCR_CONFIRM_DIALOG, AgGcrConfirmDialog))
#define AG_GCR_CONFIRM_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), AG_TYPE_GCR_CONFIRM_DIALOG, AgGcrConfirmDialogClass))
#define AG_IS_GCR_CONFIRM_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AG_TYPE_GCR_CONFIRM_DIALOG))
#define AG_IS_GCR_CONFIRM_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), AG_TYPE_GCR_CONFIRM_DIALOG))
#define AG_GCR_CONFIRM_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), AG_TYPE_GCR_CONFIRM_DIALOG, AgGcrConfirmDialogClass))

typedef struct _AgGcrConfirmDialog AgGcrConfirmDialog;
typedef struct _AgGcrConfirmDialogClass AgGcrConfirmDialogClass;

#define AG_TYPE_GCR_PASSWORD_DIALOG (ag_gcr_password_dialog_get_type ())
#define AG_GCR_PASSWORD_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AG_TYPE_GCR_PASSWORD_DIALOG, AgGcrPasswordDialog))
#define AG_GCR_PASSWORD_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), AG_TYPE_GCR_PASSWORD_DIALOG, AgGcrPasswordDialogClass))
#define AG_IS_GCR_PASSWORD_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AG_TYPE_GCR_PASSWORD_DIALOG))
#define AG_IS_GCR_PASSWORD_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), AG_TYPE_GCR_PASSWORD_DIALOG))
#define AG_GCR_PASSWORD_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), AG_TYPE_GCR_PASSWORD_DIALOG, AgGcrPasswordDialogClass))

typedef struct _AgGcrPasswordDialog AgGcrPasswordDialog;
typedef struct _AgGcrPasswordDialogClass AgGcrPasswordDialogClass;
enum  {
	AG_GCR_PROMPT_0_PROPERTY,
	AG_GCR_PROMPT_CALLER_WINDOW_PROPERTY,
	AG_GCR_PROMPT_CANCEL_LABEL_PROPERTY,
	AG_GCR_PROMPT_CHOICE_CHOSEN_PROPERTY,
	AG_GCR_PROMPT_CHOICE_LABEL_PROPERTY,
	AG_GCR_PROMPT_CONTINUE_LABEL_PROPERTY,
	AG_GCR_PROMPT_DESCRIPTION_PROPERTY,
	AG_GCR_PROMPT_MESSAGE_PROPERTY,
	AG_GCR_PROMPT_PASSWORD_NEW_PROPERTY,
	AG_GCR_PROMPT_PASSWORD_STRENGTH_PROPERTY,
	AG_GCR_PROMPT_TITLE_PROPERTY,
	AG_GCR_PROMPT_WARNING_PROPERTY,
	AG_GCR_PROMPT_NUM_PROPERTIES
};
static GParamSpec* ag_gcr_prompt_properties[AG_GCR_PROMPT_NUM_PROPERTIES];
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block1Data Block1Data;
typedef struct _AgGcrPromptConfirmAsyncData AgGcrPromptConfirmAsyncData;
typedef struct _Block2Data Block2Data;
typedef struct _AgGcrPromptPasswordAsyncData AgGcrPromptPasswordAsyncData;

struct _AgGcrPrompt {
	GObject parent_instance;
	AgGcrPromptPrivate * priv;
};

struct _AgGcrPromptClass {
	GObjectClass parent_class;
};

struct _AgGcrPromptPrivate {
	gchar* _caller_window;
	gchar* _cancel_label;
	gboolean _choice_chosen;
	gchar* _choice_label;
	gchar* _continue_label;
	gchar* _description;
	gchar* _message;
	gboolean _password_new;
	gint _password_strength;
	gchar* _title;
	gchar* _warning;
	gboolean user_responded;
	AgGcrConfirmDialog* confirm_dialog;
	GcrPromptReply confirm_result;
	AgGcrPasswordDialog* password_dialog;
	gchar* responded_password;
};

struct _Block1Data {
	int _ref_count_;
	AgGcrPrompt* self;
	gpointer _async_data_;
};

struct _AgGcrPromptConfirmAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	AgGcrPrompt* self;
	GCancellable* cancellable;
	GcrPromptReply result;
	Block1Data* _data1_;
	AgGcrConfirmDialog* _tmp0_;
	AgGcrConfirmDialog* _tmp1_;
	AgGcrConfirmDialog* _tmp2_;
};

struct _Block2Data {
	int _ref_count_;
	AgGcrPrompt* self;
	gpointer _async_data_;
};

struct _AgGcrPromptPasswordAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	AgGcrPrompt* self;
	GCancellable* cancellable;
	const gchar* result;
	Block2Data* _data2_;
	AgGcrPasswordDialog* _tmp0_;
	AgGcrPasswordDialog* _tmp1_;
	AgGcrPasswordDialog* _tmp2_;
	const gchar* _tmp3_;
};

static gint AgGcrPrompt_private_offset;
static gpointer ag_gcr_prompt_parent_class = NULL;
static GcrPromptInterface * ag_gcr_prompt_gcr_prompt_parent_iface = NULL;

VALA_EXTERN GType ag_gcr_prompt_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (AgGcrPrompt, g_object_unref)
VALA_EXTERN GType ag_gcr_confirm_dialog_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (AgGcrConfirmDialog, g_object_unref)
VALA_EXTERN GType ag_gcr_password_dialog_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (AgGcrPasswordDialog, g_object_unref)
static void ag_gcr_prompt_real_confirm_async_data_free (gpointer _data);
static void ag_gcr_prompt_real_confirm_async (GcrPrompt* base,
                                       GCancellable* cancellable,
                                       GAsyncReadyCallback _callback_,
                                       gpointer _user_data_);
static gboolean ag_gcr_prompt_real_confirm_async_co (AgGcrPromptConfirmAsyncData* _data_);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (void * _userdata_);
VALA_EXTERN AgGcrConfirmDialog* ag_gcr_confirm_dialog_new (GcrPrompt* prompt);
VALA_EXTERN AgGcrConfirmDialog* ag_gcr_confirm_dialog_construct (GType object_type,
                                                     GcrPrompt* prompt);
static void __lambda6_ (Block1Data* _data1_,
                 GtkDialog* confirm_dialog,
                 gint response);
static void ___lambda6__gtk_dialog_response (GtkDialog* _sender,
                                      gint response_id,
                                      gpointer self);
static void ag_gcr_prompt_real_password_async_data_free (gpointer _data);
static void ag_gcr_prompt_real_password_async (GcrPrompt* base,
                                        GCancellable* cancellable,
                                        GAsyncReadyCallback _callback_,
                                        gpointer _user_data_);
static gboolean ag_gcr_prompt_real_password_async_co (AgGcrPromptPasswordAsyncData* _data_);
static Block2Data* block2_data_ref (Block2Data* _data2_);
static void block2_data_unref (void * _userdata_);
VALA_EXTERN AgGcrPasswordDialog* ag_gcr_password_dialog_new (GcrPrompt* prompt);
VALA_EXTERN AgGcrPasswordDialog* ag_gcr_password_dialog_construct (GType object_type,
                                                       GcrPrompt* prompt);
static void __lambda7_ (Block2Data* _data2_,
                 GtkDialog* password_dialog,
                 gint response);
VALA_EXTERN const gchar* ag_gcr_password_dialog_get_password (AgGcrPasswordDialog* self);
static void ___lambda7__gtk_dialog_response (GtkDialog* _sender,
                                      gint response_id,
                                      gpointer self);
static void ag_gcr_prompt_real_prompt_close (GcrPrompt* base);
VALA_EXTERN AgGcrPrompt* ag_gcr_prompt_new (void);
VALA_EXTERN AgGcrPrompt* ag_gcr_prompt_construct (GType object_type);
static void ag_gcr_prompt_finalize (GObject * obj);
static GType ag_gcr_prompt_get_type_once (void);
static void _vala_ag_gcr_prompt_get_property (GObject * object,
                                       guint property_id,
                                       GValue * value,
                                       GParamSpec * pspec);
static void _vala_ag_gcr_prompt_set_property (GObject * object,
                                       guint property_id,
                                       const GValue * value,
                                       GParamSpec * pspec);

static inline gpointer
ag_gcr_prompt_get_instance_private (AgGcrPrompt* self)
{
	return G_STRUCT_MEMBER_P (self, AgGcrPrompt_private_offset);
}

static void
ag_gcr_prompt_real_confirm_async_data_free (gpointer _data)
{
	AgGcrPromptConfirmAsyncData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->cancellable);
	_g_object_unref0 (_data_->self);
	g_slice_free (AgGcrPromptConfirmAsyncData, _data_);
}

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

static void
ag_gcr_prompt_real_confirm_async (GcrPrompt* base,
                                  GCancellable* cancellable,
                                  GAsyncReadyCallback _callback_,
                                  gpointer _user_data_)
{
	AgGcrPrompt * self;
	AgGcrPromptConfirmAsyncData* _data_;
	AgGcrPrompt* _tmp0_;
	GCancellable* _tmp1_;
	self = (AgGcrPrompt*) base;
	_data_ = g_slice_new0 (AgGcrPromptConfirmAsyncData);
	_data_->_async_result = g_task_new (G_OBJECT (self), cancellable, _callback_, _user_data_);
	g_task_set_task_data (_data_->_async_result, _data_, ag_gcr_prompt_real_confirm_async_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = _g_object_ref0 (cancellable);
	_g_object_unref0 (_data_->cancellable);
	_data_->cancellable = _tmp1_;
	ag_gcr_prompt_real_confirm_async_co (_data_);
}

static GcrPromptReply
ag_gcr_prompt_confirm_finish (GcrPrompt* base,
                              GAsyncResult* _res_,
                              GError** error)
{
	GcrPromptReply result;
	AgGcrPromptConfirmAsyncData* _data_;
	_data_ = g_task_propagate_pointer (G_TASK (_res_), error);
	if (NULL == _data_) {
		return 0;
	}
	result = _data_->result;
	return result;
}

static Block1Data*
block1_data_ref (Block1Data* _data1_)
{
	g_atomic_int_inc (&_data1_->_ref_count_);
	return _data1_;
}

static void
block1_data_unref (void * _userdata_)
{
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
		AgGcrPrompt* self;
		self = _data1_->self;
		_g_object_unref0 (self);
		g_slice_free (Block1Data, _data1_);
	}
}

static void
__lambda6_ (Block1Data* _data1_,
            GtkDialog* confirm_dialog,
            gint response)
{
	AgGcrPrompt* self;
	self = _data1_->self;
	g_return_if_fail (confirm_dialog != NULL);
	if (self->priv->user_responded) {
		return;
	}
	switch (response) {
		case GTK_RESPONSE_CANCEL:
		case GTK_RESPONSE_CLOSE:
		case GTK_RESPONSE_DELETE_EVENT:
		{
			self->priv->confirm_result = GCR_PROMPT_REPLY_CANCEL;
			break;
		}
		default:
		{
			self->priv->confirm_result = GCR_PROMPT_REPLY_CONTINUE;
			break;
		}
	}
	self->priv->user_responded = TRUE;
	ag_gcr_prompt_real_confirm_async_co (_data1_->_async_data_);
}

static void
___lambda6__gtk_dialog_response (GtkDialog* _sender,
                                 gint response_id,
                                 gpointer self)
{
	__lambda6_ (self, _sender, response_id);
}

static gboolean
ag_gcr_prompt_real_confirm_async_co (AgGcrPromptConfirmAsyncData* _data_)
{
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_data1_ = g_slice_new0 (Block1Data);
	_data_->_data1_->_ref_count_ = 1;
	_data_->_data1_->self = g_object_ref (_data_->self);
	_data_->_data1_->_async_data_ = _data_;
	_data_->_tmp0_ = ag_gcr_confirm_dialog_new ((GcrPrompt*) _data_->self);
	g_object_ref_sink (_data_->_tmp0_);
	_g_object_unref0 (_data_->self->priv->confirm_dialog);
	_data_->self->priv->confirm_dialog = _data_->_tmp0_;
	_data_->_tmp1_ = _data_->self->priv->confirm_dialog;
	g_signal_connect_data ((GtkDialog*) _data_->_tmp1_, "response", (GCallback) ___lambda6__gtk_dialog_response, block1_data_ref (_data_->_data1_), (GClosureNotify) block1_data_unref, 0);
	_data_->_tmp2_ = _data_->self->priv->confirm_dialog;
	gtk_window_present ((GtkWindow*) _data_->_tmp2_);
	_data_->_state_ = 1;
	return FALSE;
	_state_1:
	;
	_data_->result = _data_->self->priv->confirm_result;
	block1_data_unref (_data_->_data1_);
	_data_->_data1_ = NULL;
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
	if (_data_->_state_ != 0) {
		while (!g_task_get_completed (_data_->_async_result)) {
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
		}
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}

static void
ag_gcr_prompt_real_password_async_data_free (gpointer _data)
{
	AgGcrPromptPasswordAsyncData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->cancellable);
	_g_object_unref0 (_data_->self);
	g_slice_free (AgGcrPromptPasswordAsyncData, _data_);
}

static void
ag_gcr_prompt_real_password_async (GcrPrompt* base,
                                   GCancellable* cancellable,
                                   GAsyncReadyCallback _callback_,
                                   gpointer _user_data_)
{
	AgGcrPrompt * self;
	AgGcrPromptPasswordAsyncData* _data_;
	AgGcrPrompt* _tmp0_;
	GCancellable* _tmp1_;
	self = (AgGcrPrompt*) base;
	_data_ = g_slice_new0 (AgGcrPromptPasswordAsyncData);
	_data_->_async_result = g_task_new (G_OBJECT (self), cancellable, _callback_, _user_data_);
	g_task_set_task_data (_data_->_async_result, _data_, ag_gcr_prompt_real_password_async_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = _g_object_ref0 (cancellable);
	_g_object_unref0 (_data_->cancellable);
	_data_->cancellable = _tmp1_;
	ag_gcr_prompt_real_password_async_co (_data_);
}

static const gchar*
ag_gcr_prompt_password_finish (GcrPrompt* base,
                               GAsyncResult* _res_,
                               GError** error)
{
	const gchar* result;
	AgGcrPromptPasswordAsyncData* _data_;
	_data_ = g_task_propagate_pointer (G_TASK (_res_), error);
	if (NULL == _data_) {
		return NULL;
	}
	result = _data_->result;
	_data_->result = NULL;
	return result;
}

static Block2Data*
block2_data_ref (Block2Data* _data2_)
{
	g_atomic_int_inc (&_data2_->_ref_count_);
	return _data2_;
}

static void
block2_data_unref (void * _userdata_)
{
	Block2Data* _data2_;
	_data2_ = (Block2Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
		AgGcrPrompt* self;
		self = _data2_->self;
		_g_object_unref0 (self);
		g_slice_free (Block2Data, _data2_);
	}
}

static void
__lambda7_ (Block2Data* _data2_,
            GtkDialog* password_dialog,
            gint response)
{
	AgGcrPrompt* self;
	self = _data2_->self;
	g_return_if_fail (password_dialog != NULL);
	if (self->priv->user_responded) {
		return;
	}
	switch (response) {
		case GTK_RESPONSE_CANCEL:
		case GTK_RESPONSE_CLOSE:
		case GTK_RESPONSE_DELETE_EVENT:
		{
			gchar* _tmp0_;
			_tmp0_ = g_strdup ("");
			_g_free0 (self->priv->responded_password);
			self->priv->responded_password = _tmp0_;
			break;
		}
		default:
		{
			const gchar* _tmp1_;
			const gchar* _tmp2_;
			gchar* _tmp3_;
			_tmp1_ = ag_gcr_password_dialog_get_password (G_TYPE_CHECK_INSTANCE_CAST (password_dialog, AG_TYPE_GCR_PASSWORD_DIALOG, AgGcrPasswordDialog));
			_tmp2_ = _tmp1_;
			_tmp3_ = g_strdup (_tmp2_);
			_g_free0 (self->priv->responded_password);
			self->priv->responded_password = _tmp3_;
			break;
		}
	}
	self->priv->user_responded = TRUE;
	ag_gcr_prompt_real_password_async_co (_data2_->_async_data_);
}

static void
___lambda7__gtk_dialog_response (GtkDialog* _sender,
                                 gint response_id,
                                 gpointer self)
{
	__lambda7_ (self, _sender, response_id);
}

static gboolean
ag_gcr_prompt_real_password_async_co (AgGcrPromptPasswordAsyncData* _data_)
{
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_data2_ = g_slice_new0 (Block2Data);
	_data_->_data2_->_ref_count_ = 1;
	_data_->_data2_->self = g_object_ref (_data_->self);
	_data_->_data2_->_async_data_ = _data_;
	_data_->_tmp0_ = ag_gcr_password_dialog_new ((GcrPrompt*) _data_->self);
	g_object_ref_sink (_data_->_tmp0_);
	_g_object_unref0 (_data_->self->priv->password_dialog);
	_data_->self->priv->password_dialog = _data_->_tmp0_;
	_data_->_tmp1_ = _data_->self->priv->password_dialog;
	g_signal_connect_data ((GtkDialog*) _data_->_tmp1_, "response", (GCallback) ___lambda7__gtk_dialog_response, block2_data_ref (_data_->_data2_), (GClosureNotify) block2_data_unref, 0);
	_data_->_tmp2_ = _data_->self->priv->password_dialog;
	gtk_window_present ((GtkWindow*) _data_->_tmp2_);
	_data_->_state_ = 1;
	return FALSE;
	_state_1:
	;
	_data_->_tmp3_ = _data_->self->priv->responded_password;
	_data_->result = _data_->_tmp3_;
	block2_data_unref (_data_->_data2_);
	_data_->_data2_ = NULL;
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
	if (_data_->_state_ != 0) {
		while (!g_task_get_completed (_data_->_async_result)) {
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
		}
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}

static void
ag_gcr_prompt_real_prompt_close (GcrPrompt* base)
{
	AgGcrPrompt * self;
	AgGcrPasswordDialog* _tmp0_ = NULL;
	AgGcrPasswordDialog* _tmp1_;
	AgGcrConfirmDialog* _tmp2_ = NULL;
	AgGcrConfirmDialog* _tmp3_;
	self = (AgGcrPrompt*) base;
	_tmp1_ = self->priv->password_dialog;
	_tmp0_ = _tmp1_;
	if (_tmp0_ != NULL) {
		g_signal_emit_by_name ((GtkDialog*) _tmp0_, "close");
	}
	_tmp3_ = self->priv->confirm_dialog;
	_tmp2_ = _tmp3_;
	if (_tmp2_ != NULL) {
		g_signal_emit_by_name ((GtkDialog*) _tmp2_, "close");
	}
}

AgGcrPrompt*
ag_gcr_prompt_construct (GType object_type)
{
	AgGcrPrompt * self = NULL;
	self = (AgGcrPrompt*) g_object_new (object_type, NULL);
	return self;
}

AgGcrPrompt*
ag_gcr_prompt_new (void)
{
	return ag_gcr_prompt_construct (AG_TYPE_GCR_PROMPT);
}

static gchar*
ag_gcr_prompt_real_get_caller_window (GcrPrompt* base)
{
	gchar* result;
	AgGcrPrompt* self;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	self = (AgGcrPrompt*) base;
	_tmp0_ = self->priv->_caller_window;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}

static void
ag_gcr_prompt_real_set_caller_window (GcrPrompt* base,
                                      const gchar* value)
{
	AgGcrPrompt* self;
	gchar* old_value;
	self = (AgGcrPrompt*) base;
	old_value = ag_gcr_prompt_real_get_caller_window (base);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_caller_window);
		self->priv->_caller_window = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, ag_gcr_prompt_properties[AG_GCR_PROMPT_CALLER_WINDOW_PROPERTY]);
	}
	_g_free0 (old_value);
}

static gchar*
ag_gcr_prompt_real_get_cancel_label (GcrPrompt* base)
{
	gchar* result;
	AgGcrPrompt* self;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	self = (AgGcrPrompt*) base;
	_tmp0_ = self->priv->_cancel_label;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}

static void
ag_gcr_prompt_real_set_cancel_label (GcrPrompt* base,
                                     const gchar* value)
{
	AgGcrPrompt* self;
	gchar* old_value;
	self = (AgGcrPrompt*) base;
	old_value = ag_gcr_prompt_real_get_cancel_label (base);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_cancel_label);
		self->priv->_cancel_label = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, ag_gcr_prompt_properties[AG_GCR_PROMPT_CANCEL_LABEL_PROPERTY]);
	}
	_g_free0 (old_value);
}

static gboolean
ag_gcr_prompt_real_get_choice_chosen (GcrPrompt* base)
{
	gboolean result;
	AgGcrPrompt* self;
	self = (AgGcrPrompt*) base;
	result = self->priv->_choice_chosen;
	return result;
}

static void
ag_gcr_prompt_real_set_choice_chosen (GcrPrompt* base,
                                      gboolean value)
{
	AgGcrPrompt* self;
	gboolean old_value;
	self = (AgGcrPrompt*) base;
	old_value = ag_gcr_prompt_real_get_choice_chosen (base);
	if (old_value != value) {
		self->priv->_choice_chosen = value;
		g_object_notify_by_pspec ((GObject *) self, ag_gcr_prompt_properties[AG_GCR_PROMPT_CHOICE_CHOSEN_PROPERTY]);
	}
}

static gchar*
ag_gcr_prompt_real_get_choice_label (GcrPrompt* base)
{
	gchar* result;
	AgGcrPrompt* self;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	self = (AgGcrPrompt*) base;
	_tmp0_ = self->priv->_choice_label;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}

static void
ag_gcr_prompt_real_set_choice_label (GcrPrompt* base,
                                     const gchar* value)
{
	AgGcrPrompt* self;
	gchar* old_value;
	self = (AgGcrPrompt*) base;
	old_value = ag_gcr_prompt_real_get_choice_label (base);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_choice_label);
		self->priv->_choice_label = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, ag_gcr_prompt_properties[AG_GCR_PROMPT_CHOICE_LABEL_PROPERTY]);
	}
	_g_free0 (old_value);
}

static gchar*
ag_gcr_prompt_real_get_continue_label (GcrPrompt* base)
{
	gchar* result;
	AgGcrPrompt* self;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	self = (AgGcrPrompt*) base;
	_tmp0_ = self->priv->_continue_label;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}

static void
ag_gcr_prompt_real_set_continue_label (GcrPrompt* base,
                                       const gchar* value)
{
	AgGcrPrompt* self;
	gchar* old_value;
	self = (AgGcrPrompt*) base;
	old_value = ag_gcr_prompt_real_get_continue_label (base);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_continue_label);
		self->priv->_continue_label = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, ag_gcr_prompt_properties[AG_GCR_PROMPT_CONTINUE_LABEL_PROPERTY]);
	}
	_g_free0 (old_value);
}

static gchar*
ag_gcr_prompt_real_get_description (GcrPrompt* base)
{
	gchar* result;
	AgGcrPrompt* self;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	self = (AgGcrPrompt*) base;
	_tmp0_ = self->priv->_description;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}

static void
ag_gcr_prompt_real_set_description (GcrPrompt* base,
                                    const gchar* value)
{
	AgGcrPrompt* self;
	gchar* old_value;
	self = (AgGcrPrompt*) base;
	old_value = ag_gcr_prompt_real_get_description (base);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_description);
		self->priv->_description = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, ag_gcr_prompt_properties[AG_GCR_PROMPT_DESCRIPTION_PROPERTY]);
	}
	_g_free0 (old_value);
}

static gchar*
ag_gcr_prompt_real_get_message (GcrPrompt* base)
{
	gchar* result;
	AgGcrPrompt* self;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	self = (AgGcrPrompt*) base;
	_tmp0_ = self->priv->_message;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}

static void
ag_gcr_prompt_real_set_message (GcrPrompt* base,
                                const gchar* value)
{
	AgGcrPrompt* self;
	gchar* old_value;
	self = (AgGcrPrompt*) base;
	old_value = ag_gcr_prompt_real_get_message (base);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_message);
		self->priv->_message = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, ag_gcr_prompt_properties[AG_GCR_PROMPT_MESSAGE_PROPERTY]);
	}
	_g_free0 (old_value);
}

static gboolean
ag_gcr_prompt_real_get_password_new (GcrPrompt* base)
{
	gboolean result;
	AgGcrPrompt* self;
	self = (AgGcrPrompt*) base;
	result = self->priv->_password_new;
	return result;
}

static void
ag_gcr_prompt_real_set_password_new (GcrPrompt* base,
                                     gboolean value)
{
	AgGcrPrompt* self;
	gboolean old_value;
	self = (AgGcrPrompt*) base;
	old_value = ag_gcr_prompt_real_get_password_new (base);
	if (old_value != value) {
		self->priv->_password_new = value;
		g_object_notify_by_pspec ((GObject *) self, ag_gcr_prompt_properties[AG_GCR_PROMPT_PASSWORD_NEW_PROPERTY]);
	}
}

static gint
ag_gcr_prompt_real_get_password_strength (GcrPrompt* base)
{
	gint result;
	AgGcrPrompt* self;
	self = (AgGcrPrompt*) base;
	result = self->priv->_password_strength;
	return result;
}

static gchar*
ag_gcr_prompt_real_get_title (GcrPrompt* base)
{
	gchar* result;
	AgGcrPrompt* self;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	self = (AgGcrPrompt*) base;
	_tmp0_ = self->priv->_title;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}

static void
ag_gcr_prompt_real_set_title (GcrPrompt* base,
                              const gchar* value)
{
	AgGcrPrompt* self;
	gchar* old_value;
	self = (AgGcrPrompt*) base;
	old_value = ag_gcr_prompt_real_get_title (base);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_title);
		self->priv->_title = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, ag_gcr_prompt_properties[AG_GCR_PROMPT_TITLE_PROPERTY]);
	}
	_g_free0 (old_value);
}

static gchar*
ag_gcr_prompt_real_get_warning (GcrPrompt* base)
{
	gchar* result;
	AgGcrPrompt* self;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	self = (AgGcrPrompt*) base;
	_tmp0_ = self->priv->_warning;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}

static void
ag_gcr_prompt_real_set_warning (GcrPrompt* base,
                                const gchar* value)
{
	AgGcrPrompt* self;
	gchar* old_value;
	self = (AgGcrPrompt*) base;
	old_value = ag_gcr_prompt_real_get_warning (base);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_warning);
		self->priv->_warning = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, ag_gcr_prompt_properties[AG_GCR_PROMPT_WARNING_PROPERTY]);
	}
	_g_free0 (old_value);
}

static void
ag_gcr_prompt_class_init (AgGcrPromptClass * klass,
                          gpointer klass_data)
{
	ag_gcr_prompt_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &AgGcrPrompt_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_ag_gcr_prompt_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_ag_gcr_prompt_set_property;
	G_OBJECT_CLASS (klass)->finalize = ag_gcr_prompt_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), AG_GCR_PROMPT_CALLER_WINDOW_PROPERTY, ag_gcr_prompt_properties[AG_GCR_PROMPT_CALLER_WINDOW_PROPERTY] = g_param_spec_string ("caller-window", "caller-window", "caller-window", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
	g_object_class_install_property (G_OBJECT_CLASS (klass), AG_GCR_PROMPT_CANCEL_LABEL_PROPERTY, ag_gcr_prompt_properties[AG_GCR_PROMPT_CANCEL_LABEL_PROPERTY] = g_param_spec_string ("cancel-label", "cancel-label", "cancel-label", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
	g_object_class_install_property (G_OBJECT_CLASS (klass), AG_GCR_PROMPT_CHOICE_CHOSEN_PROPERTY, ag_gcr_prompt_properties[AG_GCR_PROMPT_CHOICE_CHOSEN_PROPERTY] = g_param_spec_boolean ("choice-chosen", "choice-chosen", "choice-chosen", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), AG_GCR_PROMPT_CHOICE_LABEL_PROPERTY, ag_gcr_prompt_properties[AG_GCR_PROMPT_CHOICE_LABEL_PROPERTY] = g_param_spec_string ("choice-label", "choice-label", "choice-label", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
	g_object_class_install_property (G_OBJECT_CLASS (klass), AG_GCR_PROMPT_CONTINUE_LABEL_PROPERTY, ag_gcr_prompt_properties[AG_GCR_PROMPT_CONTINUE_LABEL_PROPERTY] = g_param_spec_string ("continue-label", "continue-label", "continue-label", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
	g_object_class_install_property (G_OBJECT_CLASS (klass), AG_GCR_PROMPT_DESCRIPTION_PROPERTY, ag_gcr_prompt_properties[AG_GCR_PROMPT_DESCRIPTION_PROPERTY] = g_param_spec_string ("description", "description", "description", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
	g_object_class_install_property (G_OBJECT_CLASS (klass), AG_GCR_PROMPT_MESSAGE_PROPERTY, ag_gcr_prompt_properties[AG_GCR_PROMPT_MESSAGE_PROPERTY] = g_param_spec_string ("message", "message", "message", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
	g_object_class_install_property (G_OBJECT_CLASS (klass), AG_GCR_PROMPT_PASSWORD_NEW_PROPERTY, ag_gcr_prompt_properties[AG_GCR_PROMPT_PASSWORD_NEW_PROPERTY] = g_param_spec_boolean ("password-new", "password-new", "password-new", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), AG_GCR_PROMPT_PASSWORD_STRENGTH_PROPERTY, ag_gcr_prompt_properties[AG_GCR_PROMPT_PASSWORD_STRENGTH_PROPERTY] = g_param_spec_int ("password-strength", "password-strength", "password-strength", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), AG_GCR_PROMPT_TITLE_PROPERTY, ag_gcr_prompt_properties[AG_GCR_PROMPT_TITLE_PROPERTY] = g_param_spec_string ("title", "title", "title", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
	g_object_class_install_property (G_OBJECT_CLASS (klass), AG_GCR_PROMPT_WARNING_PROPERTY, ag_gcr_prompt_properties[AG_GCR_PROMPT_WARNING_PROPERTY] = g_param_spec_string ("warning", "warning", "warning", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
}

static void
ag_gcr_prompt_gcr_prompt_interface_init (GcrPromptInterface * iface,
                                         gpointer iface_data)
{
	ag_gcr_prompt_gcr_prompt_parent_iface = g_type_interface_peek_parent (iface);
	iface->prompt_confirm_async = (void (*) (GcrPrompt*, GCancellable*, GAsyncReadyCallback, gpointer)) ag_gcr_prompt_real_confirm_async;
	iface->prompt_confirm_finish = (GcrPromptReply (*) (GcrPrompt*, GAsyncResult*, GError**)) ag_gcr_prompt_confirm_finish;
	iface->prompt_password_async = (void (*) (GcrPrompt*, GCancellable*, GAsyncReadyCallback, gpointer)) ag_gcr_prompt_real_password_async;
	iface->prompt_password_finish = (const gchar* (*) (GcrPrompt*, GAsyncResult*, GError**)) ag_gcr_prompt_password_finish;
	iface->prompt_close = (void (*) (GcrPrompt*)) ag_gcr_prompt_real_prompt_close;
}

static void
ag_gcr_prompt_instance_init (AgGcrPrompt * self,
                             gpointer klass)
{
	self->priv = ag_gcr_prompt_get_instance_private (self);
	self->priv->user_responded = FALSE;
}

static void
ag_gcr_prompt_finalize (GObject * obj)
{
	AgGcrPrompt * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, AG_TYPE_GCR_PROMPT, AgGcrPrompt);
	_g_free0 (self->priv->_caller_window);
	_g_free0 (self->priv->_cancel_label);
	_g_free0 (self->priv->_choice_label);
	_g_free0 (self->priv->_continue_label);
	_g_free0 (self->priv->_description);
	_g_free0 (self->priv->_message);
	_g_free0 (self->priv->_title);
	_g_free0 (self->priv->_warning);
	_g_object_unref0 (self->priv->confirm_dialog);
	_g_object_unref0 (self->priv->password_dialog);
	_g_free0 (self->priv->responded_password);
	G_OBJECT_CLASS (ag_gcr_prompt_parent_class)->finalize (obj);
}

static GType
ag_gcr_prompt_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (AgGcrPromptClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) ag_gcr_prompt_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AgGcrPrompt), 0, (GInstanceInitFunc) ag_gcr_prompt_instance_init, NULL };
	static const GInterfaceInfo gcr_prompt_info = { (GInterfaceInitFunc) ag_gcr_prompt_gcr_prompt_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	GType ag_gcr_prompt_type_id;
	ag_gcr_prompt_type_id = g_type_register_static (G_TYPE_OBJECT, "AgGcrPrompt", &g_define_type_info, 0);
	g_type_add_interface_static (ag_gcr_prompt_type_id, gcr_prompt_get_type (), &gcr_prompt_info);
	AgGcrPrompt_private_offset = g_type_add_instance_private (ag_gcr_prompt_type_id, sizeof (AgGcrPromptPrivate));
	return ag_gcr_prompt_type_id;
}

GType
ag_gcr_prompt_get_type (void)
{
	static volatile gsize ag_gcr_prompt_type_id__once = 0;
	if (g_once_init_enter (&ag_gcr_prompt_type_id__once)) {
		GType ag_gcr_prompt_type_id;
		ag_gcr_prompt_type_id = ag_gcr_prompt_get_type_once ();
		g_once_init_leave (&ag_gcr_prompt_type_id__once, ag_gcr_prompt_type_id);
	}
	return ag_gcr_prompt_type_id__once;
}

static void
_vala_ag_gcr_prompt_get_property (GObject * object,
                                  guint property_id,
                                  GValue * value,
                                  GParamSpec * pspec)
{
	AgGcrPrompt * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, AG_TYPE_GCR_PROMPT, AgGcrPrompt);
	switch (property_id) {
		case AG_GCR_PROMPT_CALLER_WINDOW_PROPERTY:
		g_value_take_string (value, ag_gcr_prompt_real_get_caller_window ((GcrPrompt*) self));
		break;
		case AG_GCR_PROMPT_CANCEL_LABEL_PROPERTY:
		g_value_take_string (value, ag_gcr_prompt_real_get_cancel_label ((GcrPrompt*) self));
		break;
		case AG_GCR_PROMPT_CHOICE_CHOSEN_PROPERTY:
		g_value_set_boolean (value, ag_gcr_prompt_real_get_choice_chosen ((GcrPrompt*) self));
		break;
		case AG_GCR_PROMPT_CHOICE_LABEL_PROPERTY:
		g_value_take_string (value, ag_gcr_prompt_real_get_choice_label ((GcrPrompt*) self));
		break;
		case AG_GCR_PROMPT_CONTINUE_LABEL_PROPERTY:
		g_value_take_string (value, ag_gcr_prompt_real_get_continue_label ((GcrPrompt*) self));
		break;
		case AG_GCR_PROMPT_DESCRIPTION_PROPERTY:
		g_value_take_string (value, ag_gcr_prompt_real_get_description ((GcrPrompt*) self));
		break;
		case AG_GCR_PROMPT_MESSAGE_PROPERTY:
		g_value_take_string (value, ag_gcr_prompt_real_get_message ((GcrPrompt*) self));
		break;
		case AG_GCR_PROMPT_PASSWORD_NEW_PROPERTY:
		g_value_set_boolean (value, ag_gcr_prompt_real_get_password_new ((GcrPrompt*) self));
		break;
		case AG_GCR_PROMPT_PASSWORD_STRENGTH_PROPERTY:
		g_value_set_int (value, ag_gcr_prompt_real_get_password_strength ((GcrPrompt*) self));
		break;
		case AG_GCR_PROMPT_TITLE_PROPERTY:
		g_value_take_string (value, ag_gcr_prompt_real_get_title ((GcrPrompt*) self));
		break;
		case AG_GCR_PROMPT_WARNING_PROPERTY:
		g_value_take_string (value, ag_gcr_prompt_real_get_warning ((GcrPrompt*) self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_ag_gcr_prompt_set_property (GObject * object,
                                  guint property_id,
                                  const GValue * value,
                                  GParamSpec * pspec)
{
	AgGcrPrompt * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, AG_TYPE_GCR_PROMPT, AgGcrPrompt);
	switch (property_id) {
		case AG_GCR_PROMPT_CALLER_WINDOW_PROPERTY:
		ag_gcr_prompt_real_set_caller_window ((GcrPrompt*) self, g_value_get_string (value));
		break;
		case AG_GCR_PROMPT_CANCEL_LABEL_PROPERTY:
		ag_gcr_prompt_real_set_cancel_label ((GcrPrompt*) self, g_value_get_string (value));
		break;
		case AG_GCR_PROMPT_CHOICE_CHOSEN_PROPERTY:
		ag_gcr_prompt_real_set_choice_chosen ((GcrPrompt*) self, g_value_get_boolean (value));
		break;
		case AG_GCR_PROMPT_CHOICE_LABEL_PROPERTY:
		ag_gcr_prompt_real_set_choice_label ((GcrPrompt*) self, g_value_get_string (value));
		break;
		case AG_GCR_PROMPT_CONTINUE_LABEL_PROPERTY:
		ag_gcr_prompt_real_set_continue_label ((GcrPrompt*) self, g_value_get_string (value));
		break;
		case AG_GCR_PROMPT_DESCRIPTION_PROPERTY:
		ag_gcr_prompt_real_set_description ((GcrPrompt*) self, g_value_get_string (value));
		break;
		case AG_GCR_PROMPT_MESSAGE_PROPERTY:
		ag_gcr_prompt_real_set_message ((GcrPrompt*) self, g_value_get_string (value));
		break;
		case AG_GCR_PROMPT_PASSWORD_NEW_PROPERTY:
		ag_gcr_prompt_real_set_password_new ((GcrPrompt*) self, g_value_get_boolean (value));
		break;
		case AG_GCR_PROMPT_TITLE_PROPERTY:
		ag_gcr_prompt_real_set_title ((GcrPrompt*) self, g_value_get_string (value));
		break;
		case AG_GCR_PROMPT_WARNING_PROPERTY:
		ag_gcr_prompt_real_set_warning ((GcrPrompt*) self, g_value_get_string (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

