Gjsify LogoGjsify Logo

GtkRecentInfo contains the metadata associated with an item 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

    In case of error, error will be set either with a %GTK_RECENT_MANAGER_ERROR or a %G_IO_ERROR

    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_age(): number
  • get_application_info(app_name: string): [boolean, string, number, GLib.DateTime]
  • 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, GLib.DateTime]

  • 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_mime_type(): string
  • 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 [methodGtk.RecentInfo.get_uri].

    Returns string

  • 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