diff options
| author | jcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2006-11-24 04:03:47 +0000 |
|---|---|---|
| committer | jcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2006-11-24 04:03:47 +0000 |
| commit | 16478800e3d393803f6ee1c7911a846218ed409c (patch) | |
| tree | 5b9691d071b9ef3841c01d744be7e8d14f31f2ed /tests | |
| parent | eccbd370f7f5d2248b311b93fd786691acc6b8a5 (diff) | |
| download | libgpod-16478800e3d393803f6ee1c7911a846218ed409c.tar.gz libgpod-16478800e3d393803f6ee1c7911a846218ed409c.tar.xz libgpod-16478800e3d393803f6ee1c7911a846218ed409c.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); } } } |
