Skip to main content

AppChooserExt

Trait AppChooserExt 

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

Trait containing all AppChooser methods.

§Implementors

AppChooserButton, AppChooserDialog, AppChooserWidget, AppChooser

Provided Methods§

Source

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

Returns the currently selected application.

§Returns

a gio::AppInfo for the currently selected application, or None if none is selected. Free with g_object_unref()

Source

fn content_type(&self) -> Option<String>

Returns the current value of the content-type property.

§Returns

the content type of self. Free with g_free()

Source

fn refresh(&self)

Reloads the list of applications.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§