summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristophe Fergeau <teuf@gnome.org>2008-07-29 20:11:37 +0000
committerChristophe Fergeau <teuf@gnome.org>2008-07-29 20:11:37 +0000
commit152a04ac175058345adddc8a1f8ed53ec86429f6 (patch)
tree891c46cc83b935787bb7939cd91adddb4fb7fd71 /tests
parent2395cad46226c7e0ff46e9917b463f865173782a (diff)
downloadlibgpod-152a04ac175058345adddc8a1f8ed53ec86429f6.tar.gz
libgpod-152a04ac175058345adddc8a1f8ed53ec86429f6.tar.xz
libgpod-152a04ac175058345adddc8a1f8ed53ec86429f6.zip
Some public API work, hide ItdbThumbType as well as ItdbThumbIpod
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2070 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'tests')
-rw-r--r--tests/test-covers.c6
-rw-r--r--tests/test-photos.c4
2 files changed, 4 insertions, 6 deletions
diff --git a/tests/test-covers.c b/tests/test-covers.c
index 195f907..20b4d7b 100644
--- a/tests/test-covers.c
+++ b/tests/test-covers.c
@@ -64,11 +64,11 @@ save_song_thumbnails (Itdb_Track *song)
static guint count = 0;
GList *it;
GList *thumbs;
- Itdb_Thumb_Ipod *thumb = (Itdb_Thumb_Ipod*)song->artwork->thumbnail;
- if (thumb == NULL) {
+ if (song->artwork->thumbnail == NULL) {
return;
}
- thumbs = itdb_thumb_ipod_to_pixbufs (song->itdb->device, thumb);
+ thumbs = itdb_thumb_to_pixbufs (song->itdb->device,
+ song->artwork->thumbnail);
for (it = thumbs; it != NULL; it = it->next) {
GdkPixbuf *pixbuf;
diff --git a/tests/test-photos.c b/tests/test-photos.c
index 02ecaa3..27703ad 100644
--- a/tests/test-photos.c
+++ b/tests/test-photos.c
@@ -68,10 +68,8 @@ dump_thumbs (Itdb_PhotoDB *db, Itdb_Artwork *artwork,
GList *it;
gint i = 0;
GList *thumbnails;
- Itdb_Thumb_Ipod *thumb;
- thumb = (Itdb_Thumb_Ipod *)artwork->thumbnail;
- thumbnails = itdb_thumb_ipod_to_pixbufs (db->device, thumb);
+ thumbnails = itdb_thumb_to_pixbufs (db->device, artwork->thumbnail);
for (it = thumbnails; it != NULL; it = it->next, i++) {
gchar *filename, *path;
GdkPixbuf *pixbuf;