Gtk2::F...onDialog(3)
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::AtkImplementorIfaceGtk2::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:
Gtk2Glib::ObjectGlib::InitiallyUnownedGtk2::ObjectGtk2::WidgetGtk2::ContainerGtk2::BinGtk2::WindowGtk2::Dialog
π COPYRIGHT π
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
- fedora 43: perl-Gtk2 1.24993-23.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms