diff --git a/debian/patches/26-fix-display-of-manual.pdf.patch b/debian/patches/26-fix-display-of-manual.pdf.patch new file mode 100644 index 0000000..9a94114 --- /dev/null +++ b/debian/patches/26-fix-display-of-manual.pdf.patch @@ -0,0 +1,48 @@ +From: Carlos Maddela +Date: Thu, 5 Jan 2017 18:59:30 +1100 +Subject: Fix display of manual.pdf. + +Description: Fix display of manual.pdf. + The PDF file is automatically compressed by Debhelper, so we need to + account for this. +Author: Carlos Maddela +Origin: vendor +Forwarded: not-needed +Last-Update: 2017-01-05 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- + show-manual.c | 4 ++-- + welcome-window.c | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/show-manual.c b/show-manual.c +index d53c9a5..ecb0922 100644 +--- a/show-manual.c ++++ b/show-manual.c +@@ -287,8 +287,8 @@ void ShowPDF(char *target) + + /* If no target is given, show the manual. */ + +- if(!target) +- { bi->path = g_strdup_printf("%s/manual.pdf",Closure->docDir); ++ if(!target) ++ { bi->path = g_strdup_printf("%s/manual.pdf.gz",Closure->docDir); + } + else + if(*target != '/') bi->path = g_strdup_printf("%s/%s",Closure->docDir, target); +diff --git a/welcome-window.c b/welcome-window.c +index 1046bc8..3261b7c 100644 +--- a/welcome-window.c ++++ b/welcome-window.c +@@ -138,8 +138,8 @@ void CreateWelcomePage(GtkNotebook *notebook) + AboutText(box, _("\ndvdisaster creates error correction data to protect\n" + "optical media (CD,DVD,BD) against data loss.\n")); + +- AboutTextWithLink(box, _("Please see the [manual] for typical uses of dvdisaster.\n\n"), +- "manual.pdf"); ++ AboutTextWithLink(box, _("Please see the [manual] for typical uses of dvdisaster.\n\n"), ++ "manual.pdf.gz"); + + AboutText(box, _("New in this Version:")); + diff --git a/debian/patches/series b/debian/patches/series index c471f8d..efb177c 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -17,3 +17,4 @@ 23-add-bdrom-support.patch 24-show-gpl3-license.patch 25-fix-man-pages.patch +26-fix-display-of-manual.pdf.patch