diff options
author | Roland Mainz <roland.mainz@nrubsig.org> | 2004-12-13 07:15:56 +0000 |
---|---|---|
committer | Roland Mainz <roland.mainz@nrubsig.org> | 2004-12-13 07:15:56 +0000 |
commit | 636ba3cac33cfac0e3fd3ced1fb481bf5336e490 (patch) | |
tree | 682d3f07c5a08975658e695d17fcc0008cddd589 /print.c | |
parent | 71eb560c323df9e78e1381eff41002f1df9cb44b (diff) |
xc/programs/xman/print.cXORG-6_8_1_903XORG-6_8_1_902XORG-6_8_1_901
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).
Diffstat (limited to 'print.c')
-rw-r--r-- | print.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |