[comp.windows.x.motif] Default action in XmList with MULTIPLE_SELECT

amc@wlv.imsd.contel.com (Allen M. Cohen) (04/12/91)

I can't get default action (double click) to work with my list widget
under Motif 1.1.0.  I'm using MULTIPLE_SELECT.
If I double click, the MultipleSectionCallback gets invoked, then
the DefaultActionCallback gets invoked!!!
The Selected_item_count = 144712, but last item and item position are
correct.  Also it DESELECTS all my single click items!!! (It should
be in AddMode).  If I use down arrow and then ENTER key, I get the
DefaultActionCallback with selection_item_count = 0, and all other
single click selected items get DESELECTED!!!
All this worked fine under Motif 1.0.
<> Allen M. Cohen                  Internet:  amc@wlv.imsd.contel.com       <>
<> 3041 E. Black Hills Ct.         UUCP:      elroy.Jpl.Nasa.Gov!agi0!allen <>
<> Westlake Village, Ca. 91362     Telephone: (805) 498-9611 ext. 195       <>
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>

nazgul@alfalfa.com (Information Junkie) (04/12/91)

> correct.  Also it DESELECTS all my single click items!!! (It should
> be in AddMode).  If I use down arrow and then ENTER key, I get the

The last time I was in the code I noticed that.  There are a bunch of
places where it checks to see if it it's in multiple_select mode, but
I'm pretty sure it forgets to on the default action code, and thus
deselects everything.

Alfalfa Software, Inc.          |       Poste:  The EMail for Unix
nazgul@alfalfa.com              |       Send Anything... Anywhere
617/646-7703 (voice/fax)        |       info@alfalfa.com

I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.