From 10aa5ae2f4ff7203c32e34345450be6478402bb4 Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Thu, 20 Mar 2008 19:12:17 +0000 Subject: Add assert for creating pixmap for GTK thumbnails, and a LOG of what it tried to do. svn path=/trunk/netsurf/; revision=4001 --- gtk/gtk_thumbnail.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/gtk_thumbnail.c b/gtk/gtk_thumbnail.c index b1d7149af..6856ee771 100644 --- a/gtk/gtk_thumbnail.c +++ b/gtk/gtk_thumbnail.c @@ -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()); -- cgit v1.2.3