[libgdata] [tests] Fix GdkPixbuf declaration for non-installed GDK+ headers



commit 0c72c53de8cf5a85124d298e4c350fde3566e577
Author: Philip Withnall <philip tecnocode co uk>
Date:   Mon Dec 7 15:31:57 2009 +0000

    [tests] Fix GdkPixbuf declaration for non-installed GDK+ headers

 gdata/tests/picasaweb.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gdata/tests/picasaweb.c b/gdata/tests/picasaweb.c
index 232cbe6..2656e8a 100644
--- a/gdata/tests/picasaweb.c
+++ b/gdata/tests/picasaweb.c
@@ -114,7 +114,6 @@ test_download_thumbnails (GDataService *service)
 	GDataPicasaWebQuery *query;
 	GFile *dest_dir, *dest_file, *actual_file;
 	GDataMediaThumbnail *thumbnail;
-	GdkPixbuf *pixbuf;
 	gchar *file_path, *basename;
 	GError *error = NULL;
 
@@ -228,6 +227,10 @@ test_download_thumbnails (GDataService *service)
 
 	/* test getting all thumbnails and that they're all the correct size */
 	for (node = thumbnails; node != NULL; node = node->next) {
+#ifdef HAVE_GDK
+		GdkPixbuf *pixbuf;
+#endif /* HAVE_GDK */
+
 		thumbnail = GDATA_MEDIA_THUMBNAIL (node->data);
 		actual_file = gdata_media_thumbnail_download (thumbnail, service, "thumbnail.jpg", dest_file, FALSE, NULL, &error);
 		g_assert_no_error (error);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]