diff options
author | Roland Mainz <roland.mainz@nrubsig.org> | 2004-10-12 22:46:41 +0000 |
---|---|---|
committer | Roland Mainz <roland.mainz@nrubsig.org> | 2004-10-12 22:46:41 +0000 |
commit | 49d4bbd48a2c372e9bee2a17297d00d5f3b1fe94 (patch) | |
tree | 7d84b04579de60316b9333791e63e844110eef12 | |
parent | c2349238b36bacb77e0592b20f0d5f1c88228ab8 (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-- | xpawhelloworld/xpawhelloworld.c | 4 |
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, |