Next: , Previous: GnomeMultiScreen, Up: Top


6 GnomePassword

6.1 Overview

6.2 Usage

— Class: <gnome-password-dialog>

Derives from <gtk-dialog>.

This class defines the following slots:

show-username
show-username
show-domain
show-domain
show-password
show-password
show-new-password
show-new-password
show-new-password-quality
show-new-password-quality
show-userpass-buttons
show-userpass-buttons
show-remember
show-remember
readonly-username
readonly-username
readonly-domain
readonly-domain
anonymous
anonymous
remember-mode
remember-mode
message
message
message-markup
message-markup
username
username
domain
domain
password
password
new-password
new-password
— Function: gnome-password-dialog-anon-selected (self <gnome-password-dialog>) ⇒  (ret bool)
— Method: anon-selected

Checks whether anonymous support is set to #t and the radio button for connecting as anonymous user is active.

password-dialog
A <gnome-password-dialog>
ret
#t if anonymous support is set and the radio button is active, #f otherwise.
— Function: gnome-password-dialog-get-domain (self <gnome-password-dialog>) ⇒  (ret mchars)
— Method: get-domain

Gets the domain name from the password dialog.

password-dialog
A <gnome-password-dialog>
ret
The domain name, a char*.

Since 2.4

— Function: gnome-password-dialog-get-password (self <gnome-password-dialog>) ⇒  (ret mchars)
— Method: get-password

Gets the password from the password dialog.

password-dialog
A <gnome-password-dialog>
ret
The password, a char*.

Since 2.4

— Function: gnome-password-dialog-get-username (self <gnome-password-dialog>) ⇒  (ret mchars)
— Method: get-username

Gets the username from the password dialog.

password-dialog
A <gnome-password-dialog>
ret
The username, a char*.

Since 2.4

— Function: gnome-password-dialog-new (dialog_title mchars) (message mchars) (username mchars) (password mchars) (readonly_username bool) ⇒  (ret <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.

dialog-title
The title of the dialog
message
Message text for the dialog
username
The username to be used in the dialog
password
Password to be used
readonly-username
Boolean value that controls whether the user can edit the username or not
ret
A new password dialog.

Since 2.4

— Function: gnome-password-dialog-run-and-block (self <gnome-password-dialog>) ⇒  (ret bool)
— Method: run-and-block

Gets the user input from PasswordDialog.

password-dialog
A <gnome-password-dialog>
ret
#t’ if "Connect" button is pressed. ‘#f’ if "Cancel" button is pressed.

Since 2.4

— Function: gnome-password-dialog-set-domain (self <gnome-password-dialog>) (domain mchars)
— Method: set-domain

Sets the domain field in the password dialog to domain.

password-dialog
A <gnome-password-dialog>
domain
The domain that should be set

Since 2.4

— Function: gnome-password-dialog-set-password (self <gnome-password-dialog>) (password mchars)
— Method: set-password

Sets the password in the password dialog.

password-dialog
A <gnome-password-dialog>
password
The password that should be set

Since 2.4

— Function: gnome-password-dialog-set-remember (self <gnome-password-dialog>) (remember <gnome-password-dialog-remember>)
— Method: set-remember

Based on the value of <gnome-password-dialog-remember>, sets the state of the check buttons to remember password for the session and save password to keyring .

password-dialog
A <gnome-password-dialog>.
remember
A <gnome-password-dialog-remember>.

Since 2.6

— Function: gnome-password-dialog-set-username (self <gnome-password-dialog>) (username mchars)
— Method: set-username

Sets the username in the password dialog.

password-dialog
A <gnome-password-dialog>
username
The username that should be set

Since 2.4