Community
Participate
Working Groups
I have a program with a Canvas that has scrollbars. I have added a SelectionListener to it. No matter how I select the scrollbar, e.detail is zero. The javadoc says this, but it's not happening: "When widgetSelected is called, the event object detail field contains one of the following values: SWT.NONE - for the end of a drag. SWT.DRAG. SWT.HOME. SWT.END. SWT.ARROW_DOWN. SWT.ARROW_UP. SWT.PAGE_DOWN. SWT.PAGE_UP."
This is fixed for 3.2M1. The fix requires GTK+ 2.6.0 or newer. Previously, GTK+ did not provide this information. *** This bug has been marked as a duplicate of 51995 ***
Ok, this isn't quite fixed. During a drag it's supposed to give SWT.DRAG (1), but at the end of a drag it's supposed to give SWT.NONE (0). In that case, it still gives SWT.DRAG.
I don't think I have a good way of infering this from the events sent by GTK+. I opened this bug upstream: http://bugzilla.gnome.org/show_bug.cgi?id=312501
BG and SN to investigate.
Fixed > 20061219 This is fixed in HEAD and the 322 stream but did not make it into the pre-Christmas 322 build.
Verified on Linux + Motif in M20070112-1200