summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | Merge 8.6jan.nijtmans2020-02-1718-97/+94
| | |\ \ \ \ \
| | * | | | | | Fix [e3888d5820] (Grab on master prevents mouse pointer warp into slave ↵fvogel2020-01-251-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | widget) for Linux and Windows. Test bind-35.1 now passes on these platforms.
| | * | | | | | Reorder code snippet in HandleEventGenerate to make it easier to understand. ↵fvogel2020-01-061-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes nothing in how things work.
| * | | | | | | Fix [40e4bf6198]: Entry/spinbox: double free when textvariable set in ↵fvogel2020-07-061-3/+7
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | validatecommand script.
| | * | | | | | | More complete fix: deal with the case the textvariable is set more than once ↵fvogel2020-06-181-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in the validatecommand script.
| | * | | | | | | Fix [40e4bf6198]: Entry: double free when textvariable set in ↵fvogel2020-06-141-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | validatecommand script
| * | | | | | | | Fix [16ef161925]: <Escape><Control-c> binding sequence not working anymore.fvogel2020-06-271-12/+56
| |\ \ \ \ \ \ \ \
| | * | | | | | | | Let tests bind-33.20 and bind-33.21 pass.fvogel2020-06-211-2/+5
| | | | | | | | | |
| | * | | | | | | | Make a bit more use of helper functions. No functional change.fvogel2020-05-031-10/+17
| | | | | | | | | |
| | * | | | | | | | Now a mixture of my fix with Gregor's fix. All tests from bind.test do pass ↵fvogel2020-05-031-5/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | again.
| | * | | | | | | | Revert my fix proposal [dfa8bbc5] and commit a fix proposal from Gregor. ↵fvogel2020-05-021-26/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tests bind-33.16, -17 and -18 fail again. Moreover bind-33.9 now fails (regression).
| | * | | | | | | | Fix proposal for [16ef161925]: <Escape><Control-c> binding sequence not ↵fvogel2020-05-021-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | working anymore
| | * | | | | | | | Add commentsfvogel2020-05-021-2/+4
| | | | | | | | | |
| | * | | | | | | | Use of IsSubsetOf function is clearer (no functional change).fvogel2020-04-121-1/+1
| | | | | | | | | |
| * | | | | | | | | Fix [5c51be6411]: Buffer over-read in Tk_PhotoPutBlock() and ↵fvogel2020-06-271-8/+32
| |\ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | Tk_PhotoPutZoomedBlock(). Patch from Christopher Chavez.
| | * | | | | | | | Let the bug id be correctfvogel2020-05-161-2/+2
| | | | | | | | | |
| | * | | | | | | | Fix [5c51be6411]: Buffer over-read in Tk_PhotoPutBlock() and ↵fvogel2020-05-161-8/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tk_PhotoPutZoomedBlock(). Patch from Christopher Chavez.
| * | | | | | | | | Fix [2790615]: "update" performs Tk callbacks in its own stack frame.jan.nijtmans2020-06-088-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by adding TCL_EVAL_GLOBAL in a lot of places.
| * | | | | | | | | Update leftover comments that didn't follow the changes made in [0deef053f6]fvogel2020-06-062-4/+4
| | | | | | | | | |
| * | | | | | | | | photo read command: memory error on shrink option did not close the channeloehhar2020-06-041-0/+1
| | |_|_|_|_|/ / / | |/| | | | | | |
| * | | | | | | | Rename Aqua stub TkpAppCanDraw as TkpWillDrawWidgetculler2020-05-315-9/+9
| | |_|_|_|/ / / | |/| | | | | |
| * | | | | | | Remove some unnecessary macOS conditional code by using internal stubs.culler2020-05-295-23/+88
| | | | | | | |
| * | | | | | | Add (and use) new internal function TkUtfAtIndex(), which does the same as ↵jan.nijtmans2020-05-207-27/+61
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Tcl_UtfAtIndex() only it protects against ending in the middle of a 4-byte UTF-8 sequence. This should fix another part of [a179564826] when handling copy-pasted Emoji in Text/Entry (and other) widgets.
| | * | | | | | | Fix TkUtfAtIndex(), still was not 100% correct.jan.nijtmans2020-05-201-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Simplify TKNSString::DString, since Tcl_UniCharToUtf() is already capable of surrogate handling with a proper Tcl version.
| | * | | | | | | > ... >=jan.nijtmans2020-05-191-1/+1
| | | | | | | | |
| | * | | | | | | Little variation on bug-a179564826, in which Character indexing is kept, but ↵jan.nijtmans2020-05-192-68/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with surrogate protection
| | * | | | | | | Use Glyph indexing in more places (underscoring and canvas text and some more)jan.nijtmans2020-05-195-24/+24
| | | | | | | | |
| | * | | | | | | Merge 8.6jan.nijtmans2020-05-191-0/+7
| | |\ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | | |
| * | | | | | | | New (internal) function TkUtfPrev(). This function can handle 4-byte ↵jan.nijtmans2020-05-193-3/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (illegal) byte-sequences, arising when pasting Emoji on a Text widget on MacOS (for example)
| | * | | | | | | Add TkUtfCharComplete(), and use it in TkNumUtfChars()jan.nijtmans2020-05-192-3/+19
| | |\ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | | |
| * | | | | | | | Eliminate two Tcl_UtfNext() calls, because the UtfToUniChar() variants are ↵jan.nijtmans2020-05-182-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | more likely to do the right thing when surrogates are involved.
| | * | | | | | | Add surrogate-aware TkUtfAtIndex and TkNumUtfChars. This is enough to allow ↵culler2020-05-195-29/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | editing emoji text (without variant selectors) in Entry widgets on macOS.
| | * | | | | | | Merge 8.6jan.nijtmans2020-05-183-3/+11
| | |\ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | | |
| * | | | | | | | Add support for setting InputLanguage encoding to "utf-8". I don't know if ↵jan.nijtmans2020-05-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | it's possible on Windows 10, but if it is, it would go terribly wrong here ...
| * | | | | | | | Don't use trans_chars array on MacOSX any more.jan.nijtmans2020-05-171-1/+1
| |\ \ \ \ \ \ \ \ | | |_|/ / / / / / | |/| | | | | | |
| | * | | | | | | Incorporate the changes which make unix use trans_chars.culler2020-05-161-14/+0
| | |\ \ \ \ \ \ \
| | | * | | | | | | Experiment: What if we would use the trans_chars array on all platforms, X11 ↵jan.nijtmans2020-05-152-23/+9
| | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | too?
| | * | | | | | | Make sure unix includes its platform-specific header in files that use ↵culler2020-05-151-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TkKeyEvent.
| | * | | | | | | Move platform-specific declarations into platform-specific header files.marc_culler2020-05-151-25/+5
| | | | | | | | |
| | * | | | | | | Merge 8.6marc_culler2020-05-151-3/+3
| | |\ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | | |
| | * | | | | | | Switch state and delta in TkWheelEvent so they match the layout in XKeyEvent.marc_culler2020-05-141-1/+1
| | | | | | | | |
| | * | | | | | | Add the macOS support, using the TkWheelEvent but not the TkKeyEvent since ↵culler2020-05-142-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | macOS no longer needs trans_chars.
| | * | | | | | | First concept cleanup for [d2a10a14a8] (already merged to core-8-6-branch ↵jan.nijtmans2020-05-142-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | but with a quickfix). This makes TkKeyEvent usable for all platforms, and adds a generic TkWheelEvent. So far, only adapted for X11 and Windows, still has to be modified for MacOS.
| * | | | | | | | Fix [a953736b546ce681cbfc]: Potential wrong use of TkKeyEvent. Finally done ↵jan.nijtmans2020-05-152-1/+9
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | what's suggested there: Since kePtr->charValuePtr is only used on X11, only do the ckfree(kePtr->charValuePtr) on X11. On Win32, use TkKeyEvent in stead of the non-standard XEvent. On macOS TkKeyEvent is not used, so no change is needed (- MC).
| | * | | | | | More improvements handling characters > U+FFFF as surrogates. Add internal ↵jan.nijtmans2020-05-1410-132/+177
| | |\ \ \ \ \ \ | | |/ / / / / / | |/| / / / / / | | |/ / / / / TkUtfPrev(), which handles jumping back over surrogate pairs.
| * | | | | | Quick-fix for build problem on X11 (unfortunately, this means mis-using the ↵jan.nijtmans2020-05-131-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | xbutton.button field again, don't have other quick solution for that)
| * | | | | | Small adjustments to tkBind.c. Thanks, Francoisculler2020-05-121-10/+6
| |\ \ \ \ \ \
| | * | | | | | Use SET_NUMBER for Bool fields and make sure they print as Booleans; remove ↵culler2020-05-121-10/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a couple of redundant assignments.
| * | | | | | | Fix [d2a10a14a8]: Give mousewheel events their own flag and event struct; ↵culler2020-05-121-113/+118
| |\ \ \ \ \ \ \ | | |/ / / / / / | | | | | | | | | | | | | | | | avoid unnecessary keysym lookups
| | * | | | | | Try to match signed/unsigned to xlib correctly; restore macros but try to ↵marc_culler2020-05-111-55/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | use more descriptive names; further simplify the big switch.