Gnome2:...dDialog(3)

πŸ“¦
version 1.048 Β· 2 versions
, in fedora 43

πŸ’– Gnome2::PasswordDialog β€” the whole vibe πŸ’–

okay bestie, sit down, hydrate, and let me tell you about Gnome2::PasswordDialog, which lives in the Gnome2:...dDialog(3) page of the User Contributed Perl Documentation. It's a Perl wrapper for GnomePasswordDialog and it's literally the little popup that asks humans for their secrets. πŸŽ€


πŸ¦‹ HIERARCHY πŸ¦‹

so this class did NOT come from nowhere, she has lineage. main character energy, generational:

Glib::Object
+----Glib::InitiallyUnowned
     +----Gtk2::Object
          +----Gtk2::Widget
               +----Gtk2::Container
                    +----Gtk2::Bin
                         +----Gtk2::Window
                              +----Gtk2::Dialog
                                   +----Gnome2::PasswordDialog

she's a Gtk2::Dialog at heart, which is a Gtk2::Window, which is a Gtk2::Bin, which is a Gtk2::Container, which is a Gtk2::Widget, which is a Gtk2::Object, which is a Glib::InitiallyUnowned, which is a Glib::Object. it's giving ✨ancestry.com✨.


🌈 INTERFACES 🌈

the extra hats she wears, no cap:

  • Glib::Object::_Unregistered::AtkImplementorIface
  • Gtk2::Buildable

✨ METHODS ✨

the actual moves, bestie. every single one. πŸ’…

widget = Gnome2::PasswordDialog->new ($dialog_title, $message, $username, $password, $readonly_username)

the constructor, the origin story. she takes all these:

  • $dialog_title (string)
  • $message (string)
  • $username (string)
  • $password (string)
  • $readonly_username (boolean)

boolean = $password_dialog->anon_selected

did they pick the anonymous option? returns a boolean.

Since: libgnomeui 2.8 β€” so she's been on this since 2.8, an icon.

string = $password_dialog->get_domain

gimme the domain string.

Since: libgnomeui 2.6

$password_dialog->set_domain ($domain)

set the domain, obviously.

  • $domain (string)
Since: libgnomeui 2.6

string = $password_dialog->get_password

hand over the password string, bestie.

$password_dialog->set_password ($password)

set the password.

  • $password (string)

$password_dialog->set_readonly_domain ($readonly)

lock the domain field so nobody can touch it.

  • $readonly (boolean)
Since: libgnomeui 2.6

$password_dialog->set_readonly_username ($readonly)

same energy, but for the username field.

  • $readonly (boolean)

passworddialogremember = $password_dialog->get_remember

returns a Gnome2::PasswordDialogRemember β€” yes that's the enum, we get to it, patience pookie. πŸ’–

Since: libgnomeui 2.6

$password_dialog->set_remember ($remember)

set the remember mode.

  • $remember (Gnome2::PasswordDialogRemember)
Since: libgnomeui 2.6

boolean = $password_dialog->run_and_block

runs the dialog and blocks. yes, literally blocks. she takes the whole program hostage until the human answers. πŸ’€

$password_dialog->set_show_domain ($show)

show or hide the domain field.

  • $show (boolean)
Since: libgnomeui 2.6

$password_dialog->set_show_password ($show)

show or hide the password field.

  • $show (boolean)
Since: libgnomeui 2.6

$password_dialog->set_show_remember ($show_remember)

show or hide the remember option.

  • $show_remember (boolean)
Since: libgnomeui 2.6

$password_dialog->set_show_username ($show)

show or hide the username field.

  • $show (boolean)
Since: libgnomeui 2.6

$password_dialog->set_show_userpass_buttons ($show_userpass_buttons)

show or hide the userpass buttons.

  • $show_userpass_buttons (boolean)
Since: libgnomeui 2.8

string = $password_dialog->get_username

gimme the username string.

$password_dialog->set_username ($username)

set the username.

  • $username (string)

πŸ’… PROPERTIES πŸ’…

every property, fully documented, flags and all. don't skip, they're all icons:

  • 'anonymous' (boolean : default false : readable / writable / private / static-nick / static-blurb) β€” anonymous
  • 'domain' (string : default undef : readable / writable / private / static-nick / static-blurb) β€” domain
  • 'message' (string : default undef : readable / writable / private / static-nick / static-blurb) β€” message
  • 'message-markup' (string : default undef : readable / writable / private / static-nick / static-blurb) β€” message-markup
  • 'new-password' (string : default undef : readable / writable / private / static-nick / static-blurb) β€” new-password
  • 'password' (string : default undef : readable / writable / private / static-nick / static-blurb) β€” password
  • 'readonly-domain' (boolean : default false : readable / writable / private / static-nick / static-blurb) β€” readonly-domain
  • 'readonly-username' (boolean : default false : readable / writable / private / static-nick / static-blurb) β€” readonly-username
  • 'remember-mode' (Gnome2::PasswordDialogRemember : default "nothing" : readable / writable / private / static-nick / static-blurb) β€” remember-mode
  • 'show-domain' (boolean : default false : readable / writable / private / static-nick / static-blurb) β€” show-domain
  • 'show-new-password' (boolean : default false : readable / writable / private / static-nick / static-blurb) β€” show-new-password
  • 'show-new-password-quality' (boolean : default false : readable / writable / private / static-nick / static-blurb) β€” show-new-password-quality
  • 'show-password' (boolean : default true : readable / writable / private / static-nick / static-blurb) β€” show-password
  • 'show-remember' (boolean : default false : readable / writable / private / static-nick / static-blurb) β€” show-remember
  • 'show-username' (boolean : default true : readable / writable / private / static-nick / static-blurb) β€” show-username
  • 'show-userpass-buttons' (boolean : default false : readable / writable / private / static-nick / static-blurb) β€” show-userpass-buttons
  • 'username' (string : default undef : readable / writable / private / static-nick / static-blurb) β€” username

🧚 ENUMS AND FLAGS 🧚

enum Gnome2::PasswordDialogRemember

the three moods, bestie:

  • 'nothing' / GNOME_PASSWORD_DIALOG_REMEMBER_NOTHING
  • 'session' / GNOME_PASSWORD_DIALOG_REMEMBER_SESSION
  • 'forever' / GNOME_PASSWORD_DIALOG_REMEMBER_FOREVER

πŸ‘‘ SEE ALSO πŸ‘‘

go read these too, they're all part of the family, iykyk:

Gnome2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Window, Gtk2::Dialog


Copyright (C) 2003-2004 by the gtk2-perl team.

This software is licensed under the LGPL. See Gnome2 for a full notice.


okay that's the whole page, you ate it, no crumbs. πŸ’–βœ¨ this was rendered by perl v5.42.0, dated 2025-07-25, straight from the Gnome2:...dDialog(3) corner of the internet. slay, go build something, mwah 🫢🌸
πŸ“¦ where this page comes from