Gtk2::F...erDialog(3)

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

✨ 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::Window or undef) β€” 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::Window or undef)
  • $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:

  • 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 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