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
commit98e4b4105037bb21349dfbe40190ed1ff6ddb7b2 (patch)
tree531256da0a7404cd602ae1c9ab45525a5b5b2888
parent3981cffbb6f4f4fe4227481c51083063a9ea995e (diff)
xc/programs/xman/print.c
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 f068afe..54f5a29 100644
--- a/print.c
+++ b/print.c
@@ -305,6 +305,10 @@ void DoPrintTextSource(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);