-static GdkPixbuf *
-pixbuf_document_thumbnails_get_thumbnail (EvDocumentThumbnails *document,
- EvRenderContext *rc,
- gboolean border)
-{
- PixbufDocument *pixbuf_document = PIXBUF_DOCUMENT (document);
- GdkPixbuf *pixbuf, *rotated_pixbuf;
- gint width, height;
-
- width = (gint) (gdk_pixbuf_get_width (pixbuf_document->pixbuf) * rc->scale);
- height = (gint) (gdk_pixbuf_get_height (pixbuf_document->pixbuf) * rc->scale);
-
- pixbuf = gdk_pixbuf_scale_simple (pixbuf_document->pixbuf,
- width, height,
- GDK_INTERP_BILINEAR);
-
- rotated_pixbuf = gdk_pixbuf_rotate_simple (pixbuf, 360 - rc->rotation);
- g_object_unref (pixbuf);
-
- return rotated_pixbuf;
-}
-
-static void
-pixbuf_document_document_thumbnails_iface_init (EvDocumentThumbnailsInterface *iface)
-{
- iface->get_thumbnail = pixbuf_document_thumbnails_get_thumbnail;
-}
-
-