summaryrefslogtreecommitdiff
path: root/print.c
diff options
context:
space:
mode:
authorRoland Mainz <roland.mainz@nrubsig.org>2004-10-12 22:46:40 +0000
committerRoland Mainz <roland.mainz@nrubsig.org>2004-10-12 22:46:40 +0000
commit11d508e4bfec3ecd749123e043768ea3fb21ce12 (patch)
tree682d3f07c5a08975658e695d17fcc0008cddd589 /print.c
parent71eb560c323df9e78e1381eff41002f1df9cb44b (diff)
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). (Original patch by Felix Schulte <felix.schulte@gmail.com>)
Diffstat (limited to 'print.c')
-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);