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
commitb3852ed2ceacfdbf93091eaf70e8885fec161ca6 (patch)
tree3410d00e21e97ad91c6470e3a6d07f0d290398df
parent40edb0b5c87d1843ffac6577594f35b531b6124e (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--xpawhelloworld/xpawhelloworld.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xpawhelloworld/xpawhelloworld.c b/xpawhelloworld/xpawhelloworld.c
index 61283de..281c310 100644
--- a/xpawhelloworld/xpawhelloworld.c
+++ b/xpawhelloworld/xpawhelloworld.c
@@ -302,6 +302,10 @@ int do_hello_world( int argc, char *argv[], const char *printername, const char
if( doPrint )
{
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++;
print_shell = XtCreatePopupShell("myprintshell",
xawPrintShellWidgetClass,