[racket] list-box%: cannot click on first item

From: Laurent (laurent.orseau at gmail.com)
Date: Fri Sep 13 04:43:31 EDT 2013

On Fri, Sep 13, 2013 at 2:53 AM, Matthew Flatt <mflatt at cs.utah.edu> wrote:

> When I run the program, the first item is selected initially on
> Unix/Gtk. Clicking the item doesn't change the selection, and so the
> callback isn't triggered.
> If I add
>  (send lb select 0 #f)

Oh, good, I had tried different things like (set-selection #f) but this did
not work (as the docs say). Thanks!

> before showing the frame, then the first item is not selected when the
> frame appears, and clicking the first item triggers the callback.
> I see that no item is initially selected on Mac OS X and Windows, so it
> makes sense to change Unix/Gtk to be more consistent. In fact, the
> current Gtk binding for `list-box%` goes out of its way to make
> something selected, so I can easily disable it. I've pushed the change.
> Does that sound right?

Yes, sounds right. It's probably best to keep the most consistent behavior
across platforms.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130913/97124b24/attachment.html>

Posted on the users mailing list.