1Gtk2::FileChooserButtonU(s3e)r Contributed Perl DocumentaGttiko2n::FileChooserButton(3)
2
3
4

NAME

6       Gtk2::FileChooserButton - wrapper for GtkFileChooserButton
7

HIERARCHY

9         Glib::Object
10         +----Glib::InitiallyUnowned
11              +----Gtk2::Object
12                   +----Gtk2::Widget
13                        +----Gtk2::Container
14                             +----Gtk2::Box
15                                  +----Gtk2::HBox
16                                       +----Gtk2::FileChooserButton
17

INTERFACES

19         Glib::Object::_Unregistered::AtkImplementorIface
20         Gtk2::Buildable
21         Gtk2::Orientable
22         Gtk2::FileChooser
23

METHODS

25   widget = Gtk2::FileChooserButton->new ($title, $action)
26       •   $title (string)
27
28       •   $action (Gtk2::FileChooserAction)
29
30   widget = Gtk2::FileChooserButton->new_with_backend ($title, $action,
31       $backend)
32       •   $title (string)
33
34       •   $action (Gtk2::FileChooserAction)
35
36       •   $backend (string)
37
38   widget = Gtk2::FileChooserButton->new_with_dialog ($dialog)
39       •   $dialog (Gtk2::Widget)
40
41   boolean = $button->get_focus_on_click
42       Since: gtk+ 2.10
43
44   $button->set_focus_on_click ($focus_on_click)
45       •   $focus_on_click (boolean)
46
47       Since: gtk+ 2.10
48
49   string = $button->get_title
50   $button->set_title ($title)
51       •   $title (string)
52
53   integer = $button->get_width_chars
54   $button->set_width_chars ($n_chars)
55       •   $n_chars (integer)
56

PROPERTIES

58       'dialog' (Gtk2::FileChooser : default undef : writable / construct-only
59       / private / static-nick / static-blurb)
60           The file chooser dialog to use.
61
62       'focus-on-click' (boolean : default true : readable / writable /
63       private / static-nick / static-blurb)
64           Whether the button grabs focus when it is clicked with the mouse
65
66       'title' (string : default "Select a File" : readable / writable /
67       private / static-nick / static-blurb)
68           The title of the file chooser dialog.
69
70       'width-chars' (integer : default -1 : readable / writable / private /
71       static-nick / static-blurb)
72           The desired width of the button widget, in characters.
73

SIGNALS

75       file-set (Gtk2::FileChooserButton)
76

ENUMS AND FLAGS

78   enum Gtk2::FileChooserAction
79       •   'open' / 'GTK_FILE_CHOOSER_ACTION_OPEN'
80
81       •   'save' / 'GTK_FILE_CHOOSER_ACTION_SAVE'
82
83       •   'select-folder' / 'GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER'
84
85       •   'create-folder' / 'GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER'
86

SEE ALSO

88       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
89       Gtk2::Container, Gtk2::Box, Gtk2::HBox
90
92       Copyright (C) 2003-2011 by the gtk2-perl team.
93
94       This software is licensed under the LGPL.  See Gtk2 for a full notice.
95
96
97
98perl v5.34.0                      2022-01-21        Gtk2::FileChooserButton(3)
Impressum