commit 652957b00b7bc48240a258627d09be6f71a395a6
Author: Nathaniel McCallum <[email protected]>
Date: Thu Mar 25 12:32:56 2010 -0400
rework itdb_photodb_photoalbum_create to use the new _new() and _add()
methods
src/itdb_photoalbum.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/itdb_photoalbum.c b/src/itdb_photoalbum.c
index b2ab641..680424a 100644
--- a/src/itdb_photoalbum.c
+++ b/src/itdb_photoalbum.c
@@ -754,12 +754,10 @@ Itdb_PhotoAlbum *itdb_photodb_photoalbum_create
(Itdb_PhotoDB *db,
g_return_val_if_fail (db, NULL);
g_return_val_if_fail (albumname, NULL);
- 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);
+ album = itdb_photodb_photoalbum_new (albumname);
+ g_return_val_if_fail (album, NULL);
+ itdb_photodb_photoalbum_add(db, album, pos);
return album;
}
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2