diff options
author | Rob Kendrick <rjek@netsurf-browser.org> | 2008-03-20 19:12:17 +0000 |
---|---|---|
committer | Rob Kendrick <rjek@netsurf-browser.org> | 2008-03-20 19:12:17 +0000 |
commit | 10aa5ae2f4ff7203c32e34345450be6478402bb4 (patch) | |
tree | df38a64a568243d9207a3a27c56a00925966ff87 | |
parent | dfd26a6ca893db5ee7e6729ec85abe8cda0f7967 (diff) | |
download | netsurf-10aa5ae2f4ff7203c32e34345450be6478402bb4.tar.gz netsurf-10aa5ae2f4ff7203c32e34345450be6478402bb4.tar.bz2 |
Add assert for creating pixmap for GTK thumbnails, and a LOG of what it tried to do.
svn path=/trunk/netsurf/; revision=4001
-rw-r--r-- | gtk/gtk_thumbnail.c | 4 |
1 files changed, 4 insertions, 0 deletions
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()); |