
@c %start of fragment

@deftp Class <gnome-password-dialog>
Derives from @code{<gtk-dialog>}.

This class defines the following properties:

@table @code
@item show-username
show-username

@item show-domain
show-domain

@item show-password
show-password

@item show-new-password
show-new-password

@item show-new-password-quality
show-new-password-quality

@item show-userpass-buttons
show-userpass-buttons

@item show-remember
show-remember

@item readonly-username
readonly-username

@item readonly-domain
readonly-domain

@item anonymous
anonymous

@item remember-mode
remember-mode

@item message
message

@item message-markup
message-markup

@item username
username

@item domain
domain

@item password
password

@item new-password
new-password

@end table

@end deftp

@deffn Function gnome-password-dialog-anon-selected  (self@tie{}@code{<gnome-password-dialog>}) @result{}@tie{} (ret@tie{}@code{bool})
@deffnx Method anon-selected
Checks whether anonymous support is set to @code{@code{#t}} and the radio button
for connecting as anonymous user is active.

@table @var
@item password-dialog
A @code{<gnome-password-dialog>}

@item ret
@code{@code{#t}} if anonymous support is set and the radio button is active,
@code{@code{#f}} otherwise.

@end table

@end deffn

@deffn Function gnome-password-dialog-get-domain  (self@tie{}@code{<gnome-password-dialog>}) @result{}@tie{} (ret@tie{}@code{mchars})
@deffnx Method get-domain
Gets the domain name from the password dialog.

@table @var
@item password-dialog
A @code{<gnome-password-dialog>}

@item ret
The domain name, a char*.

@end table

Since 2.4

@end deffn

@deffn Function gnome-password-dialog-get-password  (self@tie{}@code{<gnome-password-dialog>}) @result{}@tie{} (ret@tie{}@code{mchars})
@deffnx Method get-password
Gets the password from the password dialog.

@table @var
@item password-dialog
A @code{<gnome-password-dialog>}

@item ret
The password, a char*.

@end table

Since 2.4

@end deffn

@deffn Function gnome-password-dialog-get-username  (self@tie{}@code{<gnome-password-dialog>}) @result{}@tie{} (ret@tie{}@code{mchars})
@deffnx Method get-username
Gets the username from the password dialog.

@table @var
@item password-dialog
A @code{<gnome-password-dialog>}

@item ret
The username, a char*.

@end table

Since 2.4

@end deffn

@deffn Function gnome-password-dialog-new  (dialog_title@tie{}@code{mchars}) (message@tie{}@code{mchars}) (username@tie{}@code{mchars}) (password@tie{}@code{mchars}) (readonly_username@tie{}@code{bool}) @result{}@tie{} (ret@tie{}@code{<gtk-widget>})
Creates a new password dialog with an optional title, message, username,
password etc. The user will be given the option to save the password for this
session only or store it permanently in her keyring.

@table @var
@item dialog-title
The title of the dialog

@item message
Message text for the dialog

@item username
The username to be used in the dialog

@item password
Password to be used

@item readonly-username
Boolean value that controls whether the user can edit the username or not

@item ret
A new password dialog.

@end table

Since 2.4

@end deffn

@deffn Function gnome-password-dialog-run-and-block  (self@tie{}@code{<gnome-password-dialog>}) @result{}@tie{} (ret@tie{}@code{bool})
@deffnx Method run-and-block
Gets the user input from PasswordDialog.

@table @var
@item password-dialog
A @code{<gnome-password-dialog>}

@item ret
@samp{@code{#t}} if "Connect" button is pressed. @samp{@code{#f}} if "Cancel"
button is pressed.

@end table

Since 2.4

@end deffn

@deffn Function gnome-password-dialog-set-domain  (self@tie{}@code{<gnome-password-dialog>}) (domain@tie{}@code{mchars})
@deffnx Method set-domain
Sets the domain field in the password dialog to @var{domain}.

@table @var
@item password-dialog
A @code{<gnome-password-dialog>}

@item domain
The domain that should be set

@end table

Since 2.4

@end deffn

@deffn Function gnome-password-dialog-set-password  (self@tie{}@code{<gnome-password-dialog>}) (password@tie{}@code{mchars})
@deffnx Method set-password
Sets the password in the password dialog.

@table @var
@item password-dialog
A @code{<gnome-password-dialog>}

@item password
The password that should be set

@end table

Since 2.4

@end deffn

@deffn Function gnome-password-dialog-set-remember  (self@tie{}@code{<gnome-password-dialog>}) (remember@tie{}@code{<gnome-password-dialog-remember>})
@deffnx Method set-remember
Based on the value of @code{<gnome-password-dialog-remember>}, sets the state of
the check buttons to remember password for the session and save password to
keyring .

@table @var
@item password-dialog
A @code{<gnome-password-dialog>}.

@item remember
A @code{<gnome-password-dialog-remember>}.

@end table

Since 2.6

@end deffn

@deffn Function gnome-password-dialog-set-username  (self@tie{}@code{<gnome-password-dialog>}) (username@tie{}@code{mchars})
@deffnx Method set-username
Sets the username in the password dialog.

@table @var
@item password-dialog
A @code{<gnome-password-dialog>}

@item username
The username that should be set

@end table

Since 2.4

@end deffn


@c %end of fragment
