[]Struct gtk::AppChooserButton

pub struct AppChooserButton(_, _);

The AppChooserButton is a widget that lets the user select an application. It implements the AppChooser interface.

Initially, a AppChooserButton selects the first application in its list, which will either be the most-recently used application or, if AppChooserButton:show-default-item is true, the default application.

The list of applications shown in a AppChooserButton includes the recommended applications for the given content type. When AppChooserButton:show-default-item is set, the default application is also included. To let the user chooser other applications, you can set the AppChooserButton:show-dialog-item property, which allows to open a full AppChooserDialog.

It is possible to add custom items to the list, using AppChooserButtonExt::append_custom_item. These items cause the AppChooserButton::custom-item-activated signal to be emitted when they are selected.

To track changes in the selected application, use the ComboBox::changed signal.

Implements

AppChooserButtonExt, ComboBoxExt, BinExt, ContainerExt, WidgetExt, glib::object::ObjectExt, BuildableExt, CellEditableExt, CellLayoutExt, AppChooserExt, ComboBoxExtManual, WidgetExtManual, BuildableExtManual

Implementations

impl AppChooserButton[src]

pub fn new(content_type: &str) -> AppChooserButton[src]

Creates a new AppChooserButton for applications that can handle content of the given type.

content_type

the content type to show applications for

Returns

a newly created AppChooserButton

Trait Implementations

impl Clone for AppChooserButton

impl Debug for AppChooserButton

impl Display for AppChooserButton[src]

impl Eq for AppChooserButton

impl Hash for AppChooserButton

impl IsA<AppChooser> for AppChooserButton

impl IsA<Bin> for AppChooserButton

impl IsA<Buildable> for AppChooserButton

impl IsA<CellEditable> for AppChooserButton

impl IsA<CellLayout> for AppChooserButton

impl IsA<ComboBox> for AppChooserButton

impl IsA<Container> for AppChooserButton

impl IsA<Widget> for AppChooserButton

impl Ord for AppChooserButton

impl<T: ObjectType> PartialEq<T> for AppChooserButton

impl<T: ObjectType> PartialOrd<T> for AppChooserButton

impl StaticType for AppChooserButton

Auto Trait Implementations

impl RefUnwindSafe for AppChooserButton

impl !Send for AppChooserButton

impl !Sync for AppChooserButton

impl Unpin for AppChooserButton

impl UnwindSafe for AppChooserButton

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 

impl<T> Cast for T where
    T: ObjectType, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType, 

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.