pub trait FileChooserExtManual: Sealed + IsA<FileChooser> + 'static {
    // Provided methods
    fn add_choice(
        &self,
        id: impl IntoGStr,
        label: impl IntoGStr,
        options: &[(&str, &str)]
    ) { ... }
    fn set_current_folder(
        &self,
        file: Option<&impl IsA<File>>
    ) -> Result<bool, Error> { ... }
}
👎Deprecated: Since 4.10
Expand description

Trait containing manually implemented methods of FileChooser.

Provided Methods§

source

fn add_choice( &self, id: impl IntoGStr, label: impl IntoGStr, options: &[(&str, &str)] )

👎Deprecated: Since 4.10

Adds a ‘choice’ to the file chooser.

This is typically implemented as a combobox or, for boolean choices, as a checkbutton. You can select a value using FileChooserExt::set_choice() before the dialog is shown, and you can obtain the user-selected value in the response signal handler using FileChooserExt::choice().

Deprecated since 4.10

Use FileDialog instead

id

id for the added choice

label

user-visible label for the added choice

options

ids for the options of the choice, or None for a boolean choice

option_labels

user-visible labels for the options, must be the same length as @options

source

fn set_current_folder( &self, file: Option<&impl IsA<File>> ) -> Result<bool, Error>

👎Deprecated: Since 4.10

Sets the current folder for @self from a GFile.

Deprecated since 4.10

Use FileDialog instead

file

the GFile for the new folder

Returns

true if the folder could be changed successfully, false otherwise.

Implementors§