178 lines
7.2 KiB
Plaintext
178 lines
7.2 KiB
Plaintext
--- .pkgextract
|
||
+++ .pkgextract 2006-02-28 15:49:27.000000000 +0100
|
||
@@ -0,0 +1 @@
|
||
+patch -p1 -b -s --suffix=".debian" < ../gv-3.6.3-deb.patch
|
||
--- NOTE
|
||
+++ NOTE 2008-03-27 13:49:41.452894000 +0100
|
||
@@ -0,0 +1,52 @@
|
||
+
|
||
+**
|
||
+** Copyright (C) 1995, 1996, 1997 Johannes Plass
|
||
+** Copyright (C) 2004 Jose E. Marchesi
|
||
+**
|
||
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||
+**
|
||
+** Author: Johannes Plass (plass@dipmza.physik.uni-mainz.de)
|
||
+** Department of Physic
|
||
+** Johannes Gutenberg-University
|
||
+** Mainz, Germany
|
||
+**
|
||
+** Jose E. Marchesi (jemarch@gnu.org)
|
||
+** GNU Project
|
||
+**
|
||
+
|
||
+GV is real based on ghostview 1.5 by Tim Theisen:
|
||
+
|
||
+ * Ghostview.c -- Ghostview widget.
|
||
+ * Copyright (C) 1992 Timothy O. Theisen
|
||
+ *
|
||
+ * 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||
+ *
|
||
+ * Author: Tim Theisen Systems Programmer
|
||
+ * Internet: tim@cs.wisc.edu Department of Computer Sciences
|
||
+ * UUCP: uwvax!tim University of Wisconsin-Madison
|
||
+ * Phone: (608)262-0438 1210 West Dayton Street
|
||
+ * FAX: (608)262-9777 Madison, WI 53706
|
||
--- src/Ghostview.c
|
||
+++ src/Ghostview.c 2008-03-27 13:50:57.606662000 +0100
|
||
@@ -1419,6 +1419,12 @@ StartInterpreter(w)
|
||
if (gvw->ghostview.safer)
|
||
{
|
||
argv[argc++] = "-dSAFER";
|
||
+# ifdef ALLOW_PDF
|
||
+ /* The file created by pdf2dsc opens the original
|
||
+ pdf file with the read operator. */
|
||
+ if (gv_filename_dsc && (!gvw->ghostview.filename || !strcmp(gvw->ghostview.filename,"-")))
|
||
+ argv[argc++] = "-dDELAYSAFER";
|
||
+# endif
|
||
}
|
||
|
||
if (gvw->ghostview.arguments) {
|
||
--- src/Makefile.am
|
||
+++ src/Makefile.am 2008-03-27 17:36:23.280458747 +0100
|
||
@@ -6,9 +6,9 @@
|
||
|
||
# File distribution
|
||
bin_PROGRAMS = gv
|
||
-dist_pkglib_DATA = gv_system.ad gv_user.ad gv_class.ad gv_spartan.dat gv_user_res.dat gv_copyright.dat
|
||
+dist_pkglib_DATA = gv_system.ad gv_user.ad gv_class.ad gv_spartan.dat gv_user_res.dat gv_copyright.dat gv_widgetless.dat
|
||
|
||
-appdefaultsdir = $(pkglibdir)
|
||
+appdefaultsdir = $(datadir)/X11/app-defaults
|
||
|
||
appdefaults_DATA = GV
|
||
|
||
@@ -172,7 +172,7 @@ $(srcdir)/gv_user.ad : $(srcdir)/gv_user
|
||
@echo "! gv_user.ad" >> $(srcdir)/gv_user.ad
|
||
@echo "! User specific application defaults for gv" >> $(srcdir)/gv_user.ad
|
||
@echo "! Copyright (C) 1995, 1996, 1997 Johannes Plass" >> $(srcdir)/gv_user.ad
|
||
- @echo "! Copyright (C) 2004,2005,2006,2007 Jos<6F> E. Marchesi" >> $(srcdir)/gv_user.ad
|
||
+ @echo "! Copyright (C) 2004,2005,2006,2007 Jose E. Marchesi" >> $(srcdir)/gv_user.ad
|
||
@echo "!" >> $(srcdir)/gv_user.ad
|
||
@cat $(srcdir)/gv_user_res.dat >> $(srcdir)/gv_user.ad
|
||
@cat $(srcdir)/gv_intern_res_unix.dat >> $(srcdir)/gv_user.ad
|
||
@@ -215,7 +215,7 @@ $(srcdir)/gv_class.ad : $(srcdir)/gv_fon
|
||
@echo "! gv_class.ad" >> $(srcdir)/gv_class.ad
|
||
@echo "! Application class defaults for gv" >> $(srcdir)/gv_class.ad
|
||
@echo "! Copyright (C) 1995, 1996, 1997 Johannes Plass" >> $(srcdir)/gv_class.ad
|
||
- @echo "! Copyright (C) 2004,2005,2006,2007 Jos<6F> E. Marchesi" >> $(srcdir)/gv_class.ad
|
||
+ @echo "! Copyright (C) 2004,2005,2006,2007 Jose E. Marchesi" >> $(srcdir)/gv_class.ad
|
||
@echo "!" >> $(srcdir)/gv_class.ad
|
||
@echo "" >> $(srcdir)/gv_class.ad
|
||
@cat $(srcdir)/gv_user_res.dat >> $(srcdir)/gv_class.ad
|
||
@@ -236,7 +236,7 @@ $(srcdir)/gv_make_res.dat :
|
||
@echo "GV.useBackingPixmap: $(USE_BACKING_PIXMAP)" >> $(srcdir)/gv_make_res.dat
|
||
@echo "GV*dirs: Home\n\\" >> $(srcdir)/gv_make_res.dat
|
||
@echo " Tmp\n\\" >> $(srcdir)/gv_make_res.dat
|
||
- @echo " /usr/doc\n\\" >> $(srcdir)/gv_make_res.dat
|
||
+ @echo " /usr/share/doc\n\\" >> $(srcdir)/gv_make_res.dat
|
||
@echo " /usr/local/doc" >> $(srcdir)/gv_make_res.dat
|
||
@echo "GV*filter: no .*" >> $(srcdir)/gv_make_res.dat
|
||
@echo "GV*filters: None\n\\" >> $(srcdir)/gv_make_res.dat
|
||
--- src/gv_misc_res.dat
|
||
+++ src/gv_misc_res.dat 2006-02-28 15:49:27.000000000 +0100
|
||
@@ -50,7 +50,7 @@ GV*Scrollbar.background: gray78
|
||
GV*Scrollbar.pointerColor: black
|
||
GV*Scrollbar.pointerColorBackground: White
|
||
GV*Scrollbar.scrollbarBackground: gray71
|
||
-GV*Scrollbar.foreground: gray78
|
||
+GV*Scrollbar.foreground: gray65
|
||
GV*optionsetupPopup*Text*Scrollbar.background:gray71
|
||
GV*optionfsPopup*Text*Scrollbar.background:gray71
|
||
|
||
--- src/misc.c
|
||
+++ src/misc.c 2006-02-28 15:49:27.000000000 +0100
|
||
@@ -1337,7 +1337,8 @@ set_new_orientation(pagenumber)
|
||
else if ( no == O_LANDSCAPE) w = landscapeEntry;
|
||
else if ( no == O_UPSIDEDOWN) w = upsidedownEntry;
|
||
else w = seascapeEntry;
|
||
- set_newBitmapIfChanged(w,bitmap);
|
||
+ if (w)
|
||
+ set_newBitmapIfChanged(w,bitmap);
|
||
|
||
if (gv_swap_landscape != gv_swap_landscape_old)
|
||
widgets_setSelectedBitmap(swapEntry,gv_swap_landscape);
|
||
@@ -1369,13 +1370,17 @@ set_pagemediaButton_label(media_id)
|
||
Widget w;
|
||
if (pagemediaEntry[media_id]) w = pagemediaEntry[media_id];
|
||
else w = pagemediaEntry[media_id-1];
|
||
+ if (!w)
|
||
+ goto out;
|
||
XtSetArg(args[0], XtNlabel, &s);
|
||
XtGetValues(w, args, ONE);
|
||
}
|
||
else s = "?";
|
||
XtSetArg(args[0], XtNlabel, s);
|
||
XtSetValues(pagemediaButton, args, ONE);
|
||
+out:
|
||
ENDMESSAGE(set_pagemediaButton_label)
|
||
+ return;
|
||
}
|
||
|
||
/*------------------------------------------------------------*/
|
||
@@ -1443,7 +1448,8 @@ set_new_pagemedia(pagenumber)
|
||
else bitmap = app_res.selected_bitmap;
|
||
if (pagemediaEntry[gv_pagemedia]) w = pagemediaEntry[gv_pagemedia];
|
||
else w = pagemediaEntry[gv_pagemedia-1];
|
||
- set_newBitmapIfChanged(w,bitmap);
|
||
+ if (w)
|
||
+ set_newBitmapIfChanged(w,bitmap);
|
||
}
|
||
|
||
if (gv_pagemedia_auto != gv_pagemedia_auto_old) widgets_setSelectedBitmap(autoMediaEntry,gv_pagemedia_auto);
|
||
--- src/ps.c
|
||
+++ src/ps.c 2008-03-27 18:28:32.973306228 +0100
|
||
@@ -75,6 +75,8 @@
|
||
#define BUFSIZ 1024
|
||
#endif
|
||
#include <ctype.h>
|
||
+#include <sys/types.h>
|
||
+#include <sys/stat.h>
|
||
|
||
#include "paths.h"
|
||
#include INC_X11(Intrinsic.h)
|