[]Struct gtk::RecentChooserMenu

pub struct RecentChooserMenu(_, _);

RecentChooserMenu is a widget suitable for displaying recently used files inside a menu. It can be used to set a sub-menu of a MenuItem using GtkMenuItemExt::set_submenu, or as the menu of a MenuToolButton.

Note that RecentChooserMenu does not have any methods of its own. Instead, you should use the functions that work on a RecentChooser.

Note also that RecentChooserMenu does not support multiple filters, as it has no way to let the user choose between them as the RecentChooserWidget and RecentChooserDialog widgets do. Thus using RecentChooser::add_filter on a RecentChooserMenu widget will yield the same effects as using RecentChooser::set_filter, replacing any currently set filter with the supplied filter; RecentChooser::remove_filter will remove any currently set RecentFilter object and will unset the current filter; RecentChooser::list_filters will return a list containing a single RecentFilter object.

Recently used files are supported since GTK+ 2.10.

Implements

RecentChooserMenuExt, GtkMenuExt, MenuShellExt, ContainerExt, WidgetExt, glib::object::ObjectExt, BuildableExt, RecentChooserExt, GtkMenuExtManual, WidgetExtManual, BuildableExtManual

Implementations

impl RecentChooserMenu[src]

pub fn new() -> RecentChooserMenu[src]

Creates a new RecentChooserMenu widget.

This kind of widget shows the list of recently used resources as a menu, each item as a menu item. Each item inside the menu might have an icon, representing its MIME type, and a number, for mnemonic access.

This widget implements the RecentChooser interface.

This widget creates its own RecentManager object. See the RecentChooserMenu::new_for_manager function to know how to create a RecentChooserMenu widget bound to another RecentManager object.

Returns

a new RecentChooserMenu

pub fn new_for_manager<P: IsA<RecentManager>>(manager: &P) -> RecentChooserMenu[src]

Creates a new RecentChooserMenu widget using manager as the underlying recently used resources manager.

This is useful if you have implemented your own recent manager, or if you have a customized instance of a RecentManager object or if you wish to share a common RecentManager object among multiple RecentChooser widgets.

manager

a RecentManager

Returns

a new RecentChooserMenu, bound to manager.

Trait Implementations

impl Clone for RecentChooserMenu

impl Debug for RecentChooserMenu

impl Default for RecentChooserMenu[src]

impl Display for RecentChooserMenu[src]

impl Eq for RecentChooserMenu

impl Hash for RecentChooserMenu

impl IsA<Buildable> for RecentChooserMenu

impl IsA<Container> for RecentChooserMenu

impl IsA<Menu> for RecentChooserMenu

impl IsA<MenuShell> for RecentChooserMenu

impl IsA<RecentChooser> for RecentChooserMenu

impl IsA<Widget> for RecentChooserMenu

impl Ord for RecentChooserMenu

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

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

impl StaticType for RecentChooserMenu

Auto Trait Implementations

impl RefUnwindSafe for RecentChooserMenu

impl !Send for RecentChooserMenu

impl !Sync for RecentChooserMenu

impl Unpin for RecentChooserMenu

impl UnwindSafe for RecentChooserMenu

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.