diff options
author | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2006-11-24 04:03:47 +0000 |
---|---|---|
committer | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2006-11-24 04:03:47 +0000 |
commit | e2bc8402d6440a29af874adcc79083d870b45283 (patch) | |
tree | 5b9691d071b9ef3841c01d744be7e8d14f31f2ed /tests | |
parent | 2f2ba10996368cddb4ed536344eb2d26eb66797f (diff) | |
download | libgpod-tmz-e2bc8402d6440a29af874adcc79083d870b45283.tar.gz libgpod-tmz-e2bc8402d6440a29af874adcc79083d870b45283.tar.xz libgpod-tmz-e2bc8402d6440a29af874adcc79083d870b45283.zip |
* src/itdb.h
src/itdb_photoalbum.c (itdb_photodb_add_photo,
itdb_photodb_add_photo_from_data,
itdb_photodb_photoalbum_add_photo): add 'position' where photo
should be inserted.
* tests/test-photos.c: implemented new API (append at the end).
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1339 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-photos.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-photos.c b/tests/test-photos.c index fd89aa4..e288525 100644 --- a/tests/test-photos.c +++ b/tests/test-photos.c @@ -265,8 +265,8 @@ static int do_add (int argc, char **argv) { Itdb_Artwork *photo; - photo = itdb_photodb_add_photo (db, argv[i], GDK_PIXBUF_ROTATE_NONE, - &error); + photo = itdb_photodb_add_photo (db, argv[i], + -1, GDK_PIXBUF_ROTATE_NONE, &error); if (photo == NULL) { if (error) @@ -281,7 +281,7 @@ static int do_add (int argc, char **argv) { if (album) { - itdb_photodb_photoalbum_add_photo (db, album, photo); + itdb_photodb_photoalbum_add_photo (db, album, photo, -1); } } } |