summaryrefslogtreecommitdiff
blob: af48f7f3005c15c58f2972d7ef42af1fced08c3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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);