summaryrefslogtreecommitdiffstats
path: root/src/ithumb-writer.c
diff options
context:
space:
mode:
authorJorg Schuler <jcsjcs@users.sourceforge.net>2006-02-03 18:44:48 +0000
committerJorg Schuler <jcsjcs@users.sourceforge.net>2006-02-03 18:44:48 +0000
commitf9fde30532d89f85d88de0c294519bf636dc5a4c (patch)
tree6b976f7e493d197c15a1ee61bd462759f2a05bb6 /src/ithumb-writer.c
parent471cbe6cf51414f718ca1b80b668376dc30ca73c (diff)
downloadlibgpod-f9fde30532d89f85d88de0c294519bf636dc5a4c.tar.gz
libgpod-f9fde30532d89f85d88de0c294519bf636dc5a4c.tar.xz
libgpod-f9fde30532d89f85d88de0c294519bf636dc5a4c.zip
* src/itdb_itunesdb.c, src/itdb_playlist.c, src/ithumb-writer.c:
removed nested-functions. Thanks to Brian Jackson for the patch (he was not the only to send patches -- please, nobody feel offended that I didn't act sooner). git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1201 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/ithumb-writer.c')
-rw-r--r--src/ithumb-writer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ithumb-writer.c b/src/ithumb-writer.c
index 111552a..e6411b9 100644
--- a/src/ithumb-writer.c
+++ b/src/ithumb-writer.c
@@ -291,16 +291,16 @@ ithumb_writer_free (iThumbWriter *writer)
}
+gint offset_sort (gconstpointer a, gconstpointer b);
+gint offset_sort (gconstpointer a, gconstpointer b)
+{
+ return (-(((Itdb_Thumb *)a)->offset - ((Itdb_Thumb *)b)->offset));
+}
+
static gboolean ithumb_rearrange_thumbnail_file (gpointer _key,
gpointer _thumbs,
gpointer _user_data)
{
- auto gint offset_sort (gconstpointer a, gconstpointer b);
- gint offset_sort (gconstpointer a, gconstpointer b)
- {
- return (-(((Itdb_Thumb *)a)->offset -
- ((Itdb_Thumb *)b)->offset));
- }
const gchar *filename = _key;
GList *thumbs = _thumbs;
gboolean *result = _user_data;