Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/thumbnailer
diff options
context:
space:
mode:
authorFernando Herrera <fherrera@onirica.com>2005-03-03 11:27:02 (GMT)
committer Fernando Herrera de las Heras <fherrera@src.gnome.org>2005-03-03 11:27:02 (GMT)
commit5828087a754699a1f5a5e0234f706fd6e53e2648 (patch)
treeef8325035f6d8ec10fb357d9206c6568479f27f9 /thumbnailer
parentb35706911e1abf4ca868b202e9149ace1a587020 (diff)
take thumbnails from page "0" instead of "1". Added a copyright header.
2005-03-03 Fernando Herrera <fherrera@onirica.com> * thumbnailer/evince-thumbnailer.c: (evince_thumbnail_pngenc_get): take thumbnails from page "0" instead of "1". Added a copyright header.
Diffstat (limited to 'thumbnailer')
-rw-r--r--thumbnailer/evince-thumbnailer.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/thumbnailer/evince-thumbnailer.c b/thumbnailer/evince-thumbnailer.c
index 505f5f3..06fdec1 100644
--- a/thumbnailer/evince-thumbnailer.c
+++ b/thumbnailer/evince-thumbnailer.c
@@ -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>
@@ -10,6 +28,8 @@
#include <string.h>
+#define THUMBNAIL_SIZE 100
+
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
- (EV_DOCUMENT_THUMBNAILS (document), 1, 100);
+ (EV_DOCUMENT_THUMBNAILS (document), 0, THUMBNAIL_SIZE);
if (pixbuf != NULL) {
GdkPixbuf *pdflogo;