summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-apps/xmore/files/xmore-1.0.1-ifdef-xprint.patch')
-rw-r--r--x11-apps/xmore/files/xmore-1.0.1-ifdef-xprint.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/x11-apps/xmore/files/xmore-1.0.1-ifdef-xprint.patch b/x11-apps/xmore/files/xmore-1.0.1-ifdef-xprint.patch
new file mode 100644
index 000000000000..af48f7f3005c
--- /dev/null
+++ b/x11-apps/xmore/files/xmore-1.0.1-ifdef-xprint.patch
@@ -0,0 +1,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);