Function gtk4::show_uri_full

source ·
pub fn show_uri_full<P: FnOnce(Result<(), Error>) + 'static>(
    parent: Option<&impl IsA<Window>>,
    uri: &str,
    timestamp: u32,
    cancellable: Option<&impl IsA<Cancellable>>,
    callback: P
)
👎Deprecated: Since 4.10
Expand description

This function launches the default application for showing a given uri.

The @callback will be called when the launch is completed. It should call gtk_show_uri_full_finish() to obtain the result.

This is the recommended call to be used as it passes information necessary for sandbox helpers to parent their dialogs properly.

§Deprecated since 4.10

Use FileLauncher::launch() or UriLauncher::launch() instead

§parent

parent window

§uri

the uri to show

§timestamp

timestamp from the event that triggered this call, or GDK_CURRENT_TIME

§cancellable

a GCancellable to cancel the launch

§callback

a callback to call when the action is complete