summaryrefslogtreecommitdiffstats
path: root/generic/tkEntry.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.6jan.nijtmans2019-01-101-19/+19
|\
| *-. Merge 8.6 and all changes from original [bug-9e31fd9449] branchjan.nijtmans2019-01-081-5/+5
| |\ \
| | | * Fix [9e31fd944934e269121fa78ff56b7b86f33e6db6|9e31fd9449]: X11/X.h and ↵jan.nijtmans2019-01-081-16/+16
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | Windows.h have conflicting symbols. *** POTENTIAL INCOMPATIBILITY *** on Windows only: gcc/clang/MSVC will generate new warnings in extensions when the "None" symbol is used incorrectly. Those warnings are all fixed in the core, that's what most of this commit is doing.
| | | | * Bring back more original "None" usages, and fix other warnings which ↵jan.nijtmans2019-01-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | gradually slipped in. Wherever possible, pragma's are used in MSVC to silence useless compiler warnings.
| * | | | As requested by Christian Werner/François Vogel and others: Undo many None ↵jan.nijtmans2018-12-311-17/+17
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | -> 0 changes, in order to reduce the probability of merge conflicts with other branches. Remark: Many usages of "None" in Tk are wrong, "NULL" should be used in many places where pointers are referenced in stead of XID's. Those places are corrected.
| | * | | As requested by Christian Werner/François Vogel and others: Undo many None ↵jan.nijtmans2018-12-311-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | -> 0 changes, in order to reduce the probability of merge conflicts with other branches. Remark: Many usages of "None" in Tk are wrong, "NULL" should be used in many places where pointers are referenced in stead of XID's. Those places are corrected.
| * | | | Fix [9e31fd9449]: X11/X.h and Windows.h have conflicting symbols jan.nijtmans2018-12-201-18/+18
| |\ \ \ \ | | |/ / / | | | / / | | |/ / | |/| | *** POTENTIAL INCOMPATIBILITY *** for Win32 only: On X11 and Mac, "None" can still be used as before
| | * | Fix [9e31fd944934e269121fa78ff56b7b86f33e6db6|9e31fd9449]: X11/X.h and ↵jan.nijtmans2018-12-201-18/+18
| | |/ | | | | | | | | | | | | Windows.h have conflicting symbols. Also fix a few newer (harmless) gcc warnings.
| | * (cherry-pick) Fix [2049429]: Some options aren't picked up from the options ↵jan.nijtmans2016-01-121-13/+12
| | | | | | | | | | | | database.
* | | Eliminate CONST86: Since Tk 8.7 only compiles with Tcl >= 8.6 anyway, we ↵jan.nijtmans2018-10-191-2/+2
| | | | | | | | | | | | | | | just can use "const" everywhere. typo's: occured -> occurred
* | | Change char *recordPtr to void *recordPtr in Tk_SetOptions() and friends. ↵jan.nijtmans2018-10-161-7/+7
| | | | | | | | | | | | This is 100% upwards compatible, and equivalent to TIP #494 done in Tcl. With this, a ton of (char *) type casts can be eliminated
* | | More code cleanup, related to (unused) wchar_t, TCL_THREADS macro, and ↵jan.nijtmans2018-10-051-3/+1
| | | | | | | | | | | | better use of size_t
* | | Header include reform: Since "tkInt.h" already contains header files like ↵jan.nijtmans2018-09-061-1/+1
| | | | | | | | | | | | | | | <stdlib.h>, <string.h> and <ctype.h>, we don't have to include those in every separate C-file. Just depend on tkInt.h to provide it. This mainly affects ttk, since most other files already adhered to this.
* | | More preparation for TIP #494 compatibitly. Add 2 utility functions, which ↵jan.nijtmans2018-08-111-3/+4
| | | | | | | | | | | | can retreive big strings and ByteArrays without length overflow.
* | | merge trunk (because tip-496 does not target 8.6 but 8.7, whereas branch ↵fvogel2018-04-151-7/+9
|\ \ \ | | | | | | | | | | | | tip-496 was created off core-8-6-branch)
| * \ \ Fix [5d991b822e]: segmentation violation in TclObjLookupVarEx. Patch from ↵fvogel2018-02-041-2/+15
| |\ \ \ | | |/ / | | | | | | | | Christian Werner.
| * | | Fix [de156e9efe]: Safe Base interpreters must not write to the PRIMARY ↵fvogel2018-01-251-6/+12
| |\ \ \ | | | | | | | | | | | | | | | selection. Bugfix, doc upddate and new tests by Keith Nash.
| * \ \ \ Fix [6c0d7aec67]: unicode text input Windows 8jan.nijtmans2016-09-291-8/+8
| |\ \ \ \
* | | | | | Latest changes from René Zaumseil. Now tk::spinbox supports -placeholder* ↵fvogel2018-03-051-6/+54
| | | | | | | | | | | | | | | | | | | | | | | | options, and justification of the placeholder text in all widgets is supposed to honor -justify (this latter point does not work in fact).
* | | | | | Avoid confusion: totalLength and height are not used here, and are anyway ↵fvogel2018-02-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | overwritten a few lines below.
* | | | | | tk::entry: Moved defines where they belong to, reordered options to follow ↵fvogel2018-02-111-11/+12
| | | | | | | | | | | | | | | | | | | | | | | | alphabetical order, and miscellaneous cosmetic changes.
* | | | | | merge core-8-6-branchfvogel2018-02-081-2/+15
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | |
| * | | | | Fix [5d991b822e]: segmentation violation in TclObjLookupVarEx. Patch from ↵fvogel2018-01-281-2/+15
| | |_|/ / | |/| | | | | | | | | | | | | Christian Werner.
* | | | | -placeholdertext becomes -placeholder. Changes provided by René Zaumseilfvogel2018-02-061-3/+3
| | | | |
* | | | | Change -empty* option names to -placeholder*. Changes provided by René Zaumseilfvogel2018-02-061-22/+23
| | | | |
* | | | | Implementation of TIP #496 - Display hints in ::ttk::entry (by René Zaumseil)fvogel2018-01-311-1/+37
|/ / / /
* | | | Test whether in a safe interpreter before writing to the PRIMARY selection. ↵kjnash2017-06-131-6/+12
| |/ / |/| | | | | | | | Fixes bug [de156e9efe]. Ready for testing.
* | | Merge core-8-6-branch. More surrogate handling, e.g. in HandleIMEComposition()jan.nijtmans2016-09-271-4/+4
|\ \ \
* \ \ \ Enhanced proposed fix [6c0d7aec67]: unicode text input Windows 8. More ↵jan.nijtmans2016-09-191-4/+4
|\ \ \ \ | |/ / / |/| | | | | | | places where Unicode surrogate handling could be improved.
| * | | More simplificationsjan.nijtmans2016-09-191-4/+4
| | | |
| * | | Rename TkUtfToUniChar32 to TkUtfToUniChar2, and various simplifications ↵jan.nijtmans2016-09-161-15/+1
| | | | | | | | | | | | | | | | needing less #ifdef's
| * | | Patch from Christian Werner, for evaluationjan.nijtmans2016-09-161-1/+15
| |/ /
| * | Fix use of XMaxTransChars in stead of TCL_UTF_MAX in some places. This ↵jan.nijtmans2016-08-311-2/+3
| |\ \ | |/ / |/| | | | | | | | should prevent possible buffer overflow when TCL_UTF_MAX=6 Micro-optimizations in tkEntry and ttkEntry
| * | Fixed bug [841280] - spinbox -from and -to defaults and behaviourfvogel2016-02-251-7/+9
| | |
* | | Fix use of XMaxTransChars in stead of TCL_UTF_MAX in some places. This ↵jan.nijtmans2016-08-311-1/+2
|/ / | | | | | | | | should prevent possible buffer overflow when TCL_UTF_MAX=6 Micro-optimizations in tkEntry and ttkEntry
* | Rebase to 8.6, getting rid of DEF_TEXT_SPACING[123]jan.nijtmans2016-01-101-13/+12
|\ \
| * | Removed unused flags argument in Configure function since Tk_ConfigureWidget ↵fvogel2016-01-081-7/+6
| | | | | | | | | | | | is no longer used there since last century
| * | Use TK_OPTION_NULL_OK instead of TK_CONFIG_NULL_OKfvogel2016-01-081-6/+6
| |/
* | Fixed bug [793909] - Problem with nonexistent namespacesfvogel2015-12-191-6/+32
|\ \ | |/
| * Fixed bug [793909] - Problem with nonexistent namespacesfvogel2015-12-121-6/+32
| |
* | Fixed bug [1700065] - error in trace proc on textvariable doesn't trigger ↵fvogel2015-12-191-30/+69
|\ \ | |/ | | | | bgerror
| * Updated header comments of EntryValueChanged, InsertChars and DeleteChars ↵fvogel2015-12-121-3/+6
| | | | | | | | since they now return a Tcl result
| * Fixed bug [1700065] - error in trace proc on textvariable doesn't trigger ↵fvogel2015-12-101-26/+62
| | | | | | | | bgerror
* | Fixed bug [1414025] - Thin insertion cursor not visible in entryfvogel2015-10-221-1/+1
|\ \ | |/
| * Fixed bug [1414025] - Thin insertion cursor not visible in entryfvogel2015-10-201-1/+1
| |
* | [2b6778efe8] handle sscanf() EOF errors.dgp2015-02-061-2/+2
|\ \ | |/
| * [2b6778efe8] handle sscanf() EOF errors.dgp2015-02-061-2/+2
| |
* | Fix [2100430]: ttk::entry widget index must be integerjan.nijtmans2013-06-051-2/+2
|\ \ | |/
| * Fix [2100430]: ttk::entry widget index must be integerjan.nijtmans2013-06-051-9/+2
| |
* | Eliminate all usage of functions Tcl_VarEval (deprecated) and Tcl_Eval (to ↵jan.nijtmans2013-03-071-2/+9
| | | | | | | | the prefered Tcl_EvalEx).