diff options
author | Kristian Høgsberg <krh@redhat.com> | 2004-08-16 16:36:15 +0000 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2004-08-16 16:36:15 +0000 |
commit | a667763d5b733f5ae2d8a3ca7e1e99d3deed2830 (patch) | |
tree | f97f6f91b64cbb3e7e48b092c9e768d6ea13c26d | |
parent | f5e06cb6bc7ddb2b81a819f4ef1ba41f7c66ba20 (diff) |
As discussed and agreed on on the release-wranglers meeting of August 16,XORG-6_7_99_903XORG-6_7_99_902XORG-6_7_99_901
I'm committing the patch from bug #1060 to back out unconditional
Xprint functionality.
Back out Xprint changes.
Revert xman to CVS of June 5, revert xlogo to CVS of May 8, revert xedit to
CVS of April 25, to back out unconditional Xprint support.
Fix up Xprint config logic to be like the rest of the extensions:
BuildXprint is a one-stop option for disabling everything Xprint
related. XprtServer controls building Xprt, BuildXprintLib controls
building Xprint libs and BuildXprintClients controls building clients
related to Xprint. BuiltXprint defaults to YES and the other options
respects relevant settings, i.e. BuildServer and BuildServersOnly.
Build Xaw regardless of BuildXprintLib setting.
Only build xphelloworld, xplsprinters and xprehashprinterlist when
BuildXprintClients it YES. Disable building xmore, it has always
supported XawPrintShell.
Make Xprint support depend on BuildXprintLib.
-rw-r--r-- | xdpyinfo.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -73,7 +73,9 @@ in this Software without prior written authorization from The Open Group. #ifdef DMX #include <X11/extensions/dmxext.h> #endif +#ifdef XPRINT #include <X11/extensions/Print.h> +#endif #include <X11/Xos.h> #include <stdio.h> #include <stdlib.h> @@ -386,6 +388,7 @@ print_screen_info(Display *dpy, int scr) printf ("\n"); printf ("screen #%d:\n", scr); +#ifdef XPRINT /* Check whether this is a screen of a print DDX */ if (hasExtension(dpy, XP_PRINTNAME)) { Screen **pscreens; @@ -401,6 +404,7 @@ print_screen_info(Display *dpy, int scr) XFree(pscreens); } printf (" print screen: %s\n", isPrintScreen?"yes":"no"); +#endif if (isPrintScreen) { /* Print resolution is set on a per-printer basis (per-document @@ -1196,6 +1200,7 @@ static int print_dmx_info(Display *dpy, char *extname) #endif /* DMX */ +#ifdef XPRINT static void print_xprint_attrpool(const char *name, const char *attrpool) { @@ -1220,6 +1225,7 @@ void print_xprint_attrpool(const char *name, const char *attrpool) static int print_xprint_info(Display *dpy, char *extname) { + short majorrev, minorrev; int xp_event_base, @@ -1286,9 +1292,10 @@ print_xprint_info(Display *dpy, char *extname) } XpFreePrinterList(printerlist); - + return 1; } +#endif /* utilities to manage the list of recognized extensions */ @@ -1340,7 +1347,9 @@ ExtensionPrintInfo known_extensions[] = #ifdef DMX {"DMX", print_dmx_info, False}, #endif +#ifdef XPRINT {XP_PRINTNAME, print_xprint_info, False}, +#endif /* add new extensions here */ }; |