--- evince-2.30.3.orig/debian/evince.xpm
+++ evince-2.30.3/debian/evince.xpm
@@ -0,0 +1,162 @@
+/* XPM */
+static char * evince_xpm[] = {
+"16 16 143 2",
+"  	c None",
+". 	c #3B6BA7",
+"+ 	c #3666A5",
+"@ 	c #3465A4",
+"# 	c #3C6BA7",
+"$ 	c #5D84B6",
+"% 	c #DAE4EF",
+"& 	c #FEFEFE",
+"* 	c #FFFFFF",
+"= 	c #DBE4EF",
+"- 	c #5E85B7",
+"; 	c #3B6AA7",
+"> 	c #DAE3EF",
+", 	c #E2EBF5",
+"' 	c #CBDCED",
+") 	c #CFDEEF",
+"! 	c #D4E1F0",
+"~ 	c #D8E4F2",
+"{ 	c #E9EFF7",
+"] 	c #EDF3F9",
+"^ 	c #ECF2F8",
+"/ 	c #D7E3F1",
+"( 	c #D0DFEF",
+"_ 	c #E4EDF6",
+": 	c #3566A4",
+"< 	c #C8D9EC",
+"[ 	c #CBDCEE",
+"} 	c #D1DFEF",
+"| 	c #DDE8F3",
+"1 	c #F4E8EB",
+"2 	c #E57B7B",
+"3 	c #DB4B4B",
+"4 	c #D42828",
+"5 	c #DE5C5C",
+"6 	c #FBFCFD",
+"7 	c #D2E0EF",
+"8 	c #CCDDEE",
+"9 	c #C7D9EC",
+"0 	c #CCDCEE",
+"a 	c #E9F0F8",
+"b 	c #ECA4A4",
+"c 	c #D42626",
+"d 	c #EEAAAA",
+"e 	c #FBECEC",
+"f 	c #DF5F5F",
+"g 	c #E57D7D",
+"h 	c #F6F9FC",
+"i 	c #D1E0F0",
+"j 	c #C6D8EC",
+"k 	c #DFE9F4",
+"l 	c #E99393",
+"m 	c #D11818",
+"n 	c #F6D1D1",
+"o 	c #F0B6B6",
+"p 	c #DC5252",
+"q 	c #FEFBFB",
+"r 	c #E3ECF5",
+"s 	c #CDDDEE",
+"t 	c #F3CFD0",
+"u 	c #CD0707",
+"v 	c #ECA1A1",
+"w 	c #F6D0D0",
+"x 	c #DC5151",
+"y 	c #FEF8F8",
+"z 	c #E9F0F7",
+"A 	c #D2E1F0",
+"B 	c #CEDEEF",
+"C 	c #C9DAED",
+"D 	c #E0EAF4",
+"E 	c #E47A7A",
+"F 	c #CC0000",
+"G 	c #F7D8D8",
+"H 	c #DF6161",
+"I 	c #FDF4F4",
+"J 	c #EAF1F8",
+"K 	c #D2E0F0",
+"L 	c #D4E2F1",
+"M 	c #EDF2F8",
+"N 	c #F8DADA",
+"O 	c #3A69A6",
+"P 	c #F4C7C7",
+"Q 	c #CE0C0C",
+"R 	c #E88C8C",
+"S 	c #FEFCFC",
+"T 	c #EEF3F9",
+"U 	c #D9E4F2",
+"V 	c #E6EEF6",
+"W 	c #EFD7DA",
+"X 	c #EEABAB",
+"Y 	c #E68181",
+"Z 	c #E78585",
+"` 	c #C1D5EA",
+" .	c #F9FBFD",
+"..	c #F1BABA",
+"+.	c #DB4A4A",
+"@.	c #DA4646",
+"#.	c #E57E7E",
+"$.	c #E98F8F",
+"%.	c #E37575",
+"&.	c #D83D3D",
+"*.	c #D93F3F",
+"=.	c #F0B2B2",
+"-.	c #F8DBDB",
+";.	c #F7E5E6",
+">.	c #F9E1E1",
+",.	c #FFFEFE",
+"'.	c #F4C8C8",
+").	c #FCEEEE",
+"!.	c #FFFDFD",
+"~.	c #3768A5",
+"{.	c #E6EDF5",
+"].	c #FEF9F9",
+"^.	c #CEDDEE",
+"/.	c #DEE9F4",
+"(.	c #EFF4F9",
+"_.	c #EDF2F9",
+":.	c #DCE7F3",
+"<.	c #CCDCED",
+"[.	c #BBD1E8",
+"}.	c #B4CBE5",
+"|.	c #D6E3F1",
+"1.	c #B7CEE7",
+"2.	c #B9CFE7",
+"3.	c #BAD0E8",
+"4.	c #B4CCE6",
+"5.	c #DFE7F2",
+"6.	c #B0C9E4",
+"7.	c #B2CBE5",
+"8.	c #B5CDE6",
+"9.	c #B6CDE6",
+"0.	c #B6CEE7",
+"a.	c #CFDEEE",
+"b.	c #DFE8F2",
+"c.	c #6E91BE",
+"d.	c #EAF0F6",
+"e.	c #F7F9FC",
+"f.	c #F5F8FB",
+"g.	c #F7FAFC",
+"h.	c #6F92BE",
+"i.	c #3A6AA7",
+"j.	c #4F79B0",
+"k.	c #567FB3",
+"l.	c #567FB4",
+"    . + @ @ @ @ @ @ @ @ + #     ",
+"  $ % & * * * * * * * * & = -   ",
+"; > , ' ) ! ~ , { ] ^ / ( _ = . ",
+": & < [ } | 1 2 3 4 5 6 7 8 & + ",
+"@ * 9 0 a b c d e f g h i 0 * @ ",
+"@ * j k l m n * o p q r ( [ * @ ",
+"@ * s t u v & w x y z A B C * + ",
+"@ * D E F w G H I J K ) L M N O ",
+"@ * k P Q f R S T U V W X Y Z O ",
+"@ * `  ...+.@.#.$.%.&.*.#.=.-.O ",
+"@ * s ;.>.* ,.-.'.N ).!.* & * ~.",
+"@ * {.].T ^./.T (._.a :.<.[.* @ ",
+"@ * }.|.1.2.3.[.[.[.3.2.1.4.* @ ",
+"; 5.s 6.7.4.8.9.0.9.8.4.7.a.b.; ",
+"  c.d.e.f.f.f.f.f.f.f.f.g.d.h.  ",
+"    i.j.k.k.l.l.l.l.l.k.j.;     "};
--- evince-2.30.3.orig/debian/libevdocument-dev.install
+++ evince-2.30.3/debian/libevdocument-dev.install
@@ -0,0 +1,4 @@
+debian/tmp/usr/lib/libevdocument.{so,a}
+debian/tmp/usr/lib/pkgconfig/evince-document-*
+debian/tmp/usr/include/evince/*/*document*
+debian/tmp/usr/share/gtk-doc/html/libevdocument*
--- evince-2.30.3.orig/debian/evince.manpages
+++ evince-2.30.3/debian/evince.manpages
@@ -0,0 +1 @@
+debian/evince-thumbnailer.1
--- evince-2.30.3.orig/debian/evince.postinst
+++ evince-2.30.3/debian/evince.postinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if [ "$1" = "configure" ]; then
+    APP_PROFILE="/etc/apparmor.d/usr.bin.evince"
+    if [ -f "$APP_PROFILE" ] && aa-status --enabled 2>/dev/null; then
+        apparmor_parser -r -T -W "$APP_PROFILE" || true
+    fi
+fi
+
--- evince-2.30.3.orig/debian/evince.xml
+++ evince-2.30.3/debian/evince.xml
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+
+Copyright 2005 Lars Wirzenius (liw@iki.fi)
+
+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
+
+-->
+
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.2//EN" 
+     "/usr/share/xml/docbook/schema/dtd/4.2/docbookx.dtd" []>
+
+<refentry>
+
+  <refentryinfo>
+    <address>
+      <email>liw@iki.fi</email>
+    </address>
+    <author>
+      <firstname>Lars</firstname>
+      <surname>Wirzenius</surname>
+    </author>
+    <date>2005-02-21</date>
+  </refentryinfo>
+
+  <refmeta>
+    <refentrytitle>evince</refentrytitle>
+    <manvolnum>1</manvolnum>
+  </refmeta>
+
+  <refnamediv>
+    <refname>evince</refname> 
+    <refpurpose>view PostScript and PDF documents</refpurpose>
+  </refnamediv>
+
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>evince</command>
+      <arg><replaceable>file</replaceable></arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  
+  <refsect1>
+    <title>DESCRIPTION</title>
+    
+    <para><command>evince</command> is a GNOME program for viewing
+    PostScript (PS) and Portable Document Format (PDF) documents.
+    It uses GhostScript for showing PS, and XPDF for showing PDF.</para>
+    
+  </refsect1>
+  
+  <refsect1>
+    <title>OPTIONS</title>
+    
+    <para><command>evince</command> obeys all normal GNOME and GTK+ 
+    command line options, and has no application specific options.</para>
+
+    </refsect1>
+
+  <refsect1>
+    <title>SEE ALSO</title>
+    
+    <para>
+        <citerefentry><refentrytitle>gnome-options</refentrytitle>
+                      <manvolnum>7</manvolnum></citerefentry>,
+        <citerefentry><refentrytitle>gtk-options</refentrytitle>
+                      <manvolnum>7</manvolnum></citerefentry>.
+    </para>
+    
+    <para><ulink url="http://www.gnome.org/projects/evince/"
+    >http://www.gnome.org/projects/evince/</ulink></para>
+    
+  </refsect1>
+
+</refentry>
--- evince-2.30.3.orig/debian/apparmor-profile
+++ evince-2.30.3/debian/apparmor-profile
@@ -0,0 +1,78 @@
+# vim:syntax=apparmor
+# Last Modified: Tue Jun 09 14:34:12 2009
+# Author: Kees Cook <kees@canonical.com>
+#         Jamie Strandboge <jamie@canonical.com>
+
+#include <tunables/global>
+
+/usr/bin/evince {
+  #include <abstractions/evince>
+
+  /usr/bin/evince rmPx,
+  /usr/bin/evince-previewer Px,
+
+  # allow directory listings (ie 'r' on directories) so browsing via the file
+  # dialog works
+  / r,
+  /**/ r,
+
+  @{HOME}/ r,
+
+  # This is need for saving files in your home directory without an extension.
+  # Changing this to '@{HOME}/** r' makes it require an extension and more
+  # secure (but with 'rw', we still have abstractions/private-files-strict in
+  # effect).
+  @{HOME}/** rw,
+
+  @{HOME}/.gnome2/evince/*       rwl,
+  @{HOME}/.gnome2/accels/        rw,
+  @{HOME}/.gnome2/accelsevince   rw,
+  @{HOME}/.gnome2/accels/evince  rw,
+
+  # from http://live.gnome.org/Evince/SupportedDocumentFormats. Allow
+  # read and write for all supported file formats
+  /**.[bB][mM][pP]     rw,
+  /**.[dD][jJ][vV][uU] rw,
+  /**.[dD][vV][iI]     rw,
+  /**.[gG][iI][fF]     rw,
+  /**.[jJ][pP][gG]     rw,
+  /**.[jJ][pP][eE][gG] rw,
+  /**.[oO][dD][pP]     rw,
+  /**.[pP][dD][fF]     rw,
+  /**.[pP][nN][mM]     rw,
+  /**.[pP][nN][gG]     rw,
+  /**.[pP][sS]         rw,
+  /**.[eE][pP][sS]     rw,
+  /**.[tT][iI][fF]     rw,
+  /**.[tT][iI][fF][fF] rw,
+  /**.[xX][pP][mM]     rw,
+  /**.[gG][zZ]         rw,
+  /**.[bB][zZ]2        rw,
+  /**.[cC][bB][rRzZ7]  rw,
+
+  # evince creates a temporary stream file like '.goutputstream-XXXXXX' in the
+  # directory a file is saved. This allows that behavior.
+  owner /**/.goutputstream-* w,
+}
+
+/usr/bin/evince-previewer {
+  #include <abstractions/evince>
+
+  /usr/bin/evince-previewer mr,
+
+  # Lenient, but remember we still have abstractions/private-files-strict in
+  # effect).
+  @{HOME}/ r,
+  @{HOME}/** r,
+}
+
+/usr/bin/evince-thumbnailer {
+  #include <abstractions/evince>
+
+  /usr/bin/evince-thumbnailer mr,
+
+  # Lenient, but remember we still have abstractions/private-files-strict in
+  # effect).
+  @{HOME}/ r,
+  @{HOME}/** rw,
+}
--- evince-2.30.3.orig/debian/evince.mime
+++ evince-2.30.3/debian/evince.mime
@@ -0,0 +1,23 @@
+application/pdf; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.pdf; priority=5
+application/x-pdf; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.pdf; priority=5
+application/x-bzpdf; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.pdf.bz2; priority=5
+application/x-gzpdf; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.pdf.gz; priority=5
+application/postscript; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.ps; priority=5
+application/x-bzpostscript; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.ps.bz2; priority=5
+application/x-gzpostscript; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.ps.gz; priority=5
+image/x-eps; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.eps; priority=5
+image/x-bzeps; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.eps.bz2; priority=5
+image/x-gzeps; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.eps.gz; priority=5
+application/x-dvi; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.dvi; priority=5
+application/x-gzdvi; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.dvi.gz; priority=5
+application/x-bzdvi; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.dvi.bz2; priority=5
+image/vnd.djvu; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.djvu; priority=5
+image/tiff; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.tiff; priority=5
+application/x-cbr; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.cbr; priority=5
+application/x-cbz; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.cbz; priority=5
+application/x-cb7; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.cb7; priority=5
+application/x-cbt; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.cbt; priority=5
+application/vnd.sun.xml.impress; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.sxd; priority=5
+application/vnd.oasis.opendocument.presentation; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.odp; priority=5
+
+image/*; evince %s; test=test -n "$DISPLAY"; nametemplate=%s.dummy; priority=5
--- evince-2.30.3.orig/debian/evince.apport
+++ evince-2.30.3/debian/evince.apport
@@ -0,0 +1,59 @@
+'''apport package hook for evince
+
+(c) 2009 Canonical Ltd.
+Author:
+Jamie Strandboge <jamie@ubuntu.com>
+
+'''
+
+from apport.hookutils import *
+from os import path
+import re
+
+def recent_kernlog(pattern):
+    '''Extract recent messages from kern.log or message which match a regex.
+       pattern should be a "re" object.  '''
+    lines = ''
+    if os.path.exists('/var/log/kern.log'):
+        file = '/var/log/kern.log'
+    elif os.path.exists('/var/log/messages'):
+        file = '/var/log/messages'
+    else:
+        return lines
+
+    for line in open(file):
+        if pattern.search(line):
+            lines += line
+    return lines
+
+def recent_auditlog(pattern):
+    '''Extract recent messages from kern.log or message which match a regex.
+       pattern should be a "re" object.  '''
+    lines = ''
+    if os.path.exists('/var/log/audit/audit.log'):
+        file = '/var/log/audit/audit.log'
+    else:
+        return lines
+
+    for line in open(file):
+        if pattern.search(line):
+            lines += line
+    return lines
+
+def add_info(report):
+    attach_conffiles(report, 'evince')
+    attach_related_packages(report, ['apparmor', 'libapparmor1',
+        'libapparmor-perl', 'apparmor-utils', 'auditd', 'libaudit0'])
+
+    # get apparmor stuff. copied from source_apparmor.py until apport runs
+    # runs hooks via attach_related_packages
+    attach_file(report, '/proc/version_signature', 'ProcVersionSignature')
+    attach_file(report, '/proc/cmdline', 'ProcCmdline')
+
+    sec_re = re.compile('audit\(|apparmor|selinux|security', re.IGNORECASE)
+    report['KernLog'] = recent_kernlog(sec_re)
+
+    if os.path.exists("/var/log/audit"):
+        # this needs to be run as root
+        report['AuditLog'] = recent_auditlog(sec_re)
+
--- evince-2.30.3.orig/debian/evince-thumbnailer.1
+++ evince-2.30.3/debian/evince-thumbnailer.1
@@ -0,0 +1,20 @@
+.TH evince\-thumbnailer 1 2007\-01\-15  
+.SH NAME
+evince\-thumbnailer \- create png thumbnails from PostScript and PDF documents
+.SH SYNOPSIS
+\fBevince\-thumbnailer\fR [\-s \fBsize\fR] \fBinput\fR \fBoutput\fR 
+.SH DESCRIPTION
+evince\-thumbnailer is a GNOME program to
+create thumbnails from PostScript (PS), Portable Document Format
+(PDF), DjVu and DVI files.
+.SH OPTIONS
+evince obeys all normal GNOME and GTK+ 
+command line options. The only option \-s \fIsize
+\fRmakes it possible to choose the vertical size
+of the created thumbnail.
+.SH "SEE ALSO"
+\fBevince\fR(1),
+\fBgnome\-options\fR(7),
+\fBgtk\-options\fR(7).
+.PP
+http://www.gnome.org/projects/evince/
--- evince-2.30.3.orig/debian/README.Debian
+++ evince-2.30.3/debian/README.Debian
@@ -0,0 +1,7 @@
+Apparmor Profile
+----------------
+If your system uses AppArmor, please note that the shipped enforcing profile
+works with the default installation, and changes in your configuration may
+require changes to the installed apparmor profile. Please see
+https://wiki.ubuntu.com/DebuggingApparmor before filing a bug against this
+software.
--- evince-2.30.3.orig/debian/rules
+++ evince-2.30.3/debian/rules
@@ -0,0 +1,38 @@
+#!/usr/bin/make -f
+
+include /usr/share/hardening-includes/hardening.make
+CFLAGS += $(HARDENING_CFLAGS)
+CXXFLAGS += $(HARDENING_CFLAGS)
+LDFLAGS += $(HARDENING_LDFLAGS)
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/gnome.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
+-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk
+
+DEB_CONFIGURE_EXTRA_FLAGS := --disable-scrollkeeper \
+			--enable-djvu \
+			--enable-dvi \
+			--enable-pixbuf \
+			--enable-comics \
+			--enable-impress
+
+DEB_DH_MAKESHLIBS_ARGS += --exclude=libevince-properties-page.so
+DEB_DH_SHLIBDEPS_ARGS_evince += --exclude=libevince-properties-page.so
+DEB_DH_MAKESHLIBS_ARGS_libevview2 += -V 'libevview2 (>= 2.29.5)'
+DEB_DH_MAKESHLIBS_ARGS_libevdocument2 += -V 'libevdocument2 (>= 2.29.5)'
+
+binary-install/evince::
+	rm -rf debian/evince/usr/lib/evince/*/*/*a debian/evince/usr/share/gtk-doc/html/lib*
+	cp debian/apparmor-profile debian/evince/etc/apparmor.d/usr.bin.evince
+	cp debian/apparmor-profile.abstraction debian/evince/etc/apparmor.d/abstractions/evince
+	cp debian/evince.apport debian/evince/usr/share/apport/package-hooks/source_evince.py
+
+binary-install/evince-dbg::
+	rm -rf debian/evince-dbg/usr/share/doc/evince-dbg
+	dh_link -pevince-dbg usr/share/doc/evince usr/share/doc/evince-dbg
+
+binary-post-install/evince::
+	# check for missing MIME types
+	desktop-check-mime-types
--- evince-2.30.3.orig/debian/libevview2.install
+++ evince-2.30.3/debian/libevview2.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/libevview.so.*
--- evince-2.30.3.orig/debian/libevview-dev.install
+++ evince-2.30.3/debian/libevview-dev.install
@@ -0,0 +1,4 @@
+debian/tmp/usr/lib/libevview.{so,a}
+debian/tmp/usr/lib/pkgconfig/evince-view-*
+debian/tmp/usr/include/evince/*/*view*
+debian/tmp/usr/share/gtk-doc/html/libevview*
--- evince-2.30.3.orig/debian/evince.menu
+++ evince-2.30.3/debian/evince.menu
@@ -0,0 +1,3 @@
+?package(evince):needs="X11" section="Applications/Viewers"\
+ title="Evince" command="/usr/bin/evince"\
+ hints="Documents,GNOME" icon="/usr/share/pixmaps/evince.xpm"
--- evince-2.30.3.orig/debian/evince.dirs
+++ evince-2.30.3/debian/evince.dirs
@@ -0,0 +1,2 @@
+etc/apparmor.d/abstractions
+usr/share/apport/package-hooks
--- evince-2.30.3.orig/debian/evince.install
+++ evince-2.30.3/debian/evince.install
@@ -0,0 +1,7 @@
+debian/evince.lintian-override /usr/share/lintian/overrides/
+debian/evince.xpm /usr/share/pixmaps/
+debian/tmp/usr/bin
+debian/tmp/usr/lib/nautilus/*/libevince*.so
+debian/tmp/usr/lib/evince
+debian/tmp/usr/share
+debian/tmp/etc/gconf
--- evince-2.30.3.orig/debian/evince-thumbnailer.xml
+++ evince-2.30.3/debian/evince-thumbnailer.xml
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+
+Copyright 2007 Marc Brockschmidt <he@debian.org>
+
+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
+
+-->
+
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.4//EN" 
+     "/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd" []>
+
+<refentry>
+
+  <refentryinfo>
+    <address>
+      <email>he@debian.org</email>
+    </address>
+    <author>
+      <firstname>Marc</firstname>
+      <surname>Brockschmidt</surname>
+    </author>
+    <date>2007-01-15</date>
+  </refentryinfo>
+
+  <refmeta>
+    <refentrytitle>evince-thumbnailer</refentrytitle>
+    <manvolnum>1</manvolnum>
+  </refmeta>
+
+  <refnamediv>
+    <refname>evince-thumbnailer</refname> 
+    <refpurpose>create png thumbnails from PostScript and PDF documents</refpurpose>
+  </refnamediv>
+
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>evince-thumbnailer</command>
+        <arg>-s <replaceable>size</replaceable></arg>
+        <arg choice='plain'><replaceable>input</replaceable></arg>
+        <arg choice='plain'><replaceable>output</replaceable></arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  
+  <refsect1>
+    <title>DESCRIPTION</title>
+    
+	<para><command>evince-thumbnailer</command> is a GNOME program to
+		create thumbnails from PostScript (PS), Portable Document Format
+		(PDF), DjVu and DVI files.</para>
+    
+  </refsect1>
+  
+  <refsect1>
+    <title>OPTIONS</title>
+    
+    <para><command>evince</command> obeys all normal GNOME and GTK+ 
+		command line options. The only option <arg>-s <replaceable>size
+		</replaceable></arg> makes it possible to choose the vertical size
+		of the created thumbnail.</para>
+
+    </refsect1>
+
+  <refsect1>
+    <title>SEE ALSO</title>
+    
+	<para>
+		<citerefentry><refentrytitle>evince</refentrytitle>
+			<manvolnum>1</manvolnum></citerefentry>,
+        <citerefentry><refentrytitle>gnome-options</refentrytitle>
+			<manvolnum>7</manvolnum></citerefentry>,
+        <citerefentry><refentrytitle>gtk-options</refentrytitle>
+			<manvolnum>7</manvolnum></citerefentry>.
+    </para>
+    
+    <para><ulink url="http://www.gnome.org/projects/evince/"
+    >http://www.gnome.org/projects/evince/</ulink></para>
+    
+  </refsect1>
+
+</refentry>
--- evince-2.30.3.orig/debian/evince.postrm
+++ evince-2.30.3/debian/evince.postrm
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if [ "$1" = "purge" ]; then
+    APP_PROFILE="usr.sbin.evince"
+    rm -f /etc/apparmor.d/force-complain/$APP_PROFILE >/dev/null 2>&1 || true
+    rm -f /etc/apparmor.d/disable/$APP_PROFILE >/dev/null 2>&1 || true
+
+    rm -f /usr/share/apport/package-hooks/source_evince.pyc
+fi
+
+
--- evince-2.30.3.orig/debian/changelog
+++ evince-2.30.3/debian/changelog
@@ -0,0 +1,1228 @@
+evince (2.30.3-0ubuntu1.2) lucid-security; urgency=low
+
+  * SECURITY UPDATE: arbitrary code execution via multiple dvi backend
+    overflows
+    - debian/patches/02_CVE-2010-264x.patch: add bounds checking in
+      backend/dvi/mdvi-lib/{afmparse,dviread,pk,tfmfile,vf}.c.
+    - CVE-2010-2640
+    - CVE-2010-2641
+    - CVE-2010-2642
+    - CVE-2010-2643
+
+ -- Marc Deslauriers <marc.deslauriers@ubuntu.com>  Mon, 03 Jan 2011 13:13:51 -0500
+
+evince (2.30.3-0ubuntu1.1) lucid-proposed; urgency=low
+
+  * debian/apparmor-profile.abstraction:
+    - allow ixr for tar, to allow opening of cbt files
+    - allow ixr for 7za, to allow opening of cbz files when using p7zip-full
+    - allow ixr for zipnote, to allow opening of cbz files with newer evince
+      (LP: #599169)
+
+ -- Jamie Strandboge <jamie@ubuntu.com>  Tue, 06 Jul 2010 12:09:09 -0500
+
+evince (2.30.3-0ubuntu1) lucid-proposed; urgency=low
+
+  * New upstream release:
+    - Fix cbz comics (Juanjo Marín)
+    - Don't save print settings that are document specific into global
+      file, since they are already saved in per file metadata
+      (Carlos Garcia Campos)
+    - Reload presentation view when document changes (Carlos Garcia Campos)
+      (LP: #594967)
+    - Fix opening cbz files with [] in archive (Juanjo Marín)
+    - Fix fade animations in presentation mode (Carlos Garcia Campos)
+    - Fix a crash when starting animations in presentation mode
+      (Carlos Garcia Campos)
+    - Fix localization on Windows (Hib Eris)
+    - Allow opening documents specified by relative path in
+      evince-previewer (Marek Kasik)
+    - Fix opening files with '#' in its name (Carlos Garcia Campos)
+    - Accept input focus on annotation windows (Carlos Garcia Campos)
+    - Respect GNOME22_USER_DIR env variable in ev-daemon (Carlos
+      Garcia Campos)
+    - Fix a crash when user directory doesn't exist (Carlos Garcia Campos)
+    - Translation updates
+  * Remove debian/patches/02_fix_dot_dir_creation.patch,
+    debian/patches/03_fix_opening_hash_filename.patch:
+    - in current release
+
+ -- Didier Roche <didrocks@ubuntu.com>  Thu, 24 Jun 2010 11:09:56 +0200
+
+evince (2.30.1-0ubuntu3) lucid-proposed; urgency=low
+
+  [ Jamie Strandboge ]
+  * debian/apparmor-profile.abstraction: allow writes to removable media
+    (LP: #490230)
+
+  [ Didier Roche ]
+  * debian/patches/03_fix_opening_hash_filename.patch:
+    Fix opening files with '#' in its name (LP: #578996)
+
+ -- Didier Roche <didrocks@ubuntu.com>  Thu, 13 May 2010 16:31:06 +0200
+
+evince (2.30.1-0ubuntu2) UNRELEASED; urgency=low
+
+  * add debian/patches/02_fix_dot_dir_creation.patch:
+    fix dot dir creation when launching evince directly (LP: #571725)
+
+ -- Didier Roche <didrocks@ubuntu.com>  Fri, 30 Apr 2010 09:02:33 +0200
+
+evince (2.30.1-0ubuntu1) UNRELEASED; urgency=low
+
+  * New upstream release:
+    Bug fixes:
+    - Make inverted colors mode work in presentation mode too
+      (#614693, Carlos Garcia Campos)
+    - Respect GNOME22_USER_DIR env variable (#613637, Ray Strode)
+    - Fix loading of local documents when uri contains a page
+      destination (#616515, Carlos Garcia Campos)
+    - Take default settings from last document opened. Fixes
+      regression caused by migration to gio metadata (#606090, Carlos
+      Garcia Campos) (LP: #544639, #503372)
+    - Update icons to match gnome-icon-theme appearance (#614747,
+      Hylke Bons, Carlos Garcia Campos)
+    - Make sure there's a new valid page range before updating caches
+      (fdo#27599, Carlos Garcia Campos)
+    - Update FSF address everywhere (#514607, Arun Persaud)
+    - Fix loading of compressed password-protected documents (#613959,
+      Carlos Garcia Campos)
+    - Close previewer window with control + w (#612972, Carlos Garcia
+      Campos)
+    - Fix keybindings in previewer window (#612972, Carlos Garcia
+      Campos)
+    Translation updates
+
+ -- Didier Roche <didrocks@ubuntu.com>  Wed, 28 Apr 2010 14:13:32 +0200
+
+evince (2.30.0-0ubuntu1) lucid; urgency=low
+
+  * New upstream version
+    Bug fixes:
+    - Fix scale calculation on rotated monitors in presentation mode
+    - Save current page when closing window in presentation mode
+    - Fix rendering of documents with non uniform page size when in
+      presentation mode 
+    - Use monitor height instead of screen height to calculate page
+      scale in presentation mode (lp: #538418)
+  * debian/patches/99_autoconf.patch:  
+    - new version update
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Mon, 29 Mar 2010 23:43:41 +0200
+
+evince (2.29.92-0ubuntu1) lucid; urgency=low
+
+  * New upstream version
+    Bug fixes:
+    - Fix build with gtk+ >= 2.19.7
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Wed, 10 Mar 2010 21:38:42 +0100
+
+evince (2.29.91-0ubuntu2) lucid; urgency=low
+
+  * debian/apparmor-profile.abstraction: allow access to ubuntu-media-players
+    (LP: #462419)
+
+ -- Jamie Strandboge <jamie@ubuntu.com>  Mon, 08 Mar 2010 15:41:42 -0600
+
+evince (2.29.91-0ubuntu1) lucid; urgency=low
+
+  * New upstream release:
+    - Modernise API docs (Christian Persch)
+    - Fix dpi calculation (#608586, Juanjo Marín)
+    - Allow adding actions for more than one item in view popup menu
+      (#609497, Carlos Garcia Campos)
+    - Add gconf schemas for comic cbt files (#609501, Carlos Garcia
+      Campos)
+    - Update totem-scrsaver from totem sources (#610173, Carlos Garcia
+      Campos)
+    - Fix linking with pedantic linkers (#609895, Hib Eris)
+    - Do not link evince shell to poppler directly (#608832, Hib Eris)
+    - Several translatable messages fixed (#608698, Philip Withnall)
+    - Translation updates
+  * debian/control.in:
+    - add libx11-dev build-dep
+    - bump Standards-Version
+  * debian/libevdocument-dev.install and debian/libevview-dev.install:
+    - upstream gtk-doc folders now contains version
+
+ -- Didier Roche <didrocks@ubuntu.com>  Tue, 23 Feb 2010 11:58:49 +0100
+
+evince (2.29.5-0ubuntu1) lucid; urgency=low
+
+  * New upstream version:
+    New Features and UI Improvements:
+    - Make Home/End keys go to first/last page in presentation mode too 
+     (lp: #285629)
+    - Allow finish presentation by clicking on end page
+    - Add custom print tab to printing dialog with several page scale options
+      (lp: #276369)
+    - Add support for remote files in evince thumbnailers
+    - Add evince icon to the windows executable 
+    Bug fixes:
+    - Fix transition of pages with duration=0 in presentation mode    
+    - Fix vertical white line shown in presentation mode with documents 
+      with black background 
+    - Fix fickering and blank screen issues when changing pages fast
+      in presentation mode 
+    - Fix printing on Windows 
+    - Disable text selection in presentation mode
+    - Make comics backend also compile on Windows 
+    - Remove comics_regex_quote() in favor of always using g_shell_quote()
+    - Properly redrawn properties view when document is reloaded
+  * debian/rules:
+    - updated shlibs versions  
+    
+ -- Sebastien Bacher <seb128@ubuntu.com>  Mon, 11 Jan 2010 23:19:02 +0100
+
+evince (2.29.4-0ubuntu2) lucid; urgency=low
+
+  * debian/{rules,control,control.in}: add hardening-includes to gain
+    PIE security build.
+
+ -- Kees Cook <kees@ubuntu.com>  Tue, 05 Jan 2010 16:37:22 -0800
+
+evince (2.29.4-0ubuntu1) lucid; urgency=low
+
+  * New upstream version
+  * debian/evince.mime:
+    - updated for changes in the new version
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Mon, 04 Jan 2010 18:00:43 +0100
+
+evince (2.29.3-0ubuntu1) lucid; urgency=low
+
+  * New upstream version:
+    New Features and UI Improvements:
+    - Add inverted colors view mode
+    - Add options to open/save attachment annotations to context menu    
+    Bug fixes:
+    - Fix infinite loop when scrollbar visibility changes in fit-with mode 
+    - Do not resize the window when zoom in/out with CTRL+Scroll    
+    - Keep scroll position when reloading
+    - Make "p" and "n" accels unsensitive while searching
+    Translation updates
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Tue, 01 Dec 2009 19:43:41 +0100
+
+evince (2.29.2-0ubuntu1) lucid; urgency=low
+
+  * New upstream release:
+    - Add support for PDF File Attachment Annotations
+    - Use "n" and "p" keys for page jump
+    - Update actions sensitivity when gconf keys change
+    - Fix saving attachments
+    - Make sure view is redrawn as soon as current page is rendered
+    - Fix documentation of default flag values in configure
+    - Do not mark properties name and desc as translatable
+    - Fix build with glib < 2.22.0
+    - Disable print page setup options according to lockdown
+    - Fix loading of remote files
+    - Correctly process --with-smclient arguments
+
+ -- Robert Ancell <robert.ancell@canonical.com>  Thu, 26 Nov 2009 17:27:29 +1100
+
+evince (2.29.1-0ubuntu2) lucid; urgency=low
+
+  * debian/apparmor-profile*: adjust to allow opening of bzip2 compressed
+    files (LP: #480270)
+
+ -- Jamie Strandboge <jamie@ubuntu.com>  Tue, 10 Nov 2009 16:59:26 -0600
+
+evince (2.29.1-0ubuntu1) lucid; urgency=low
+
+  * New upstream release: (LP: #475109)
+    * Embed page setup settings in the print dialog
+    * A new tab has been added to properties dialog to show
+    * information about the document license
+    * Use different processes for every document opened.
+    * Use GVFS metadata instead of our own xml based implementation.
+    * When scrolling a page, move one screen leaving one line context
+      to help to visually track the document as it moves.
+    * Use GtkInfoBar instead of GeditMessageArea for the message area
+    * EvPageCache has been splitted up into document part (moved to
+      EvDocument which has been converted into an abstract class
+      instead of an interface) and view part: EvDocumentModel. This
+      allows to have more than one EvView for the same document, so
+      that "Open a Copy" can be implemented without using the symlink
+      hack.
+    * Several fixes and cleanups in comics backend
+    * Don't exit with non-writable $HOME
+    * Clean up temp file handling to make sure we can cope with not
+      being able to create our temp directory
+    * Set page orientation of each page when printing so that
+      documents with mixed portrait/landscape pages print correctly
+    * Preserve aspect ratio when scaling page for printing
+    * Fix a crash when we don't have a DBUS connection
+    * Make sure total_num_bytes > 0 before using it in progress
+      callbacks
+    * Escape document URI before showing it in progress area
+    * Fix a crash due to an uninitialized variable
+    * Fix a crash when there are form field widgets active during
+      rotation
+    * Remarks the selected thumbnail after rotation
+    * Don't change current page when rotating documents with different
+      page sizes
+    * Fix thumbnails rotation when loading a rotated document
+    * Save images as png or jpg when the filename has no extensions
+    * Populate destination page when reloading the document
+  * debian/control.in:
+    - Bump Standards-Version to 3.8.3
+    - Bump build-depends on libpoppler-glib-dev
+    - Add ${misc:Depends} on all packages
+  * debian/control.in:
+  * debian/libevdocument1.install:
+  * debian/libevdocument2.install
+  * debian/libevview1.install:
+  * debian/libevview2.install
+    - API changed to version 2
+  * debian/patches/80_revert_pdf_printing.patch:
+    - Applied upstream
+
+ -- Robert Ancell <robert.ancell@canonical.com>  Thu, 05 Nov 2009 17:21:47 +1100
+
+evince (2.28.1-0ubuntu1.1) karmic-proposed; urgency=low
+
+  * debian/apparmor-profile*: adjust to allow opening of .tif files, not just
+    .tiff (LP: #465192)
+
+ -- Jamie Strandboge <jamie@ubuntu.com>  Tue, 03 Nov 2009 16:25:24 -0600
+
+evince (2.28.1-0ubuntu1) karmic; urgency=low
+
+  * New upstream release: (LP: #455690)
+    - Make sure total_num_bytes > 0 before using it in progress callbacks
+    - Escape document URI before showing it in progress area
+      (Carlos Garcia Campos)
+    - Remove progress message area when document download finishes
+      (Carlos Garcia Campos)
+    - Fix a crash when there are form field widgets active during
+      rotation (LP: #418042) (Carlos Garcia Campos)
+    - Do not try to recover invalid or unneeded files (LP:  #432682)
+      (Carlos Garcia Campos)
+    - Translation updates
+
+ -- Didier Roche <didrocks@ubuntu.com>  Mon, 19 Oct 2009 21:06:21 +0200
+
+evince (2.28.0-0ubuntu5) karmic; urgency=low
+
+  * debian/apparmor-profile.abstraction: allow execute of dvipdfm, allowing
+    for printing of DVI files to work again (LP: #452057)
+
+ -- Jamie Strandboge <jamie@ubuntu.com>  Thu, 15 Oct 2009 12:28:40 -0500
+
+evince (2.28.0-0ubuntu4) karmic; urgency=low
+
+  * debian/apparmor-profile.abstraction: allow access to mozilla's cache.
+    Unfortunately, the method used is not as clean as it should be due to
+    LP: #451422. Once that bug is fixed, the added access will be much
+    simpler.
+    - LP: #439484
+    - LP: #449286
+
+ -- Jamie Strandboge <jamie@ubuntu.com>  Wed, 14 Oct 2009 13:11:42 -0500
+
+evince (2.28.0-0ubuntu3) karmic; urgency=low
+
+  * debian/patches/80_revert_pdf_printing.patch:
+    - don't use pdf printing for karmic to wokaround cairo pdfs creating
+      issues (lp: #443026)
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Wed, 14 Oct 2009 18:46:03 +0200
+
+evince (2.28.0-0ubuntu2) karmic; urgency=low
+
+  * debian/apparmor-profile.abstraction: allow access to /usr/local/share/**
+    for themes (LP: #444839)
+
+ -- Jamie Strandboge <jamie@ubuntu.com>  Wed, 07 Oct 2009 08:28:56 -0500
+
+evince (2.28.0-0ubuntu1) karmic; urgency=low
+
+  * New upstream version:
+    Bug fixes:
+    - Populate destination page when reloading the document
+    - Save images as png or jpg when the filename has no extensions
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Tue, 22 Sep 2009 00:49:59 +0200
+
+evince (2.27.90-0ubuntu8) karmic; urgency=low
+
+  [ Sebastien Bacher ]
+  * debian/evince.postinst:
+    - let the packaging tools add their snippets so the schemas are registered
+      (lp: #422777)
+
+  [ Jamie Strandboge ]
+  * debian/apparmor-profile.abstraction: allow the claws email client
+    (LP: #423236)
+  * debian/postrm: cleanup apport .pyc file
+  * debian/apparmor-profile: allow evince to transition to itself, so print
+    preview works (LP: #423687)
+  * debian/apparmor-profile.abstraction: use new ubuntu-* abstractions for
+    email clients and web browsers
+  * debian/control*: adjust Suggests to unversioned and Conflicts with apparmor
+    << 2.3.1+1403-0ubuntu18 for the ubuntu-* abstractions change
+
+ -- Jamie Strandboge <jamie@ubuntu.com>  Thu, 03 Sep 2009 10:01:50 -0500
+
+evince (2.27.90-0ubuntu7) karmic; urgency=low
+
+  * debian/apparmor-profile: allow transition to /usr/bin/evince-previewer
+    LP: #417736
+  * debian/evince.postinst: use '-T -W' instead of touch when reloaded the
+    profile
+  * debian/control*: versioned Suggests on apparmor >= 2.3.1+1403-0ubuntu13
+    for the above change
+
+ -- Jamie Strandboge <jamie@ubuntu.com>  Mon, 31 Aug 2009 14:28:45 -0500
+
+evince (2.27.90-0ubuntu6) karmic; urgency=low
+
+  * debian/apparmor-profile.abstraction: include abstractions/user-tmp
+    (LP: #415632)
+  * debian/apparmor-profile*:
+    - add support for DVI
+    - add support for EPS
+    - add epiphany-browser
+    - add email clients (evolution, kmail, thunderbird and mutt)
+    - add comments on using mutt via xterm and konsole (but don't allow
+      by default)
+  * add apport hook:
+    - add debian/evince.apport
+    - debian/evince.dirs: add usr/share/apport/package-hooks
+    - debian/rules: install evince.apport
+
+ -- Jamie Strandboge <jamie@ubuntu.com>  Wed, 19 Aug 2009 09:11:41 -0500
+
+evince (2.27.90-0ubuntu5) karmic; urgency=low
+
+  * debian/apparmor-profile.abstraction: allow read to /usr/share/** for
+    plugins, input methods and helpers (LP: #415354)
+
+ -- Jamie Strandboge <jamie@ubuntu.com>  Tue, 18 Aug 2009 08:57:42 -0500
+
+evince (2.27.90-0ubuntu4) karmic; urgency=low
+
+  * debian/apparmor-profiles.abstraction and debian/apparmor-profiles:
+    allow reading of comic book archives (LP: #413948)
+  * debian/apparmor-profiles: allow opening of hyperlinks (LP: #414114)
+
+ -- Jamie Strandboge <jamie@ubuntu.com>  Mon, 17 Aug 2009 16:16:38 -0500
+
+evince (2.27.90-0ubuntu3) karmic; urgency=low
+
+  * debian/apparmor-profiles.abstraction: allow opening of djvu files
+    (LP: #413454)
+  * debian/evince.postint: update timestamp on usr.bin.evince to force
+    apparmor cache regneration (needed when updating just the abstraction)
+
+ -- Jamie Strandboge <jamie@ubuntu.com>  Fri, 14 Aug 2009 07:33:20 -0500
+
+evince (2.27.90-0ubuntu2) karmic; urgency=low
+
+  * add enforcing AppArmor profile (LP: #382913)
+    - add debian/evince.dirs: create etc/apparmor.d/abstractions directory
+    - add debian/evince.postinst: reload AppArmor profile
+    - add debian/evince.postrm: cleanup apparmor force-complain and disable
+      directories
+    - add debian/apparmor-profile
+    - debian/rules: install apparmor-profile and abstraction
+    - add debian/README.Debian
+    - debian/control: Suggests apparmor
+
+ -- Jamie Strandboge <jamie@ubuntu.com>  Wed, 12 Aug 2009 11:44:58 -0500
+
+evince (2.27.90-0ubuntu1) karmic; urgency=low
+
+  * New upstream version
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Tue, 11 Aug 2009 12:37:26 +0200
+
+evince (2.27.4-0ubuntu2) karmic; urgency=low
+
+  * Clean vcs before building the source
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Mon, 13 Jul 2009 23:44:07 +0200
+
+evince (2.27.4-0ubuntu1) karmic; urgency=low
+
+  * New upstream version:
+    Bug fixes:
+    - Compute selections on button press for word/line selections
+    - Fix several even/odd multipage issues 
+    - Register thumbnailing for gzip/gzip dvi files
+    - Get rid of shave with AM_SILENT_RULES automake option
+    - Make evince output pdf on supported printers 
+    - Fix build on windows 
+    - Determine data directory on runtime on windows 
+    - Fix build without GConf 
+    - Fix several introspection build issues 
+  * debian/patches/01_launchpad.patch,
+    debian/patches/99_autoconf.patch:
+    - new version update
+  * debian/patches/60_gzdvi-support.patch:
+    - the change is in the new version
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Mon, 13 Jul 2009 21:28:43 +0200
+
+evince (2.27.3-0ubuntu1) karmic; urgency=low
+
+  * New upstream version (LP: #387676):
+    New Features and UI Improvements:
+    - Update the hildon port (Christian Persch)
+    - Complete the win32 port (#339172, Hib Eris)
+    - Allow activate the menubar in fullscreen mode (#504243, Carlos
+      Garcia Campos)
+    - Do not create popup window if the annot doesn't have a popup
+      (Carlos Garcia Campos)
+    - Add tests for printer settings (#583976, Bartek Kostrzewa)
+    - Remember and reuse "Save a Copy..." path (#485195, Carlos Garcia Campos) (LP: #151079)
+    - Support for cb7 using the p7zip commands in comics backend
+      (#565174, Juanjo Marín)
+    - Parse xml metadata to detect PDF/A documents (#582206, Davide Capodaglio) (LP: #373445)
+    Bug fixes:
+    - Several build fixes and improvements (Christian Persch)
+    - Fix page transitions in presentation mode (#583652, #581881,
+      Carlos Garcia Campos) (LP: #383309, LP: #373741)
+    - Scale according to paper size before rendering for printing
+      (Carlos Garcia Campos)
+    - Fix multipage even/odd printing issues (#583429, #583388, Bartek
+      Kostrzewa)
+    - Gracefully work with FITB destinations and friends (#583276,
+      Matthias Drochner)
+    - Fix double to int conversion in thumbnails_get_dimensions
+      (#581524, Carlos Garcia Campos)
+    - Other bugs fixed: #584617, #585497
+  * debian/control.in: Bump GTK+ depends to 2.14
+  * debian/patches/01_launchpad.patch:
+  * debian/patches/99_autoconf.patch:
+    - Rebuilt
+
+ -- Robert Ancell <robert.ancell@canonical.com>  Tue, 16 Jun 2009 16:52:57 +1000
+
+evince (2.27.1-0ubuntu1) karmic; urgency=low
+
+  * New upstream version:
+    New Features and UI Improvements:
+    - Use GtkPrintOperation when printing for the backends that
+      support rendering into a cairo context 
+    - Recover previous session when running evince after a crash
+    - Preliminary annotations support
+    - Rename Print Setup menu entry as Page Setup for consistency with
+      the GTK+ dialog title 
+    - Added F3 as a find-next accelerator key 
+    - Support the free Gna! unrar tool in comics backend
+    - Add evince-previewer as a separate applicaton that implements
+      the printing preview 
+    Bug fixes:
+    - Fix handling of the tmp folder 
+    - Abort dnd operations originated in the same Evince window  
+    - Disable bouncing during scrolling 
+    - Fix build without gconftool-2 
+    - Fix documentation build 
+    - Fix error handling of broken documents 
+    - Fix several memory leaks in comics backend 
+    - Escape URIs for display 
+    - Resync with libegg to remove deprecated GTK+ symbols
+    - Correct check for exit status of commands in comics backend
+    - Add -no-undefined flag for Cygwin build 
+    - Use g_file_make_symbolic_link to create symlinks 
+    - Delete the temp symlink created when opening a copy
+    - Don't redraw again when zoom is set more than once to the same
+      scale factor 
+    - Fix print preview of empty selection 
+    - Don't prevent unmounting in case the initial cwd is on an external device 
+    - Create and load the document based on the mime-type provided by
+      nautilus instead of using our own documents factory.
+    - Fix endianess issues in dvi and tiff backends 
+    - Fix memory leak in tiff backend 
+    - Fix path where accels file is saved 
+    - Fix fading animations 
+    - Translate the categories in the nautilus properties tab
+  * debian/control.in:
+    - updated libpoppler and gtk requirements
+  * debian/patches/01_launchpad.patch:
+    - new version update
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Tue, 02 Jun 2009 10:30:12 +0200
+
+evince (2.26.1-0ubuntu2) karmic; urgency=low
+
+  * Rebuild with the new libpoppler version
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Thu, 14 May 2009 17:55:09 +0200
+
+evince (2.26.1-0ubuntu1) jaunty-proposed; urgency=low
+
+  * New upstream version (lp: #365072):
+    Bug fixes:
+    - Don't prevent unmounting in case the initial cwd is on an external device 
+    - Create and load the document based on the mime-type provided by
+      nautilus instead of using our own documents factory.
+    - Fix endianess issues in dvi and tiff backends
+    - Fix memory leak in tiff backend 
+    - Fix path where accels file is saved
+    - Fix fading animations 
+    - Translate the categories in the nautilus properties tab
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Wed, 22 Apr 2009 12:41:49 +0200
+
+evince (2.26.0-0ubuntu1) jaunty; urgency=low
+
+  * New upstream version
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Mon, 16 Mar 2009 22:27:28 +0100
+
+evince (2.25.92-0ubuntu1) jaunty; urgency=low
+
+  * New upstream version:
+    Bug fixes:
+    - Show the 'jump to page' window in the right GdkScreen
+    - Make our own thumbnail when the provided one doesn't have the needed size 
+    - Reduce the restriction on the minimum size of thumbnails from 40 to 1 
+    - Use GOption in thumbnailer 
+    - Fix saving a copy of encrypted PDF documents
+    - Don't use g_quark_from_static_string in a loadable module
+    - Use g_object_unref() instead of gdk_pixbuf_unref() in impress backend 
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Tue, 03 Mar 2009 01:24:05 +0100
+
+evince (2.25.91-0ubuntu1) jaunty; urgency=low
+
+  * New upstream release: (LP: #331233)
+    - Fix several memory leaks
+    - Fix errors handling and propagation
+    - Fix several translation strings in properties dialog
+    - Do not resize the window on reloading
+    - Experimental introspection support
+    - Use g_set_error_literal()
+    - Make session manager code compile for win32
+    - Update totem-screensaver from totem svn to make it build for win32
+    - Make use of GConf optional
+    - Fix i18n in libdocument
+    - Include gi18n-lib.h instead of gi18n.h in libs and backends
+    - Translation updates (ast, be@latin, da, dz, es, et, eu, hu, ja
+      kn, mk, nl, pl, pt_BR, sr, sv, th, vi, zh_CN, zh_HK, zh_TW)
+  * Add libsm-dev b-d in debian/control.in
+  * Adapt debian/patches/01_launchpad.patch to apply to new configure.ac
+  * Re-generate debian/control and debian/patches/99_autoconf.patch
+
+ -- Didier Roche <didrocks@ubuntu.com>  Wed, 18 Feb 2009 22:00:49 +0100
+
+evince (2.25.90-0ubuntu1) jaunty; urgency=low
+
+  * New upstream version: (LP: #325015)
+    Bug fixes:
+     - Split API documentation into libdocument, libview and shell
+     - Fix symbols conflict in impress backend
+     - Add mnemonics to buttons in search bar
+     - Fix a crash when printing
+     - Fix --version command line option
+     - Use versioned directory for backends
+     - Add EV_DEFINE_BOXED_TYPE and EV_DEFINE_INTERFACE macros
+     - Sync EggToolbarEditor with libegg
+     - Respect directory umask and setgid when saving files
+     - Add libtool versioning, pkg-config files and single headers for
+       libdocument and libview
+     - Remove G_OBJECT casts from g_signal_connect calls
+     - Install several missing header files of libdocument and libview
+     - Other bugs fixed
+    Translation updates (de, et, hu, ko, nb, sv)
+  * Adapt debian/watch to take unstable versions
+  * debian/control.in:
+    - add Vcs-Bzr tag
+    - add libgs-dev to fix FTBFS
+    - create libevview1, libevview-dev, libevdocument1, libevdocument-dev
+      packages
+    - remove lpia b-d as debian/03_hildon_interface.patch is deleted
+    - regenerate debian/control
+  * debian/rules: rm DESTDIR so that debian/tmp is the default and modify
+    some .a and .la removal for evince packages
+  * add *.install files for new packages and adapt existing one
+  * remove debian/03_hildon_interface.patch as requested by the mobile team
+  * Re-generate debian/patches/99_autoconf.patch
+
+ -- Didier Roche <didrocks@ubuntu.com>  Tue, 10 Feb 2009 15:24:04 +0100
+
+evince (2.25.5-0ubuntu2) jaunty; urgency=low
+
+  * Rebuild using the new poppler version
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Mon, 19 Jan 2009 23:46:01 +0100
+
+evince (2.25.5-0ubuntu1) jaunty; urgency=low
+
+  * New upstream version:
+    Code changes:
+    - Move EvView specific code to a libevview library so that it can
+      be embbeded in other applications
+    - Other improvements for embbeders
+    Bug fixes:
+    - Fix a minor typo 
+    - Fix the API docs build 
+    - Simplify drag data handling 
+    - Several portability issues 
+    - Fix mnemonic conflict 
+    - Other bugs fixed: #567910
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Mon, 19 Jan 2009 10:39:43 +0100
+
+evince (2.25.4-0ubuntu2) jaunty; urgency=low
+
+  * debian/control.in:
+    - build-depends on libxml2-dev
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Tue, 06 Jan 2009 11:36:03 +0100
+
+evince (2.25.4-0ubuntu1) jaunty; urgency=low
+
+  * New upstream version:
+    New Features and UI Improvements:
+    - Show progress information when loading/saving remote files
+      (lp: #273611)
+    - Remember page setup options (lp: #224882)
+    - Show a confirmation dialog when there are pending print jobs 
+      while closing the main window (lp: #139907)
+    - Show progress information when printing (lp: #178437)
+    - Add document URI to properties page 
+    Bug fixes:
+    - Bump glib requirement to fix build with older versions
+    - Fix mime type handling 
+    - Fix saving images to remote locations 
+    - Do not try to jump to the location of the find result for every match, but
+      only for the first one. It makes searching really faster. 
+    - Fix zip mime-type in comics backend 
+    - Fix several memory leaks
+  * debian/control.in:
+    - updated build requirement
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Tue, 06 Jan 2009 09:56:51 +0100
+
+evince (2.25.2-0ubuntu1) jaunty; urgency=low
+
+  * New upstream version
+  * debian/control.in:
+    - updated build requirements
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Wed, 17 Dec 2008 15:46:02 +0100
+
+evince (2.24.2-0ubuntu1) jaunty; urgency=low
+
+  * New upstream release. (LP: #306661)
+   - Fix a crash when searching (#558377, Carlos Garcia Campos) 
+     (LP: #269685)
+   - Make menu label translatable (#559129, Nickolay V. Shmyrev)
+   - Fix symbol conflicts in the dvi backend (#559257, Tuxce)
+   - Use printf safely (#558066, Christian Persch)
+   - Fix page transition in presentation mode (#516749, 
+     Nickolay V. Shmyrev)
+
+ -- Andrew Starr-Bochicchio <a.starr.b@gmail.com>  Tue, 09 Dec 2008 15:58:31 -0500
+
+evince (2.24.1-1ubuntu2) jaunty; urgency=low
+
+  * debian/control.in:
+    - build-depends on libgconf2-dev
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Thu, 27 Nov 2008 16:20:01 +0100
+
+evince (2.24.1-1ubuntu1) jaunty; urgency=low
+
+  * Sync on debian
+  * debian/control.in:
+    - build-depends on liblaunchpad-integration-dev
+    - listed lpia build-depends to use the hildon change
+  * debian/03_hildon_interface.patch:
+    - hildon changes which need to be updated
+  * debian/patches/01_launchpad.patch:
+    - launchpad integration changes
+  * debian/patches/99_autoconf.patch:
+    - required configure update
+  * debian/rules:
+    - distribution the html api documentation
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Thu, 27 Nov 2008 15:45:51 +0100
+
+evince (2.24.1-1) experimental; urgency=low
+
+  * New upstream release.
+    + Control+N opens a new window. Closes: #479760.
+    + Does not hang on corrupt djvu files. Closes: #477571.
+    + Copies links to the primary selection. Closes: #469579.
+    + More helpful error messages. Closes: #496487.
+    + Control+Insert copies text. Closes: #463836.
+  * Update build-dependencies.
+  * Remove evince-gtk, the libgnome dependency has disappeared now.
+  * evince provides evince-gtk.
+  * Don’t generate dependencies for the nautilus extension.
+  * Suggest nautilus.
+  * 01_external_libgnome.patch: removed, gio is the default now.
+  * Recommend gvfs.
+  * 02_fix_saving_images.patch: dropped, merged upstream.
+  * Add application/x-cb7 to supported MIME types.
+
+ -- Josselin Mouette <joss@debian.org>  Fri, 14 Nov 2008 12:37:55 +0100
+
+evince (2.22.2-4) unstable; urgency=low
+
+  [ Loic Minier ]
+  * Depend on shared-mime-info for MIME type detection via
+    g_content_type_guess(); see LP #208729 and GNOME #554563.
+
+  [ Emilio Pozuelo Monfort ]
+  * debian/patches/02_fix_saving_images.patch:
+    - Patch from upstream r3159, fix saving images duplicating the
+      extension. Closes: #497935.
+  * debian/control.in:
+    - No need to have one Homepage field for each package. Move it
+      to the source stanza.
+    - Update Standards-Version to 3.8.0. No changes needed.
+
+ -- Emilio Pozuelo Monfort <pochu@ubuntu.com>  Sun, 19 Oct 2008 15:49:19 +0200
+
+evince (2.22.2-3) unstable; urgency=low
+
+  [ Loic Minier ]
+  * Let evince and evince-gtk provide djvu-viewer; closes: #493360.
+
+  [ Josselin Mouette ]
+  * Suggest poppler-data.
+
+ -- Josselin Mouette <joss@debian.org>  Thu, 18 Sep 2008 14:29:13 +0200
+
+evince (2.22.2-2) unstable; urgency=low
+
+  * 01_external_libgnome.patch: use libgnome to launch external links
+    instead of GIO, which requires gvfs installed for it to work. This 
+    is a temporary measure until gvfs becomes used by default in  
+    nautilus. Closes: #484032.
+
+ -- Josselin Mouette <joss@debian.org>  Fri, 18 Jul 2008 17:16:23 +0200
+
+evince (2.22.2-1) unstable; urgency=low
+
+  * New upstream bugfix release.
+
+ -- Sebastian Dröge <slomo@debian.org>  Mon, 02 Jun 2008 13:12:37 +0200
+
+evince (2.22.1.1-3) unstable; urgency=low
+
+  * Upload to unstable.
+
+ -- Josselin Mouette <joss@debian.org>  Tue, 27 May 2008 12:14:13 +0200
+
+evince (2.22.1.1-2) experimental; urgency=low
+
+  * debian/control.in:
+    + Rebuild against new poppler >= 0.8.0.
+
+ -- Sebastian Dröge <slomo@debian.org>  Tue, 20 May 2008 12:13:16 +0200
+
+evince (2.22.1.1-1) experimental; urgency=low
+
+  * New upstream bugfix release.
+
+ -- Sebastian Dröge <slomo@debian.org>  Wed, 09 Apr 2008 08:46:03 +0200
+
+evince (2.22.1-1) experimental; urgency=low
+
+  * New upstream bugfix release:
+    + debian/patches/60_gzdvi-support.patch:
+      - Updated, most parts are applied upstream now.
+    + debian/patches/99_autoreconf.patch:
+      - Dropped, merged upstream.
+
+ -- Sebastian Dröge <slomo@debian.org>  Mon, 07 Apr 2008 19:18:30 +0200
+
+evince (2.22.0-1) experimental; urgency=low
+
+  [ Loic Minier ]
+  * Fix mailcap entry for gzip and bzip2-compressed PDF files; thanks
+    Tanguy Ortolo; closes: #470891.
+  * Wrap deps.
+
+  [ Josselin Mouette ]
+  * Fix watch file to only take stable versions into account.
+  * Recommend dbus-x11. Closes: #460984.
+
+  [ Marc 'HE' Brockschmidt ]
+  * debian/control:
+    + Move Homepage information to a proper control field from the long
+      description.
+    + Bump Standards-Version to 3.7.3 (no changes needed)
+  * debian/copyright: Convert to UTF8
+  * New upstream version: Upload to experimental due to extensive changes
+    + debian/control:
+      - Switch from gnomevfs to gvfs
+      - Switch from gs to libspectre, remove deps (Closes: #466619, #455645)
+      - Update descriptions for gs -> libspectre change by removing
+        borings hints about what renderer is used
+    + debian/patches/60_gzdvi-support.patch:
+      - Updated for the new backend plugin system
+    + debian/patches/99_autoreconf.patch:
+      - Updated for the new version.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org>  Fri, 14 Mar 2008 14:57:17 +0100
+
+evince (2.20.2-1) unstable; urgency=low
+
+  * New upstream bugfix release:
+    + debian/patches/99_autoreconf.patch:
+      - Updated for the new version.
+
+ -- Sebastian Dröge <slomo@debian.org>  Tue, 27 Nov 2007 05:44:45 +0100
+
+evince (2.20.1-2) unstable; urgency=low
+
+  * Simplify the build process by installing directly the stuff in
+    debian/evince(-gtk). This way dh_* are executed in the correct
+    order, and this fixes the GConf schemas installation.
+    Closes: #448640.
+  * Update the menu files to the new layout.
+  * Upload to unstable; drop check-dist include.
+
+ -- Josselin Mouette <joss@debian.org>  Sat, 17 Nov 2007 11:48:11 +0100
+
+evince (2.20.1-1) experimental; urgency=low
+
+  * New upstream bugfix release:
+    + debian/patches/99_autoreconf.patch:
+      - Updated for the new version.
+
+ -- Sebastian Dröge <slomo@debian.org>  Tue, 30 Oct 2007 13:13:35 +0100
+
+evince (2.20.0-1) experimental; urgency=low
+
+  [Loic Minier]
+  * Build-depend on gnome-pkg-tools >= 0.12 and call desktop-check-mime-types
+    to check for missing MIME types; update MIME types.
+  * Add application/x-pdf to evince.mime; closes: #431370.
+
+  [ Josselin Mouette ]
+  * 60_gzdvi-support: add support for bzip2 compressed DVI files
+    (closes: #432445). Thanks Géraud Meyer.
+
+  [ Sebastian Dröge ]
+  * New upstream release:
+    + debian/patches/10-comics_fix_INCLUDES.patch:
+      - Dropped, merged upstream.
+    + debian/control.in:
+      - Build depend on poppler >= 0.6
+    + debian/patches/60_gzdvi-support.patch:
+      - Updated for new upstream version.
+    + debian/patches/99_autoreconf.patch:
+      - Regenerated.
+  * debian/control.in:
+    + Add build dependency on autotools-dev.
+  * debian/evince.mime:
+    + Add bzip2 compressed DVI mimetype.
+
+ -- Sebastian Dröge <slomo@debian.org>  Thu, 04 Oct 2007 10:12:45 +0200
+
+evince (0.9.0-1) experimental; urgency=low
+
+  * New upstream release. New features include:
+    + Printing support in djvu documents
+    + Optional drop of libgnome dependency
+    + Print button for preview mode
+    + Remember print settings
+    + History button improvements
+   Some bugfixes: 
+    + Fixes for issues with fullscreen toolbar
+    + Fix for crash in comics backend when filename contains quote
+    + Fix unhelpful messages on invalid URLs. (Closes: #415692)
+
+  * Added needed magic to provide gtk-only packages (evince-gtk and
+    evince-gtk-dbg). (Closes: #399439)
+  * debian/patches/10-comics_fix_INCLUDES.patch: Added to work around
+     Gnome #439925)
+
+ -- Marc 'HE' Brockschmidt <he@debian.org>  Sun, 20 May 2007 12:47:56 +0200
+
+evince (0.8.1-2) unstable; urgency=low
+
+  * Upload to unstable; drop check-dist include.
+  * debian/control.in:
+     * Wrap build-depends and re-order them
+     * Replace b-d on "libkpathsea4-dev | libkpathsea-dev" by 
+       "libkpathsea-dev", which is a real package nowadays.
+     * Add Suggests: unrar
+     * Fix little oversight in evince-dbg description
+     * Remove unneeded librsvg2-common build-dep that was only there to
+       soothe sbuild.
+  * debian/copyright: Drop GFDL include, point to the common-licenses one.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org>  Wed, 02 May 2007 15:22:31 +0200
+
+evince (0.8.1-1) experimental; urgency=low
+
+  * New upstream version:
+    + debian/copyright: Updated
+    + debian/control: Add explicit dep on librsvg2-common from experimental
+      to allow autobuilding.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org>  Mon, 09 Apr 2007 23:17:21 +0200
+
+evince (0.8.0-1) experimental; urgency=low
+
+  [ Loic Minier ]
+  * Fix watch file to track all releases and use HTTP.
+  * Add a get-orig-source target to retrieve the upstream tarball.
+  * Recommend gnome-icon-theme for the icon used in the .desktop file.
+  * Include the new check-dist Makefile to prevent accidental uploads to
+    unstable; bump build-dep on gnome-pkg-tools to >= 0.10.
+
+  [ Marc 'HE' Brockschmidt ]
+  * Move to debhelper compat level 5.
+  * Add evince-dbg with the debugging symbols. With the number of crashes,
+    this seems to be needed quite often.
+  * Add evince.xpm (converted from the evince.png in the package) to be
+    installed as menu icon. (Closes: #391194)
+  * Put my name in the Maintainer field.
+  * Update and fix debian/copyright.
+  * Add manpage for evince-thumbnailer and install it.
+  * New upstream release:
+    + debian/control: 
+      - Updated (build-)depends (Closes: #332633, #373162)
+      - Add dependency on gnome-icon-theme (>= 2.17.1), as evince uses
+        some icons from there.
+    + debian/evince.1: Remove our manpage, upstream included one.
+    + debian/patches/10_CVE-2006-5864.patch: Removed, included upstream.
+    + Upstream changes:
+      - Fixed PS security problem. (Closes: #400904)
+      - Fixed printing of multiple copies. (Closes: #401172)
+      - Added support for compressed document types. (Closes: #329620,
+        #388188, #395119, #412613)
+      - Reworked printing dialog, allowing to print only even/odd pages
+        and fixing various problems. (Closes: #402398, #355845)
+      - Fixed various problems happening when trying to reload documents.
+        (Closes: #388368, #396467, #405130)
+      - Fixed mime type detection to use file data, not the file name.
+        (Closes: #327769, #368351)
+      - Fixed fullscreen/presentation mode problems. The toolbar is now
+        only displayed on relevant (virtual) screens, zooming works
+        properly. (Closes: #399906)
+      - Fixed generation of thumbnail images to not provide RGBA, but only
+        RGB images. (Closes: #367612)
+      - Fixed documentation to clear up the "scroll by dragging the mouse"
+        feature. (Closes: #384749)
+      - Fixed page-(down|up) behaviour in Dual View-mode. (Closes: #359143)
+      - Fixed display of foreign character sets like japanese (Closes:
+        #379105)
+      - Fixed a bunch of rendering quirks (Closes: #383399, #394124)
+      - Add support for a bookmark system that defaults to opening
+        a file on the page it was closed before. (Closes: #342839)
+
+ -- Marc 'HE' Brockschmidt <he@debian.org>  Sat, 24 Mar 2007 17:57:56 +0100
+
+evince (0.6.1-1) experimental; urgency=low
+
+  * Bump libgnomeui-dev build-dep to >= 2.14.1-2 for the Gtk transition.
+  * New upstream release.
+    - Bump libpoppler-glib-dev build-dep to >= 0.5.4.
+
+ -- Loic Minier <lool@dooz.org>  Wed, 11 Oct 2006 14:00:53 +0200
+
+evince (0.6.0-1) experimental; urgency=low
+
+  [ Sebastien Bacher ]
+  * debian/watch:
+    - updated
+
+  [ Loic Minier ]
+  * Fix bashism.
+
+  [ Josselin Mouette ]
+  * New upstream release.
+  * Bump needed build-dependencies.
+  * Remove libgnomeprint requirements.
+  * Build-depend on GTK+ 2.10 and force use of GTK-print.
+  * Build-depend on libdbus-glib-1-dev and libdbus-glib-1-dev.
+  * Enable pixbuf, comics and impress backends.
+  * Require intltool 0.35.0.
+  * 04_gdk_threads_init.patch: removed, integrated upstream.
+
+ -- Josselin Mouette <joss@debian.org>  Sat,  9 Sep 2006 22:43:08 +0200
+
+evince (0.5.3-1) experimental; urgency=low
+
+  [ Sebastien Bacher ]
+  * New upstream versions:
+    - fix a typo to the documentation (Closes: #320266)
+    - odd pages are placed to the right in dual page mode (Closes: #356040)
+    - store window settings by document (Closes: #327408)
+  * Patches from the Ubuntu package:
+  * debian/patches/03_presentation_change_page.patch:
+    - fix previous and next keys usage to presentation mode (GNOME: #332993)
+  * debian/patches/04_gdk_threads_init.patch:
+    - call gdk_threads_init, fix issues when using an authentification dialog
+      (Ubuntu: #343347)
+  * debian/patches/05_fix_build_with_djvulibre.patch:
+    - fix build with the new djvulibre
+  * debian/control.in:
+    - Build-Depends on gnome-doc-utils and gnome-keyring according to configure
+    - Depends on "gs-esp | gs" (Closes: #335108)
+    - updated djvulibre requirement according to the configure
+    - updated the description to mention poppler instead of xpdf
+      (Closes: #332197)
+    - updated the poppler requirement to build with the new soname
+  * debian/evince.mime:
+    - list dvi and djvu, change suggested
+      by Pierre THIERRY <nowhere.man@levallois.eu.org> (Closes: #337784)
+
+  [ Josselin Mouette ]
+  * Even newer upstream release.
+  * 03_presentation_change_page.patch, 05_fix_build_with_djvulibre.patch:
+    removed, integrated upstream.
+
+ -- Josselin Mouette <joss@debian.org>  Sun, 18 Jun 2006 16:40:50 +0200
+
+evince (0.4.0-5) unstable; urgency=low
+
+  * Recommend gnome-icon-theme for the icon used in the .desktop file.
+  * Convert the default PNG icon for evince of gnome-icon-theme to XPM as
+    debian/evince.xpm; install it in /usr/share/pixmaps; update menu entry.
+
+ -- Loic Minier <lool@dooz.org>  Tue, 16 Jan 2007 17:07:37 +0100
+
+evince (0.4.0-4) unstable; urgency=low
+
+  [ Marc 'HE' Brockschmidt ]
+  * debian/patches/21_fix_doc_typo.patch:
+     Fix typo in documentation. (Closes: #320266)
+
+ -- Marc 'HE' Brockschmidt <he@debian.org>  Fri, 12 Jan 2007 13:56:37 +0100
+
+evince (0.4.0-3) unstable; urgency=high
+
+  * SECURITY: new patch, 10_CVE-2006-5864.patch, fixes a buffer overflow in
+    the PostScript processor; thanks Kees Cook; CVE-2006-5864;
+    (Closes: #402063).
+
+ -- Loic Minier <lool@dooz.org>  Thu,  7 Dec 2006 22:09:17 +0100
+
+evince (0.4.0-2) unstable; urgency=low
+
+  * Build-depend on libkpathsea4-dev | libkpathsea-dev instead of
+    libkpathsea-dev, thanks Frank Küster. (Closes: #357262)
+    [debian/control, debian/control.in]
+  * Bump up Standards-Version to 3.7.2.
+    [debian/control, debian/control.in]
+
+ -- Loic Minier <lool@dooz.org>  Tue, 30 May 2006 13:47:04 +0200
+
+evince (0.4.0-1) unstable; urgency=low
+
+  * New upstream version: (Closes: #311134)
+    - Document properties (Closes: #300761).
+    - Document rotation (Closes: #294555).
+    - Fix the number of pages for some ps files (Closes: #309905).
+    - Fix zoom value update (Closes: #310089).
+    - Support for printing page ranges (Closes: #299453).
+    - Update of the mimetype list (Closes: #308378).
+    - Updated translations (Closes: #308727).
+  * debian/control.in:
+    - updated the Build-Depends.
+    - updated the Standards-Version.
+  * debian/rules:
+    - clean the static files for the nautilus properties page.
+    - don't update scrollkeeper files on build.
+
+ -- Sebastien Bacher <seb128@debian.org>  Tue,  6 Sep 2005 17:38:16 +0200
+
+evince (0.3.0-2) unstable; urgency=low
+
+  * debian/control.in:
+    - updated the Build-Depends and the description.
+  * debian/rules:
+    - build with djvu and dvi options (Closes: #308021).
+  * debian/watch:
+    - updated.
+
+ -- Sebastien Bacher <seb128@debian.org>  Sat,  7 May 2005 14:40:25 +0200
+
+evince (0.3.0-1) unstable; urgency=low
+
+  * New upstream version:
+    - Continous mode.
+    - Dual page mode.
+    - Control + Scroll does zooming.
+    - Shift + Scroll scrolls horizontally.
+    - Zoom control in the toolbar.
+
+ -- Sebastien Bacher <seb128@debian.org>  Sat,  7 May 2005 12:55:06 +0200
+
+evince (0.2.1-1) unstable; urgency=low
+
+  * New upstream version (Closes: #306615):
+    - fix the crasher on copy (Closes: #294511).
+  * debian/control.in:
+    - updated.
+  * debian/evince.menu:
+    - menu entry (Closes: #297560).
+  * debian/evince.mime:
+    - register with the mimesystem (Closes: #303887).
+  * debian/watch:
+    - new file.
+
+ -- Sebastien Bacher <seb128@debian.org>  Fri,  6 May 2005 15:01:45 +0200
+
+evince (0.1.5-2) unstable; urgency=low
+
+  * Rebuilt for the libhowl transition (Closes: #298807).
+  * debian/control.in:
+    - updated the gnome-vfs requirements.
+
+ -- Sebastien Bacher <seb128@debian.org>  Thu, 10 Mar 2005 19:44:16 +0100
+
+evince (0.1.5-1) unstable; urgency=low
+
+  * New upstream release:
+    - reload menu.
+    - support for DnD of files.
+  * debian/control.in:
+    - Depends on gs (Closes: #294512).
+    - Description update based on the text sent 
+      by Andre Lehovich <andrel@U.Arizona.EDU> (Closes: #294519).
+    - Provides pdf-viewer, postscript-viewer (Closes: #294516).
+  * debian/evince.xml, debian/evince.1:
+    - manpage written by Lars Wirzenius <liw@iki.fi> with some changes 
+      by Andre Lehovich <andrel@U.Arizona.EDU> (Closes: #295095).
+  * po/pt_BR.po:
+    - translation update by 
+      Fábio Brito d'Araújo e Oliveira <fabio@debian-ba.org>.
+
+ -- Sebastien Bacher <seb128@debian.org>  Sat, 26 Feb 2005 23:34:50 +0100
+
+evince (0.1.4-1) unstable; urgency=low
+
+  * New upstream release:
+    - epiphany like fullscreen mode.
+    - save chromes state between sessions.
+    - improve toolbar layout and icons.
+    - really fix postscript rendering.
+  * debian/control.in:
+    - don't mention DVI in the description (Closes: #294011).
+    - typos fix in the description (Closes: #294348).
+  
+ -- Sebastien Bacher <seb128@debian.org>  Wed,  9 Feb 2005 15:13:54 +0100
+
+evince (0.1.3-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Sebastien Bacher <seb128@debian.org>  Sat,  5 Feb 2005 01:55:16 +0100
+
+evince (0.1.2-1) unstable; urgency=low
+
+  * Upload to unstable.
+  * New upstream release.
+
+ -- Sebastien Bacher <seb128@debian.org>  Fri,  4 Feb 2005 14:53:13 +0100
+
+evince (0.1.1-1) experimental; urgency=low
+
+  * Initial Release.
+
+ -- Sebastien Bacher <seb128@debian.org>  Mon, 24 Jan 2005 13:21:42 +0100
--- evince-2.30.3.orig/debian/compat
+++ evince-2.30.3/debian/compat
@@ -0,0 +1 @@
+5
--- evince-2.30.3.orig/debian/apparmor-profile.abstraction
+++ evince-2.30.3/debian/apparmor-profile.abstraction
@@ -0,0 +1,120 @@
+# vim:syntax=apparmor
+#
+# abstraction used by evince binaries
+#
+
+  #include <abstractions/audio>
+  #include <abstractions/bash>
+  #include <abstractions/cups-client>
+  #include <abstractions/dbus>
+  #include <abstractions/freedesktop.org>
+  #include <abstractions/gnome>
+  #include <abstractions/nameservice>
+  #include <abstractions/launchpad-integration>
+  #include <abstractions/user-tmp>
+
+  #include <abstractions/ubuntu-browsers>
+  #include <abstractions/ubuntu-console-browsers>
+  #include <abstractions/ubuntu-email>
+  #include <abstractions/ubuntu-console-email>
+  #include <abstractions/ubuntu-media-players>
+
+  # Terminals for using console applications. These abstractions should ideally
+  # have 'ix' to restrict access to what only evince is allowed to do
+  #include <abstractions/ubuntu-gnome-terminal>
+
+  # By default, we won't support launching a terminal program in Xterm or
+  # KDE's konsole. It opens up too many unnecessary files for most users.
+  # People who need this functionality can uncomment the following:
+  ##include <abstractions/ubuntu-xterm>
+  ##include <abstractions/ubuntu-konsole>
+
+
+  @{PROC}/[0-9]*/fd/ r,
+  @{PROC}/[0-9]*/mountinfo r,
+
+  # move out to the gnome abstraction if anyone else needs these
+  /dev/.udev/db/* r,
+  /etc/udev/udev.conf r,
+  /sys/devices/**/block/**/uevent r,
+
+  # apport
+  /etc/default/apport r,
+
+  # evince specific
+  /etc/ r,
+  /etc/fstab r,
+  /etc/texmf/* r,
+  /etc/xpdf/* r,
+
+  /usr/bin/bug-buddy px,
+  /usr/bin/gs-esp ixr,
+  /usr/bin/mktexpk Ux,
+  /usr/bin/yelp Ux,
+  /usr/bin/dvipdfm Ux,
+
+  # supported archivers
+  /bin/gzip ixr,
+  /bin/bzip2 ixr,
+  /usr/bin/unrar* ixr,
+  /usr/bin/unzip ixr,
+  /usr/bin/7zr ixr,
+  /usr/lib/p7zip/7zr ixr,
+  /usr/bin/7za ixr,
+  /usr/lib/p7zip/7za ixr,
+  /usr/bin/zipnote ixr,
+  /bin/tar ixr,
+
+  # allow read access to anything in /usr/share, for plugins and input methods
+  /usr/local/share/** r,
+  /usr/share/** r,
+  /usr/lib/ghostscript/** mr,
+  /var/lib/texmf/** r,
+
+  # from http://live.gnome.org/Evince/SupportedDocumentFormats. Allow
+  # read for all supported file formats
+  /**.[bB][mM][pP]     r,
+  /**.[dD][jJ][vV][uU] r,
+  /**.[dD][vV][iI]     r,
+  /**.[gG][iI][fF]     r,
+  /**.[jJ][pP][gG]     r,
+  /**.[jJ][pP][eE][gG] r,
+  /**.[oO][dD][pP]     r,
+  /**.[pP][dD][fF]     r,
+  /**.[pP][nN][mM]     r,
+  /**.[pP][nN][gG]     r,
+  /**.[pP][sS]         r,
+  /**.[eE][pP][sS]     r,
+  /**.[tT][iI][fF]     r,
+  /**.[tT][iI][fF][fF] r,
+  /**.[xX][pP][mM]     r,
+  /**.[gG][zZ]         r,
+  /**.[bB][zZ]2        r,
+  /**.[cC][bB][rRzZ7]  r,
+
+  # removable media and filesystems
+  owner /media/** w,
+  owner /mnt/** w,
+  owner /srv/** w,
+
+  # Use abstractions/private-files instead of abstractions/private-files-strict
+  # and add the sensitive files manually to work around LP: #451422. The goal
+  # is to disallow access to the .mozilla folder in general, but to allow
+  # access to the Cache directory, which the browser may tell evince to open
+  # from directly.
+
+  #include <abstractions/private-files>
+  audit deny @{HOME}/.gnupg/** mrwkl,
+  audit deny @{HOME}/.ssh/** mrwkl,
+  audit deny @{HOME}/.gnome2_private/** mrwkl,
+
+  audit deny @{HOME}/.mozilla/*/*/* mrwkl,
+  audit deny @{HOME}/.mozilla/**/bookmarkbackups/** mrwkl,
+  audit deny @{HOME}/.mozilla/**/chrome/** mrwkl,
+  audit deny @{HOME}/.mozilla/**/extensions/** mrwkl,
+  audit deny @{HOME}/.mozilla/**/gm_scripts/** mrwkl,
+
+  # When LP: #451422 is fixed, change the above to simply be:
+  ##include <abstractions/private-files-strict>
+  #owner @{HOME}/.mozilla/**/*Cache/* r,
+
--- evince-2.30.3.orig/debian/control.in
+++ evince-2.30.3/debian/control.in
@@ -0,0 +1,143 @@
+Source: evince
+Section: gnome
+Priority: optional
+Maintainer: Ubuntu Desktop Team <ubuntu-desktop@lists.ubuntu.com>
+XSBC-Original-Maintainer: Marc 'HE' Brockschmidt <he@debian.org>
+Uploaders: @GNOME_TEAM@
+Vcs-Bzr: https://code.launchpad.net/~ubuntu-desktop/evince/ubuntu
+Build-Depends: cdbs,
+               debhelper (>= 5),
+               intltool (>= 0.35.0),
+               gnome-pkg-tools (>= 0.10),
+               gnome-doc-utils (>= 0.3.2),
+               libglib2.0-dev (>= 2.18),
+               libgtk2.0-dev (>= 2.14),
+               libgconf2-dev,
+               liblaunchpad-integration-dev (>= 0.1.17),
+               libnautilus-extension-dev,
+               libgnome-keyring-dev (>= 2.22),
+               libdbus-glib-1-dev (>= 0.33),
+               librsvg2-dev (>> 2.14.4-2),
+               gnome-icon-theme (>= 2.17.1),
+               libxml-parser-perl,
+               libxml2-dev,
+               scrollkeeper,
+               libxt-dev,
+               libpoppler-glib-dev (>= 0.12),
+               libdjvulibre-dev (>= 3.5.17),
+               libkpathsea-dev,
+               libtiff4-dev,
+               zlib1g-dev,
+               autotools-dev,
+               libspectre-dev,
+               hardening-includes,
+               libx11-dev,
+               libgs-dev,
+               libsm-dev (>= 2:1.1.0)
+Standards-Version: 3.8.4
+Homepage: http://www.gnome.org/projects/evince/
+
+Package: evince
+Conflicts: evince-gtk, apparmor (<< 2.3.1+1403-0ubuntu18)
+Replaces: evince-gtk
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         gnome-icon-theme (>= 2.17.1),
+         shared-mime-info
+Recommends: dbus-x11,
+            gvfs
+Provides: pdf-viewer,
+          postscript-viewer,
+          djvu-viewer,
+          evince-gtk
+Suggests: unrar, poppler-data, nautilus, apparmor
+Description: Document (postscript, pdf) viewer
+ Evince is a simple multi-page document viewer.  It can display and print
+ PostScript (PS), Encapsulated PostScript (EPS), DJVU, DVI and Portable
+ Document Format (PDF) files.
+ When supported by the document, it also allows searching for text,
+ copying text to the clipboard, hypertext navigation, and
+ table-of-contents bookmarks.
+
+Package: evince-dbg
+Section: gnome
+Architecture: any
+Depends: ${misc:Depends},
+         evince (= ${binary:Version})
+Description: Document (postscript, pdf) viewer - debugging symbols
+ Evince is a simple multi-page document viewer.  It can display and print
+ PostScript (PS), Encapsulated PostScript (EPS), DJVU, DVI and Portable
+ Document Format (PDF) files.
+ When supported by the document, it also allows searching for text,
+ copying text to the clipboard, hypertext navigation, and
+ table-of-contents bookmarks.
+ .
+ This package contains the debugging symbols needed by gdb.
+
+Package: libevview-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends},
+         libevview2 (= ${binary:Version}),
+         libgtk2.0-dev (>= 2.12),
+         libglib2.0-dev (>= 2.18)
+Description: GNOME document viewer view library - development headers
+ Evince is a simple multi-page document viewer.  It can display and print
+ PostScript (PS), Encapsulated PostScript (EPS), DJVU, DVI and Portable
+ Document Format (PDF) files.
+ When supported by the document, it also allows searching for text,
+ copying text to the clipboard, hypertext navigation, and
+ table-of-contents bookmarks.
+ .
+ This package contains the development headers for libview documentation
+ API shared library.
+
+Package: libevview2
+Section: libs
+Architecture: any
+Depends: ${misc:Depends},
+         ${shlibs:Depends}
+Description: GNOME document viewer view library
+ Evince is a simple multi-page document viewer.  It can display and print
+ PostScript (PS), Encapsulated PostScript (EPS), DJVU, DVI and Portable
+ Document Format (PDF) files.
+ When supported by the document, it also allows searching for text,
+ copying text to the clipboard, hypertext navigation, and
+ table-of-contents bookmarks.
+ .
+ This package contains the libview documentation API shared library.
+
+Package: libevdocument-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends},
+         libevdocument2 (= ${binary:Version}),
+         libgtk2.0-dev (>= 2.12),
+         libglib2.0-dev (>= 2.18)
+Description: GNOME document viewer backend library - development headers
+ Evince is a simple multi-page document viewer.  It can display and print
+ PostScript (PS), Encapsulated PostScript (EPS), DJVU, DVI and Portable
+ Document Format (PDF) files.
+ When supported by the document, it also allows searching for text,
+ copying text to the clipboard, hypertext navigation, and
+ table-of-contents bookmarks.
+ .
+ This package contains the development headers for libdocument documentation
+ API shared library.
+
+Package: libevdocument2
+Section: libs
+Architecture: any
+Depends: ${misc:Depends},
+         ${shlibs:Depends}
+Description: GNOME document viewer backend library
+ Evince is a simple multi-page document viewer.  It can display and print
+ PostScript (PS), Encapsulated PostScript (EPS), DJVU, DVI and Portable
+ Document Format (PDF) files.
+ When supported by the document, it also allows searching for text,
+ copying text to the clipboard, hypertext navigation, and
+ table-of-contents bookmarks.
+ .
+ This package contains the libdocument documentation API shared library.
+
--- evince-2.30.3.orig/debian/copyright
+++ evince-2.30.3/debian/copyright
@@ -0,0 +1,393 @@
+This package was debianized by Sebastien Bacher <seb128@debian.org> on
+Mon, 10 Jan 2005 13:23:55 +0100.
+
+It was downloaded from ftp://ftp.gnome.org/pub/gnome/sources/evince/
+
+The upstream authors are Bryan Clark, Carlos García Campos, David Malcolm,
+James Bowes, Jonathan Blandford, Kristian Høgsberg, Martin Kretzschmar
+and Nickolay V. Shmyrev. See http://live.gnome.org/Evince/Team for more
+information on the team behind evince.
+
+Due to the huge number of supported file formats, evince's copyright situation
+is a bit complex. Please refer to the following table or the source package
+for more information. The used shortcuts are explained after the table:
+
+File                                                 | License | Copyright Holder
+-----------------------------------------------------+---------+-----------------
+backend/comics/comics-document.c                     | GPLv2h  | Teemu Tervo <teemu.tervo@gmx.net>
+backend/comics/comics-document.h                     | GPLv2h  | Teemu Tervo <teemu.tervo@gmx.net>
+backend/djvu/djvu-document.c                         | GPLv2h  | Nickolay V. Shmyrev <nshmyrev@yandex.ru>
+backend/djvu/djvu-document.h                         | GPLv2h  | Nickolay V. Shmyrev <nshmyrev@yandex.ru>
+backend/djvu/djvu-document-private.h                 | GPLv2h  | Michael Hofmann <mh21@piware.de>
+backend/djvu/djvu-links.c                            | GPLv2h  | Pauli Virtanen <pav@iki.fi>
+backend/djvu/djvu-links.h                            | GPLv2h  | Pauli Virtanen <pav@iki.fi>
+backend/djvu/djvu-text.c                             | GPLv2h  | Michael Hofmann <mh21@piware.de>
+backend/djvu/djvu-text.h                             | GPLv2h  | Michael Hofmann <mh21@piware.de>
+backend/djvu/djvu-text-page.c                        | GPLv2h  | Michael Hofmann <mh21@piware.de>
+backend/djvu/djvu-text-page.h                        | GPLv2h  | Michael Hofmann <mh21@piware.de>
+backend/dvi/dvi-document.c                           | GPLv2h  | Nickolay V. Shmyrev <nshmyrev@yandex.ru>
+backend/dvi/dvi-document.h                           | GPLv2h  | Nickolay V. Shmyrev <nshmyrev@yandex.ru>
+backend/dvi/fonts.c                                  | unspec  | unspec
+backend/dvi/fonts.h                                  | unspec  | unspec
+backend/dvi/mdvi-lib/afmparse.c                      | Adobe   | Adobe Systems Incorporated.
+backend/dvi/mdvi-lib/afmparse.h                      | Adobe   | Adobe Systems Incorporated.
+backend/dvi/mdvi-lib/bitmap.c                        | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/bitmap.h                        | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/color.c                         | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/color.h                         | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/common.c                        | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/common.h                        | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/defaults.h                      | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/dviopcodes.h                    | unspec  | unspec
+backend/dvi/mdvi-lib/dviread.c                       | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/files.c                         | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/font.c                          | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/fontmap.c                       | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/fontmap.h                       | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/fontsrch.c                      | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/gf.c                            | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/hash.c                          | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/hash.h                          | unspec  | unspec
+backend/dvi/mdvi-lib/list.c                          | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/mdvi.h                          | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/pagesel.c                       | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/paper.c                         | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/paper.h                         | unspec  | unspec
+backend/dvi/mdvi-lib/pk.c                            | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/private.h                       | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/setup.c                         | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/special.c                       | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/sp-epsf.c                       | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/sysdeps.h                       | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/t1.c                            | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/tfm.c                           | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/tfmfile.c                       | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/tt.c                            | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/util.c                          | GPLv2h  | Matias Atria
+backend/dvi/mdvi-lib/vf.c                            | GPLv2h  | Matias Atria
+backend/dvi/pixbuf-device.c                          | unspec  | unspec
+backend/dvi/pixbuf-device.h                          | unspec  | unspec
+backend/impress/common.h                             | GPL     | Gurer Ozen <madcat@e-kolay.net>
+backend/impress/document.c                           | GPL     | Gurer Ozen <madcat@e-kolay.net>
+backend/impress/f_oasis.c                            | GPL     | Gurer Ozen <madcat@e-kolay.net>
+backend/impress/f_oo13.c                             | GPL     | Gurer Ozen <madcat@e-kolay.net>
+backend/impress/iksemel.c                            | LGPLv2h | Gurer Ozen <madcat@e-kolay.net>
+backend/impress/iksemel.h                            | LGPLv2h | Gurer Ozen <madcat@e-kolay.net>
+backend/impress/imposter.h                           | GPL     | Gurer Ozen <madcat@e-kolay.net>
+backend/impress/impress-document.c                   | GPLv2h  | Jonathan Blandford <jrb@gnome.org>, Bastien Nocera <hadess@hadess.net>
+backend/impress/impress-document.h                   | GPLv2h  | Jonathan Blandford <jrb@gnome.org>
+backend/impress/internal.h                           | GPL     | Gurer Ozen <madcat@e-kolay.net>
+backend/impress/r_back.c                             | GPL     | Gurer Ozen <madcat@e-kolay.net>
+backend/impress/r_draw.c                             | GPL     | Gurer Ozen <madcat@e-kolay.net>
+backend/impress/render.c                             | GPL     | Gurer Ozen <madcat@e-kolay.net>
+backend/impress/r_geometry.c                         | GPL     | Gurer Ozen <madcat@e-kolay.net>
+backend/impress/r_gradient.c                         | GPL     | Gurer Ozen <madcat@e-kolay.net>
+backend/impress/r_style.c                            | GPL     | Gurer Ozen <madcat@e-kolay.net>
+backend/impress/r_text.c                             | GPL     | Gurer Ozen <madcat@e-kolay.net>
+backend/impress/zip.c                                | GPL     | Gurer Ozen <madcat@e-kolay.net>
+backend/impress/zip.h                                | GPL     | Gurer Ozen <madcat@e-kolay.net>
+backend/pdf/ev-poppler.cc                            | GPLv2h  | Red Hat, Inc.
+backend/pdf/ev-poppler.h                             | GPLv2h  | Red Hat, Inc.
+backend/pixbuf/pixbuf-document.c                     | GPLv2h  | Anders Carlsson <andersca@gnome.org>
+backend/pixbuf/pixbuf-document.h                     | GPLv2h  | Anders Carlsson <andersca@gnome.org>
+backend/ps/gsdefaults.c                              | GPLv2h  | The Free Software Foundation
+backend/ps/gsdefaults.h                              | GPLv2h  | The Free Software Foundation
+backend/ps/gsio.c                                    | GPLv2h  | The Free Software Foundation
+backend/ps/gsio.h                                    | GPLv2h  | The Free Software Foundation
+backend/ps/gstypes.h                                 | LGPLv2h | The Free Software Foundation
+backend/ps/ps.c                                      | GPLv2h  | Timothy O. Theisen 
+backend/ps/ps-document.c                             | LGPLv2h | The Free Software Foundation
+backend/ps/ps-document.h                             | LGPLv2h | The Free Software Foundation
+backend/ps/ps.h                                      | GPLv2h  | Timothy O. Theisen
+backend/ps/ps-interpreter.c                          | GPLv2h  | Free Software Foundation, Carlos Garcia Campos <carlosgc@gnome.org>
+backend/ps/ps-interpreter.h                          | GPLv2h  | Carlos Garcia Campos <carlosgc@gnome.org>
+backend/tiff/tiff2ps.c                               | SGI     | Sam Leffler, Silicon Graphics, Inc.
+backend/tiff/tiff2ps.h                               | GPLv2h  | rpath, Inc.
+backend/tiff/tiff-document.c                         | GPLv2h  | Jonathan Blandford <jrb@gnome.org>
+backend/tiff/tiff-document.h                         | GPLv2h  | Jonathan Blandford <jrb@gnome.org>
+cut-n-paste/recent-files/egg-recent-item.c           | GPLv2h  | James Willcox <jwillcox@cs.indiana.edu>
+cut-n-paste/recent-files/egg-recent-item.h           | unspec  | unspec
+cut-n-paste/recent-files/egg-recent-model.c          | GPLv2h  | James Willcox <jwillcox@cs.indiana.edu>
+cut-n-paste/recent-files/egg-recent-model.h          | unspec  | unspec
+cut-n-paste/recent-files/egg-recent-util.c           | unspec  | unspec
+cut-n-paste/recent-files/egg-recent-util.h           | unspec  | unspec
+cut-n-paste/recent-files/egg-recent-view.c           | GPLv2h  | James Willcox <jwillcox@cs.indiana.edu>
+cut-n-paste/recent-files/egg-recent-view.h           | unspec  | unspec
+cut-n-paste/recent-files/egg-recent-view-uimanager.c | GPLv2h  | James Willcox <jwillcox@cs.indiana.edu>, Paolo Bacchilega <paobac@cvs.gnome.org>
+cut-n-paste/recent-files/egg-recent-view-uimanager.h | unspec  | unspec
+cut-n-paste/toolbar-editor/egg-editable-toolbar.c    | GPLv2h  | Marco Pesenti Gritti, Christia
+cut-n-paste/toolbar-editor/egg-editable-toolbar.h    | GPLv2h  | Marco Pesenti Gritti, Christian Persch
+cut-n-paste/toolbar-editor/eggmarshalers.c           | unspec  | unspec
+cut-n-paste/toolbar-editor/eggmarshalers.h           | unspec  | unspec
+cut-n-paste/toolbar-editor/egg-toolbar-editor.c      | GPLv2h  | Marco Pesenti Gritti
+cut-n-paste/toolbar-editor/egg-toolbar-editor.h      | GPLv2h  | Marco Pesenti Gritti
+cut-n-paste/toolbar-editor/egg-toolbars-model.c      | GPLv2h  | Marco Pesenti Gritti, Christian Persch
+cut-n-paste/toolbar-editor/egg-toolbars-model.h      | GPLv2h  | Marco Pesenti Gritti, Christian Persch
+cut-n-paste/toolbar-editor/eggtypebuiltins.c         | unspec  | unspec
+cut-n-paste/toolbar-editor/eggtypebuiltins.h         | unspec  | unspec
+cut-n-paste/totem-screensaver/totem-scrsaver.c       | GPLv2h  | Bastien Nocera <hadess@hadess.net>
+cut-n-paste/totem-screensaver/totem-scrsaver.h       | GPLv2h  | Bastien Nocera <hadess@hadess.net>
+cut-n-paste/zoom-control/ephy-zoom-action.c          | GPLv2h  | Marco Pesenti Gritti, Christian Persch
+cut-n-paste/zoom-control/ephy-zoom-action.h          | GPLv2h  | Marco Pesenti Gritti, Christian Persch
+cut-n-paste/zoom-control/ephy-zoom.c                 | GPLv2h  | Christian Persch
+cut-n-paste/zoom-control/ephy-zoom-control.c         | GPLv2h  | Christian Persch
+cut-n-paste/zoom-control/ephy-zoom-control.h         | GPLv2h  | Christian Persch
+cut-n-paste/zoom-control/ephy-zoom.h                 | GPLv2h  | Christian Persch
+help/bg/evince.xml                                   | GFDL1.1 | unspec
+help/ca/evince.xml                                   | GFDL1.1 | Sun Microsystems, Nickolay V. Shmyrev
+help/C/evince.xml                                    | GFDL1.1 | Sun Microsystems, Nickolay V. Shmyrev
+help/el/evince.xml                                   | GFDL1.1 | unspec
+help/en_GB/evince.xml                                | GFDL1.1 | David Lodge (dave@cirt.net)
+help/es/evince.xml                                   | GFDL1.1 | Francisco Javier F. Serrador, Jorge Gonzalez Gonzalez
+help/fi/evince.xml                                   | GFDL1.1 | Tommi Vainikainen, Flammie Pirinen
+help/fr/evince.xml                                   | GFDL1.1 | Jonathan Ernst, Claude Paroz
+help/it/evince.xml                                   | GFDL1.1 | Ubuntu Italian Translators, Luca Ferretti
+help/nl/evince.xml                                   | GFDL1.1 | unspec
+help/ru/evince.xml                                   | GFDL1.1 | unspec
+help/sr/evince.xml                                   | GFDL1.1 | unspec
+help/sv/evince.xml                                   | GFDL1.1 | Daniel Nylander
+help/uk/evince.xml                                   | GFDL1.1 | unspec
+libdocument/ev-async-renderer.c                      | GPLv2h  | Marco Pesenti Gritti
+libdocument/ev-async-renderer.h                      | GPLv2h  | Marco Pesenti Gritti
+libdocument/ev-attachment.c                          | GPLv2h  | Carlos Garcia Campos <carlosgc@gnome.org>
+libdocument/ev-attachment.h                          | GPLv2h  | Carlos Garcia Campos <carlosgc@gnome.org>
+libdocument/ev-backend-marshal.c                     | unspec  | unspec
+libdocument/ev-backend-marshalers.h                  | unspec  | unspec
+libdocument/ev-document.c                            | GPLv2h  | Marco Pesenti Gritti
+libdocument/ev-document-factory.c                    | GPLv2h  | Red Hat, Inc
+libdocument/ev-document-factory.h                    | GPLv2h  | Red Hat, Inc
+libdocument/ev-document-find.c                       | GPLv2h  | Red Hat, Inc
+libdocument/ev-document-find.h                       | GPLv2h  | Red Hat, Inc
+libdocument/ev-document-fonts.c                      | GPLv2h  | Red Hat, Inc
+libdocument/ev-document-fonts.h                      | GPLv2h  | Red Hat, Inc
+libdocument/ev-document.h                            | GPLv2h  | Marco Pesenti Gritti
+libdocument/ev-document-images.c                     | GPLv2h  | 2006 Carlos Garcia Campos <carlosgc@gnome.org>
+libdocument/ev-document-images.h                     | GPLv2h  | 2006 Carlos Garcia Campos <carlosgc@gnome.org>
+libdocument/ev-document-info.h                       | GPLv2h  | Marco Pesenti Gritti
+libdocument/ev-document-links.c                      | GPLv2h  | Red Hat, Inc
+libdocument/ev-document-links.h                      | GPLv2h  | Red Hat, Inc
+libdocument/ev-document-misc.c                       | unspec  | Marco Pesenti Gritti
+libdocument/ev-document-misc.h                       | GPLv2h  | Marco Pesenti Gritti
+libdocument/ev-document-security.c                   | GPLv2h  | Red Hat, Inc
+libdocument/ev-document-security.h                   | GPLv2h  | Red Hat, Inc
+libdocument/ev-document-thumbnails.c                 | GPLv2h  | Anders Carlsson <andersca@gnome.org>
+libdocument/ev-document-thumbnails.h                 | GPLv2h  | Anders Carlsson <andersca@gnome.org>
+libdocument/ev-document-transition.c                 | GPLv2h  | 2006 Carlos Garcia Campos <carlosgc@gnome.org>
+libdocument/ev-document-transition.h                 | GPLv2h  | 2006 Carlos Garcia Campos <carlosgc@gnome.org>
+libdocument/ev-file-exporter.c                       | GPLv2h  | 2004 Martin Kretzschmar <martink@gnome.org>
+libdocument/ev-file-exporter.h                       | GPLv2h  | 2004 Martin Kretzschmar <martink@gnome.org>
+libdocument/ev-file-helpers.c                        | GPLv2h  | Jorn Baayen
+libdocument/ev-file-helpers.h                        | GPLv2h  | Jorn Baayen
+libdocument/ev-image.c                               | GPLv2h  | 2006 Carlos Garcia Campos <carlosgc@gnome.org>
+libdocument/ev-image.h                               | GPLv2h  | 2006 Carlos Garcia Campos <carlosgc@gnome.org>
+libdocument/ev-link-action.c                         | GPLv2h  | Red Hat, Inc., Carlos Garcia Campos <carlosgc@gnome.org>
+libdocument/ev-link-action.h                         | GPLv2h  | Red Hat, Inc., Carlos Garcia Campos <carlosgc@gnome.org>
+libdocument/ev-link.c                                | GPLv2h  | Red Hat, Inc.
+libdocument/ev-link-dest.c                           | GPLv2h  | Red Hat, Inc., Carlos Garcia Campos <carlosgc@gnome.org>
+libdocument/ev-link-dest.h                           | GPLv2h  | Red Hat, Inc., Carlos Garcia Campos <carlosgc@gnome.org>
+libdocument/ev-link.h                                | GPLv2h  | Red Hat, Inc.
+libdocument/ev-render-context.c                      | unspec  | unspec
+libdocument/ev-render-context.h                      | GPLv2h  | unspec
+libdocument/ev-selection.c                           | GPLv2h  | Red Hat, Inc.
+libdocument/ev-selection.h                           | GPLv2h  | Marco Pesenti Gritti
+po/ar.po                                             | GPLv2h  | 2006 Yousef Raffah <yousef@raffah.com>, 2006, 2007 Khaled Hosny <khaledhosny@eglug.org>
+po/be.po                                             | GPLv2h  | Evince maintainers
+po/bg.po                                             | GPLv2h  | Evince maintainers
+po/bn_IN.po                                          | GPLv2h  | Evince maintainers
+po/bn.po                                             | GPLv2h  | Evince maintainers
+po/br.po                                             | GPLv2   | Free Software Foundation
+po/ca.po                                             | GPLv2h  | Free Software Foundation
+po/cs.po                                             | GPLv2h  | Miloslav Trmac <mitr@volny.cz>
+po/cy.po                                             | GPLv2h  | Gareth Bowker
+po/da.po                                             | GPLv2h  | Free Software Foundation
+po/de.po                                             | GPLv2h  | Martin Kretzschmar
+po/dz.po                                             | GPLv2h  | Free Software Foundation
+po/el.po                                             | GPLv2h  | Free Software Foundation
+po/en_CA.po                                          | GPLv2h  | Adam Weinberger and the GNOME Foundation
+po/en_GB.po                                          | GPLv2h  | The Gnome Foundation
+po/es.po                                             | GPLv2h  | Spanish translation for Evince
+po/et.po                                             | GPLv2h  | Free Software Foundation
+po/eu.po                                             | GPLv2h  | Mikel Olasagasti
+po/fa.po                                             | GPLv2h  | Sharif FarsiWeb, Inc.
+po/fi.po                                             | GPLv2h  | Free Software Foundation
+po/fr.po                                             | GPLv2   | Free Software Foundation
+po/gl.po                                             | GPLv2h  | Evince maintainers
+po/gu.po                                             | unspec  | unspec
+po/he.po                                             | GPLv2h  | Evince maintainers
+po/hi.po                                             | GPLv2h  | Evince maintainers
+po/hu.po                                             | GPLv2h  | Free Software Foundation
+po/id.po                                             | GPLv2h  | Evince maintainers
+po/it.po                                             | GPLv2h  | Evince maintainers
+po/ja.po                                             | GPLv2h  | Evince maintainers
+po/ka.po                                             | GPLv2h  | Evince maintainers
+po/ko.po                                             | unspec  | unspec
+po/ku.po                                             | GPLv2h  | Canonical Ltd, and Rosetta Contributors 2005
+po/lt.po                                             | GPLv2h  | The Gnome Foundation
+po/lv.po                                             | GPLv2h  | Gnome i18n Project for Latvian
+po/mg.po                                             | GPLv2h  | 2006 Fano Rajaonarisoa <fano@isvtec.com>, 2007 Thierry Randrianiriana <thierry@isvtec.com>
+po/mk.po                                             | GPLv2h  | Evince maintainers
+po/ml.po                                             | GPLv2h  | Evince maintainers
+po/mr.po                                             | GPLv2h  | Evince maintainers
+po/nb.po                                             | GPLv2h  | Free Software Foundation
+po/ne.po                                             | GPLv2h  | Evince maintainers
+po/nl.po                                             | GPLv2h  | Free Software Foundation
+po/nn.po                                             | GPLv2h  | Evince maintainers
+po/or.po                                             | GPLv2h  | Evince maintainers
+po/pa.po                                             | GPLv2h  | Evince maintainers
+po/pl.po                                             | GPLv2h  | Evince maintainers
+po/pt_BR.po                                          | GPLv2h  | Free Software Foundation
+po/pt.po                                             | GPLv2h  | Evince maintainers
+po/ro.po                                             | GPLv2h  | Free Software Foundation
+po/ru.po                                             | GPLv2   | Free Software Foundation
+po/rw.po                                             | GPLv2h  | Free Software Foundation
+po/sk.po                                             | GPLv2h  | Free Software Foundation
+po/sl.po                                             | GPLv2h  | Free Software Foundation
+po/sq.po                                             | GPLv2h  | Free Software Foundation
+po/sr@Latn.po                                        | GPLv2h  | Evince maintainers
+po/sr.po                                             | GPLv2h  | Evince maintainers
+po/sv.po                                             | GPLv2h  | Free Software Foundation
+po/ta.po                                             | GPLv2h  | Evince maintainers
+po/th.po                                             | GPLv2h  | Free Software Foundation
+po/tr.po                                             | GPLv2h  | The Gnome Foundation
+po/uk.po                                             | GPLv2h  | Free Software Foundation
+po/vi.po                                             | GPLv2h  | Gnome i18n Project for Vietnamese
+po/wa.po                                             | GPLv2h  | Evince maintainers
+po/zh_CN.po                                          | GPLv2h  | Evince maintainers
+po/zh_HK.po                                          | GPLv2h  | Free Software Foundation
+po/zh_TW.po                                          | GPLv2h  | Free Software Foundation
+properties/ev-properties-main.c                      | GPLv2.1h| Eazel Inc., Andrew Sobala <aes@gnome.org>, Bastien Nocera <hadess@hadess.net>
+properties/ev-properties-view.c                      | GPLv2h  | Red Hat, Inc
+properties/ev-properties-view.h                      | GPLv2h  | Red Hat, Inc
+shell/eggfindbar.c                                   | GPLv2h  | Red Hat, Inc.
+shell/eggfindbar.h                                   | GPLv2h  | Red Hat, Inc.
+shell/ev-application.c                               | GPLv2h  | Martin Kretzschma
+shell/ev-application.h                               | GPLv2h  | Martin Kretzschma
+shell/ev-history.c                                   | GPLv2h  | 2005 Marco Pesenti Gritti
+shell/ev-history.h                                   | GPLv2h  | 2005 Marco Pesenti Gritti
+shell/ev-job-queue.c                                 | unspec  | unspec
+shell/ev-job-queue.h                                 | GPLv2h  | Red Hat, Inc
+shell/ev-jobs.c                                      | unspec  | unspec
+shell/ev-jobs.h                                      | GPLv2h  | Red Hat, Inc
+shell/ev-marshal.c                                   | unspec  | unspec
+shell/ev-marshal.h                                   | unspec  | unspec
+shell/ev-metadata-manager.c                          | GPLv2h  | Paolo Maggi
+shell/ev-metadata-manager.h                          | GPLv2h  | Paolo Maggi
+shell/ev-navigation-action.c                         | GPLv2h  | 2003, 2004 Marco Pesenti Gritti, 2003, 2004 Christian Persch
+shell/ev-navigation-action.h                         | GPLv2h  | 2003, 2004 Marco Pesenti Gritti, 2003, 2004 Christian Persch
+shell/ev-navigation-action-widget.c                  | GPLv2h  | 2003, 2004 Marco Pesenti Gritti, 2003, 2004 Christian Persch
+shell/ev-navigation-action-widget.h                  | GPLv2h  | 2003, 2004 Marco Pesenti Gritti, 2003, 2004 Christian Persch
+shell/ev-page-action.c                               | GPLv2h  | Marco Pesenti Gritti, Christian Persch
+shell/ev-page-action.h                               | GPLv2h  | Marco Pesenti Gritti, Christian Persch
+shell/ev-page-action-widget.c                        | GPLv2h  | 2003, 2004 Marco Pesenti Gritti, 2003, 2004 Christian Persch
+shell/ev-page-action-widget.h                        | GPLv2h  | 2003, 2004 Marco Pesenti Gritti, 2003, 2004 Christian Persch
+shell/ev-page-cache.c                                | unspec  | unspec
+shell/ev-page-cache.h                                | GPLv2h  | Red Hat, Inc
+shell/ev-password.c                                  | GPLv2h  | Red Hat, Inc
+shell/ev-password.h                                  | GPLv2h  | Red Hat, Inc
+shell/ev-password-view.c                             | GPLv2h  | Red Hat, Inc
+shell/ev-password-view.h                             | GPLv2h  | Red Hat, Inc
+shell/ev-pixbuf-cache.c                              | unspec  | unspec
+shell/ev-pixbuf-cache.h                              | GPLv2h  | Red Hat, Inc
+shell/ev-print-job.c                                 | GPLv2h  | Martin Kretzschmar
+shell/ev-print-job.h                                 | GPLv2h  | Martin Kretzschmar
+shell/ev-properties-dialog.c                         | GPLv2h  | Red Hat, Inc
+shell/ev-properties-dialog.h                         | GPLv2h  | Red Hat, Inc
+shell/ev-properties-fonts.c                          | GPLv2h  | Red Hat, Inc
+shell/ev-properties-fonts.h                          | GPLv2h  | Red Hat, Inc
+shell/ev-sidebar-attachments.c                       | GPLv2h  | Carlos Garcia Campos <carlosgc@gnome.org>
+shell/ev-sidebar-attachments.h                       | GPLv2h  | Carlos Garcia Campos <carlosgc@gnome.org>
+shell/ev-sidebar.c                                   | GPLv2h  | Red Hat, Inc.
+shell/ev-sidebar.h                                   | GPLv2h  | Red Hat, Inc.
+shell/ev-sidebar-links.c                             | GPLv2h  | Red Hat, Inc.
+shell/ev-sidebar-links.h                             | GPLv2h  | Red Hat, Inc.
+shell/ev-sidebar-page.c                              | GPLv2h  | Marco Pesenti Gritti
+shell/ev-sidebar-page.h                              | GPLv2h  | Marco Pesenti Gritti 
+shell/ev-sidebar-thumbnails.c                        | GPLv2h  | Red Hat, Inc., Anders Carlsson <andersca@gnome.org
+shell/ev-sidebar-thumbnails.h                        | GPLv2h  | Red Hat, Inc.
+shell/ev-stock-icons.c                               | GPLv2h  | Martin Kretzschmar
+shell/ev-stock-icons.h                               | GPLv2h  | Martin Kretzschmar
+shell/ev-tooltip.c                                   | GPLv2h  | Red Hat, Inc.
+shell/ev-tooltip.h                                   | GPLv2h  | Red Hat, Inc.
+shell/ev-utils.c                                     | GPLv2h  | Anders Carlsson <andersca@gnome.org>
+shell/ev-utils.h                                     | GPLv2h  | Anders Carlsson <andersca@gnome.org>
+shell/ev-view-accessible.c                           | GPLv2h  | Red Hat, Inc.
+shell/ev-view-accessible.h                           | GPLv2h  | Red Hat, Inc.
+shell/ev-view.c                                      | GPLv2h  | Red Hat, Inc.
+shell/ev-view.h                                      | GPLv2h  | Red Hat, Inc.
+shell/ev-view-private.h                              | GPLv2h  | Red Hat, Inc.
+shell/ev-window.c                                    | GPLv2h  | Martin Kretzschmar, Red Hat, Inc., Marco Pesenti Gritti, Christian Persch
+shell/ev-window.h                                    | GPLv2h  | Martin Kretzschmar
+shell/ev-window-title.c                              | GPLv2h  | Red Hat, Inc.
+shell/ev-window-title.h                              | GPLv2h  | Red Hat, Inc.
+shell/main.c                                         | GPLv2h  | Marco Pesenti Gritti
+shell/xdg-user-dir-lookup.c                          | MIT     | 2007 Red Hat, Inc.
+thumbnailer/evince-thumbnailer.c                     | GPLv2h  | Fernando Herrera <fherrera@onirica.com>
+
+Shortcuts:
+ - "unspec":    The file contains no specific copyright/license notice. This
+                means that the copyright holder is the Evince Team (as
+                listed above) and the license is GPL2 or higher, unless
+                specified otherwise.
+ - "GPL":       The GNU General Public License, without versioning constraints.
+ - "GPLv2":     The GNU General Public License, version 2.
+ - "GPLv2h":    The GNU General Public License, version 2 or (at your
+                option) higher.
+ - "LGPLv2h":   The Lesser (or Library) GNU General Public License, version
+                2 or (at your option).
+ - "GFDL1.1":   The GNU Free Documentation License, version 1.1 or (at your
+                option) higher. The listed documents use the GFDL with no
+                Invariant Sections, no Front-Cover Texts, and no Back-Cover 
+                Texts.
+ - "Adobe":     The following licensing terms need to be respected:
+    | This file may be freely copied and redistributed as long as:
+    |   1) This entire notice continues to be included in the file,
+    |   2) If the file has been modified in any way, a notice of such
+    |      modification is conspicuously indicated.
+    |
+    | PostScript, Display PostScript, and Adobe are registered trademarks of
+    | Adobe Systems Incorporated.
+    |
+    | ************************************************************************
+    | THE INFORMATION BELOW IS FURNISHED AS IS, IS SUBJECT TO CHANGE WITHOUT
+    | NOTICE, AND SHOULD NOT BE CONSTRUED AS A COMMITMENT BY ADOBE SYSTEMS
+    | INCORPORATED. ADOBE SYSTEMS INCORPORATED ASSUMES NO RESPONSIBILITY OR
+    | LIABILITY FOR ANY ERRORS OR INACCURACIES, MAKES NO WARRANTY OF ANY
+    | KIND (EXPRESS, IMPLIED OR STATUTORY) WITH RESPECT TO THIS INFORMATION,
+    | AND EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES OF MERCHANTABILITY,
+    | FITNESS FOR PARTICULAR PURPOSES AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.
+    | ************************************************************************
+ - "SGI":       The following licensing terms need to be respected:
+    | Permission to use, copy, modify, distribute, and sell this software and
+    | its documentation for any purpose is hereby granted without fee, provided
+    | that (i) the above copyright notices and this permission notice appear in
+    | all copies of the software and related documentation, and (ii) the names of
+    | Sam Leffler and Silicon Graphics may not be used in any advertising or
+    | publicity relating to the software without the specific, prior written
+    | permission of Sam Leffler and Silicon Graphics.
+ - "MIT":       The following licensing terms need to be respected: 
+    | Permission is hereby granted, free of charge, to any person
+    | obtaining a copy of this software and associated documentation files
+    | (the "Software"), to deal in the Software without restriction,
+    | including without limitation the rights to use, copy, modify, merge,
+    | publish, distribute, sublicense, and/or sell copies of the Software,
+    | and to permit persons to whom the Software is furnished to do so,
+    | subject to the following conditions: 
+    |
+    | The above copyright notice and this permission notice shall be
+    | included in all copies or substantial portions of the Software. 
+    |
+    | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+    | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+    | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+    | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+    | BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+    | ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+    | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+
+
+On Debian systems, you can find the complete textes for the GNU (Lesser)
+General licenses:
+  - GPL:      /usr/share/common-licenses/GPL
+  - GPLv2:    /usr/share/common-licenses/GPL-2
+  - LGPLv2:   /usr/share/common-licenses/LGPL-2
+  - GFDL:     /usr/share/common-licenses/GFDL
--- evince-2.30.3.orig/debian/watch
+++ evince-2.30.3/debian/watch
@@ -0,0 +1,2 @@
+version=2
+http://ftp.gnome.org/pub/gnome/sources/evince/([\d\.]+)/evince-([\d\.]+)\.tar\.gz
--- evince-2.30.3.orig/debian/control
+++ evince-2.30.3/debian/control
@@ -0,0 +1,148 @@
+# This file is autogenerated. DO NOT EDIT!
+# 
+# Modifications should be made to debian/control.in instead.
+# This file is regenerated automatically in the clean target.
+
+Source: evince
+Section: gnome
+Priority: optional
+Maintainer: Ubuntu Desktop Team <ubuntu-desktop@lists.ubuntu.com>
+XSBC-Original-Maintainer: Marc 'HE' Brockschmidt <he@debian.org>
+Uploaders: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
+Vcs-Bzr: https://code.launchpad.net/~ubuntu-desktop/evince/ubuntu
+Build-Depends: cdbs,
+               debhelper (>= 5),
+               intltool (>= 0.35.0),
+               gnome-pkg-tools (>= 0.10),
+               gnome-doc-utils (>= 0.3.2),
+               libglib2.0-dev (>= 2.18),
+               libgtk2.0-dev (>= 2.14),
+               libgconf2-dev,
+               liblaunchpad-integration-dev (>= 0.1.17),
+               libnautilus-extension-dev,
+               libgnome-keyring-dev (>= 2.22),
+               libdbus-glib-1-dev (>= 0.33),
+               librsvg2-dev (>> 2.14.4-2),
+               gnome-icon-theme (>= 2.17.1),
+               libxml-parser-perl,
+               libxml2-dev,
+               scrollkeeper,
+               libxt-dev,
+               libpoppler-glib-dev (>= 0.12),
+               libdjvulibre-dev (>= 3.5.17),
+               libkpathsea-dev,
+               libtiff4-dev,
+               zlib1g-dev,
+               autotools-dev,
+               libspectre-dev,
+               hardening-includes,
+               libx11-dev,
+               libgs-dev,
+               libsm-dev (>= 2:1.1.0)
+Standards-Version: 3.8.4
+Homepage: http://www.gnome.org/projects/evince/
+
+Package: evince
+Conflicts: evince-gtk, apparmor (<< 2.3.1+1403-0ubuntu18)
+Replaces: evince-gtk
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         gnome-icon-theme (>= 2.17.1),
+         shared-mime-info
+Recommends: dbus-x11,
+            gvfs
+Provides: pdf-viewer,
+          postscript-viewer,
+          djvu-viewer,
+          evince-gtk
+Suggests: unrar, poppler-data, nautilus, apparmor
+Description: Document (postscript, pdf) viewer
+ Evince is a simple multi-page document viewer.  It can display and print
+ PostScript (PS), Encapsulated PostScript (EPS), DJVU, DVI and Portable
+ Document Format (PDF) files.
+ When supported by the document, it also allows searching for text,
+ copying text to the clipboard, hypertext navigation, and
+ table-of-contents bookmarks.
+
+Package: evince-dbg
+Section: gnome
+Architecture: any
+Depends: ${misc:Depends},
+         evince (= ${binary:Version})
+Description: Document (postscript, pdf) viewer - debugging symbols
+ Evince is a simple multi-page document viewer.  It can display and print
+ PostScript (PS), Encapsulated PostScript (EPS), DJVU, DVI and Portable
+ Document Format (PDF) files.
+ When supported by the document, it also allows searching for text,
+ copying text to the clipboard, hypertext navigation, and
+ table-of-contents bookmarks.
+ .
+ This package contains the debugging symbols needed by gdb.
+
+Package: libevview-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends},
+         libevview2 (= ${binary:Version}),
+         libgtk2.0-dev (>= 2.12),
+         libglib2.0-dev (>= 2.18)
+Description: GNOME document viewer view library - development headers
+ Evince is a simple multi-page document viewer.  It can display and print
+ PostScript (PS), Encapsulated PostScript (EPS), DJVU, DVI and Portable
+ Document Format (PDF) files.
+ When supported by the document, it also allows searching for text,
+ copying text to the clipboard, hypertext navigation, and
+ table-of-contents bookmarks.
+ .
+ This package contains the development headers for libview documentation
+ API shared library.
+
+Package: libevview2
+Section: libs
+Architecture: any
+Depends: ${misc:Depends},
+         ${shlibs:Depends}
+Description: GNOME document viewer view library
+ Evince is a simple multi-page document viewer.  It can display and print
+ PostScript (PS), Encapsulated PostScript (EPS), DJVU, DVI and Portable
+ Document Format (PDF) files.
+ When supported by the document, it also allows searching for text,
+ copying text to the clipboard, hypertext navigation, and
+ table-of-contents bookmarks.
+ .
+ This package contains the libview documentation API shared library.
+
+Package: libevdocument-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends},
+         libevdocument2 (= ${binary:Version}),
+         libgtk2.0-dev (>= 2.12),
+         libglib2.0-dev (>= 2.18)
+Description: GNOME document viewer backend library - development headers
+ Evince is a simple multi-page document viewer.  It can display and print
+ PostScript (PS), Encapsulated PostScript (EPS), DJVU, DVI and Portable
+ Document Format (PDF) files.
+ When supported by the document, it also allows searching for text,
+ copying text to the clipboard, hypertext navigation, and
+ table-of-contents bookmarks.
+ .
+ This package contains the development headers for libdocument documentation
+ API shared library.
+
+Package: libevdocument2
+Section: libs
+Architecture: any
+Depends: ${misc:Depends},
+         ${shlibs:Depends}
+Description: GNOME document viewer backend library
+ Evince is a simple multi-page document viewer.  It can display and print
+ PostScript (PS), Encapsulated PostScript (EPS), DJVU, DVI and Portable
+ Document Format (PDF) files.
+ When supported by the document, it also allows searching for text,
+ copying text to the clipboard, hypertext navigation, and
+ table-of-contents bookmarks.
+ .
+ This package contains the libdocument documentation API shared library.
+
--- evince-2.30.3.orig/debian/libevdocument2.install
+++ evince-2.30.3/debian/libevdocument2.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/libevdocument.so.*
--- evince-2.30.3.orig/debian/03_hildon_interface.patch
+++ evince-2.30.3/debian/03_hildon_interface.patch
@@ -0,0 +1,672 @@
+# Description: hildon user interface
+# UbuntuSpecific: ubuntu mobile change
+#
+diff -Nur -x '*.orig' -x '*~' evince-2.21.91/configure.ac evince-2.21.91.new/configure.ac
+--- evince-2.21.91/configure.ac	2008-02-12 11:40:48.000000000 +0100
++++ evince-2.21.91.new/configure.ac	2008-02-12 11:41:25.000000000 +0100
+@@ -84,6 +84,33 @@
+         AC_DEFINE([WITH_KEYRING],[1],[Define if KEYRING support is enabled])
+ fi
+ 
++dnl ==============================================
++dnl Maemo/Hildon based User Interface
++
++AC_ARG_ENABLE(hildon,
++       AC_HELP_STRING([--enable-hildon],[Build with Maemo/Hildon support]),
++    enable_hildon="$enableval",
++    enable_hildon=no)
++
++if test "x$enable_hildon" = "xyes" ; then
++    PKG_CHECK_MODULES(HILDON,
++                      hildon-1 hildon-fm-2 libosso,
++                      HAVE_HILDON=yes, HAVE_HILDON=no)
++fi
++
++if test "x$HAVE_HILDON" = "xyes" ; then
++    AC_DEFINE(USE_HILDON, 1, [Build with Maemo/Hildon support])
++fi
++
++AM_CONDITIONAL(USE_HILDON, test "x$HAVE_HILDON" = "xyes")
++
++HILDON_CFLAGS="$HILDON_CFLAGS -DUSE_STABLE_LIBGNOMEUI"
++AC_SUBST(HILDON_CFLAGS)
++AC_SUBST(HILDON_LIBS)
++
++dnl ==============================================
++dnl GNOME libs
++
+ AC_ARG_WITH(libgnome,
+         AC_HELP_STRING([--without-libgnome],[disable the use of libgnome]),
+ 	[case "${withval}" in
+@@ -473,6 +500,7 @@
+ echo "
+ Configure summary:
+ 	GNOME Support......:  $WITH_GNOME
++        Hildon Support.....:  $HAVE_HILDON
+ 	Keyring Support....:  $WITH_KEYRING
+ 	DBUS Support.......:  $enable_dbus
+ 	Nautilus Plugin....:  $HAVE_NAUTILUS
+diff -Nur -x '*.orig' -x '*~' evince-2.21.91/data/evince-hildon-ui.xml evince-2.21.91.new/data/evince-hildon-ui.xml
+--- evince-2.21.91/data/evince-hildon-ui.xml	1970-01-01 01:00:00.000000000 +0100
++++ evince-2.21.91.new/data/evince-hildon-ui.xml	2008-02-12 11:40:48.000000000 +0100
+@@ -0,0 +1,103 @@
++<ui>
++  <popup name="MainMenu">
++    <menu name="FileMenu" action="File">
++      <menuitem name="FileOpenMenu" action="FileOpen"/>
++      <menuitem name="FileSaveAsMenu" action="FileSaveAs"/>
++      <separator/>
++      <menuitem name="FilePropertiesMenu" action="FileProperties"/>
++      <separator/>
++      <placeholder name="RecentFilesMenu"/>
++      <menuitem name="FileCloseWindowMenu" action="FileCloseWindow"/>
++    </menu>
++
++    <menu name="EditMenu" action="Edit">
++      <menuitem name="EditCopyMenu" action="EditCopy"/>
++      <separator/>
++      <menuitem name="EditSelectAllMenu" action="EditSelectAll"/>
++      <separator/>
++      <menuitem name="EditFindMenu" action="EditFind"/>
++      <menuitem name="EditFindNextMenu" action="EditFindNext"/>
++      <separator/>
++      <menuitem name="EditRotateLeftMenu" action="EditRotateLeft"/>
++      <menuitem name="EditRotateRigtMenu" action="EditRotateRight"/>
++    </menu>
++
++    <menu name="ViewMenu" action="View">
++      <menuitem name="ViewToolbarMenu" action="ViewToolbar"/>
++      <menuitem name="ViewSidebarMenu" action="ViewSidebar"/>
++      <separator/>
++      <menuitem name="ViewFullscreenMenu" action="ViewFullscreen"/>
++      <menuitem name="ViewPresentationMenu" action="ViewPresentation"/>
++      <separator/>
++      <menuitem name="ViewContinuousMenu" action="ViewContinuous"/>
++      <menuitem name="ViewDualMenu" action="ViewDual"/>
++      <menuitem name="ViewZoomInMenu" action="ViewZoomIn"/>
++      <menuitem name="ViewZoomInMenu" action="ViewZoomIn"/>
++      <menuitem name="ViewZoomOutMenu" action="ViewZoomOut"/>
++      <menuitem name="ViewBestFitMenu" action="ViewBestFit"/>
++      <menuitem name="ViewPageWidthMenu" action="ViewPageWidth"/>
++      <separator/>
++      <menuitem name="ViewReload" action="ViewReload"/>
++    </menu>
++
++    <menu name="GoMenu" action="Go">
++      <menuitem name="GoPreviousPageMenu" action="GoPreviousPage"/>
++      <menuitem name="GoNextPageMenu" action="GoNextPage"/>
++      <separator/>
++      <menuitem name="GoFirstPageMenu" action="GoFirstPage"/>
++      <menuitem name="GoLastPageMenu" action="GoLastPage"/>
++    </menu>
++
++    <menu name="HelpMenu" action="Help">
++      <menuitem name="HelpAboutMenu" action="HelpAbout"/>
++    </menu>
++  </popup>
++
++  <popup name="DocumentPopup" action="PopupAction">
++    <menuitem name="OpenLink" action="OpenLink"/>
++    <menuitem name="CopyLinkAddress" action="CopyLinkAddress"/>
++    <menuitem name="GoLink" action="GoLink"/>
++    <separator/>
++    <menuitem name="GoPreviousPage" action="GoPreviousPage"/>
++    <menuitem name="GoNextPage" action="GoNextPage"/>
++    <menuitem name="ViewReload" action="ViewReload"/>
++    <separator/>
++    <menuitem name="EditCopy" action="EditCopy"/>
++    <menuitem name="EditSelectAllPopup" action="EditSelectAll"/>
++  </popup>
++
++  <toolbar name="DefaultToolBar">
++    <toolitem action="FileOpen"/>
++    <separator/>
++    <toolitem action="GoFirstPage"/>
++    <toolitem action="GoPreviousPage"/>
++    <toolitem action="PageSelector"/>
++    <toolitem action="GoNextPage"/>
++    <toolitem action="GoLastPage"/>
++    <separator/>
++    <toolitem action="ViewZoom"/>
++  </toolbar>
++
++  <accelerator name="PageDownAccel" action="PageDown"/>
++  <accelerator name="PageUpAccel" action="PageUp"/>
++  <accelerator name="GoBackwardFastAccel" action="GoBackwardFast"/>
++  <accelerator name="GoForwardFastAccel" action="GoForwardFast"/>
++  <accelerator name="EscapeAccel" action="Escape"/>
++  <accelerator name="SlashAccel" action="Slash"/>
++  <accelerator name="SpaceAccel" action="Space"/>
++  <accelerator name="ReturnAccel" action="Return"/>
++  <accelerator name="BackSpaceAccel" action="BackSpace"/>
++  <accelerator name="ShiftSpaceAccel" action="ShiftSpace"/>
++  <accelerator name="ShiftBackSpaceAccel" action="ShiftBackSpace"/>
++  <accelerator name="ShiftReturnAccel" action="ShiftReturn"/>
++  <accelerator name="FocusPageSelectorAccel" action="FocusPageSelector"/>
++  <accelerator name="PlusAccel" action="Plus"/>
++  <accelerator name="MinusAccel" action="Minus"/>
++  <accelerator name="Equal" action="Equal"/>
++  <accelerator name="CtrlEqualAccel" action="CtrlEqual"/>
++  <accelerator name="KpPlusAccel" action="KpPlus"/>
++  <accelerator name="KpMinusAccel" action="KpMinus"/>
++  <accelerator name="CtrlKpPlusAccel" action="CtrlKpPlus"/>
++  <accelerator name="CtrlKpMinusAccel" action="CtrlKpMinus"/>
++  
++</ui>
+diff -Nur -x '*.orig' -x '*~' evince-2.21.91/data/evince.service evince-2.21.91.new/data/evince.service
+--- evince-2.21.91/data/evince.service	1970-01-01 01:00:00.000000000 +0100
++++ evince-2.21.91.new/data/evince.service	2008-02-12 11:40:48.000000000 +0100
+@@ -0,0 +1,3 @@
++[D-BUS Service]
++Name=com.nokia.evince
++Exec=/usr/bin/evince
+diff -Nur -x '*.orig' -x '*~' evince-2.21.91/data/Makefile.am evince-2.21.91.new/data/Makefile.am
+--- evince-2.21.91/data/Makefile.am	2008-02-11 21:31:50.000000000 +0100
++++ evince-2.21.91.new/data/Makefile.am	2008-02-12 11:40:48.000000000 +0100
+@@ -15,11 +15,19 @@
+ #
+ 
+ uidir = $(pkgdatadir)
++if USE_HILDON
++ui_DATA =                              \
++       evince-hildon-ui.xml            \
++       evince-toolbar.xml              \
++       hand-open.png                   \
++       $(NULL)
++else
+ ui_DATA =				\
+ 	evince-ui.xml			\
+ 	evince-toolbar.xml		\
+ 	hand-open.png			\
+ 	$(NULL)
++endif
+ 
+ #
+ # Glade
+@@ -38,11 +46,18 @@
+ @INTLTOOL_DESKTOP_RULE@
+ 
+ DESKTOP_IN_FILES= evince.desktop.in.in
+-DESKTOP_FILES= $(DESKTOP_IN_FILES:.desktop.in.in=.desktop)
+-
+ desktopdir = $(datadir)/applications
++
++DESKTOP_FILES= $(DESKTOP_IN_FILES:.desktop.in.in=.desktop)
+ desktop_DATA = $(DESKTOP_FILES)
+ 
++#
++# D-Bus service (Maemo)
++#
++if USE_HILDON
++dbus_servicedir   = $(datadir)/dbus-1/services
++dbus_service_DATA = evince.service
++endif
+ 
+ #
+ # GConf schema
+@@ -107,6 +122,7 @@
+ 	$(DESKTOP_IN_FILES)		\
+ 	$(schema_in_files)		\
+ 	$(man_MANS)			\
++	$(dbus_service_DATA)		\
+ 	$(NULL)				
+ 
+ #
+diff -Nur -x '*.orig' -x '*~' evince-2.21.91/shell/ev-application.c evince-2.21.91.new/shell/ev-application.c
+--- evince-2.21.91/shell/ev-application.c	2008-02-11 21:31:49.000000000 +0100
++++ evince-2.21.91.new/shell/ev-application.c	2008-02-12 11:40:48.000000000 +0100
+@@ -406,7 +406,7 @@
+ 	}
+ 	ev_application_add_icon_path_for_screen (screen);
+ 	
+-	gtk_widget_show (new_window);
++	gtk_widget_show_all (new_window);
+ 	
+ 	gtk_window_present_with_time (GTK_WINDOW (new_window),
+ 				      timestamp);
+diff -Nur -x '*.orig' -x '*~' evince-2.21.91/shell/ev-view.c evince-2.21.91.new/shell/ev-view.c
+--- evince-2.21.91/shell/ev-view.c	2008-02-11 21:31:49.000000000 +0100
++++ evince-2.21.91.new/shell/ev-view.c	2008-02-12 11:40:48.000000000 +0100
+@@ -115,6 +115,14 @@
+ 
+ #define SCROLL_TIME 150
+ 
++#ifdef USE_HILDON
++#define SCROLL_BUTTON 1
++#define SELECT_BUTTON 2
++#else
++#define SCROLL_BUTTON 2
++#define SELECT_BUTTON 1
++#endif
++
+ /*** Scrolling ***/
+ static void       scroll_to_current_page 		     (EvView *view,
+ 							      GtkOrientation orientation);
+@@ -2693,7 +2701,7 @@
+ 		return TRUE;
+ 	
+ 	switch (event->button) {
+-	        case 1: {
++	        case SELECT_BUTTON: {
+ 			EvImage *image;
+ 			EvFormField *field;
+ 
+@@ -2729,7 +2737,7 @@
+ 			}
+ 		}			
+ 			return TRUE;
+-		case 2:
++		case SCROLL_BUTTON:
+ 			/* use root coordinates as reference point because
+ 			 * scrolling changes window relative coordinates */
+ 			view->drag_info.start.x = event->x_root;
+@@ -3045,7 +3053,7 @@
+ 	/* For the Evince 0.4.x release, we limit selection to un-rotated
+ 	 * documents only.
+ 	 */
+-	if (view->pressed_button == 1 && view->rotation == 0) {
++	if (view->pressed_button == SELECT_BUTTON && view->rotation == 0) {
+ 
+ 		/* Schedule timeout to scroll during selection and additionally 
+ 		 * scroll once to allow arbitrary speed. */
+@@ -3067,7 +3075,7 @@
+ 			view->selection_update_id = g_idle_add ((GSourceFunc)selection_update_idle_cb, view);
+ 
+ 		return TRUE;
+-	} else if (view->pressed_button == 2) {
++	} else if (view->pressed_button == SCROLL_BUTTON) {
+ 		if (!view->drag_info.in_drag) {
+ 			gboolean start;
+ 			int i;
+@@ -3153,7 +3161,7 @@
+ 	
+ 	view->drag_info.in_drag = FALSE;
+ 
+-	if (view->pressed_button == 2) {
++	if (view->pressed_button == SCROLL_BUTTON) {
+ 		ev_view_handle_cursor_over_xy (view, event->x, event->y);
+ 	}
+ 
+diff -Nur -x '*.orig' -x '*~' evince-2.21.91/shell/ev-window.c evince-2.21.91.new/shell/ev-window.c
+--- evince-2.21.91/shell/ev-window.c	2008-02-12 11:40:48.000000000 +0100
++++ evince-2.21.91.new/shell/ev-window.c	2008-02-12 11:44:07.000000000 +0100
+@@ -81,11 +81,22 @@
+ 
+ #include <launchpad-integration.h>
+ 
++#ifdef USE_HILDON
++#include <hildon/hildon-program.h>
++#include <hildon/hildon-file-chooser-dialog.h>
++#endif
++
+ #include <errno.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include <unistd.h>
+ 
++#ifdef USE_HILDON
++#define UI_FILE "evince-hildon-ui.xml"
++#else
++#define UI_FILE "evince-ui.xml"
++#endif
++
+ typedef enum {
+ 	PAGE_MODE_DOCUMENT,
+ 	PAGE_MODE_PASSWORD
+@@ -178,7 +189,9 @@
+ 	GtkPrinter       *printer;
+ 	GtkPrintSettings *print_settings;
+ 	GtkPageSetup     *print_page_setup;
+-
++#ifdef USE_HILDON
++	HildonProgram    *hildon_program;
++#endif
+ };
+ 
+ #define EV_WINDOW_GET_PRIVATE(object) \
+@@ -269,7 +282,11 @@
+ 							 EvWindow         *ev_window);
+ static void     ev_window_do_preview_print              (EvWindow         *window);
+ 
++#ifdef USE_HILDON
++G_DEFINE_TYPE (EvWindow, ev_window, HILDON_TYPE_WINDOW)
++#else
+ G_DEFINE_TYPE (EvWindow, ev_window, GTK_TYPE_WINDOW)
++#endif
+ 
+ static void
+ ev_window_set_action_sensitive (EvWindow   *ev_window,
+@@ -468,12 +485,14 @@
+ static void
+ set_widget_visibility (GtkWidget *widget, gboolean visible)
+ {
+-	g_assert (GTK_IS_WIDGET (widget));
+-	
+-	if (visible)
+-		gtk_widget_show (widget);
+-	else
+-		gtk_widget_hide (widget);
++	if (widget) {
++		g_assert (GTK_IS_WIDGET (widget));
++
++		if (visible)
++			gtk_widget_show (widget);
++		else
++			gtk_widget_hide (widget);
++	}
+ }
+ 
+ static void
+@@ -1540,6 +1559,12 @@
+ ev_window_cmd_file_open (GtkAction *action, EvWindow *window)
+ {
+ 	GtkWidget *chooser;
++	gboolean select_multiple = TRUE;
++
++#ifdef USE_HILDON
++	chooser = hildon_file_chooser_dialog_new (GTK_WINDOW (window), GTK_FILE_CHOOSER_ACTION_OPEN);
++	select_multiple = FALSE;
++#else
+ 
+ 	chooser = gtk_file_chooser_dialog_new (_("Open Document"),
+ 					       GTK_WINDOW (window),
+@@ -1548,9 +1573,10 @@
+ 					       GTK_RESPONSE_CANCEL,
+ 					       GTK_STOCK_OPEN, GTK_RESPONSE_OK,
+ 					       NULL);
++#endif
+ 
+ 	ev_document_factory_add_filters (chooser, NULL);
+-	gtk_file_chooser_set_select_multiple (GTK_FILE_CHOOSER (chooser), TRUE);
++	gtk_file_chooser_set_select_multiple (GTK_FILE_CHOOSER (chooser), select_multiple);
+ 	gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (chooser), FALSE);
+ 	if (ev_application_get_chooser_uri (EV_APP) != NULL) {
+ 		gtk_file_chooser_set_uri (GTK_FILE_CHOOSER (chooser),
+@@ -1969,12 +1995,16 @@
+ 	GFile *file;
+ 	const gchar *folder;
+ 
++#ifdef USE_HILDON
++	fc = hildon_file_chooser_dialog_new (GTK_WINDOW (ev_window), GTK_FILE_CHOOSER_ACTION_SAVE);
++#else
+ 	fc = gtk_file_chooser_dialog_new (
+ 		_("Save a Copy"),
+ 		GTK_WINDOW (ev_window), GTK_FILE_CHOOSER_ACTION_SAVE,
+ 		GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ 		GTK_STOCK_SAVE, GTK_RESPONSE_OK,
+ 		NULL);
++#endif
+ 
+ 	ev_document_factory_add_filters (fc, ev_window->priv->document);
+ 	gtk_dialog_set_default_response (GTK_DIALOG (fc), GTK_RESPONSE_OK);
+@@ -4076,6 +4106,13 @@
+ 		priv->presentation_timeout_id = 0;
+ 	}
+ 
++#ifdef USE_HILDON
++	if (window->priv->hildon_program != NULL) {
++		g_object_unref (window->priv->hildon_program);
++		window->priv->hildon_program = NULL;
++	}
++#endif
++
+ 	G_OBJECT_CLASS (ev_window_parent_class)->dispose (object);
+ }
+ 
+@@ -4093,6 +4130,18 @@
+ 	g_type_class_add_private (g_object_class, sizeof (EvWindowPrivate));
+ }
+ 
++#ifdef USE_HILDON
++#define ZOOM_IN_ACCEL "F7"
++#define ZOOM_OUT_ACCEL "F8"
++#define FULLSCREEN_ACCEL "F6"
++#define PRESENTATION_ACCEL NULL
++#else
++#define ZOOM_IN_ACCEL "<control>plus"
++#define ZOOM_OUT_ACCEL "<control>minus"
++#define FULLSCREEN_ACCEL "F11"
++#define PRESENTATION_ACCEL "F5"
++#endif
++
+ /* Normal items */
+ static const GtkActionEntry entries[] = {
+ 	{ "File", NULL, N_("_File") },
+@@ -4142,10 +4191,10 @@
+ 	  G_CALLBACK (ev_window_cmd_edit_rotate_right) },
+ 
+         /* View menu */
+-        { "ViewZoomIn", GTK_STOCK_ZOOM_IN, NULL, "<control>plus",
++        { "ViewZoomIn", GTK_STOCK_ZOOM_IN, NULL, ZOOM_IN_ACCEL,
+           N_("Enlarge the document"),
+           G_CALLBACK (ev_window_cmd_view_zoom_in) },
+-        { "ViewZoomOut", GTK_STOCK_ZOOM_OUT, NULL, "<control>minus",
++        { "ViewZoomOut", GTK_STOCK_ZOOM_OUT, NULL, ZOOM_OUT_ACCEL,
+           N_("Shrink the document"),
+           G_CALLBACK (ev_window_cmd_view_zoom_out) },
+         { "ViewReload", GTK_STOCK_REFRESH, N_("_Reload"), "<control>R",
+@@ -4247,10 +4296,10 @@
+         { "ViewDual", EV_STOCK_VIEW_DUAL, N_("_Dual"), NULL,
+ 	  N_("Show two pages at once"),
+ 	  G_CALLBACK (ev_window_cmd_dual), FALSE },
+-        { "ViewFullscreen", GTK_STOCK_FULLSCREEN, N_("_Fullscreen"), "F11",
++        { "ViewFullscreen", GTK_STOCK_FULLSCREEN, N_("_Fullscreen"), FULLSCREEN_ACCEL,
+           N_("Expand the window to fill the screen"),
+           G_CALLBACK (ev_window_cmd_view_fullscreen) },
+-        { "ViewPresentation", EV_STOCK_RUN_PRESENTATION, N_("Pre_sentation"), "F5",
++        { "ViewPresentation", EV_STOCK_RUN_PRESENTATION, N_("Pre_sentation"), PRESENTATION_ACCEL,
+           N_("Run document as a presentation"),
+           G_CALLBACK (ev_window_cmd_view_presentation) },
+         { "ViewBestFit", EV_STOCK_ZOOM_PAGE, N_("_Best Fit"), NULL,
+@@ -4844,6 +4893,9 @@
+ 	if (!window->priv->image)
+ 		return;
+ 
++#ifdef USE_HILDON
++	fc = hildon_file_chooser_dialog_new (GTK_WINDOW (window), GTK_FILE_CHOOSER_ACTION_SAVE);
++#else
+ 	fc = gtk_file_chooser_dialog_new (_("Save Image"),
+ 					  GTK_WINDOW (window),
+ 					  GTK_FILE_CHOOSER_ACTION_SAVE,
+@@ -4851,6 +4903,7 @@
+ 					  GTK_RESPONSE_CANCEL,
+ 					  GTK_STOCK_SAVE, GTK_RESPONSE_OK,
+ 					  NULL);
++#endif
+ 
+ 	gtk_dialog_set_default_response (GTK_DIALOG (fc), GTK_RESPONSE_OK);
+ 	gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (fc), FALSE);
+@@ -4999,6 +5052,9 @@
+ 	if (g_list_length (window->priv->attach_list) == 1)
+ 		attachment = (EvAttachment *) window->priv->attach_list->data;
+ 	
++#ifdef USE_HILDON
++	fc = hildon_file_chooser_dialog_new (GTK_WINDOW (window), attachment ? GTK_FILE_CHOOSER_ACTION_SAVE : GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER);
++#else
+ 	fc = gtk_file_chooser_dialog_new (
+ 		_("Save Attachment"),
+ 		GTK_WINDOW (window),
+@@ -5007,6 +5063,7 @@
+ 		GTK_RESPONSE_CANCEL,
+ 		GTK_STOCK_SAVE, GTK_RESPONSE_OK,
+ 		NULL);
++#endif
+ 
+ 	gtk_dialog_set_default_response (GTK_DIALOG (fc), GTK_RESPONSE_OK);
+ 	gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (fc), TRUE);
+@@ -5030,6 +5087,10 @@
+ 	GtkAccelGroup *accel_group;
+ 	GError *error = NULL;
+ 	GtkWidget *sidebar_widget;
++	gchar *ui_file = NULL;
++#ifdef USE_HILDON
++	static HildonProgram * hildon_prog = NULL;
++#endif
+ 
+ 	g_signal_connect (ev_window, "configure_event",
+ 			  G_CALLBACK (window_configure_event_cb), NULL);
+@@ -5038,6 +5099,17 @@
+ 
+ 	ev_window->priv = EV_WINDOW_GET_PRIVATE (ev_window);
+ 
++#ifdef USE_HILDON
++	if (hildon_prog == NULL) {
++		hildon_prog = HILDON_PROGRAM (hildon_program_get_instance ());
++	} else {
++		g_object_ref (hildon_prog);
++	}
++
++	ev_window->priv->hildon_program = hildon_prog;
++	hildon_program_add_window (ev_window->priv->hildon_program, HILDON_WINDOW (ev_window));
++#endif
++
+ 	ev_window->priv->page_mode = PAGE_MODE_DOCUMENT;
+ 	ev_window->priv->title = ev_window_title_new (ev_window);
+ 
+@@ -5084,13 +5156,16 @@
+ 	gtk_ui_manager_insert_action_group (ev_window->priv->ui_manager,
+ 					    action_group, 0);
+ 
++	ui_file = g_build_filename (DATADIR, UI_FILE, NULL);
+ 	if (!gtk_ui_manager_add_ui_from_file (ev_window->priv->ui_manager,
+-					      DATADIR"/evince-ui.xml",
++					      ui_file,
+ 					      &error)) {
+ 		g_warning ("building menus failed: %s", error->message);
+ 		g_error_free (error);
+ 	}
+ 	
++	g_free (ui_file);
++       
+ #if GTK_CHECK_VERSION(2,11,4)
+ 	ev_window->priv->recent_manager = gtk_recent_manager_get_default ();
+ #else
+@@ -5105,6 +5180,13 @@
+ 				  G_CALLBACK (ev_window_setup_recent),
+ 				  ev_window);
+ 
++#ifdef USE_HILDON
++	hildon_window_set_menu (HILDON_WINDOW (ev_window),
++				GTK_MENU (gtk_ui_manager_get_widget (ev_window->priv->ui_manager, "/MainMenu")));
++	ev_window->priv->toolbar = gtk_ui_manager_get_widget (ev_window->priv->ui_manager, "/DefaultToolBar");
++	hildon_window_add_toolbar (HILDON_WINDOW (ev_window), GTK_TOOLBAR (ev_window->priv->toolbar));
++	gtk_widget_show (ev_window->priv->toolbar);
++#else
+ 	ev_window->priv->menubar =
+ 		 gtk_ui_manager_get_widget (ev_window->priv->ui_manager,
+ 					    "/MainMenu");
+@@ -5126,6 +5208,7 @@
+ 	gtk_box_pack_start (GTK_BOX (ev_window->priv->main_box),
+ 			    ev_window->priv->toolbar,
+ 			    FALSE, FALSE, 0);
++#endif
+ 	gtk_widget_show (ev_window->priv->toolbar);
+ 
+ 	/* Add the main area */
+diff -Nur -x '*.orig' -x '*~' evince-2.21.91/shell/ev-window.h evince-2.21.91.new/shell/ev-window.h
+--- evince-2.21.91/shell/ev-window.h	2008-02-11 21:31:49.000000000 +0100
++++ evince-2.21.91.new/shell/ev-window.h	2008-02-12 11:40:49.000000000 +0100
+@@ -27,6 +27,10 @@
+ #include <gtk/gtkwindow.h>
+ #include <gtk/gtkscrolledwindow.h>
+ 
++#ifdef USE_HILDON
++#include <hildon/hildon-window.h>
++#endif
++
+ #include "ev-link.h"
+ #include "ev-page-cache.h"
+ 
+@@ -63,12 +67,20 @@
+ 
+ 
+ struct _EvWindow {
++#ifdef USE_HILDON
++	HildonWindow		base_instance;
++#else
+ 	GtkWindow		base_instance;
++#endif
+ 	EvWindowPrivate		*priv;
+ };
+ 
+ struct _EvWindowClass {
++#ifdef USE_HILDON
++	HildonWindowClass	base_class;
++#else
+ 	GtkWindowClass		base_class;
++#endif
+ };
+ 
+ GType		ev_window_get_type	  (void);
+diff -Nur -x '*.orig' -x '*~' evince-2.21.91/shell/main.c evince-2.21.91.new/shell/main.c
+--- evince-2.21.91/shell/main.c	2008-02-11 21:31:49.000000000 +0100
++++ evince-2.21.91.new/shell/main.c	2008-02-12 11:40:49.000000000 +0100
+@@ -39,6 +39,10 @@
+ #include <dbus/dbus-glib-bindings.h>
+ #endif
+ 
++#ifdef USE_HILDON
++#include <libosso.h>
++#endif
++
+ #include "ev-stock-icons.h"
+ #include "ev-job-queue.h"
+ #include "ev-file-helpers.h"
+@@ -328,6 +332,9 @@
+ 	char *accel_filename;
+ 	GError *error = NULL;
+ #endif
++#ifdef USE_HILDON
++	osso_context_t *osso_context = NULL;
++#endif
+ 
+ 	context = g_option_context_new (_("GNOME Document Viewer"));
+ 
+@@ -342,6 +349,10 @@
+ 	g_option_context_add_main_entries (context, goption_options, NULL);
+ #endif
+ 
++#ifdef USE_HILDON
++	osso_context = osso_initialize (PACKAGE, VERSION, TRUE, NULL);
++#endif
++
+ #if WITH_GNOME
+ 	program = gnome_program_init (PACKAGE, VERSION,
+ 				      LIBGNOMEUI_MODULE, argc, argv,
+@@ -400,6 +411,13 @@
+ 
+ 	gtk_main ();
+ 
++#ifdef USE_HILDON
++	if (osso_context != NULL) {
++		osso_deinitialize (osso_context);
++	}
++#endif
++
++
+ #if WITH_GNOME
+ 	gnome_accelerators_sync ();
+ #else
+diff -Nur -x '*.orig' -x '*~' evince-2.21.91/shell/Makefile.am evince-2.21.91.new/shell/Makefile.am
+--- evince-2.21.91/shell/Makefile.am	2008-02-11 21:31:49.000000000 +0100
++++ evince-2.21.91.new/shell/Makefile.am	2008-02-12 11:42:40.000000000 +0100
+@@ -11,7 +11,8 @@
+ 	-DGNOMEICONDIR=\""$(datadir)/pixmaps"\" 	\
+ 	$(SHELL_CFLAGS)					\
+ 	$(WARN_CFLAGS)					\
+-	$(DISABLE_DEPRECATED)
++	$(DISABLE_DEPRECATED)				\
++	$(HILDON_CFLAGS)
+ 
+ bin_PROGRAMS=evince
+ 
+@@ -92,7 +93,8 @@
+ 	$(top_builddir)/cut-n-paste/gedit-message-area/libgeditmsgarea.la	\
+ 	$(top_builddir)/properties/libevproperties.la				\
+ 	$(top_builddir)/libdocument/libevbackend.la				\
+-	$(SHELL_LIBS)
++	$(SHELL_LIBS)								\
++	$(HILDON_LIBS)
+ 
+ BUILT_SOURCES = ev-marshal.h ev-marshal.c
+ 
--- evince-2.30.3.orig/debian/evince.lintian-override
+++ evince-2.30.3/debian/evince.lintian-override
@@ -0,0 +1,2 @@
+#Our copyright file is more complex, but correct:
+evince: copyright-without-copyright-notice
--- evince-2.30.3.orig/debian/patches/99_autoconf.patch
+++ evince-2.30.3/debian/patches/99_autoconf.patch
@@ -0,0 +1,53 @@
+diff -Nur -x '*.orig' -x '*~' evince-2.30.0/configure evince-2.30.0.new/configure
+--- evince-2.30.0/configure	2010-03-29 20:52:55.000000000 +0200
++++ evince-2.30.0.new/configure	2010-03-29 23:45:24.000000000 +0200
+@@ -19049,12 +19049,12 @@
+     pkg_cv_SHELL_CORE_CFLAGS="$SHELL_CORE_CFLAGS"
+  elif test -n "$PKG_CONFIG"; then
+     if test -n "$PKG_CONFIG" && \
+-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML_REQUIRED gtk+-2.0 >= \$GTK_REQUIRED gio-2.0 >= \$GLIB_REQUIRED gthread-2.0 \$SHELL_PLATFORM_PKGS\""; } >&5
+-  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML_REQUIRED gtk+-2.0 >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS") 2>&5
++    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML_REQUIRED gtk+-2.0 >= \$GTK_REQUIRED launchpad-integration gio-2.0 >= \$GLIB_REQUIRED gthread-2.0 \$SHELL_PLATFORM_PKGS\""; } >&5
++  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML_REQUIRED gtk+-2.0 >= $GTK_REQUIRED launchpad-integration gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS") 2>&5
+   ac_status=$?
+   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+   test $ac_status = 0; }; then
+-  pkg_cv_SHELL_CORE_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= $LIBXML_REQUIRED gtk+-2.0 >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS" 2>/dev/null`
++  pkg_cv_SHELL_CORE_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= $LIBXML_REQUIRED gtk+-2.0 >= $GTK_REQUIRED launchpad-integration gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS" 2>/dev/null`
+ else
+   pkg_failed=yes
+ fi
+@@ -19065,12 +19065,12 @@
+     pkg_cv_SHELL_CORE_LIBS="$SHELL_CORE_LIBS"
+  elif test -n "$PKG_CONFIG"; then
+     if test -n "$PKG_CONFIG" && \
+-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML_REQUIRED gtk+-2.0 >= \$GTK_REQUIRED gio-2.0 >= \$GLIB_REQUIRED gthread-2.0 \$SHELL_PLATFORM_PKGS\""; } >&5
+-  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML_REQUIRED gtk+-2.0 >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS") 2>&5
++    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML_REQUIRED gtk+-2.0 >= \$GTK_REQUIRED launchpad-integration gio-2.0 >= \$GLIB_REQUIRED gthread-2.0 \$SHELL_PLATFORM_PKGS\""; } >&5
++  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML_REQUIRED gtk+-2.0 >= $GTK_REQUIRED launchpad-integration gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS") 2>&5
+   ac_status=$?
+   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+   test $ac_status = 0; }; then
+-  pkg_cv_SHELL_CORE_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= $LIBXML_REQUIRED gtk+-2.0 >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS" 2>/dev/null`
++  pkg_cv_SHELL_CORE_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= $LIBXML_REQUIRED gtk+-2.0 >= $GTK_REQUIRED launchpad-integration gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS" 2>/dev/null`
+ else
+   pkg_failed=yes
+ fi
+@@ -19088,14 +19088,14 @@
+         _pkg_short_errors_supported=no
+ fi
+         if test $_pkg_short_errors_supported = yes; then
+-	        SHELL_CORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0 >= $LIBXML_REQUIRED gtk+-2.0 >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS" 2>&1`
++	        SHELL_CORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0 >= $LIBXML_REQUIRED gtk+-2.0 >= $GTK_REQUIRED launchpad-integration gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS" 2>&1`
+         else
+-	        SHELL_CORE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0 >= $LIBXML_REQUIRED gtk+-2.0 >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS" 2>&1`
++	        SHELL_CORE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0 >= $LIBXML_REQUIRED gtk+-2.0 >= $GTK_REQUIRED launchpad-integration gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS" 2>&1`
+         fi
+ 	# Put the nasty error message in config.log where it belongs
+ 	echo "$SHELL_CORE_PKG_ERRORS" >&5
+ 
+-	as_fn_error "Package requirements (libxml-2.0 >= $LIBXML_REQUIRED gtk+-2.0 >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS) were not met:
++	as_fn_error "Package requirements (libxml-2.0 >= $LIBXML_REQUIRED gtk+-2.0 >= $GTK_REQUIRED launchpad-integration gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS) were not met:
+ 
+ $SHELL_CORE_PKG_ERRORS
+ 
--- evince-2.30.3.orig/debian/patches/02_CVE-2010-264x.patch
+++ evince-2.30.3/debian/patches/02_CVE-2010-264x.patch
@@ -0,0 +1,86 @@
+Description: fix arbitrary code execution via multiple dvi backend overflows
+Author: José Aliste
+
+diff -Naur evince-2.30.3.ori//backend/dvi/mdvi-lib/afmparse.c evince-2.30.3/backend/dvi/mdvi-lib/afmparse.c
+--- evince-2.30.3.ori//backend/dvi/mdvi-lib/afmparse.c	2009-04-24 03:24:16.000000000 -0400
++++ evince-2.30.3/backend/dvi/mdvi-lib/afmparse.c	2011-01-03 13:13:04.000000000 -0500
+@@ -160,7 +160,7 @@
+     
+     idx = 0;
+     while (ch != EOF && ch != ' ' && ch != lineterm 
+-           && ch != '\t' && ch != ':' && ch != ';') 
++           && ch != '\t' && ch != ':' && ch != ';' && idx < MAX_NAME)
+     {
+         ident[idx++] = ch;
+         ch = fgetc(stream);
+diff -Naur evince-2.30.3.ori//backend/dvi/mdvi-lib/dviread.c evince-2.30.3/backend/dvi/mdvi-lib/dviread.c
+--- evince-2.30.3.ori//backend/dvi/mdvi-lib/dviread.c	2010-04-05 05:21:59.000000000 -0400
++++ evince-2.30.3/backend/dvi/mdvi-lib/dviread.c	2011-01-03 13:13:04.000000000 -0500
+@@ -1537,6 +1537,10 @@
+ 	Int32	arg;
+ 	
+ 	arg = dugetn(dvi, opcode - DVI_XXX1 + 1);
++	if (arg <= 0) {
++		dvierr(dvi, _("malformed special length\n"));
++		return -1;
++	}
+ 	s = mdvi_malloc(arg + 1);
+ 	dread(dvi, s, arg);
+ 	s[arg] = 0;
+diff -Naur evince-2.30.3.ori//backend/dvi/mdvi-lib/pk.c evince-2.30.3/backend/dvi/mdvi-lib/pk.c
+--- evince-2.30.3.ori//backend/dvi/mdvi-lib/pk.c	2010-04-05 05:21:59.000000000 -0400
++++ evince-2.30.3/backend/dvi/mdvi-lib/pk.c	2011-01-03 13:13:04.000000000 -0500
+@@ -469,6 +469,15 @@
+ 			}
+ 			if(feof(p))
+ 				break;
++
++			/* Although the PK format support bigger char codes,
++                         * XeTeX and other extended TeX engines support charcodes up to
++                         * 65536, while normal TeX engine supports only charcode up to 255.*/
++			if (cc < 0 || cc > 65536) {
++				mdvi_error (_("%s: unexpected charcode (%d)\n"),
++					    font->fontname,cc);
++				goto error;
++			} 
+ 			if(cc < loc)
+ 				loc = cc;
+ 			if(cc > hic)
+@@ -512,7 +521,7 @@
+ 	}
+ 
+ 	/* resize font char data */
+-	if(loc > 0 || hic < maxch-1) {
++	if(loc > 0 && hic < maxch-1) {
+ 		memmove(font->chars, font->chars + loc, 
+ 			(hic - loc + 1) * sizeof(DviFontChar));
+ 		font->chars = xresize(font->chars,
+diff -Naur evince-2.30.3.ori//backend/dvi/mdvi-lib/tfmfile.c evince-2.30.3/backend/dvi/mdvi-lib/tfmfile.c
+--- evince-2.30.3.ori//backend/dvi/mdvi-lib/tfmfile.c	2010-04-05 05:21:59.000000000 -0400
++++ evince-2.30.3/backend/dvi/mdvi-lib/tfmfile.c	2011-01-03 13:13:04.000000000 -0500
+@@ -172,7 +172,8 @@
+ 	/* We read the entire TFM file into core */
+ 	if(fstat(fileno(in), &st) < 0)
+ 		return -1;
+-	if(st.st_size == 0)
++	/* according to the spec, TFM files are smaller than 16K */
++	if(st.st_size == 0 || st.st_size >= 16384)
+ 		goto bad_tfm;
+ 
+ 	/* allocate a word-aligned buffer to hold the file */
+diff -Naur evince-2.30.3.ori//backend/dvi/mdvi-lib/vf.c evince-2.30.3/backend/dvi/mdvi-lib/vf.c
+--- evince-2.30.3.ori//backend/dvi/mdvi-lib/vf.c	2010-04-05 05:21:59.000000000 -0400
++++ evince-2.30.3/backend/dvi/mdvi-lib/vf.c	2011-01-03 13:13:04.000000000 -0500
+@@ -165,6 +165,12 @@
+ 			cc = fuget1(p);
+ 			tfm = fuget3(p);
+ 		}
++		if (cc < 0 || cc > 65536) {
++			/* TeX engines do not support char codes bigger than 65535 */
++			mdvi_error(_("(vf) %s: unexpected character %d\n"),
++				   font->fontname, cc);
++			goto error;
++		}
+ 		if(loc < 0 || cc < loc)
+ 			loc = cc;
+ 		if(hic < 0 || cc > hic)
--- evince-2.30.3.orig/debian/patches/01_launchpad.patch
+++ evince-2.30.3/debian/patches/01_launchpad.patch
@@ -0,0 +1,47 @@
+# Description: launchpad integration changes
+# UbuntuSpecific: ubuntu and launchpad
+#
+diff -Nur -x '*.orig' -x '*~' evince-2.27.4/configure.ac evince-2.27.4.new/configure.ac
+--- evince-2.27.4/configure.ac	2009-07-13 21:04:00.000000000 +0200
++++ evince-2.27.4.new/configure.ac	2009-07-13 21:47:24.000000000 +0200
+@@ -146,7 +146,7 @@
+      ;;
+ esac
+ 
+-PKG_CHECK_MODULES([SHELL_CORE],[libxml-2.0 >= $LIBXML_REQUIRED gtk+-2.0 >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS])
++PKG_CHECK_MODULES([SHELL_CORE],[libxml-2.0 >= $LIBXML_REQUIRED gtk+-2.0 >= $GTK_REQUIRED launchpad-integration gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS])
+ 
+ # *********
+ # SM client
+diff -Nur -x '*.orig' -x '*~' evince-2.27.4/data/evince-ui.xml evince-2.27.4.new/data/evince-ui.xml
+--- evince-2.27.4/data/evince-ui.xml	2009-07-13 20:50:03.000000000 +0200
++++ evince-2.27.4.new/data/evince-ui.xml	2009-07-13 21:47:11.000000000 +0200
+@@ -57,6 +57,7 @@
+ 
+     <menu name="HelpMenu" action="Help">
+       <menuitem name="HelpContentsMenu" action="HelpContents"/>
++      <placeholder name="LaunchpadItems" />
+       <menuitem name="HelpAboutMenu" action="HelpAbout"/>
+     </menu>
+   </menubar>
+diff -Nur -x '*.orig' -x '*~' evince-2.27.4/shell/ev-window.c evince-2.27.4.new/shell/ev-window.c
+--- evince-2.27.4/shell/ev-window.c	2009-07-13 20:50:04.000000000 +0200
++++ evince-2.27.4.new/shell/ev-window.c	2009-07-13 21:47:11.000000000 +0200
+@@ -29,6 +29,8 @@
+ #include "config.h"
+ #endif
+ 
++#include <launchpad-integration.h>
++
+ #include <errno.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -5965,6 +5967,8 @@
+ 	ev_window->priv->menubar =
+ 		 gtk_ui_manager_get_widget (ev_window->priv->ui_manager,
+ 					    "/MainMenu");
++	launchpad_integration_add_ui (ev_window->priv->ui_manager,
++				      "/MainMenu/HelpMenu/LaunchpadItems");
+ 	gtk_box_pack_start (GTK_BOX (ev_window->priv->main_box),
+ 			    ev_window->priv->menubar,
+ 			    FALSE, FALSE, 0);
