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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
$NetBSD: patch-ac,v 1.1 2000/09/19 11:09:21 fredb Exp $
--- widget.c.orig Sun Jul 14 12:49:09 1996
+++ widget.c Mon Sep 18 17:36:06 2000
@@ -268,7 +268,7 @@
if (pd->btip[i].acc != NULL) {
xs_acc = XmStringCreateSimple(pd->btip[i].acc);
- XtSetArg(arg[n], XmNaccelerator, xs_acc); n++;
+ XtSetArg(arg[n], XmNaccelerators, xs_acc); n++;
}
if (pd->btip[i].mne != NULL) {
@@ -298,7 +298,7 @@
}
if (pd->acc != NULL) {
xs_acc = XmStringCreateSimple(pd->acc);
- XtSetArg(arg[n], XmNaccelerator, xs_acc); n++;
+ XtSetArg(arg[n], XmNaccelerators, xs_acc); n++;
}
if (pd->mne != NULL) {
XtSetArg(arg[n], XmNmnemonic, XStringToKeysym(pd->mne)); n++;
@@ -973,6 +973,10 @@
delw = XmInternAtom(display, "WM_DELETE_WINDOW", False);
}
+static XtSignalId sigid;
+void deliverSIGIO() {
+ XtNoticeSignal(sigid);
+}
/*
* register_callbacks
@@ -985,7 +989,7 @@
* Nothing
*/
void
-register_callbacks(widgets_t *m)
+register_callbacks(widgets_t *m, XtAppContext app)
{
int i;
@@ -1126,6 +1130,15 @@
XmNfocusCallback,
(XtCallbackProc) mx_focuschg, (XtPointer) m->form
);
+
+#ifdef __NetBSD__
+ /*
+ * Mixer SIGIO change callback
+ */
+ sigid = XtAppAddSignal(app,
+ (XtSignalCallbackProc) mx_change, (XtPointer) 0
+ );
+#endif
/*
* Install WM_DELETE_WINDOW handler
|