utils_setup_password_storage


Description:


public void utils_setup_password_storage (Widget passwd_entry, SettingSecretFlags initial_flags, Setting setting, string password_flags_name, bool with_not_required, bool ask_mode)

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.

Parameters:

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.


Namespace: NMA
Package: libnma-gtk4