util_password_strength_row_new


Description:


public unowned Widget util_password_strength_row_new (string title, string? unavailable)

The row rating a password as it is typed: a colour-graded meter, and the rating word or libpwquality's own advice as the subtitle.

Built without libpwquality there is nothing to rate with, and the row says so and goes insensitive rather than being left out — someone choosing a password should know it is not being judged, instead of reading a silent absence as approval. What it says is this function's to decide, since the condition is: a caller passes unavailable only when it wants different words for the same thing, as the passphrase prompt does, and one that has nothing of its own to say passes null rather than repeating the sentence.

Parameters:

title

what the row is called

unavailable

what to say when this build cannot rate anything, or null for the standard wording

Returns:

a newly created ActionRow, to be rated with g_paste_gtk_util_password_strength_row_rate ()


Namespace: GPasteGtk
Package: gpaste-gtk4