diff -ur xmore-1.0.1.orig/xmore.c xmore-1.0.1/xmore.c --- xmore-1.0.1.orig/xmore.c 2005-07-06 01:51:11.000000000 +0300 +++ xmore-1.0.1/xmore.c 2008-01-21 17:16:06.000000000 +0200 @@ -150,7 +150,9 @@ static void printshellDestroyXtProc(Widget w, XtPointer client_data, XtPointer callData) { +#ifdef USE_XPRINT XawPrintDialogClosePrinterConnection(printdialog, False); +#endif } #ifdef USE_XPRINT @@ -302,7 +304,12 @@ #endif n = 0; - XtSetArg(args[n], XtNfromHoriz, printbutton); n++; +#ifdef USE_XPRINT + XtSetArg(args[n], XtNfromHoriz, printbutton); +#else + XtSetArg(args[n], XtNfromHoriz, NULL); +#endif + n++; XtSetArg(args[n], XtNfromVert, text); n++; XtSetArg(args[n], XtNlabel, "Quit"); n++; quitbutton = XtCreateManagedWidget("quit", commandWidgetClass, form, args, n);