summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@epoch.ncsc.mil>2004-05-05 14:49:42 +0000
committerEamon Walsh <ewalsh@epoch.ncsc.mil>2004-05-05 14:49:42 +0000
commit0b010c32e1c04ebf26d3517e1926d2ef88efe667 (patch)
treee7215180c394ecfd3d46cd88661124f234c49f5d
parent7cfb736438db2ac867a89fd7ba86a91a850c0135 (diff)
Merge latest changesXACE-SELINUX
-rw-r--r--xset.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/xset.c b/xset.c
index 27c3914..f62ce78 100644
--- a/xset.c
+++ b/xset.c
@@ -88,6 +88,7 @@ in this Software without prior written authorization from The Open Group.
static Status set_font_cache(Display *, long, long, long);
static void query_cache_status(Display *dpy);
#endif
+#include <X11/extensions/Print.h>
#define ON 1
#define OFF 0
@@ -353,6 +354,14 @@ for (i = 1; i < argc; ) {
}
}
#endif
+ else if (strcmp(arg, "rehashprinterlist") == 0) { /* rehash list of printers */
+ short dummy;
+ if (XpQueryVersion(dpy, &dummy, &dummy)) {
+ XpRehashPrinterList(dpy);
+ } else {
+ fprintf(stderr, "server does not have extension for rehashprinterlist option\n");
+ }
+ }
else if (strcmp(arg, "fp") == 0) { /* set font path */
if (i >= argc) {
arg = "default";
@@ -1500,6 +1509,8 @@ usage(char *fmt, ...)
fprintf (stderr, " Show font cache statistics:\n");
fprintf (stderr, "\t fc s\n");
#endif
+ fprintf (stderr, " To control Xprint features:\n");
+ fprintf (stderr, "\t rehashprinterlist Recomputes the list of available printers\n");
fprintf (stderr, " To set the font path:\n" );
fprintf (stderr, "\t fp= path[,path...]\n" );
fprintf (stderr, " To restore the default font path:\n");