Adds a secondary icon and creates a popup menu for password entry.
The active menu item is set up according to initial_flags, or from setting/password_flags_name (if they are
not NULL). If the setting/password_flags_name are not NULL, secret flags will be automatically updated in the
setting when menu is changed.
| passwd_entry |
password Entry which the icon is attached to |
| initial_flags |
initial secret flags to setup password menu from |
| setting |
Setting containing the password, or NULL |
| password_flags_name |
name of the secret flags (like psk-flags), or NULL |
| with_not_required |
whether to include "Not required" menu item |
| ask_mode |
true if the entry is shown in ASK mode. That means, while prompting for a password, contrary to being inside the editor mode. If true, the entry should be sensivive on selected "always-ask" icon (this is e.f. for nm-applet asking for password), otherwise not. If false, it shall not be possible to select a different storage, because we only prompt for a password, we cannot change the password location. |