|
| RecentFilter (RecentFilter&& src) noexcept |
|
RecentFilter& | operator= (RecentFilter&& src) noexcept |
|
| ~RecentFilter () noexceptoverride |
|
GtkRecentFilter* | gobj () |
| Provides access to the underlying C GObject. More...
|
|
const GtkRecentFilter* | gobj () const |
| Provides access to the underlying C GObject. More...
|
|
GtkRecentFilter* | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
|
|
void | set_name (const Glib::ustring& name) |
| Sets the human-readable name of the filter; this is the string that will be displayed in the recently used resources selector user interface if there is a selectable list of filters. More...
|
|
Glib::ustring | get_name () const |
| Gets the human-readable name for the filter. More...
|
|
void | add_mime_type (const Glib::ustring& mime_type) |
| Adds a rule that allows resources based on their registered MIME type. More...
|
|
void | add_pattern (const Glib::ustring& pattern) |
| Adds a rule that allows resources based on a pattern matching their display name. More...
|
|
void | add_pixbuf_formats () |
| Adds a rule allowing image files in the formats supported by GdkPixbuf. More...
|
|
void | add_application (const Glib::ustring& application) |
| Adds a rule that allows resources based on the name of the application that has registered them. More...
|
|
void | add_group (const Glib::ustring& group) |
| Adds a rule that allows resources based on the name of the group to which they belong. More...
|
|
void | add_age (int days) |
| Adds a rule that allows resources based on their age - that is, the number of days elapsed since they were last modified. More...
|
|
void | add_custom (RecentFilterFlags needed, const SlotCustom& slot) |
|
RecentFilterFlags | get_needed () const |
| Gets the fields that need to be filled in for the Gtk::RecentFilterInfo passed to filter() More...
|
|
| Object (const Object &)=delete |
|
Object & | operator= (const Object &)=delete |
|
| Object (Object &&src) noexcept |
|
Object & | operator= (Object &&src) noexcept |
|
void * | get_data (const QueryQuark &key) |
|
void | set_data (const Quark &key, void *data) |
|
void | set_data (const Quark &key, void *data, DestroyNotify notify) |
|
void | remove_data (const QueryQuark &quark) |
|
void * | steal_data (const QueryQuark &quark) |
|
Glib::RefPtr< Glib::Object > | wrap (GObject *object, bool take_copy=false) |
|
| ObjectBase (const ObjectBase &)=delete |
|
ObjectBase & | operator= (const ObjectBase &)=delete |
|
void | set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value) |
|
void | get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const |
|
void | set_property (const Glib::ustring &property_name, const PropertyType &value) |
|
void | get_property (const Glib::ustring &property_name, PropertyType &value) const |
|
void | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void > &slot) |
|
void | connect_property_changed (const Glib::ustring &property_name, sigc::slot< void > &&slot) |
|
sigc::connection | connect_property_changed_with_return (const Glib::ustring &property_name, const sigc::slot< void > &slot) |
|
sigc::connection | connect_property_changed_with_return (const Glib::ustring &property_name, sigc::slot< void > &&slot) |
|
void | freeze_notify () |
|
void | thaw_notify () |
|
virtual void | reference () const |
|
virtual void | unreference () const |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
GObject * | gobj_copy () const |
|
| trackable () noexcept |
|
| trackable (const trackable &src) noexcept |
|
| trackable (trackable &&src) |
|
| ~trackable () |
|
void | add_destroy_notify_callback (void *data, func_destroy_notify func) const |
|
void | notify_callbacks () |
|
trackable & | operator= (const trackable &src) |
|
trackable & | operator= (trackable &&src) |
|
void | remove_destroy_notify_callback (void *data) const |
|
RecentFilter can be used to restrict the files being shown in a RecentChooser.
Files can be filtered based on their name (with add_pattern()), on their mime type (with add_mime_type()), on the application that has registered them (with add_application()), or by a custom filter function (with add_custom()).
Filtering by mime type handles aliasing and subclassing of mime types; e.g. a filter for text/plain also matches a file with mime type application/rtf, since application/rtf is a subclass of text/plain. Note that RecentFilter allows wildcards for the subtype of a mime type, so you can e.g. filter for image/*.
Normally, filters are used by adding them to a RecentChooser, see RecentChooser::add_filter(), but it is also possible to manually use a filter on a file with filter().
- Since gtkmm 2.10: