summaryrefslogtreecommitdiffstats
path: root/src/itdb_photoalbum.c
diff options
context:
space:
mode:
authorJorg Schuler <jcsjcs@users.sourceforge.net>2006-10-29 10:37:47 +0000
committerJorg Schuler <jcsjcs@users.sourceforge.net>2006-10-29 10:37:47 +0000
commit539186ab49e478b784c919761533d6e8b3fce983 (patch)
tree2ae5e3895a3664053972b55ff71f5fbf06f12a35 /src/itdb_photoalbum.c
parentcb0393e876d66ae4f16efbd84844246f96f12bd9 (diff)
downloadlibgpod-tmz-539186ab49e478b784c919761533d6e8b3fce983.tar.gz
libgpod-tmz-539186ab49e478b784c919761533d6e8b3fce983.tar.xz
libgpod-tmz-539186ab49e478b784c919761533d6e8b3fce983.zip
Added additional functionality for photo albums
* src/db-artwork-parser.c src/db-artwork-writer.c src/db-itunes-parser.c: src/itdb.h: added additional fields to MhbaHeader and Itdb_PhotoAlbum (playmusic, repeat, random, show_titles, transition_direction, slide duration, transition_duration, unk024, unk028, unk044, unk048, song_id. These fields are read and written from the PhotoDB now. Also corrected error for "album type" which was read and written as int32 even though it was a int8. Removed num_images from Itdb_PhotoAlbum -- instead count images at time of writing. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1330 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/itdb_photoalbum.c')
-rw-r--r--src/itdb_photoalbum.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/itdb_photoalbum.c b/src/itdb_photoalbum.c
index 4a06a28..34d811c 100644
--- a/src/itdb_photoalbum.c
+++ b/src/itdb_photoalbum.c
@@ -1,4 +1,4 @@
-/* Time-stamp: <2006-10-22 20:19:45 jcs>
+/* Time-stamp: <2006-10-29 19:15:33 jcs>
|
| Copyright (C) 2002-2006 Jorg Schuler <jcsjcs at users sourceforge net>
| Part of the gtkpod project.
@@ -528,7 +528,6 @@ void itdb_photodb_remove_photo (Itdb_PhotoDB *db,
while (g_list_find (_album->members, photo))
{
_album->members = g_list_remove (_album->members, photo);
- --_album->num_images;
}
}
/* Remove the photo from the image list */
@@ -540,7 +539,6 @@ void itdb_photodb_remove_photo (Itdb_PhotoDB *db,
else
{
album->members = g_list_remove (album->members, photo);
- --album->num_images;
}
}
@@ -630,7 +628,6 @@ void itdb_photodb_photoalbum_add_photo (Itdb_PhotoDB *db,
g_return_if_fail (photo);
album->members = g_list_append (album->members, photo);
- ++album->num_images;
}