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

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

#include <granite-7.h>
#include <pantheon-wayland.h>
#include <glib-object.h>
#include <gcr/gcr.h>
#include <gtk/gtk.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <gio/gio.h>
#include <float.h>
#include <math.h>
#include <gdk/gdk.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_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;
typedef struct _AgGcrPasswordDialogPrivate AgGcrPasswordDialogPrivate;
enum  {
	AG_GCR_PASSWORD_DIALOG_0_PROPERTY,
	AG_GCR_PASSWORD_DIALOG_PROMPT_PROPERTY,
	AG_GCR_PASSWORD_DIALOG_PASSWORD_PROPERTY,
	AG_GCR_PASSWORD_DIALOG_NUM_PROPERTIES
};
static GParamSpec* ag_gcr_password_dialog_properties[AG_GCR_PASSWORD_DIALOG_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

struct _AgGcrPasswordDialog {
	GraniteMessageDialog parent_instance;
	AgGcrPasswordDialogPrivate * priv;
};

struct _AgGcrPasswordDialogClass {
	GraniteMessageDialogClass parent_class;
};

struct _AgGcrPasswordDialogPrivate {
	GcrPrompt* _prompt;
	GtkPasswordEntry* password_entry;
};

static gint AgGcrPasswordDialog_private_offset;
static gpointer ag_gcr_password_dialog_parent_class = NULL;
static PantheonWaylandExtendedBehaviorIface * ag_gcr_password_dialog_pantheon_wayland_extended_behavior_parent_iface = NULL;

VALA_EXTERN GType ag_gcr_password_dialog_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (AgGcrPasswordDialog, g_object_unref)
VALA_EXTERN AgGcrPasswordDialog* ag_gcr_password_dialog_new (GcrPrompt* prompt);
VALA_EXTERN AgGcrPasswordDialog* ag_gcr_password_dialog_construct (GType object_type,
                                                       GcrPrompt* prompt);
static GcrPrompt* ag_gcr_password_dialog_get_prompt (AgGcrPasswordDialog* self);
static void ag_gcr_password_dialog_set_prompt (AgGcrPasswordDialog* self,
                                        GcrPrompt* value);
VALA_EXTERN const gchar* ag_gcr_password_dialog_get_password (AgGcrPasswordDialog* self);
static GObject * ag_gcr_password_dialog_constructor (GType type,
                                              guint n_construct_properties,
                                              GObjectConstructParam * construct_properties);
static void _ag_gcr_password_dialog___lambda5_ (AgGcrPasswordDialog* self);
static void __ag_gcr_password_dialog___lambda5__gtk_widget_realize (GtkWidget* _sender,
                                                             gpointer self);
static void ag_gcr_password_dialog_finalize (GObject * obj);
static GType ag_gcr_password_dialog_get_type_once (void);
static void _vala_ag_gcr_password_dialog_get_property (GObject * object,
                                                guint property_id,
                                                GValue * value,
                                                GParamSpec * pspec);
static void _vala_ag_gcr_password_dialog_set_property (GObject * object,
                                                guint property_id,
                                                const GValue * value,
                                                GParamSpec * pspec);

static inline gpointer
ag_gcr_password_dialog_get_instance_private (AgGcrPasswordDialog* self)
{
	return G_STRUCT_MEMBER_P (self, AgGcrPasswordDialog_private_offset);
}

AgGcrPasswordDialog*
ag_gcr_password_dialog_construct (GType object_type,
                                  GcrPrompt* prompt)
{
	AgGcrPasswordDialog * self = NULL;
	g_return_val_if_fail (prompt != NULL, NULL);
	self = (AgGcrPasswordDialog*) g_object_new (object_type, "prompt", prompt, NULL);
	return self;
}

AgGcrPasswordDialog*
ag_gcr_password_dialog_new (GcrPrompt* prompt)
{
	return ag_gcr_password_dialog_construct (AG_TYPE_GCR_PASSWORD_DIALOG, prompt);
}

static GcrPrompt*
ag_gcr_password_dialog_get_prompt (AgGcrPasswordDialog* self)
{
	GcrPrompt* result;
	GcrPrompt* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_prompt;
	result = _tmp0_;
	return result;
}

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

static void
ag_gcr_password_dialog_set_prompt (AgGcrPasswordDialog* self,
                                   GcrPrompt* value)
{
	GcrPrompt* old_value;
	g_return_if_fail (self != NULL);
	old_value = ag_gcr_password_dialog_get_prompt (self);
	if (old_value != value) {
		GcrPrompt* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_prompt);
		self->priv->_prompt = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, ag_gcr_password_dialog_properties[AG_GCR_PASSWORD_DIALOG_PROMPT_PROPERTY]);
	}
}

