summaryrefslogtreecommitdiffstats
path: root/src/ithumb-writer.c
diff options
context:
space:
mode:
authorJorg Schuler <jcsjcs@users.sourceforge.net>2007-03-21 08:37:20 +0000
committerJorg Schuler <jcsjcs@users.sourceforge.net>2007-03-21 08:37:20 +0000
commit3eb614c76b24c76ab4701ba765a9561cd78dcb65 (patch)
tree9108736fd3a017e8d8cd708281bdd72de8025ab7 /src/ithumb-writer.c
parent81305d8db278cb3c43bbf43cd280ce989a79cced (diff)
downloadlibgpod-3eb614c76b24c76ab4701ba765a9561cd78dcb65.tar.gz
libgpod-3eb614c76b24c76ab4701ba765a9561cd78dcb65.tar.xz
libgpod-3eb614c76b24c76ab4701ba765a9561cd78dcb65.zip
* src/itdb.h
src/itdb_artwork.c src/itdb_photoalbum.c src/itdb_track.c src/ithumb-writer.c: Added new API functions: itdb_photodb_add_photo_from_pixbuf function(), itdb_track_set_thumbnails_from_pixbuf() and itdb_artwork_add_thumbnail_from_pixbuf(). Thanks to Christophe Fergeau. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1405 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/ithumb-writer.c')
-rw-r--r--src/ithumb-writer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ithumb-writer.c b/src/ithumb-writer.c
index 9ee8122..562684b 100644
--- a/src/ithumb-writer.c
+++ b/src/ithumb-writer.c
@@ -357,6 +357,14 @@ ithumb_writer_write_thumbnail (iThumbWriter *writer,
thumb->image_data = NULL;
thumb->image_data_len = 0;
}
+ else if (thumb->pixbuf)
+ {
+ pixbuf = gdk_pixbuf_scale_simple (GDK_PIXBUF(thumb->pixbuf),
+ width, height,
+ GDK_INTERP_BILINEAR);
+ g_object_unref (thumb->pixbuf);
+ thumb->pixbuf = NULL;
+ }
if (pixbuf == NULL)
{