Revision: 1785
          http://gtkpod.svn.sourceforge.net/gtkpod/?rev=1785&view=rev
Author:   teuf
Date:     2007-11-14 10:19:21 -0800 (Wed, 14 Nov 2007)

Log Message:
-----------
* src/itdb_photoalbum.c: use g_list_remove all instead of an
inefficient combination of g_list_find + g_list_remove

Modified Paths:
--------------
    libgpod/branches/libgpod-0.6/ChangeLog
    libgpod/branches/libgpod-0.6/src/itdb_photoalbum.c

Modified: libgpod/branches/libgpod-0.6/ChangeLog
===================================================================
--- libgpod/branches/libgpod-0.6/ChangeLog      2007-11-14 18:18:55 UTC (rev 
1784)
+++ libgpod/branches/libgpod-0.6/ChangeLog      2007-11-14 18:19:21 UTC (rev 
1785)
@@ -1,3 +1,8 @@
+2007-11-14  Christophe <[EMAIL PROTECTED]>
+
+       * src/itdb_photoalbum.c: use g_list_remove all instead of an
+       inefficient combination of g_list_find + g_list_remove
+
 2007-11-14  Jorg Schuler <jcsjcs at users.sourceforge.net>
 
        * src/itdb_photoalbum.c (itdb_photodb_photoalbum_remove): make

Modified: libgpod/branches/libgpod-0.6/src/itdb_photoalbum.c
===================================================================
--- libgpod/branches/libgpod-0.6/src/itdb_photoalbum.c  2007-11-14 18:18:55 UTC 
(rev 1784)
+++ libgpod/branches/libgpod-0.6/src/itdb_photoalbum.c  2007-11-14 18:19:21 UTC 
(rev 1785)
@@ -615,10 +615,7 @@
         for (it = db->photoalbums; it != NULL; it = it->next)
        {
             Itdb_PhotoAlbum *_album = it->data;
-           while (g_list_find (_album->members, photo))
-           {
-               _album->members = g_list_remove (_album->members, photo);
-           }
+            _album->members = g_list_remove_all (_album->members, photo);
         }
         /* Remove the photo from the image list */
        db->photos = g_list_remove (db->photos, photo);


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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to