Author: dsilvers
Date: Wed Aug 9 15:46:20 2006
New Revision: 2820
URL:
http://svn.semichrome.net?rev=2820&view=rev
Log:
Fix thumbnail to use struct style bitmap
Modified:
branches/dsilvers/gtk-bitmap-pretile/gtk/gtk_thumbnail.c
Modified: branches/dsilvers/gtk-bitmap-pretile/gtk/gtk_thumbnail.c
URL:
http://svn.semichrome.net/branches/dsilvers/gtk-bitmap-pretile/gtk/gtk_th...
==============================================================================
--- branches/dsilvers/gtk-bitmap-pretile/gtk/gtk_thumbnail.c (original)
+++ branches/dsilvers/gtk-bitmap-pretile/gtk/gtk_thumbnail.c Wed Aug 9 15:46:20 2006
@@ -24,6 +24,7 @@
#include "netsurf/utils/log.h"
#include "netsurf/gtk/gtk_window.h"
#include "netsurf/gtk/gtk_plotters.h"
+#include "netsurf/gtk/gtk_bitmap.h"
/**
* Create a thumbnail of a page.
@@ -35,7 +36,7 @@
bool thumbnail_create(struct content *content, struct bitmap *bitmap,
const char *url)
{
- GdkPixbuf *pixbuf = (GdkPixbuf *) bitmap;
+ GdkPixbuf *pixbuf = gtk_bitmap_get_primary(bitmap);
gint width = gdk_pixbuf_get_width(pixbuf);
gint height = gdk_pixbuf_get_height(pixbuf);
gint depth = (gdk_screen_get_system_visual(gdk_screen_get_default()))->depth;