Top | ![]() |
![]() |
![]() |
![]() |
void nma_utils_setup_password_storage (GtkWidget *passwd_entry
,NMSettingSecretFlags initial_flags
,NMSetting *setting
,const char *password_flags_name
,gboolean with_not_required
,gboolean 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.
passwd_entry |
password GtkEntry which the icon is attached to |
|
initial_flags |
initial secret flags to setup password menu from |
|
setting |
NMSetting 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 |
|
NMSettingSecretFlags
nma_utils_menu_to_secret_flags (GtkWidget *passwd_entry
);
Returns secret flags corresponding to the selected password storage menu in the attached icon
void nma_utils_update_password_storage (GtkWidget *passwd_entry
,NMSettingSecretFlags secret_flags
,NMSetting *setting
,const char *password_flags_name
);
Updates secret flags in the password storage popup menu and also
in the setting
(if setting
and password_flags_name
are not NULL).