Gtk2::F...erDialog(3)
β¨ Gtk2::FileChooserDialog β the vibe β¨
okay bestie so like, welcome to the Gtk2::FileChooserDialog page π this is a wrapper for GtkFileChooserDialog, and yes it's from the User Contributed Perl Documentation corner of the world. it's giving "i just want to pick a file, why is there a whole family tree". and honestly? same. let's go π«Ά
πΈ HIERARCHY πΈ
the ancestry. the bloodline. the way this thing is so deep in the family tree, iykyk π
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Bin
+----Gtk2::Window
+----Gtk2::Dialog
+----Gtk2::FileChooserDialog
like. it inherits from everything. main character energy fr fr π
π¦ INTERFACES π¦
these are the interfaces it implements, no cap:
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
Gtk2::FileChooser
π METHODS π
widget = Gtk2::FileChooserDialog->new ($title, $parent, $action, ...)
making a whole new dialog, slay β¨ here's what you're feeding it:
$title(string) β the name it wears up top$parent(Gtk2::Windoworundef) β its parent window, or literally nothing, your call$action(Gtk2::FileChooserAction) β what kind of choosing we're doing here...(list) β a list of button-text => response-id pairs, aka the buttons you want on it
widget = Gtk2::FileChooserDialog->new_with_backend ($title, $parent, $action, $backend, ...)
same energy as above but with a backend twist π₯
$title(string)$parent(Gtk2::Windoworundef)$action(Gtk2::FileChooserAction)...(list) list of button-text => response-id pairs$backend(string)
π ENUMS AND FLAGS π
enum Gtk2::FileChooserAction
the four moods of this dialog, periodt:
'open'/GTK_FILE_CHOOSER_ACTION_OPEN'save'/GTK_FILE_CHOOSER_ACTION_SAVE'select-folder'/GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER'create-folder'/GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER
π SEE ALSO π
go read these too, they're the 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 whole page bestie, no gatekeeping π
mwah β this was perl v5.42.0, dated 2025-07-25, and it lives under the name Gtk2::F...erDialog(3). byeee πβ¨
π¦ 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