FmThumbnailer

FmThumbnailer — External thumbnailers handling.

Synopsis

#define             FM_THUMBNAILER                      (p)
                    FmThumbnailer;
void                fm_thumbnailer_check_update         ();
void                fm_thumbnailer_free                 (FmThumbnailer *thumbnailer);
gboolean            fm_thumbnailer_launch_for_uri       (FmThumbnailer *thumbnailer,
                                                         const char *uri,
                                                         const char *output_file,
                                                         guint size);
FmThumbnailer *     fm_thumbnailer_new_from_keyfile     (const char *id,
                                                         GKeyFile *kf);

Description

include: libfm/fm-thumbnailer.h

Details

FM_THUMBNAILER()

#define FM_THUMBNAILER(p) ((FmThumbnailer*)p)

FmThumbnailer

typedef struct _FmThumbnailer FmThumbnailer;

fm_thumbnailer_check_update ()

void                fm_thumbnailer_check_update         ();

Checks new thumbnailers and reloads if needed.

Since 1.0.0


fm_thumbnailer_free ()

void                fm_thumbnailer_free                 (FmThumbnailer *thumbnailer);

Frees thumbnailer object.

thumbnailer :

thumbnailer descriptor

Since 1.0.0


fm_thumbnailer_launch_for_uri ()

gboolean            fm_thumbnailer_launch_for_uri       (FmThumbnailer *thumbnailer,
                                                         const char *uri,
                                                         const char *output_file,
                                                         guint size);

Tries to generate new thumbnail for given uri.

thumbnailer :

thumbnailer descriptor

uri :

a file to create thumbnail for

output_file :

the target file name

size :

size of thumbnail to generate

Returns :

TRUE in case of success.

Since 1.0.0


fm_thumbnailer_new_from_keyfile ()

FmThumbnailer *     fm_thumbnailer_new_from_keyfile     (const char *id,
                                                         GKeyFile *kf);

Creates new thumbnailer object.

id :

desktop entry Id

kf :

content of id

Returns :

a new FmThumbnailer or NULL in case of error.

Since 1.0.0