Hi all,
I have noticed that double clicking on a file/directory in the file
selector doesn't navigate to the file/directory, in 1.0. This has also been
reported on the XFMail listserv. The attached patch seems to fix the
problem, is this acceptable for integration into the main xforms source?
Thanks,
Mike
-- Mike Heffner <mheffner@[acm.]vt.edu> <mikeh@FreeBSD.org>
--- fselect.c.orig Thu Dec 19 01:18:08 2002 +++ fselect.c Thu Dec 19 01:18:13 2002 @@ -319,7 +319,7 @@ { int dir; char seltext[FL_PATH_MAX]; - static int lastline = -1, clicked; + static int lastline = -1, clicked = 0; int dblclick, thisline; FD_fselect *lfs = ob->form->fdui; const XEvent *xev = fl_last_event(); @@ -340,7 +340,7 @@ lastline = thisline; - clicked = (clicked || xev->type == ButtonPress); + clicked = (clicked || xev->type == ButtonPress || xev->type == MotionNotify ); /* cursor keys can cause a single line being repeatedly selected causing a wrong dblclick detection */
End of MIME message _________________________________________________ To unsubscribe, send the message "unsubscribe" to xforms-request@bob.usuhs.mil or see http://bob.usuhs.mil/mailserv/xforms.html XForms Home Page: http://world.std.com/~xforms List Archive: http://bob.usuhs.mil/mailserv/list-archives/
This archive was generated by hypermail 2b29 : Thu Dec 19 2002 - 01:32:38 EST