Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Tim Rightnour <garbled@netbsd.org>
List: source-changes
Date: 01/09/2001 20:41:55
Module Name:	basesrc
Committed By:	garbled
Date:		Tue Jan  9 18:41:55 UTC 2001

Modified Files:
	basesrc/dist/cdk: buttonbox.c calendar.c dialog.c itemlist.c matrix.c
	    mentry.c menu.c radio.c scale.c scroll.c selection.c slider.c
	    swindow.c template.c

Log Message:
Fix a problem in these widgets where they uncondititonally set the
exitType to either vEARLY_EXIT, or vESCAPE_HIT when returning from a bound
function.  This had the unfortunate effect that when you hit F2 to refresh
the screen in sushi, it would exit out immediately after refreshing the
screen.

This modification allows the programmer to still create an exit-causing
bound function, by simply setting the exitType in the function, as was likely
intended by the author.  Many thanks to Charles Hannum for helping me figure
this out.

This should fix problems noted by itojun on tech-userlevel with the function
keys.


To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 basesrc/dist/cdk/buttonbox.c \
    basesrc/dist/cdk/calendar.c basesrc/dist/cdk/dialog.c \
    basesrc/dist/cdk/itemlist.c basesrc/dist/cdk/matrix.c \
    basesrc/dist/cdk/mentry.c basesrc/dist/cdk/menu.c \
    basesrc/dist/cdk/radio.c basesrc/dist/cdk/scale.c \
    basesrc/dist/cdk/scroll.c basesrc/dist/cdk/selection.c \
    basesrc/dist/cdk/slider.c basesrc/dist/cdk/swindow.c \
    basesrc/dist/cdk/template.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.