diff options
author | Jannis Pohlmann <jannis@xfce.org> | 2009-06-25 14:32:46 +0200 |
---|---|---|
committer | Jannis Pohlmann <jannis@xfce.org> | 2009-06-25 14:32:46 +0200 |
commit | 9c2f482d715f311b462734aabff1a30801927b57 (patch) | |
tree | 7144580dbf3eb6cb66d3f81a2c4bf90305ad4a21 /tumbler/tumbler-thumbnail.h | |
parent | bbbf90193aab5022feaaadff6b073fabf23945e0 (diff) | |
download | tumbler-9c2f482d715f311b462734aabff1a30801927b57.tar.gz |
Add tumbler_thumbnail_save_file() to save thumbnails from source files.
This is especially useful for plugins that execute external commands
such as "convert". They can just let these commands write to a certain
file which they then pass to tumbler_thumbnail_save_file() to make sure
it's stored in a way the corresponding cache plugin supports.
It is an alternative to tumbler_thumbnail_save_pixbuf().
Diffstat (limited to 'tumbler/tumbler-thumbnail.h')
-rw-r--r-- | tumbler/tumbler-thumbnail.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tumbler/tumbler-thumbnail.h b/tumbler/tumbler-thumbnail.h index 7d40715..3c4896b 100644 --- a/tumbler/tumbler-thumbnail.h +++ b/tumbler/tumbler-thumbnail.h @@ -60,6 +60,11 @@ struct _TumblerThumbnailIface guint64 mtime, GCancellable *cancellable, GError **error); + gboolean (*save_file) (TumblerThumbnail *thumbnail, + GFile *file, + guint64 mtime, + GCancellable *cancellable, + GError **error); }; GType tumbler_thumbnail_get_type (void) G_GNUC_CONST; @@ -75,6 +80,11 @@ gboolean tumbler_thumbnail_save_pixbuf (TumblerThumbnail guint64 mtime, GCancellable *cancellable, GError **error); +gboolean tumbler_thumbnail_save_file (TumblerThumbnail *thumbnail, + GFile *file, + guint64 mtime, + GCancellable *cancellable, + GError **error); TumblerCache *tumbler_thumbnail_get_cache (TumblerThumbnail *thumbnail); TumblerThumbnailFlavor tumbler_thumbnail_get_flavor (TumblerThumbnail *thumbnail); |