|  |  |  | MATE Desktop Library Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
#include <libmateui/mate-thumbnail.h> gboolean mate_desktop_thumbnail_has_uri (GdkPixbuf *pixbuf,const char *uri); gboolean mate_desktop_thumbnail_is_valid (GdkPixbuf *pixbuf,const char *uri,time_t mtime); char * mate_desktop_thumbnail_md5 (const char *uri); char * mate_desktop_thumbnail_path_for_uri (const char *uri,MateDesktopThumbnailSize size); GdkPixbuf * mate_desktop_thumbnail_scale_down_pixbuf (GdkPixbuf *pixbuf,int dest_width,int dest_height);
gboolean mate_desktop_thumbnail_has_uri (GdkPixbuf *pixbuf,const char *uri);
Returns whether the thumbnail has the correct uri embedded in the Thumb::URI option in the png.
| 
 | an loaded thumbnail pixbuf | 
| 
 | a uri | 
| Returns : | TRUE if the thumbnail is for uri | 
Since 2.2
gboolean mate_desktop_thumbnail_is_valid (GdkPixbuf *pixbuf,const char *uri,time_t mtime);
Returns whether the thumbnail has the correct uri and mtime embedded in the png options.
| 
 | an loaded thumbnail GdkPixbuf | 
| 
 | a uri | 
| 
 | the mtime | 
| Returns : | TRUE if the thumbnail has the right uriandmtime | 
Since 2.2
char *              mate_desktop_thumbnail_md5          (const char *uri);
mate_desktop_thumbnail_md5 has been deprecated since version 2.22 and should not be used in newly-written code. Use GChecksum instead
Calculates the MD5 checksum of the uri. This can be useful if you want to manually handle thumbnail files.
| 
 | an uri | 
| Returns : | A string with the MD5 digest of the uri string. | 
Since 2.2
char * mate_desktop_thumbnail_path_for_uri (const char *uri,MateDesktopThumbnailSize size);
Returns the filename that a thumbnail of size size for uri would have.
| 
 | an uri | 
| 
 | a thumbnail size | 
| Returns : | an absolute filename | 
Since 2.2