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

Modified Files:
        test-photos.c 
Log Message:
        * When adding photos to the iPod the user may or may not want to
          rotate the picture shown on the iPod screen, for example
          deending on EXIF rotation value. This can now be achieved by
          passing a new parameter 'rotation' to itdb_photodb_add_photo()
          or itdb_photodb_add_photo_from_data(). (Valid values: 0, 90, 180,
          270, rotation is counter-clockwise). These two functions now
          also accept a GError pointer. As a consequence Itdb_Thumb had to
          be extended with a field for the rotation value and
          itdb_artwork_add_thumbnail have been extended to accept
          @rotation and @error as well.

          The actual rotation is carried out in
          ithumb-writer.c/ithumb_writer_write_thumbnail() using
          gdk_pixbuf_rotate_simple() and require gdk-pixbuf V2.6 or
          higher.

          In contrast, itdb_track_set_thumbnails() and
          itdb_track_set_thumbnails_from_data have been left unchanged,
          even though they could be extended to accept @rotation and
          @error easily. Please let me know if this is wanted.

        * configure.ac
          src/itdb.h
          src/itdb_artwork.c
          src/itdb_photoalbum.c
          src/itdb_track.c
          src/ithumb-writer.c: implemented changes outlined above.

        * tests/test-photos.c: added @rotation and @error to the
          itdb_photodb_add_photo() call.



Index: test-photos.c
===================================================================
RCS file: /cvsroot/gtkpod/libgpod/tests/test-photos.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- test-photos.c       29 Oct 2006 10:37:47 -0000      1.8
+++ test-photos.c       23 Nov 2006 15:02:58 -0000      1.9
@@ -265,7 +265,8 @@
     {
        Itdb_Artwork *photo;
        
-       photo = itdb_photodb_add_photo (db, argv[i], &error);
+       photo = itdb_photodb_add_photo (db, argv[i], GDK_PIXBUF_ROTATE_NONE,
+                                       &error);
        if (photo == NULL)
        {
            if (error)


-------------------------------------------------------------------------
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