diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/db-artwork-writer.c | 4 | ||||
-rw-r--r-- | src/db-parse-context.c | 2 | ||||
-rw-r--r-- | src/ipod-device.c | 2 | ||||
-rw-r--r-- | src/itdb_private.h | 2 | ||||
-rw-r--r-- | src/itdb_track.c | 1 | ||||
-rw-r--r-- | src/ithumb-writer.c | 11 |
6 files changed, 13 insertions, 9 deletions
diff --git a/src/db-artwork-writer.c b/src/db-artwork-writer.c index d96b6fa..a65df2b 100644 --- a/src/db-artwork-writer.c +++ b/src/db-artwork-writer.c @@ -314,6 +314,10 @@ write_mhod_type_3 (enum iPodThumbnailType type, iPodBuffer *buffer) break; default: g_assert_not_reached (); + /* Set filename to NULL to shut gcc up when compiling with + * glib 2.4 + */ + filename = NULL; } len = strlen (filename); diff --git a/src/db-parse-context.c b/src/db-parse-context.c index ffdd7c4..6cb657d 100644 --- a/src/db-parse-context.c +++ b/src/db-parse-context.c @@ -32,7 +32,7 @@ #include <unistd.h> #include <glib.h> - +#include "glib-compat.h" #include "db-parse-context.h" #include "db-itunes-parser.h" diff --git a/src/ipod-device.c b/src/ipod-device.c index 951ddaf..c49e3ab 100644 --- a/src/ipod-device.c +++ b/src/ipod-device.c @@ -68,6 +68,7 @@ #ifdef HAVE_CONFIG_H # include "config.h" #endif +#include "glib-compat.h" #include <stdlib.h> #include <stdio.h> @@ -78,7 +79,6 @@ #include <string.h> #include <ctype.h> #include <errno.h> -#include <glib/gstdio.h> #include "hal-common.h" #include "ipod-device.h" diff --git a/src/itdb_private.h b/src/itdb_private.h index db29c53..82ba9ad 100644 --- a/src/itdb_private.h +++ b/src/itdb_private.h @@ -33,7 +33,7 @@ #ifdef HAVE_CONFIG_H # include <config.h> #endif - +#include "glib-compat.h" #include "itdb.h" /* always use itdb_playlist_is_mpl() to check for MPL! */ diff --git a/src/itdb_track.c b/src/itdb_track.c index cfce01f..66d7b7e 100644 --- a/src/itdb_track.c +++ b/src/itdb_track.c @@ -31,7 +31,6 @@ #include "itdb_private.h" #include <string.h> -#include <glib/gstdio.h> static gboolean is_video_ipod (IpodDevice *ipod) { diff --git a/src/ithumb-writer.c b/src/ithumb-writer.c index 98a04fc..95521b0 100644 --- a/src/ithumb-writer.c +++ b/src/ithumb-writer.c @@ -141,8 +141,8 @@ ithumb_writer_write_thumbnail (iThumbWriter *writer, return NULL; } - thumb = gdk_pixbuf_new_from_file_at_scale (filename, writer->size, -1, - TRUE, NULL); + thumb = gdk_pixbuf_new_from_file_at_size (filename, writer->size, + writer->size, NULL); if (thumb == NULL) { g_free (image); return NULL; @@ -150,9 +150,10 @@ ithumb_writer_write_thumbnail (iThumbWriter *writer, g_object_get (G_OBJECT (thumb), "height", &image->height, NULL); if (image->height > writer->size) { g_object_unref (thumb); - thumb = gdk_pixbuf_new_from_file_at_scale (filename, - -1, writer->size, - TRUE, NULL); + thumb = gdk_pixbuf_new_from_file_at_size (filename, + writer->size, + writer->size, + NULL); if (thumb == NULL) { g_free (image); return NULL; |