gtk4::prelude

Trait AppChooserExt

Source
pub trait AppChooserExt: IsA<AppChooser> + 'static {
    // Provided methods
    fn app_info(&self) -> Option<AppInfo> { ... }
    fn content_type(&self) -> GString { ... }
    fn refresh(&self) { ... }
}
👎Deprecated: Since 4.10
Expand description

Trait containing all AppChooser methods.

§Implementors

AppChooserButton, AppChooserDialog, AppChooserWidget, AppChooser

Provided Methods§

Source

fn app_info(&self) -> Option<AppInfo>

👎Deprecated: Since 4.10

Returns the currently selected application.

§Deprecated since 4.10

This widget will be removed in GTK 5

§Returns

a GAppInfo for the currently selected application

Source

fn content_type(&self) -> GString

👎Deprecated: Since 4.10

Returns the content type for which the AppChooser shows applications.

§Deprecated since 4.10

This widget will be removed in GTK 5

§Returns

the content type of @self. Free with g_free()

Source

fn refresh(&self)

👎Deprecated: Since 4.10

Reloads the list of applications.

§Deprecated since 4.10

This widget will be removed in GTK 5

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§