Update of /cvsroot/gtkpod/libgpod/tests
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv4080/tests

Modified Files:
        test-photos.c 
Log Message:
        * 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).



Index: test-photos.c
===================================================================
RCS file: /cvsroot/gtkpod/libgpod/tests/test-photos.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- test-photos.c       23 Nov 2006 15:02:58 -0000      1.9
+++ test-photos.c       24 Nov 2006 04:03:47 -0000      1.10
@@ -265,8 +265,8 @@
     {
        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 @@
        {
            if (album)
            {
-               itdb_photodb_photoalbum_add_photo (db, album, photo);
+               itdb_photodb_photoalbum_add_photo (db, album, photo, -1);
            }
        }
     }


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to