RecentChooserIF

#GtkRecentChooser 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 #GtkRecentChooserWidget, #GtkRecentChooserDialog and #GtkRecentChooserMenu.

Recently used files are supported since GTK+ 2.10.

Members

Functions

addFilter
void addFilter(RecentFilter filter)

Adds @filter to the list of #GtkRecentFilter objects held by @chooser.

addOnItemActivated
gulong addOnItemActivated(void delegate(RecentChooserIF) dlg, ConnectFlags connectFlags)

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 Enter.

addOnSelectionChanged
gulong addOnSelectionChanged(void delegate(RecentChooserIF) dlg, ConnectFlags connectFlags)

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 explicitly calling functions to change the selection.

getCurrentItem
RecentInfo getCurrentItem()

Gets the #GtkRecentInfo currently selected by @chooser.

getCurrentUri
string getCurrentUri()

Gets the URI currently selected by @chooser.

getFilter
RecentFilter getFilter()

Gets the #GtkRecentFilter object currently used by @chooser to affect the display of the recently used resources.

getItems
ListG getItems()

Gets the list of recently used resources in form of #GtkRecentInfo objects.

getLimit
int getLimit()

Gets the number of items returned by gtk_recent_chooser_get_items() and gtk_recent_chooser_get_uris().

getLocalOnly
bool getLocalOnly()

Gets whether only local resources should be shown in the recently used resources selector. See gtk_recent_chooser_set_local_only()

getRecentChooserStruct
GtkRecentChooser* getRecentChooserStruct(bool transferOwnership)

Get the main Gtk struct

getSelectMultiple
bool getSelectMultiple()

Gets whether @chooser can select multiple items.

getShowIcons
bool getShowIcons()

Retrieves whether @chooser should show an icon near the resource.

getShowNotFound
bool getShowNotFound()

Retrieves whether @chooser should show the recently used resources that were not found.

getShowPrivate
bool getShowPrivate()

Returns whether @chooser should display recently used resources registered as private.

getShowTips
bool getShowTips()

Gets whether @chooser should display tooltips containing the full path of a recently user resource.

getSortType
GtkRecentSortType getSortType()

Gets the value set by gtk_recent_chooser_set_sort_type().

getStruct
void* getStruct()

the main Gtk struct as a void*

getUris
string[] getUris()

Gets the URI of the recently used resources.

listFilters
ListSG listFilters()

Gets the #GtkRecentFilter objects held by @chooser.

removeFilter
void removeFilter(RecentFilter filter)

Removes @filter from the list of #GtkRecentFilter objects held by @chooser.

selectAll
void selectAll()

Selects all the items inside @chooser, if the @chooser supports multiple selection.

selectUri
bool selectUri(string uri)

Selects @uri inside @chooser.

setCurrentUri
bool setCurrentUri(string uri)

Sets @uri as the current URI for @chooser.

setFilter
void setFilter(RecentFilter filter)

Sets @filter as the current #GtkRecentFilter object used by @chooser to affect the displayed recently used resources.

setLimit
void setLimit(int limit)

Sets the number of items that should be returned by gtk_recent_chooser_get_items() and gtk_recent_chooser_get_uris().

setLocalOnly
void setLocalOnly(bool localOnly)

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 %TRUE (the default) then the shown resources are guaranteed to be accessible through the operating system native file system.

setSelectMultiple
void setSelectMultiple(bool selectMultiple)

Sets whether @chooser can select multiple items.

setShowIcons
void setShowIcons(bool showIcons)

Sets whether @chooser should show an icon near the resource when displaying it.

setShowNotFound
void setShowNotFound(bool showNotFound)

Sets whether @chooser should display the recently used resources that it didn’t find. This only applies to local resources.

setShowPrivate
void setShowPrivate(bool showPrivate)

Whether to show recently used resources marked registered as private.

setShowTips
void setShowTips(bool showTips)

Sets whether to show a tooltips containing the full path of each recently used resource in a #GtkRecentChooser widget.

setSortFunc
void setSortFunc(GtkRecentSortFunc sortFunc, void* sortData, GDestroyNotify dataDestroy)

Sets the comparison function used when sorting to be @sort_func. If the @chooser has the sort type set to #GTK_RECENT_SORT_CUSTOM then the chooser will sort using this function.

setSortType
void setSortType(GtkRecentSortType sortType)

Changes the sorting order of the recently used resources list displayed by @chooser.

unselectAll
void unselectAll()

Unselects all the items inside @chooser.

unselectUri
void unselectUri(string uri)

Unselects @uri inside @chooser.

Static functions

getType
GType getType()

Meta