Method

MateDesktopDesktopThumbnailFactorygenerate_thumbnail

unstable since: 2.2

Declaration [src]

GdkPixbuf*
mate_desktop_thumbnail_factory_generate_thumbnail (
  MateDesktopThumbnailFactory* factory,
  const char* uri,
  const char* mime_type
)

Description [src]

Tries to generate a thumbnail for the specified file. If it succeeds it returns a pixbuf that can be used as a thumbnail.

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.

Return value

Type: GdkPixbuf

Thumbnail pixbuf if thumbnailing succeeded, NULL otherwise.

The caller of the method takes ownership of the data, and is responsible for freeing it.