Gtk2::FileChooserButton(3) User Contributed Perl Documentation Gtk2::FileChooserButton(3)

Gtk2::FileChooserButton - wrapper for GtkFileChooserButton

Glib::Object
+----Glib::InitiallyUnowned
     +----Gtk2::Object
          +----Gtk2::Widget
               +----Gtk2::Container
                    +----Gtk2::Box
                         +----Gtk2::HBox
                              +----Gtk2::FileChooserButton

Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
Gtk2::Orientable
Gtk2::FileChooser

widget = Gtk2::FileChooserButton->new ($title, $action)

  • $title (string)
  • $action (Gtk2::FileChooserAction)

widget = Gtk2::FileChooserButton->new_with_backend ($title, $action, $backend)

  • $title (string)
  • $action (Gtk2::FileChooserAction)
  • $backend (string)

widget = Gtk2::FileChooserButton->new_with_dialog ($dialog)

$dialog (Gtk2::Widget)

Since: gtk+ 2.10

$button->set_focus_on_click ($focus_on_click)

$focus_on_click (boolean)

Since: gtk+ 2.10

$button->set_title ($title)

$title (string)

$button->set_width_chars ($n_chars)

$n_chars (integer)

'dialog' (Gtk2::FileChooser : default undef : writable / construct-only / private / static-nick / static-blurb)
The file chooser dialog to use.
'focus-on-click' (boolean : default true : readable / writable / private / static-nick / static-blurb)
Whether the button grabs focus when it is clicked with the mouse
'title' (string : default "Select a File" : readable / writable / private / static-nick / static-blurb)
The title of the file chooser dialog.
'width-chars' (integer : default -1 : readable / writable / private / static-nick / static-blurb)
The desired width of the button widget, in characters.

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

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Box, Gtk2::HBox

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

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

2022-05-29 perl v5.36.0