]> www.fi.muni.cz Git - evince.git/blobdiff - thumbnailer/evince-thumbnailer.c
Rework API a bit. Add a border flag and change sizing logic (now the size
[evince.git] / thumbnailer / evince-thumbnailer.c
index 505f5f353007c0b3c8a504f5c242724bcb3f69fe..d7db2654a864122592fb232609d94b9ebef2329f 100644 (file)
@@ -1,3 +1,21 @@
+/*
+   Copyright (C) 2005 Fernando Herrera <fherrera@onirica.com>
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+*/
+
 #include <pdf-document.h>
 
 #include <libgnomevfs/gnome-vfs-mime-utils.h>
 #include <pdf-document.h>
 
 #include <libgnomevfs/gnome-vfs-mime-utils.h>
@@ -10,6 +28,8 @@
 
 #include <string.h>
 
 
 #include <string.h>
 
+#define THUMBNAIL_SIZE 128
+
 static gboolean
 evince_thumbnail_pngenc_get (const char *uri, const char *thumbnail)
 {
 static gboolean
 evince_thumbnail_pngenc_get (const char *uri, const char *thumbnail)
 {
@@ -37,7 +57,7 @@ evince_thumbnail_pngenc_get (const char *uri, const char *thumbnail)
        }
 
        pixbuf = ev_document_thumbnails_get_thumbnail
        }
 
        pixbuf = ev_document_thumbnails_get_thumbnail
-                       (EV_DOCUMENT_THUMBNAILS (document), 1, 100);
+                       (EV_DOCUMENT_THUMBNAILS (document), 0, THUMBNAIL_SIZE, FALSE);
        
        if (pixbuf != NULL) {
                GdkPixbuf *pdflogo;
        
        if (pixbuf != NULL) {
                GdkPixbuf *pdflogo;