const gchar*
ag_gcr_password_dialog_get_password (AgGcrPasswordDialog* self)
{
	const gchar* result;
	GtkPasswordEntry* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->password_entry;
	_tmp1_ = gtk_editable_get_text ((GtkEditable*) _tmp0_);
	_tmp2_ = _tmp1_;
	result = _tmp2_;
	return result;
}

static void
_ag_gcr_password_dialog___lambda5_ (AgGcrPasswordDialog* self)
{
	GdkSurface* surface = NULL;
	GdkSurface* _tmp0_;
	GdkSurface* _tmp1_;
	pantheon_wayland_extended_behavior_connect_to_shell ((PantheonWaylandExtendedBehavior*) self);
	pantheon_wayland_extended_behavior_set_keep_above ((PantheonWaylandExtendedBehavior*) self);
	pantheon_wayland_extended_behavior_make_centered ((PantheonWaylandExtendedBehavior*) self);
	pantheon_wayland_extended_behavior_make_modal ((PantheonWaylandExtendedBehavior*) self, TRUE);
	_tmp0_ = gtk_native_get_surface ((GtkNative*) self);
	surface = _tmp0_;
	_tmp1_ = surface;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gdk_toplevel_get_type ())) {
		GdkSurface* _tmp2_;
		_tmp2_ = surface;
		gdk_toplevel_inhibit_system_shortcuts (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gdk_toplevel_get_type (), GdkToplevel), NULL);
	}
}

static void
__ag_gcr_password_dialog___lambda5__gtk_widget_realize (GtkWidget* _sender,
                                                        gpointer self)
{
	_ag_gcr_password_dialog___lambda5_ ((AgGcrPasswordDialog*) self);
}

