X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=pixbuf%2Fpixbuf-document.c;h=4195675ba755aa7e9fd5ad5f467a5f6acbfcfc36;hb=270db25dcfc5cc6a6d9409184fb42f620ac82cab;hp=dc54e35c6c4d3bd347203df647045fc227fe406f;hpb=1cf7013b89fc6908a15f82e6425de4142f86f1ee;p=evince.git diff --git a/pixbuf/pixbuf-document.c b/pixbuf/pixbuf-document.c index dc54e35c..4195675b 100644 --- a/pixbuf/pixbuf-document.c +++ b/pixbuf/pixbuf-document.c @@ -137,6 +137,7 @@ pixbuf_document_set_page_offset (EvDocument *document, static void pixbuf_document_get_page_size (EvDocument *document, + int page, int *width, int *height) { @@ -266,19 +267,20 @@ pixbuf_document_document_iface_init (EvDocumentIface *iface) static GdkPixbuf * pixbuf_document_thumbnails_get_thumbnail (EvDocumentThumbnails *document, - gint page, - gint width) + gint page, + gint size, + gboolean border) { PixbufDocument *pixbuf_document = PIXBUF_DOCUMENT (document); GdkPixbuf *pixbuf; gdouble scale_factor; gint height; - scale_factor = (gdouble)width / gdk_pixbuf_get_width (pixbuf_document->pixbuf); + scale_factor = (gdouble)size / gdk_pixbuf_get_width (pixbuf_document->pixbuf); height = gdk_pixbuf_get_height (pixbuf_document->pixbuf) * scale_factor; - pixbuf = gdk_pixbuf_scale_simple (pixbuf_document->pixbuf, width, height, + pixbuf = gdk_pixbuf_scale_simple (pixbuf_document->pixbuf, size, height, GDK_INTERP_BILINEAR); return pixbuf;