Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | [Bug 3520202]: %K must not work with <MouseWheel> or effects are undefined! |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | core-8-5-branch |
Files: | files | file ages | folders |
SHA1: |
07b47d79835e570ede5c1263f92dca53 |
User & Date: | dkf 2012-04-22 22:05:44 |
Context
2012-04-26
| ||
11:02 | [Bug 3508771]: Implement TkClipBox, Tk*Region and Tk_GetHINSTANCE for Cygwin [Bug 3519917]: Snow Leopard unix/Makefile `make test` fail check-in: 141b9b85 user: jan.nijtmans tags: core-8-5-branch | |
2012-04-23
| ||
09:18 | merge from main 8.5 branch check-in: 81e7e6f5 user: dkf tags: tk-cocoa-8-5-backport | |
2012-04-22
| ||
22:07 | [Bug 3520202]: %K must not work with <MouseWheel> or effects are undefined! check-in: c82185be user: dkf tags: trunk | |
22:05 | [Bug 3520202]: %K must not work with <MouseWheel> or effects are undefined! check-in: 07b47d79 user: dkf tags: core-8-5-branch | |
22:03 | [Bug 3520202]: %K must not work with <MouseWheel> or effects are undefined! check-in: 09655b04 user: dkf tags: core-8-4-branch | |
2012-04-20
| ||
12:23 | Use vroot size in stead of screen size for clipping window coordinates in ::tk::PlaceWindow. Use ::tk::PlaceWindow in dialog.tcl, in stead of dumplicating the code there. check-in: 9fc800bf user: jan.nijtmans tags: core-8-5-branch | |
Changes
Changes to ChangeLog.
1 2 3 4 5 6 7 | 2012-04-20 Jan Nijtmans <[email protected]> * generic/tk.tcl: Use vroot size in stead of screen size for clipping window coordinates in ::tk::PlaceWindow. * generic/dialog.tcl: Use ::tk::PlaceWindow in dialog.tcl, in stead of dumplicating the code there. (harmless part of [Bug 533519]) | > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 2012-04-22 Donal K. Fellows <[email protected]> * generic/tkBind.c (ExpandPercents): [Bug 3520202]: Ensure that the %k, %K and %N substitutions use dummy tokens with <MouseWheel> events and that the %D subsitution is a dummy with <Key>/<KeyRelease>. This was causing significant indigestion (and a read of goodness knows what memory) to Tkinter/Python because of the way they map events between languages. 2012-04-20 Jan Nijtmans <[email protected]> * generic/tk.tcl: Use vroot size in stead of screen size for clipping window coordinates in ::tk::PlaceWindow. * generic/dialog.tcl: Use ::tk::PlaceWindow in dialog.tcl, in stead of dumplicating the code there. (harmless part of [Bug 533519]) |
︙ | ︙ |
Changes to generic/tkBind.c.
︙ | ︙ | |||
2379 2380 2381 2382 2383 2384 2385 | TkpPrintWindowId(numStorage, eventPtr->xmaprequest.window); } else { TkpPrintWindowId(numStorage, eventPtr->xany.window); } string = numStorage; goto doString; case 'k': | | | 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 | TkpPrintWindowId(numStorage, eventPtr->xmaprequest.window); } else { TkpPrintWindowId(numStorage, eventPtr->xany.window); } string = numStorage; goto doString; case 'k': if ((flags & KEY) && (eventPtr->type != MouseWheelEvent)) { number = eventPtr->xkey.keycode; goto doNumber; } goto doString; case 'm': if (flags & CROSSING) { number = eventPtr->xcrossing.mode; |
︙ | ︙ | |||
2519 2520 2521 2522 2523 2524 2525 | } goto doNumber; case 'D': /* * This is used only by the MouseWheel event. */ | | | | | 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 | } goto doNumber; case 'D': /* * This is used only by the MouseWheel event. */ if ((flags & KEY) && (eventPtr->type == MouseWheelEvent)) { number = eventPtr->xkey.keycode; goto doNumber; } goto doString; case 'E': number = (int) eventPtr->xany.send_event; goto doNumber; case 'K': if ((flags & KEY) && (eventPtr->type != MouseWheelEvent)) { char *name = TkKeysymToString(keySym); if (name != NULL) { string = name; } } goto doString; case 'N': if ((flags & KEY) && (eventPtr->type != MouseWheelEvent)) { number = (int) keySym; goto doNumber; } goto doString; case 'P': if (flags & PROP) { string = Tk_GetAtomName((Tk_Window) winPtr, |
︙ | ︙ |