On Fri, Sep 13, 2013 at 2:53 AM, Matthew Flatt <mfl...@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. Thanks, Laurent
____________________ Racket Users list: http://lists.racket-lang.org/users