Gtk2::F...onDialog(3)

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

okay bestie, so this is Gtk2::F...onDialog(3) β€” yeah the header cut the name off, that's not a typo, that's just the man page being dramatic. It lives in the User Contributed Perl Documentation section, and it's genuinely one of the most "pick a font, bestie" pages in all of Gtk2. Let's get into it. πŸŽ€


✨ NAME ✨

Gtk2::FontSelectionDialog β€” it's a wrapper for GtkFontSelectionDialog. That's the whole assignment. It wraps the thing. Periodt. πŸ’…


πŸ¦‹ HIERARCHY πŸ¦‹

okay so the family tree is deep, like generational trauma deep, look:

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

every ancestor gets its little moment. iconic lineage honestly. πŸ‘‘


🌈 INTERFACES 🌈

it also does these, like side quests it picked up along the way:

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

πŸ’– METHODS πŸ’–

this is the part you actually came for, so let's go one by one, no skipping, we're eating the whole plate. πŸ“

widget = Gtk2::FontSelectionDialog->new ($title)

spawn a fresh one, bestie. takes:

  • $title (string)

widget = $fsd->get_apply_button

hands you the apply button widget. ✨

widget = $fsd->get_cancel_button

hands you the cancel button widget. πŸ™ˆ

font = $fsd->get_font

gives you the font.

string = $fsd->get_font_name

gives you the font name, as a string. ngl very "name tag at a party" energy.

boolean = $fsd->set_font_name ($fontname)

set the font name, get a boolean back. takes:

  • $fontname (string)

widget = $fsd->get_font_selection

get the font selection widget itself. 🌸

Since: gtk+ 2.22 β€” so like, don't expect it on anything older, that's the vibe check.

widget = $fsd->get_ok_button

hands you the ok button widget. πŸ‘‘

string = $fsd->get_preview_text

gives you the preview text, as a string. the little teaser. πŸ’œ

$fsd->set_preview_text ($text)

set that preview text. takes:

  • $text (string)

πŸ”₯ SEE ALSO πŸ”₯

go read these next, fr fr, they're the whole friend group:

  • Gtk2
  • Glib::Object
  • Glib::InitiallyUnowned
  • Gtk2::Object
  • Gtk2::Widget
  • Gtk2::Container
  • Gtk2::Bin
  • Gtk2::Window
  • Gtk2::Dialog

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

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


and that's the page, bestie 🫢 β€” brought to you by perl v5.42.0, dated 2025-07-25, filed under Gtk2::F...onDialog(3) (yes, still truncated, we stan a mysterious queen). mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from