Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix TkUtfAtIndex(), still was not 100% correct. | jan.nijtmans | 2020-05-20 | 1 | -1/+2 |
| | | | Simplify TKNSString::DString, since Tcl_UniCharToUtf() is already capable of surrogate handling with a proper Tcl version. | ||||
* | > ... >= | jan.nijtmans | 2020-05-19 | 1 | -1/+1 |
| | |||||
* | Little variation on bug-a179564826, in which Character indexing is kept, but ↵ | jan.nijtmans | 2020-05-19 | 1 | -66/+5 |
| | | | | with surrogate protection | ||||
* | Merge 8.6 | jan.nijtmans | 2020-05-19 | 1 | -0/+7 |
|\ | |||||
| * | New (internal) function TkUtfPrev(). This function can handle 4-byte ↵ | jan.nijtmans | 2020-05-19 | 1 | -0/+37 |
| | | | | | | | | (illegal) byte-sequences, arising when pasting Emoji on a Text widget on MacOS (for example) | ||||
* | | Add TkUtfCharComplete(), and use it in TkNumUtfChars() | jan.nijtmans | 2020-05-19 | 1 | -3/+16 |
|\ \ | |/ | |||||
* | | Add surrogate-aware TkUtfAtIndex and TkNumUtfChars. This is enough to allow ↵ | culler | 2020-05-19 | 1 | -0/+78 |
| | | | | | | | | editing emoji text (without variant selectors) in Entry widgets on macOS. | ||||
* | | More improvements handling characters > U+FFFF as surrogates. Add internal ↵ | jan.nijtmans | 2020-05-14 | 1 | -0/+29 |
|/ | | | | TkUtfPrev(), which handles jumping back over surrogate pairs. | ||||
* | Better implementation of TkUtfToUniChar(), one that doesn't require ↵ | jan.nijtmans | 2020-04-06 | 1 | -26/+21 |
|\ | | | | | | | cooperation of Tcl (TCL_UTF_MAX>3). Just let Tk do the splitting of 4-byte UTF-8 sequences into surrogates. | ||||
| * | Work around a few new gcc(-9) warnings. | jan.nijtmans | 2020-02-24 | 1 | -0/+1 |
| | | |||||
| * | (cherry-pick): Don't panic for "Wild GenericEvent"'s: Just filter out all ↵ | jan.nijtmans | 2020-02-05 | 1 | -5/+3 |
| | | | | | | | | | | | | events Tk doesn't know about. (cherry-pick): Protect better against possible confusion between XGenericEvent's and (Tcl-specific) XVirtualEvent's: If "name" == NULL, assume it's a XGenericEvent, so don't crash on that just ignore. Also don't use "virtual" as variable name. | ||||
| * | In tkUnixFont, make sure that the utf-to-ucs2 encoder clamps at 0xFFFF. Use ↵ | jan.nijtmans | 2019-12-01 | 1 | -1/+1 |
| | | | | | | | | more uppercase hex-values where appropriate. | ||||
| * | Fix [d4f5620f5d]: font-4.14 fails (font actual with unicode). Add another ↵ | jan.nijtmans | 2019-11-29 | 1 | -1/+1 |
| | | | | | | | | test-case for TCL_UTF_MAX>3 | ||||
| * | Various cleanups in Unicode handling. Note that without Xft on X11 we don't ↵ | jan.nijtmans | 2019-11-26 | 1 | -21/+17 |
| |\ | | | | | | | | | | have Emoji. | ||||
| | * | More code simplification | jan.nijtmans | 2019-11-21 | 1 | -15/+12 |
| | | | |||||
| | * | Oops _WIN32 with single underscore | jan.nijtmans | 2019-11-21 | 1 | -1/+1 |
| | | | |||||
| | * | Now that TkUniCharToUtf() produces maximum of 4 bytes, reduce storage. More ↵ | jan.nijtmans | 2019-11-21 | 1 | -8/+11 |
| |/ | | | | | | | | | code simplifications. Disallow Emoji on X11 without xft, just use replacement character then. | ||||
| * | One step more in fully fixing [a179564826]: Tk 8.6: prevent issues when ↵ | jan.nijtmans | 2019-10-15 | 1 | -6/+8 |
|/ | | | | | encountering non-BMP Unicode characters. Now that Tcl 8.6 doesn't handle 4-byte UTF-8 characters as invalid anymore, we don't need the trick in Tk any more to spit out two surrogates: Tcl already handles that correctly. | ||||
* | Eliminate type-casts, by using size_t type internally in more situations. No ↵ | jan.nijtmans | 2018-08-10 | 1 | -1/+1 |
| | | | | functional changes | ||||
* | Improved surrogate handling for TCL_UTF_MAX=3|4. (backported from ↵ | jan.nijtmans | 2018-04-11 | 1 | -1/+1 |
| | | | | androwish). Slight optimizations. | ||||
* | Introduce two utility functions for handling Unicode surrogate pairs, and ↵ | jan.nijtmans | 2016-09-26 | 1 | -0/+80 |
| | | | | use it in tkWinKey.c. No change in functionality. | ||||
* | Fixed [b362182e45] - Generation of virtual events through Tk_HandleEvent is ↵ | fvogel | 2016-04-21 | 1 | -2/+7 |
| | | | | unsafe | ||||
* | some more int -> size_t changes | jan.nijtmans | 2013-02-01 | 1 | -3/+4 |
| | |||||
* | Convert all Tcl_SetResult calls to Tcl_SetObjResult calls. | jan.nijtmans | 2013-01-28 | 1 | -1/+1 |
| | | | Convert Tcl_GetStringFromObj to Tcl_GetString when possible. | ||||
* | Generate -errorcode values to go with errors. Generate messages and postscript | dkf | 2012-08-27 | 1 | -67/+72 |
|\ | | | | | using Tcl_Obj API, not the string result API. | ||||
| * | Purged Tcl_AppendElement from all non-test code. | dkf | 2012-07-29 | 1 | -26/+31 |
| | | |||||
| * | Much more cleaning up of result handling. | dkf | 2012-07-23 | 1 | -54/+40 |
| | | |||||
| * | Working towards adding all the Tcl_SetErrorCode calls that should be there. | dkf | 2012-07-16 | 1 | -0/+14 |
|/ | | | ** WORK IN PROGRESS ** | ||||
* | Purge RCS Keywords | dgp | 2011-06-08 | 1 | -2/+0 |
|\ | |||||
| * | Purge RCS Keywords. | dgp | 2011-06-08 | 1 | -2/+0 |
| |\ | |||||
| | * | Purge RCS Keywords. | dgp | 2011-06-08 | 1 | -2/+0 |
| | | | |||||
| | * | * generic/tkInt.h: Backport of shutdown safety mods from the HEAD | davygrvy | 2004-10-27 | 1 | -1/+147 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMenu.c: dating from 2003-12-21 * generic/tkUtil.c: * generic/tkWindow.c: * mac/tkMacButton.c: * unix/tkUnixEvent.c: * win/tkWin32Dll.c: * win/tkWinEmbed.c: * win/tkWinMenu.c: * win/tkWinX.c: | ||||
* | | | CONSTify return values of TkKeysymToString, | nijtmans | 2009-12-16 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | | TkFindStateString, TkpGetString, TkpGetChar, which are all not supposed to be modified by the caller. In tkUtil.c this gets rid of a dangerous type cast. | ||||
* | | | [Tcl Bug 2857044]: Corrections following audit of Tcl_ObjType freeing | dkf | 2009-11-21 | 1 | -34/+42 |
| | | | | | | | | | | | | | | | | | | | | | practises; the typePtr field is now cleared when an object ceases to be of the type. Also remove some anachronistic techniques (pointless casts, mixed assignments and tests, etc.) | ||||
* | | | Eliminate various gcc warnings | nijtmans | 2009-08-09 | 1 | -10/+10 |
| | | | | | | | | | | | | include <vssym32.h> only when available | ||||
* | | | * generic/tkUtil.c (TkBackgroundEvalObjv): use Tcl_BackgroundException. | das | 2009-04-10 | 1 | -2/+2 |
| | | | |||||
* | | | * generic/tkImgPhInstance.c: fix numerous leaks discovered with the | das | 2009-02-06 | 1 | -3/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMenu.c: Mac OS X Instruments.app Leaks tool. * generic/tkText.c: * generic/tkTextImage.c: * generic/tkTextIndex.c: * generic/tkUndo.c: * generic/tkUtil.c: * generic/ttk/ttkFrame.c: * macosx/tkMacOSXWm.c: | ||||
* | | | TIP #324 IMPLEMENTATION | das | 2008-12-10 | 1 | -1/+114 |
| | | | |||||
* | | | TkMakeEnsemble(): support for NULL subensemble | das | 2008-12-10 | 1 | -2/+2 |
| | | | |||||
* | | | * generic/tkInt.h: Turn [tk] into an ensemble (thoyts, steffen) | das | 2008-12-10 | 1 | -1/+84 |
| | | | | | | | | | | | | | | | | | | * generic/tkBusy.c: * generic/tkCmds.c: * generic/tkWindow.c: | ||||
* | | | Lots of small changes to make code more pretty and C89-like. | dkf | 2008-11-08 | 1 | -2/+2 |
| | | | |||||
* | | | [Bug 2190619] Warnings due to Tk_SmoothMethod | nijtmans | 2008-10-30 | 1 | -5/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | name constness change. Although dkf's solution (simply adding a type cast) is correct as well, changing the return value (as das suggested) has the advantage that all Tk_OptionPrintProc implementations don't need a type cast any more in its code. This makes all those functions robust against the -Wwrite-strings warning option. Further on, the customPtr field of Tk_ConfigSpec can be a constant, without any danger of source incompatibility. | ||||
* | | | Add "const" to many internal | nijtmans | 2008-10-15 | 1 | -2/+2 |
|/ / | | | | | | | | | | | | | | | const tables, so those will be put by the C-compiler in the TEXT segment in stead of the DATA segment. This makes those table sharable in shared libraries. | ||||
* | | merge stable branch onto HEAD | dgp | 2007-12-13 | 1 | -1/+1 |
| | | |||||
* | | * generic/tkArgv.c: Fix gcc warnings about 'cast to/from | das | 2007-10-15 | 1 | -8/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkCanvUtil.c: pointer from/to integer of different * generic/tkCanvas.c: size' on 64-bit platforms by casting * generic/tkCursor.c: to intermediate types * generic/tkInt.h: intptr_t/uintptr_t via new PTR2INT(), * generic/tkListbox.c: INT2PTR(), PTR2UINT() and UINT2PTR() * generic/tkObj.c: macros. * generic/tkStyle.c: * generic/tkTextIndex.c: * generic/tkUtil.c: * generic/ttk/ttkTheme.h: * generic/ttk/ttkTreeview.c: * unix/tkUnixMenu.c: * unix/configure.in: * unix/configure: autoconf-2.59 * unix/tkConfig.h.in: autoheader-2.59 | ||||
* | | Assorted minor cleanups. | dkf | 2007-09-08 | 1 | -68/+96 |
| | | |||||
* | | header cleanup | dgp | 2007-09-07 | 1 | -2/+1 |
| | | |||||
* | | Fixed grid anchor center problem in labelframes. [Bug 1545765] | pspjuth | 2007-02-25 | 1 | -3/+7 |
| | | |||||
* | | fix warning | das | 2007-01-19 | 1 | -2/+2 |
| | | |||||
* | | various "const" additions, in line with TIP #27 | nijtmans | 2007-01-18 | 1 | -17/+17 |
| | |