diff options
author | Roland Mainz <roland.mainz@nrubsig.org> | 2004-10-12 22:46:40 +0000 |
---|---|---|
committer | Roland Mainz <roland.mainz@nrubsig.org> | 2004-10-12 22:46:40 +0000 |
commit | 4d6b4556b8517ac36d6f87837dfb936872581b12 (patch) | |
tree | 7c830408701242b9db2f1d66c290cd9642d809fe | |
parent | 98e553431586c07fe0534c01c0a6e1b15ddc8958 (diff) |
Fix for https://freedesktop.org/bugzilla/show_bug.cgi?id=1601 - 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). (Original patch by Felix Schulte
<felix.schulte@gmail.com>)
-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); |