Next: GtkRecentChooserDialog, Previous: GtkRecentManager, Up: Top
Interface implemented by GtkRecentChooserWidget, GtkRecentChooserMenu and GtkRecentChooserDialog
<gtk-recent-chooser> is an interface that can be implemented by widgets
displaying the list of recently used files. In GTK+, the main objects that
implement this interface are <gtk-recent-chooser-widget>,
<gtk-recent-chooser-dialog> and <gtk-recent-chooser-menu>.
Recently used files are supported since GTK+ 2.10.
Derives from
<ginterface>.This class defines the following slots:
recent-manager- The RecentManager object to use
show-private- Whether the private items should be displayed
show-not-found- Whether the items pointing to unavailable resources should be displayed
show-tips- Whether there should be a tooltip on the item
show-icons- Whether there should be an icon near the item
sort-type- The sorting order of the items displayed
select-multiple- Whether to allow multiple items to be selected
filter- The current filter for selecting which resources are displayed
limit- The maximum number of items to be displayed
local-only- Whether the selected resource(s) should be limited to local file: URIs
This signal is emitted when there is a change in the set of selected recently used resources. This can happen when a user modifies the selection with the mouse or the keyboard, or when explicitely calling functions to change the selection.
Since 2.10
This signal is emitted when the user "activates" a recent item in the recent chooser. This can happen by double-clicking on an item in the recently used resources list, or by pressing
Since 2.10
<gtk-recent-chooser>) (show_private bool)Whether to show recently used resources marked registered as private.
- chooser
- a
<gtk-recent-chooser>- show-private
- ‘
#t’ to show private items, ‘#f’ otherwiseSince 2.10
<gtk-recent-chooser>) ⇒ (ret bool)Returns whether chooser should display recently used resources registered as private.
- chooser
- a
<gtk-recent-chooser>- ret
- ‘
#t’ if the recent chooser should show private items, ‘#f’ otherwise.Since 2.10
<gtk-recent-chooser>) (show_icons bool)Sets whether chooser should show an icon near the resource when displaying it.
- chooser
- a
<gtk-recent-chooser>- show-icons
- whether to show an icon near the resource
Since 2.10
<gtk-recent-chooser>) ⇒ (ret bool)Retrieves whether chooser should show an icon near the resource.
- chooser
- a
<gtk-recent-chooser>- ret
- ‘
#t’ if the icons should be displayed, ‘#f’ otherwise.Since 2.10
<gtk-recent-chooser>) (local_only bool)Sets whether only local resources, that is resources using the file:// URI scheme, should be shown in the recently used resources selector. If local-only is ‘
#t’ (the default) then the shown resources are guaranteed to be accessible through the operating system native file system.
- chooser
- a
<gtk-recent-chooser>- local-only
- ‘
#t’ if only local files can be shownSince 2.10
<gtk-recent-chooser>) ⇒ (ret bool)Gets whether only local resources should be shown in the recently used resources selector. See
gtk-recent-chooser-set-local-only
- chooser
- a
<gtk-recent-chooser>- ret
- ‘
#t’ if only local resources should be shown.Since 2.10
<gtk-recent-chooser>) (limit int)Sets the number of items that should be returned by
gtk-recent-chooser-get-itemsandgtk-recent-chooser-get-uris.
- chooser
- a
<gtk-recent-chooser>- limit
- a positive integer, or -1 for all items
Since 2.10
<gtk-recent-chooser>) ⇒ (ret int)Gets the number of items returned by
gtk-recent-chooser-get-itemsandgtk-recent-chooser-get-uris.
- chooser
- a
<gtk-recent-chooser>- ret
- A positive integer, or -1 meaning that all items are returned.
Since 2.10
<gtk-recent-chooser>) (show_tips bool)Sets whether to show a tooltips on the widget.
- chooser
- a
<gtk-recent-chooser>- show-tips
- ‘
#t’ if tooltips should be shownSince 2.10
<gtk-recent-chooser>) ⇒ (ret bool)Gets whether chooser should display tooltips.
- chooser
- a
<gtk-recent-chooser>- ret
- ‘
#t’ if the recent chooser should show tooltips, ‘#f’ otherwise.Since 2.10
<gtk-recent-chooser>) (show_numbers bool)Whether to show recently used resources prepended by a unique number.
Do not use this function: use
gtk-recent-chooser-menu-set-show-numbersinstead.
- chooser
- a
<gtk-recent-chooser>- show-numbers
- ‘
#t’ to show numbers, ‘#f’ otherwiseSince 2.10
<gtk-recent-chooser>) ⇒ (ret bool)Returns whether chooser should display recently used resources prepended by a unique number.
Do not use this function: use
gtk-recent-chooser-menu-get-show-numbersinstead.
- chooser
- a
<gtk-recent-chooser>- ret
- ‘
#t’ if the recent chooser should show display numbers, ‘#f’ otherwise.Since 2.10
<gtk-recent-chooser>) (sort_type <gtk-recent-sort-type>)Changes the sorting order of the recently used resources list displayed by chooser.
- chooser
- a
<gtk-recent-chooser>- sort-type
- sort order that the chooser should use
Since 2.10
<gtk-recent-chooser>) ⇒ (ret <gtk-recent-sort-type>)Gets the value set by
gtk-recent-chooser-set-sort-type.
- chooser
- a
<gtk-recent-chooser>- ret
- the sorting order of the chooser.
Since 2.10
<gtk-recent-chooser>) (uri mchars) ⇒ (ret bool)Sets uri as the current URI for chooser.
- chooser
- a
<gtk-recent-chooser>- uri
- a URI
- error
- return location for a
<g-error>, or ‘#f’- ret
- ‘
#t’ if the URI was found.Since 2.10
<gtk-recent-chooser>) ⇒ (ret mchars)Gets the URI currently selected by chooser.
- chooser
- a
<gtk-recent-chooser>- ret
- a newly allocated string holding a URI.
Since 2.10
<gtk-recent-chooser>) ⇒ (ret <gtk-recent-info>)Gets the
<gtk-recent-info>currently selected by chooser.
- chooser
- a
<gtk-recent-chooser>- ret
- a
<gtk-recent-info>. Usegtk-recent-info-unrefwhen when you have finished using it.Since 2.10
<gtk-recent-chooser>) (uri mchars) ⇒ (ret bool)Selects uri inside chooser.
- chooser
- a
<gtk-recent-chooser>- uri
- a URI
- error
- return location for a
<g-error>, or ‘#f’- ret
- ‘
#t’ if uri was found.Since 2.10
<gtk-recent-chooser>) (uri mchars)Unselects uri inside chooser.
- chooser
- a
<gtk-recent-chooser>- uri
- a URI
Since 2.10
<gtk-recent-chooser>)Selects all the items inside chooser, if the chooser supports multiple selection.
- chooser
- a
<gtk-recent-chooser>Since 2.10
<gtk-recent-chooser>)Unselects all the items inside chooser.
- chooser
- a
<gtk-recent-chooser>Since 2.10
<gtk-recent-chooser>) ⇒ (ret glist-of)Gets the list of recently used resources in form of
<gtk-recent-info>objects.The return value of this function is affected by the "sort-type" and "limit" properties of chooser.
- chooser
- a
<gtk-recent-chooser>- ret
- A newly allocated list of
<gtk-recent-info>objects. You should usegtk-recent-info-unrefon every item of the list, and then free the list itself usingg-list-free.Since 2.10
<gtk-recent-chooser>) (filter <gtk-recent-filter>)Adds filter to the list of
<gtk-recent-filter>objects held by chooser.If no previous filter objects were defined, this function will call
gtk-recent-chooser-set-filter.
- chooser
- a
<gtk-recent-chooser>- filter
- a
<gtk-recent-filter>Since 2.10
<gtk-recent-chooser>) (filter <gtk-recent-filter>)Removes filter from the list of
<gtk-recent-filter>objects held by chooser.
- chooser
- a
<gtk-recent-chooser>- filter
- a
<gtk-recent-filter>Since 2.10
<gtk-recent-chooser>) ⇒ (ret gslist-of)Gets the
<gtk-recent-filter>objects held by chooser.
- chooser
- a
<gtk-recent-chooser>- ret
- A singly linked list of
<gtk-recent-filter>objects. You should just free the returned list usingg-slist-free.Since 2.10
<gtk-recent-chooser>) (filter <gtk-recent-filter>)Sets filter as the current
<gtk-recent-filter>object used by chooser to affect the displayed recently used resources.
- chooser
- a
<gtk-recent-chooser>- filter
- a
<gtk-recent-filter>Since 2.10
<gtk-recent-chooser>) ⇒ (ret <gtk-recent-filter>)Gets the
<gtk-recent-filter>object currently used by chooser to affect the display of the recently used resources.
- chooser
- a
<gtk-recent-chooser>- ret
- a
<gtk-recent-filter>object.Since 2.10