static GObject *
ag_gcr_password_dialog_constructor (GType type,
                                    guint n_construct_properties,
                                    GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	AgGcrPasswordDialog * self;
	GcrPrompt* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	GcrPrompt* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	GcrPrompt* _tmp8_;
	gchar* _tmp9_;
	gchar* _tmp10_;
	gchar* _tmp11_;
	GThemedIcon* _tmp12_;
	GThemedIcon* _tmp13_;
	GtkPasswordEntry* _tmp14_ = NULL;
	GtkLabel* password_feedback = NULL;
	GcrPrompt* _tmp15_;
	gchar* _tmp16_;
	gchar* _tmp17_;
	gchar* _tmp18_;
	GtkLabel* _tmp19_ = NULL;
	GtkLabel* _tmp20_;
	GtkLabel* _tmp21_;
	GtkRevealer* feedback_revealer = NULL;
	GtkLabel* _tmp22_;
	GtkWidget* _tmp23_;
	GcrPrompt* _tmp24_;
	gchar* _tmp25_;
	gchar* _tmp26_;
	gchar* _tmp27_;
	GtkRevealer* _tmp28_ = NULL;
	GtkRevealer* _tmp29_;
	GraniteBox* credentials_box = NULL;
	GraniteBox* _tmp30_;
	GraniteBox* _tmp31_;
	GtkPasswordEntry* _tmp32_;
	GraniteBox* _tmp33_;
	GtkRevealer* _tmp34_;
	GtkBox* _tmp35_;
	GtkBox* _tmp36_;
	GraniteBox* _tmp37_;
	GcrPrompt* _tmp38_;
	gchar* _tmp39_;
	gchar* _tmp40_;
	gchar* _tmp41_;
	GtkButton* authenticate_button = NULL;
	GcrPrompt* _tmp42_;
	gchar* _tmp43_;
	gchar* _tmp44_;
	gchar* _tmp45_;
	GtkWidget* _tmp46_;
	GtkButton* _tmp47_;
	GtkButton* _tmp48_;
	GtkButton* _tmp49_;
	GtkButton* _tmp50_;
	GtkPasswordEntry* _tmp51_;
	GtkWidget* _tmp52_;
	GtkWidget* _tmp53_;
	parent_class = G_OBJECT_CLASS (ag_gcr_password_dialog_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, AG_TYPE_GCR_PASSWORD_DIALOG, AgGcrPasswordDialog);
	_tmp0_ = self->priv->_prompt;
	_tmp1_ = gcr_prompt_get_title (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = _tmp2_;
	gtk_window_set_title ((GtkWindow*) self, _tmp3_);
	_g_free0 (_tmp3_);
	_tmp4_ = self->priv->_prompt;
	_tmp5_ = gcr_prompt_get_description (_tmp4_);
	_tmp6_ = _tmp5_;
	_tmp7_ = _tmp6_;
	granite_message_dialog_set_primary_text ((GraniteMessageDialog*) self, _tmp7_);
	_g_free0 (_tmp7_);
	_tmp8_ = self->priv->_prompt;
	_tmp9_ = gcr_prompt_get_message (_tmp8_);
	_tmp10_ = _tmp9_;
	_tmp11_ = _tmp10_;
	granite_message_dialog_set_secondary_text ((GraniteMessageDialog*) self, _tmp11_);
	_g_free0 (_tmp11_);
	_tmp12_ = (GThemedIcon*) g_themed_icon_new ("dialog-password");
	_tmp13_ = _tmp12_;
	granite_message_dialog_set_image_icon ((GraniteMessageDialog*) self, (GIcon*) _tmp13_);
	_g_object_unref0 (_tmp13_);
	_tmp14_ = (GtkPasswordEntry*) gtk_password_entry_new ();
	g_object_set (_tmp14_, "activates-default", TRUE, NULL);
	gtk_widget_set_hexpand ((GtkWidget*) _tmp14_, TRUE);
	gtk_password_entry_set_show_peek_icon (_tmp14_, TRUE);
	g_object_ref_sink (_tmp14_);
	_g_object_unref0 (self->priv->password_entry);
	self->priv->password_entry = _tmp14_;
	_tmp15_ = self->priv->_prompt;
	_tmp16_ = gcr_prompt_get_warning (_tmp15_);
	_tmp17_ = _tmp16_;
	_tmp18_ = _tmp17_;
	_tmp19_ = (GtkLabel*) gtk_label_new (_tmp18_);
	gtk_label_set_justify (_tmp19_, GTK_JUSTIFY_RIGHT);
	gtk_label_set_max_width_chars (_tmp19_, 40);
	gtk_label_set_wrap (_tmp19_, TRUE);
	gtk_label_set_xalign (_tmp19_, (gfloat) 1);
	g_object_ref_sink (_tmp19_);
	_tmp20_ = _tmp19_;
	_g_free0 (_tmp18_);
	password_feedback = _tmp20_;
	_tmp21_ = password_feedback;
	gtk_widget_add_css_class ((GtkWidget*) _tmp21_, GRANITE_CSS_CLASS_ERROR);
	_tmp22_ = password_feedback;
	_tmp23_ = _g_object_ref0 ((GtkWidget*) _tmp22_);
	_tmp24_ = self->priv->_prompt;
	_tmp25_ = gcr_prompt_get_warning (_tmp24_);
	_tmp26_ = _tmp25_;
	_tmp27_ = _tmp26_;
	_tmp28_ = (GtkRevealer*) gtk_revealer_new ();
	gtk_revealer_set_child (_tmp28_, _tmp23_);
	_g_object_unref0 (_tmp23_);
	gtk_revealer_set_reveal_child (_tmp28_, _tmp27_ != NULL);
	g_object_ref_sink (_tmp28_);
	_tmp29_ = _tmp28_;
	_g_free0 (_tmp27_);
	feedback_revealer = _tmp29_;
	_tmp30_ = granite_box_new (GTK_ORIENTATION_VERTICAL, GRANITE_BOX_SPACING_HALF);
	g_object_ref_sink (_tmp30_);
	credentials_box = _tmp30_;
	_tmp31_ = credentials_box;
	_tmp32_ = self->priv->password_entry;
	gtk_box_append ((GtkBox*) _tmp31_, (GtkWidget*) _tmp32_);
	_tmp33_ = credentials_box;
	_tmp34_ = feedback_revealer;
	gtk_box_append ((GtkBox*) _tmp33_, (GtkWidget*) _tmp34_);
	_tmp35_ = granite_message_dialog_get_custom_bin ((GraniteMessageDialog*) self);
	_tmp36_ = _tmp35_;
	_tmp37_ = credentials_box;
	gtk_box_append (_tmp36_, (GtkWidget*) _tmp37_);
	_tmp38_ = self->priv->_prompt;
	_tmp39_ = gcr_prompt_get_cancel_label (_tmp38_);
	_tmp40_ = _tmp39_;
	_tmp41_ = _tmp40_;
	granite_dialog_add_button ((GraniteDialog*) self, _tmp41_, (gint) GTK_RESPONSE_CANCEL);
	_g_free0 (_tmp41_);
	_tmp42_ = self->priv->_prompt;
	_tmp43_ = gcr_prompt_get_continue_label (_tmp42_);
	_tmp44_ = _tmp43_;
	_tmp45_ = _tmp44_;
	_tmp46_ = granite_dialog_add_button ((GraniteDialog*) self, _tmp45_, (gint) GTK_RESPONSE_APPLY);
	_tmp47_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_button_get_type (), GtkButton);
	_g_free0 (_tmp45_);
	authenticate_button = _tmp47_;
	_tmp48_ = authenticate_button;
	gtk_widget_set_receives_default ((GtkWidget*) _tmp48_, TRUE);
	_tmp49_ = authenticate_button;
	gtk_widget_add_css_class ((GtkWidget*) _tmp49_, GRANITE_CSS_CLASS_SUGGESTED);
	_tmp50_ = authenticate_button;
	gtk_window_set_default_widget ((GtkWindow*) self, (GtkWidget*) _tmp50_);
	_tmp51_ = self->priv->password_entry;
	g_object_set ((GtkWindow*) self, "focus-widget", (GtkWidget*) _tmp51_, NULL);
	_tmp52_ = gtk_window_get_child ((GtkWindow*) self);
	_tmp53_ = _tmp52_;
	g_signal_connect_object (_tmp53_, "realize", (GCallback) __ag_gcr_password_dialog___lambda5__gtk_widget_realize, self, 0);
	_g_object_unref0 (credentials_box);
	_g_object_unref0 (feedback_revealer);
	_g_object_unref0 (password_feedback);
	return obj;
}

