Gjsify LogoGjsify Logo

#GtkRecentInfo-struct contains private data only, and should be accessed using the provided API.

#GtkRecentInfo constains all the meta-data associated with an entry in the recently used files list.

record

Hierarchy

  • RecentInfo

Index

Constructors

Properties

name: string

Methods

  • create_app_info(app_name: string): AppInfo
  • Creates a #GAppInfo for the specified #GtkRecentInfo

    Parameters

    • app_name: string

      the name of the application that should be mapped to a #GAppInfo; if %NULL is used then the default application for the MIME type is used

    Returns AppInfo

  • exists(): boolean
  • Checks whether the resource pointed by info still exists. At the moment this check is done only on resources pointing to local files.

    Returns boolean

  • get_added(): number
  • Gets the timestamp (seconds from system’s Epoch) when the resource was added to the recently used resources list.

    Returns number

  • get_age(): number
  • get_application_info(app_name: string): [boolean, string, number, number]
  • Gets the data regarding the application that has registered the resource pointed by info.

    If the command line contains any escape characters defined inside the storage specification, they will be expanded.

    Parameters

    • app_name: string

      the name of the application that has registered this item

    Returns [boolean, string, number, number]

  • get_applications(): string[]
  • get_description(): string
  • get_display_name(): string
  • Gets the name of the resource. If none has been defined, the basename of the resource is obtained.

    Returns string

  • get_groups(): string[]
  • Returns all groups registered for the recently used item info. The array of returned group names will be %NULL terminated, so length might optionally be %NULL.

    Returns string[]

  • get_icon(size: number): Pixbuf
  • Retrieves the icon of size size associated to the resource MIME type.

    Parameters

    • size: number

      the size of the icon in pixels

    Returns Pixbuf

  • get_mime_type(): string
  • get_modified(): number
  • Gets the timestamp (seconds from system’s Epoch) when the meta-data for the resource was last modified.

    Returns number

  • get_private_hint(): boolean
  • Gets the value of the “private” flag. Resources in the recently used list that have this flag set to %TRUE should only be displayed by the applications that have registered them.

    Returns boolean

  • get_short_name(): string
  • Computes a valid UTF-8 string that can be used as the name of the item in a menu or list. For example, calling this function on an item that refers to “file:///foo/bar.txt” will yield “bar.txt”.

    Returns string

  • get_uri(): string
  • get_uri_display(): string
  • Gets a displayable version of the resource’s URI. If the resource is local, it returns a local path; if the resource is not local, it returns the UTF-8 encoded content of gtk_recent_info_get_uri().

    Returns string

  • get_visited(): number
  • Gets the timestamp (seconds from system’s Epoch) when the meta-data for the resource was last visited.

    Returns number

  • has_application(app_name: string): boolean
  • Checks whether an application registered this resource using app_name.

    Parameters

    • app_name: string

      a string containing an application name

    Returns boolean

  • has_group(group_name: string): boolean
  • Checks whether group_name appears inside the groups registered for the recently used item info.

    Parameters

    • group_name: string

      name of a group

    Returns boolean

  • is_local(): boolean
  • last_application(): string
  • Gets the name of the last application that have registered the recently used resource represented by info.

    Returns string

  • unref(): void
  • Decreases the reference count of info by one. If the reference count reaches zero, info is deallocated, and the memory freed.

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method