diff options
author | Roland Mainz <roland.mainz@nrubsig.org> | 2004-07-29 00:40:35 +0000 |
---|---|---|
committer | Roland Mainz <roland.mainz@nrubsig.org> | 2004-07-29 00:40:35 +0000 |
commit | d980ac394b3f828ce3c03d5894218d712d7b2846 (patch) | |
tree | 06f88d816162a8075d93790de0a280cfc20e40cb /printdialog.c | |
parent | d88d25361d5c03e126f040d08c4e005494ca9bfe (diff) |
Fix for https://freedesktop.org/bugzilla/show_bug.cgi?id=938 - UpdateXORG-6_7_99_2XORG-6_7_99_1
XawPrintShell per feedback and review comments.
Diffstat (limited to 'printdialog.c')
-rw-r--r-- | printdialog.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/printdialog.c b/printdialog.c index 615734f..97cf4c9 100644 --- a/printdialog.c +++ b/printdialog.c @@ -40,6 +40,10 @@ in this Software without prior written authorization from The Open Group. #include <X11/Xaw/AsciiText.h> #include <X11/Xaw/Dialog.h> +#ifdef XKB +#include <X11/extensions/XKBbells.h> +#endif /* XKB */ + #include "printdialog.h" #include "printdialogprivates.h" #include "print.h" @@ -95,6 +99,11 @@ static void do_beep(PrintDialogWidget pdw) { Log(("*** Beep!\n")); +#ifdef XKB + XkbStdBell(XtDisplay((Widget)pdw), XtWindow((Widget)pdw), 0, XkbBI_MinorError); +#else + XBell(XtDisplay((Widget)pdw), 0); +#endif /* XKB */ } /* Center popup (on parent, not on screen - which would be a bad idea @@ -972,6 +981,12 @@ createprintdialogchildren(Widget w) has_default_printer = True; } } + else + { + XtAppWarning(XtWidgetToApplicationContext(w), + "No Xprint servers could be found. " + "Check whether the XPSERVERLIST environment variable contains any valid Xprint server(s)."); + } n = 0; XtSetArg(args[n], XtNborderWidth, 0); n++; |