Package: gtk

Class gtk:file-chooser-widget

Superclasses

Documented Subclasses

None

Direct Slots

search-mode
The search-mode property of type :boolean (Read / Write)
The search mode.
Default value: false
show-time
The show-time property of type :boolean (Read)
Whether to show the time. Since 4.10
Default value: false
subtitle
The subtitle property of type :string (Read)
The subtitle.
Default value: ""

Details

The gtk:file-chooser-widget widget is a widget for choosing files. It exposes the gtk:file-chooser interface, and you should use the methods of this interface to interact with the widget.

CSS nodes

The gtk:file-chooser-widget implementation has a single CSS node with name filechooser.

Warning

The gtk:file-chooser-widget class is deprecated since 4.10. Direct use of the widget is deprecated.

Signal Details

The "desktop-folder" signal
lambda (widget)    :action      
widget
The gtk:file-chooser-widget object which received the signal.
A keybinding signal which gets emitted when the user asks for it. This is used to make the file chooser show the user's Desktop folder in the file list. The default binding for this signal is the Alt+D key.
The "down-folder" signal
lambda (widget)    :action      
widget
The gtk:file-chooser-widget object which received the signal.
A keybinding signal which gets emitted when the user asks for it. This is used to make the file chooser go to a child of the current folder in the file hierarchy. The subfolder that will be used is displayed in the path bar widget of the file chooser. For example, if the path bar is showing "/foo/bar/baz", with bar currently displayed, then this will cause the file chooser to switch to the "baz" subfolder. The default binding for this signal is the Alt+Down key.
The "home-folder" signal
lambda (widget)    :action      
widget
The gtk:file-chooser-widget object which received the signal.
A keybinding signal which gets emitted when the user asks for it. This is used to make the file chooser show the user's home folder in the file list. The default binding for this signal is the Alt+Home key.
The "location-popup" signal
lambda (widget path)    :action      
widget
The gtk:file-chooser-widget object which received the signal.
path
The string that gets put in the text entry for the file name.
A keybinding signal which gets emitted when the user asks for it. This is used to make the file chooser show a "Location" prompt which the user can use to manually type the name of the file he wishes to select. The default bindings for this signal are the Control+L key with a path string of "" (the empty string). It is also bound to / with a path string of "/" (a slash): this lets you type / and immediately type a path name. On Unix systems, this is bound to ~ (tilde) with a path string of "~" itself for access to home directories.
The "location-popup-on-paste" signal
lambda (widget)    :action      
widget
The gtk:file-chooser-widget object which received the signal.
A keybinding signal which gets emitted when the user asks for it. This is used to make the file chooser show a "Location" prompt when the user pastes into a gtk:file-chooser-widget widget. The default binding for this signal is the Control+V key.
The "location-toggle-popup" signal
lambda (widget)    :action      
widget
The gtk:file-chooser-widget object which received the signal.
A keybinding signal which gets emitted when the user asks for it. This is used to toggle the visibility of a "Location" prompt which the user can use to manually type the name of the file he wishes to select. The default binding for this signal is the Control+L key.
The "places-shortcut" signal
lambda (widget)    :action      
widget
The gtk:file-chooser-widget object which received the signal.
A keybinding signal which gets emitted when the user asks for it. This is used to move the focus to the places sidebar. The default binding for this signal is the Alt+P key.
The "quick-bookmark" signal
lambda (widget index)    :action      
widget
The gtk:file-chooser-widget object which received the signal.
index
The integer with the number of the bookmark to switch to.
A keybinding signal which gets emitted when the user asks for it. This is used to make the file chooser switch to the bookmark specified in the index parameter. For example, if you have three bookmarks, you can pass 0, 1, 2 to this signal to switch to each of them, respectively. The default binding for this signal is the Alt+1 key, the Alt+2 key, etc. until the Alt+0 key. Note that in the default binding, that the Alt+1 key is actually defined to switch to the bookmark at index 0, and so on successively. The Alt+0 key is defined to switch to the bookmark at index 10.
The "recent-shortcut" signal
lambda (widget)    :action      
widget
The gtk:file-chooser-widget object which received the signal.
A keybinding signal which gets emitted when the user asks for it. This is used to make the file chooser show the Recent location. The default binding for this signal is the Alt+R.
The "search-shortcut" signal
lambda (widget)    :action      
widget
The gtk:file-chooser-widget object which received the signal.
A keybinding signal which gets emitted when the user asks for it. This is used to make the file chooser show the search entry. The default binding for this signal is the Alt+S key.
The "show-hidden" signal
lambda (widget)    :action      
widget
The gtk:file-chooser-widget object which received the signal.
A keybinding signal which gets emitted when the user asks for it. This is used to make the file chooser display hidden files. The default binding for this signal is the Control+H key.
The "up-folder" signal
lambda (widget)    :action      
widget
The gtk:file-chooser-widget object which received the signal.
A keybinding signal which gets emitted when the user asks for it. This is used to make the file chooser go to the parent of the current folder in the file hierarchy. The default binding for this signal is the Alt+Up key.
 

Returned by

Slot Access Functions

Inherited Slot Access Functions

See also

2023-8-30