summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Mainz <roland.mainz@nrubsig.org>2004-12-13 07:15:56 +0000
committerRoland Mainz <roland.mainz@nrubsig.org>2004-12-13 07:15:56 +0000
commit50ed3639f02259ccf0f317f8b0dd5b1fa8314037 (patch)
tree5379e29c1bcf6e73ec293f2ac0391548a20f8560
parentc25aad3c192891b3d95cb40d336d874f9d7c0603 (diff)
xc/programs/xmore/print.c //bugs.freedesktop.org/show_bug.cgi?id=1601) attachment #1088 (https://bugs.freedesktop.org/attachment.cgi?id=1088): Fix problems with wrong page counts in xedit&co. when a global "*geometry" resource was overriding the internal geometry management used by XawPrintShell(=usually adjust to current page size, the resource was turning this into a static value).
-rw-r--r--print.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/print.c b/print.c
index 0b47b97..bf1e669 100644
--- a/print.c
+++ b/print.c
@@ -294,6 +294,10 @@ void DoPrintManpage(const char *programname,
apd->jobtitle = jobtitle;
n = 0;
+ /* Override any geometry resource settings as XawPrintShell adjusts it's size
+ * to the current page siue when |XawPrintLAYOUTMODE_DRAWABLEAREA| or
+ * |XawPrintLAYOUTMODE_PAGESIZE| are used. */
+ XtSetArg(args[n], XtNgeometry, "+0+0"); n++;
XtSetArg(args[n], XawNlayoutMode, XawPrintLAYOUTMODE_DRAWABLEAREA); n++;
apd->printshell = CreatePrintShell(toplevel, apd->pscreen, "printshell", args, n);