Add assert for creating pixmap for GTK thumbnails, and a LOG of what it tried to do.

svn path=/trunk/netsurf/; revision=4001
This commit is contained in:
Rob Kendrick 2008-03-20 19:12:17 +00:00
parent dfd26a6ca8
commit 10aa5ae2f4

View File

@ -54,8 +54,12 @@ bool thumbnail_create(struct content *content, struct bitmap *bitmap,
GdkPixmap *pixmap = gdk_pixmap_new(NULL, content->width, content->width, depth);
GdkPixbuf *big;
LOG(("Trying to create a thumbnail pixmap for a content of %dx%d@%d",
content->width, content->width, depth));
assert(content);
assert(bitmap);
assert(pixmap);
gdk_drawable_set_colormap(pixmap, gdk_colormap_get_system());