diff lwlib/lwlib-Xm.c @ 805:e5083672c894

[xemacs-hg @ 2002-04-05 10:37:30 by stephent] fix XmProcessTraversal crash <873cyatoxf.fsf_-_@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Fri, 05 Apr 2002 10:37:31 +0000
parents 4b7d425dd3c2
children 4a27df428c73
line wrap: on
line diff
--- a/lwlib/lwlib-Xm.c	Fri Apr 05 08:57:45 2002 +0000
+++ b/lwlib/lwlib-Xm.c	Fri Apr 05 10:37:31 2002 +0000
@@ -1298,6 +1298,7 @@
 	 list activate the default button */
       XtAddCallback (value, XmNdefaultActionCallback, activate_button, button);
     }
+  /* else add nothing; it's a separator */
 
   ac = 0;
   XtSetArg(al[ac], XmNalignment, XmALIGNMENT_BEGINNING);	ac++;
@@ -1335,11 +1336,12 @@
       XtInstallAccelerators (value, button);
       XmProcessTraversal(value, XmTRAVERSE_CURRENT);
     }
-  else
+  else if (radio_box)
     {
       XtInstallAccelerators (form, button);
       XmProcessTraversal(value, XmTRAVERSE_CURRENT);
     }
+  /* else we don' need no STEENKIN' assellerators. */
 
 #ifdef DND_KLUDGE
   XtFree ((char *) dnd_override);