ALT Linux repos
Group :: Communications
RPM: mgetty
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: mgetty-1.1.24-faxprint.patch
Download
Download
--- mgetty-1.1.24/frontends/X11/viewfax-2.5/viewfax.c.faxprint Tue Sep 7 15:24:22 1999
+++ mgetty-1.1.24/frontends/X11/viewfax-2.5/viewfax.c Tue Sep 7 15:26:28 1999
@@ -758,6 +758,16 @@
0, 0, PaneWidth, PaneHeight);
XDefineCursor(Disp, Win, ReadyCursor);
break;
+ case XK_Print:
+ {char cmd[256], tmpdir[256] = "/tmp/viewfaxXXXXXX";
+ struct pagenode *p = firstpage;
+ if(mkdtemp(tmpdir) != -1) {
+ snprintf(cmd, sizeof(cmd), "tiffsplit %s %s/viewfax.; "
+ "tiff2ps %s/viewfax.* | lpr; "
+ "rm -fr %s", thispage->pathname, tmpdir, tmpdir,
+ tmpdir);
+ system(cmd);}}
+ break;
case XK_z:
if (Event.xkey.state & ShiftMask)
goto Zoomout;