Revision: 2256
http://gtkpod.svn.sourceforge.net/gtkpod/?rev=2256&view=rev
Author: jcsjcs
Date: 2009-02-23 13:26:59 +0000 (Mon, 23 Feb 2009)
Log Message:
-----------
* src/misc.h
src/details.c
src/misc.c: replace glist_duplicate by g_list_copy. Thanks
to Javier Kohen for the patch.
Modified Paths:
--------------
gtkpod/trunk/ChangeLog
gtkpod/trunk/src/details.c
gtkpod/trunk/src/misc.c
gtkpod/trunk/src/misc.h
Modified: gtkpod/trunk/ChangeLog
===================================================================
--- gtkpod/trunk/ChangeLog 2009-02-09 20:00:08 UTC (rev 2255)
+++ gtkpod/trunk/ChangeLog 2009-02-23 13:26:59 UTC (rev 2256)
@@ -1,3 +1,10 @@
+2009-02-23 Jorg Schuler <jcsjcs at users.sourceforge.net>
+
+ * src/misc.h
+ src/details.c
+ src/misc.c: replace glist_duplicate by g_list_copy. Thanks
+ to Javier Kohen for the patch.
+
2009-01-31 Todd Zullinger <tmzullinger at users.sourceforge.net>
* configure.in: Bump libgpod requirement to >= 0.7.0
Modified: gtkpod/trunk/src/details.c
===================================================================
--- gtkpod/trunk/src/details.c 2009-02-09 20:00:08 UTC (rev 2255)
+++ gtkpod/trunk/src/details.c 2009-02-23 13:26:59 UTC (rev 2256)
@@ -1470,7 +1470,7 @@
detail->itdb = ((Track *)tracks->data)->itdb;
- detail->orig_tracks = glist_duplicate (tracks);
+ detail->orig_tracks = g_list_copy (tracks);
/* Create duplicated list to work on until "Apply" is pressed */
for (gl=g_list_last (tracks); gl; gl=gl->prev)
Modified: gtkpod/trunk/src/misc.c
===================================================================
--- gtkpod/trunk/src/misc.c 2009-02-09 20:00:08 UTC (rev 2255)
+++ gtkpod/trunk/src/misc.c 2009-02-23 13:26:59 UTC (rev 2256)
@@ -198,20 +198,7 @@
return FALSE;
}
-/* Duplicate a GList (shallow copy) */
-GList *glist_duplicate (GList *list)
-{
- auto void gl_dup_fe (gpointer data, GList **dup);
- void gl_dup_fe (gpointer data, GList **dup)
- {
- *dup = g_list_append (*dup, data);
- }
- GList *dup = NULL;
- g_list_foreach (list, (GFunc)gl_dup_fe, &dup);
- return dup;
-}
-
/***************************************************************************
* gtkpod.in,out calls
*
Modified: gtkpod/trunk/src/misc.h
===================================================================
--- gtkpod/trunk/src/misc.h 2009-02-09 20:00:08 UTC (rev 2255)
+++ gtkpod/trunk/src/misc.h 2009-02-23 13:26:59 UTC (rev 2256)
@@ -222,8 +222,6 @@
const gchar *full_template,
gboolean is_filename);
-GList *glist_duplicate (GList *list);
-
gchar *which (const gchar *exe);
GladeXML *gtkpod_xml_new (const gchar *xml_file, const gchar *name);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2