summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorÁlvaro Peña <alvaropg@gmail.com>2013-04-29 10:09:46 +0200
committerÁlvaro Peña <alvaropg@gmail.com>2013-04-29 10:09:46 +0200
commit31406fb1865f5133c16bdf60aa1e411d4694d37f (patch)
treea380ae08369e20e883175b5a6d57d8614714ee74 /tests
parente33112bf8285fe1fa03c58034470aa8247c3b0f7 (diff)
downloadlibgfbgraph-31406fb1865f5133c16bdf60aa1e411d4694d37f.tar.gz
Little fixes to allow the compilation
Diffstat (limited to 'tests')
-rw-r--r--tests/test-async.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/test-async.c b/tests/test-async.c
index 46aba0a..df99b8d 100644
--- a/tests/test-async.c
+++ b/tests/test-async.c
@@ -1,5 +1,4 @@
#include <gfbgraph/gfbgraph.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
#include "gfbgraph-simple-authorizer.h"
static GMainLoop *main_loop;
@@ -21,19 +20,10 @@ photo_async_cb (GFBGraphNode *album_node, GAsyncResult *res, GFBGraphAuthorizer
GFBGraphPhoto *photo;
gchar *name, *source;
guint width, height;
- GInputStream *stream;
- GdkPixbuf *pixbuf;
photo = GFBGRAPH_PHOTO (photos->data);
g_object_get (photo, "name", &name, "width", &width, "height", &height, "source", &source, NULL);
g_print ("\t\t%s (%dx%d): %s\n", name, width, height, source);
- g_print ("\t\t\tDownloading... ");
- stream = gfbgraph_photo_download_default_size (photo, authorizer);
- pixbuf = gdk_pixbuf_new_from_stream (stream, NULL, NULL);
- if (gdk_pixbuf_save (pixbuf, name, "jpeg", NULL, NULL))
- g_print (" OK\n");
- else
- g_print (" Failed\n");
g_free (name);
photos = g_list_next (photos);