static void
ag_gcr_password_dialog_class_init (AgGcrPasswordDialogClass * klass,
                                   gpointer klass_data)
{
	ag_gcr_password_dialog_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &AgGcrPasswordDialog_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_ag_gcr_password_dialog_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_ag_gcr_password_dialog_set_property;
	G_OBJECT_CLASS (klass)->constructor = ag_gcr_password_dialog_constructor;
	G_OBJECT_CLASS (klass)->finalize = ag_gcr_password_dialog_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), AG_GCR_PASSWORD_DIALOG_PROMPT_PROPERTY, ag_gcr_password_dialog_properties[AG_GCR_PASSWORD_DIALOG_PROMPT_PROPERTY] = g_param_spec_object ("prompt", "prompt", "prompt", gcr_prompt_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
	g_object_class_install_property (G_OBJECT_CLASS (klass), AG_GCR_PASSWORD_DIALOG_PASSWORD_PROPERTY, ag_gcr_password_dialog_properties[AG_GCR_PASSWORD_DIALOG_PASSWORD_PROPERTY] = g_param_spec_string ("password", "password", "password", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
}

static void
ag_gcr_password_dialog_pantheon_wayland_extended_behavior_interface_init (PantheonWaylandExtendedBehaviorIface * iface,
                                                                          gpointer iface_data)
{
	ag_gcr_password_dialog_pantheon_wayland_extended_behavior_parent_iface = g_type_interface_peek_parent (iface);
}

static void
ag_gcr_password_dialog_instance_init (AgGcrPasswordDialog * self,
                                      gpointer klass)
{
	self->priv = ag_gcr_password_dialog_get_instance_private (self);
}

static void
ag_gcr_password_dialog_finalize (GObject * obj)
{
	AgGcrPasswordDialog * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, AG_TYPE_GCR_PASSWORD_DIALOG, AgGcrPasswordDialog);
	_g_object_unref0 (self->priv->_prompt);
	_g_object_unref0 (self->priv->password_entry);
	G_OBJECT_CLASS (ag_gcr_password_dialog_parent_class)->finalize (obj);
}

/**
 * Class used by GcrAgent to ask for credentials.
 * To get credentials, connect to `response` signal.
 * Gtk.ResponseType.APPLY means that continue button was pressed.
 * Everything else should be treated as cancel.
 */
static GType
ag_gcr_password_dialog_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (AgGcrPasswordDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) ag_gcr_password_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AgGcrPasswordDialog), 0, (GInstanceInitFunc) ag_gcr_password_dialog_instance_init, NULL };
	static const GInterfaceInfo pantheon_wayland_extended_behavior_info = { (GInterfaceInitFunc) ag_gcr_password_dialog_pantheon_wayland_extended_behavior_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	GType ag_gcr_password_dialog_type_id;
	ag_gcr_password_dialog_type_id = g_type_register_static (GRANITE_TYPE_MESSAGE_DIALOG, "AgGcrPasswordDialog", &g_define_type_info, 0);
	g_type_add_interface_static (ag_gcr_password_dialog_type_id, PANTHEON_WAYLAND_TYPE_EXTENDED_BEHAVIOR, &pantheon_wayland_extended_behavior_info);
	AgGcrPasswordDialog_private_offset = g_type_add_instance_private (ag_gcr_password_dialog_type_id, sizeof (AgGcrPasswordDialogPrivate));
	return ag_gcr_password_dialog_type_id;
}

