Revision: 2143
http://gtkpod.svn.sourceforge.net/gtkpod/?rev=2143&view=rev
Author: teuf
Date: 2008-10-21 18:37:14 +0000 (Tue, 21 Oct 2008)
Log Message:
-----------
Use SysInfoExtended if available for itdb_device_supports_photo
Modified Paths:
--------------
libgpod/trunk/ChangeLog
libgpod/trunk/src/itdb_device.c
Modified: libgpod/trunk/ChangeLog
===================================================================
--- libgpod/trunk/ChangeLog 2008-10-20 22:25:01 UTC (rev 2142)
+++ libgpod/trunk/ChangeLog 2008-10-21 18:37:14 UTC (rev 2143)
@@ -1,5 +1,11 @@
2008-10-21 Christophe Fergeau <[EMAIL PROTECTED]>
+
+ * src/itdb_device.c: use information from SysInfoExtended to tell
+ if an ipod supports photos or not instead of only using the
+ hard-coded tables in libgpod
+2008-10-21 Christophe Fergeau <[EMAIL PROTECTED]>
+
* src/itdb_device.c: add serial number for 16GB blue ipod nano,
thanks to Thomas Pani for providing that SN.
Modified: libgpod/trunk/src/itdb_device.c
===================================================================
--- libgpod/trunk/src/itdb_device.c 2008-10-20 22:25:01 UTC (rev 2142)
+++ libgpod/trunk/src/itdb_device.c 2008-10-21 18:37:14 UTC (rev 2143)
@@ -1412,11 +1412,13 @@
gboolean itdb_device_supports_photo (const Itdb_Device *device)
{
+ GList *formats;
if (device == NULL) {
return FALSE;
}
-
- return (itdb_device_get_artwork_formats (device, ARTWORK_TYPE_PHOTO) !=
NULL);
+ formats = itdb_device_get_photo_formats (device);
+ g_list_free (formats);
+ return (formats != NULL);
}
static char *
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