Method

MateDesktopDesktopThumbnailFactorycan_thumbnail

unstable since: 2.2

Declaration [src]

gboolean
mate_desktop_thumbnail_factory_can_thumbnail (
  MateDesktopThumbnailFactory* factory,
  const char* uri,
  const char* mime_type,
  time_t mtime
)

Description [src]

Returns TRUE if this MateDesktopThumbnailFactory can (at least try) to thumbnail this file. Thumbnails or files with failed thumbnails won’t be thumbnailed.

Usage of this function is threadsafe.

Available since: 2.2

Parameters

uri

Type: const char*

The uri of a file.

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

Type: const char*

The mime type of the file.

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

Type: time_t

The mtime of the file.

Return value

Type: gboolean

TRUE if the file can be thumbnailed.