open_multiple_text_files


Description:

[ Version ( since = "4.18" ) ]
public async ListModel? open_multiple_text_files (Window? parent, Cancellable? cancellable, out unowned string encoding) throws Error

Presents a file chooser dialog to the user.

The file chooser dialog will be set up to select multiple files.

The file chooser dialog will initially be opened in the directory [property@Gtk.FileDialog:initial-folder].

In contrast to [method@Gtk.FileDialog.open], this function lets the user select the text encoding for the files, if possible.

The callback will be called when the dialog is dismissed.

Parameters:

this

a file dialog

parent

the parent window

cancellable

a cancellable to cancel the operation

callback

a callback to call when the operation is complete

user_data

data to pass to callback