Method

GLibBookmarkFileset_visited

deprecated: 2.66 since: 2.12

Declaration [src]

void
g_bookmark_file_set_visited (
  GBookmarkFile* bookmark,
  const gchar* uri,
  time_t visited
)

Description [src]

Sets the time the bookmark for uri was last visited.

If no bookmark for uri is found then it is created.

The “visited” time should only be set if the bookmark was launched, either using the command line retrieved by g_bookmark_file_get_application_info() or by the default application for the bookmark’s MIME type, retrieved using g_bookmark_file_get_mime_type(). Changing the “visited” time does not affect the “modified” time.

Available since: 2.12

Deprecated since: 2.66

Use g_bookmark_file_set_visited_date_time() instead, as time_t is deprecated due to the year 2038 problem.

Parameters

uri

Type: const gchar*

A valid URI.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
visited

Type: time_t

A timestamp or -1 to use the current time.