GType
ag_gcr_password_dialog_get_type (void)
{
	static volatile gsize ag_gcr_password_dialog_type_id__once = 0;
	if (g_once_init_enter (&ag_gcr_password_dialog_type_id__once)) {
		GType ag_gcr_password_dialog_type_id;
		ag_gcr_password_dialog_type_id = ag_gcr_password_dialog_get_type_once ();
		g_once_init_leave (&ag_gcr_password_dialog_type_id__once, ag_gcr_password_dialog_type_id);
	}
	return ag_gcr_password_dialog_type_id__once;
}

static void
_vala_ag_gcr_password_dialog_get_property (GObject * object,
                                           guint property_id,
                                           GValue * value,
                                           GParamSpec * pspec)
{
	AgGcrPasswordDialog * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, AG_TYPE_GCR_PASSWORD_DIALOG, AgGcrPasswordDialog);
	switch (property_id) {
		case AG_GCR_PASSWORD_DIALOG_PROMPT_PROPERTY:
		g_value_set_object (value, ag_gcr_password_dialog_get_prompt (self));
		break;
		case AG_GCR_PASSWORD_DIALOG_PASSWORD_PROPERTY:
		g_value_set_string (value, ag_gcr_password_dialog_get_password (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_ag_gcr_password_dialog_set_property (GObject * object,
                                           guint property_id,
                                           const GValue * value,
                                           GParamSpec * pspec)
{
	AgGcrPasswordDialog * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, AG_TYPE_GCR_PASSWORD_DIALOG, AgGcrPasswordDialog);
	switch (property_id) {
		case AG_GCR_PASSWORD_DIALOG_PROMPT_PROPERTY:
		ag_gcr_password_dialog_set_prompt (self, g_value_get_object (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

