Revision: 2096
          http://gtkpod.svn.sourceforge.net/gtkpod/?rev=2096&view=rev
Author:   phantom_sf
Date:     2008-08-09 17:00:34 +0000 (Sat, 09 Aug 2008)

Log Message:
-----------
2008-08-09  Paul Richardson  <phantom_sf at users.sourceforge.net>

        * Added eclipse project related files to svn:ignore
        * src/db-artwork-parser.c
          src/itdb.h
          src/itdb_photoalbum.c:
          Added to Itdb_PhotoAlbum, a reference to its parent Photo DB.
          When albums are constructed upon loading of the Photo DB, the
          reference is added as part of initialisation.

Modified Paths:
--------------
    libgpod/trunk/ChangeLog
    libgpod/trunk/src/db-artwork-parser.c
    libgpod/trunk/src/itdb.h
    libgpod/trunk/src/itdb_photoalbum.c

Property Changed:
----------------
    libgpod/trunk/


Property changes on: libgpod/trunk
___________________________________________________________________
Modified: svn:ignore
   - Makefile
Makefile.in
aclocal.m4
autom4te.cache
compile
config.guess
config.h
config.h.in
config.log
config.status
config.sub
configure
depcomp
install-sh
intltool-extract
intltool-extract.in
intltool-merge
intltool-merge.in
intltool-update
intltool-update.in
libgpod-1.0.pc
libtool
ltmain.sh
missing
mkinstalldirs
stamp-h1
TODO_local
cscope.out
gtk-doc.make
libgpod-*.tar.gz
py-compile

   + Makefile
Makefile.in
aclocal.m4
autom4te.cache
compile
config.guess
config.h
config.h.in
config.log
config.status
config.sub
configure
depcomp
install-sh
intltool-extract
intltool-extract.in
intltool-merge
intltool-merge.in
intltool-update
intltool-update.in
libgpod-1.0.pc
libtool
ltmain.sh
missing
mkinstalldirs
stamp-h1
TODO_local
cscope.out
gtk-doc.make
libgpod-*.tar.gz
py-compile
.project
.cproject
.settings


Modified: libgpod/trunk/ChangeLog
===================================================================
--- libgpod/trunk/ChangeLog     2008-08-09 15:01:31 UTC (rev 2095)
+++ libgpod/trunk/ChangeLog     2008-08-09 17:00:34 UTC (rev 2096)
@@ -1,3 +1,13 @@
+2008-08-09  Paul Richardson  <phantom_sf at users.sourceforge.net>
+
+       * Added eclipse project related files to svn:ignore
+       * src/db-artwork-parser.c
+         src/itdb.h
+         src/itdb_photoalbum.c:
+         Added to Itdb_PhotoAlbum, a reference to its parent Photo DB.
+         When albums are constructed upon loading of the Photo DB, the
+         reference is added as part of initialisation.
+
 2008-08-09  Todd Zullinger  <tmzullinger at users.sourceforge.net>
 
        * src/itdb_playlist.c

Modified: libgpod/trunk/src/db-artwork-parser.c
===================================================================
--- libgpod/trunk/src/db-artwork-parser.c       2008-08-09 15:01:31 UTC (rev 
2095)
+++ libgpod/trunk/src/db-artwork-parser.c       2008-08-09 17:00:34 UTC (rev 
2096)
@@ -392,6 +392,7 @@
         g_free (mhia_ctx);
        photodb = db_get_photodb (ctx->db);
        g_return_val_if_fail (photodb, -1);
+       album->photodb = photodb;
        photodb->photoalbums = g_list_append (photodb->photoalbums,
                                              album);
        return 0;

Modified: libgpod/trunk/src/itdb.h
===================================================================
--- libgpod/trunk/src/itdb.h    2008-08-09 15:01:31 UTC (rev 2095)
+++ libgpod/trunk/src/itdb.h    2008-08-09 17:00:34 UTC (rev 2096)
@@ -549,6 +549,7 @@
 
 struct _Itdb_PhotoAlbum
 {
+    Itdb_PhotoDB *photodb;       /* database to which this album belongs  */
     gchar *name;                 /* name of photoalbum in UTF8            */
     GList *members;              /* photos in album (Itdb_Artwork *)      */
     guint8 album_type;           /* 0x01 for master (Photo Library),

Modified: libgpod/trunk/src/itdb_photoalbum.c
===================================================================
--- libgpod/trunk/src/itdb_photoalbum.c 2008-08-09 15:01:31 UTC (rev 2095)
+++ libgpod/trunk/src/itdb_photoalbum.c 2008-08-09 17:00:34 UTC (rev 2096)
@@ -335,6 +335,7 @@
 {
     if (album)
     {
+       album->photodb = NULL;
        g_free (album->name);
        g_list_free (album->members);
 
@@ -735,6 +736,7 @@
 
        album = g_new0 (Itdb_PhotoAlbum, 1);
        album->album_type = 2; /* normal album, set to 1 for Photo Library */
+       album->photodb = db;
        album->name = g_strdup(albumname);
        db->photoalbums = g_list_insert (db->photoalbums, album, pos);
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to