summaryrefslogtreecommitdiffstats
path: root/generic/tkText.c
Commit message (Collapse)AuthorAgeFilesLines
* End of fix for [18c08df753] - Merged branch bug-2886436fff-option2bug_18c08df753fvogel2016-03-271-6/+9
|\
| * Tried to be even clearer.bug_2886436fff_option2fvogel2015-07-141-10/+9
| |
| * Fixed bug [2886436fff] - [.txt delete] deletes before start index - This is ↵fvogel2015-06-291-5/+9
| | | | | | | | option 2: don't change the behavior of the text widget, but document it better.
* | Beginning of fix for [18c08df753] - Reverted [296bd4c3], and adjusted ↵fvogel2016-03-271-3/+9
| | | | | | | | textDisp-4.9 accordingly by adding one fixedHeight on the two necessary places in the test result
* | (cherry-pick) Fix [2049429]: Some options aren't picked up from the options ↵jan.nijtmans2016-01-121-4/+4
| | | | | | | | database.
* | Moved comment to follow the moved code in previous commitfvogel2015-11-121-6/+6
| |
* | Koen Danckaert's patch to speed up line metrics updatefvogel2015-11-121-2/+6
| |
* | Fixed bug [2262711fff] - Regexp search fails with Unicode and elidebug_2262711ffffvogel2015-10-061-1/+5
| |
* | Fixed bug [2886436fff] - [.txt delete] deletes before start index - This is ↵bug_2886436fff_option1fvogel2015-07-141-9/+3
|/ | | | option 1: change the behavior of the text widget to completely avoid any deletion before index1
* Fixed commentfvogel2014-12-201-2/+2
|
* Fixed bug [c24b97d905] - text count -displaylines is wrong with elided newlinesfvogel2014-11-211-22/+31
|
* SetOptions.3: minor doc fixjan.nijtmans2012-06-191-97/+97
|\ | | | | | | make various other tables const (all backported from Tk 8.6)
* \ make some internal tables constjan.nijtmans2012-04-181-3/+3
|\ \ | |/
* | Bug-3487407: Weird text indicesbug_1630262fvogel2012-02-181-0/+4
| |
* | [Bug-1630262]: segfault when deleting lines with peer text widgetsfvogel2012-01-311-2/+41
| |
* | Don't increase the epoch twice.fvogel2012-01-251-1/+0
| |
* | [Bug-1630271]: segfault/infinite loop when a mark is before -startlinejan.nijtmans2012-01-251-3/+29
|\ \
| * | patch-3477449: segfault when mark out of -startline/-endline rangebug_1630271jan.nijtmans2012-01-231-3/+29
| | |
* | | patch 3476698: Patch for failing test text-31.11jan.nijtmans2012-01-251-0/+1
|\ \ \ | |/ / |/| |
| * | applied patch-3476698bug_3475627jan.nijtmans2012-01-221-0/+1
|/ /
* | bug-3021557 Moving the cursor in elided text freezes Tkbug_3021557jan.nijtmans2012-01-171-11/+3
| |
* | Purge RCS Keywords.dgp2011-06-081-2/+0
|\ \ | |/
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |
| * Apply (upgraded) version of [Patch 1469210].dkf2009-10-221-20/+58
| |
| * * generic/tkText.c (DeleteChars, TextEditCmd, updateDirtyFlag):hobbs2007-12-131-39/+48
| | | | | | | | | | | | | | * tests/text.test (text-25.10.1,25.11.[12]): Don't require [update idle] to trigger Modified event [Bug 1809538] Modified virtual event should only fire on state change [Bug 1799782] Make sure we delete chars before triggering <<Modified>> [Bug 1737288]
| * * generic/tkCanvas.c: allow -selectforeground option to be None; adddas2007-04-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkCanvText.c: fallback to fgColor when selFgColor is None * generic/tkEntry.c: (new default on aqua to match native L&F). * generic/tkListbox.c: * generic/tkText.c: * generic/tkCanvas.c: add support for bypassing all of Tk's double * generic/tkEntry.c: buffered drawing into intermediate pixmaps * generic/tkFrame.c: (via TK_NO_DOUBLE_BUFFERING #define), it is * generic/tkListbox.c: unnecessary & wasteful on aqua where all * generic/tkPanedWindow.c: drawing is already double-buffered by the * generic/tkTextDisp.c: window server. (Use of this on other * unix/tkUnixScale.c: platforms would only require implementation of TkpClipDrawableToRect()).
| * * generic/tkPanedWindow.c: Cleaned up some code flagged by adgp2006-10-171-3/+3
| | | | | | | | | | | | * generic/tkText.c: `make checkexports` test. * generic/tkText.h * generic/tkTextTag.c:
| * * macosx/tkMacOSXColor.c (TkSetMacColor, TkpGetColor): use AppearanceMgrdas2006-09-101-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXDefault.h: to retrieve platform std colors for text * macosx/tkMacOSXPort.h: selections, add "systemHighlightSecondary" color name for standard color of inactive selections. * library/text.tcl (aqua): change focus bindings to implement platform standard look for inactive text selections using this new color. * generic/tkTextBTree.c (TkTextIsElided): on TkAqua, don't show text * generic/tkTextDisp.c (GetStyle): selection when text widget * generic/tkText.c (TextEventProc): is in disabled state. * generic/tkEntry.c (DisplayEntry): change default TkAqua selection * macosx/tkMacOSXDefault.h: relief to "flat" (platform std). * generic/tkText.c (Tk_TextCmd): fix bug leading to default text selection relief string DEF_TEXT_SELECT_RELIEF being ignored. * macosx/tkMacOSXMouseEvent.c (TkMacOSXProcessMouseEvent): allow mouse event delivery to background windows with kWindowNoActivatesAttribute (e.g. overrideredirect windows), as these never come to the foreground they would not receive any mouse events otherwise. [Bug 1472624] * macosx/tkMacOSXWindowEvent.c (TkMacOSXGenerateFocusEvent): do not send focus events to any windows with kWindowNoActivatesAttribute. * macosx/tkMacOSXXStubs.c (XQueryColor, XQueryColors): implement basic XColor computation from pixel values, enough to make tkImg's window.c happy, fixes img::window failures reported on tcl-mac. * macosx/tkMacOSXMenu.c (DrawMenuEntryLabel): fix leak. [Bug 1554672] * macosx/Makefile: workaround bug in 'cp -pRH' on Darwin 6 and earlier, fixes 'make embedded' failure reported on tcl-mac; fix error from 'make deploy' with same build tree as previous 'make embedded'. * macosx/tkMacOSXEntry.c (TkpDrawEntryBorderAndFocus): fix typo. * unix/tcl.m4: sync with tcl/unix/tcl.m4.
| * * generic/tkEntry.c: move hard-coded ALWAYS_SHOW_SELECTIONhobbs2006-09-061-19/+20
| | | | | | | | | | | | | | | | | | | | * generic/tkInt.h: control of entry/text selection display * generic/tkText.c: based on focus to the Tcl level, * generic/tkTextBTree.c: controlled by ::tk::AlwaysShowSelection * generic/tkTextDisp.c: (boolean, private). [Bug 1553691] * generic/tkWindow.c: * library/tk.tcl * unix/tkUnixPort.h:
| * * generic/tkText.c (DeleteChars): backport of 8.5 text deletehobbs2006-09-061-1/+20
| | | | | | | | speedup that removes tags from deleted area first. [Bug 1456342]
| * * generic/tkText.c (DumpLine): stop dumping if we detect that thehobbs2006-04-051-100/+117
| | | | | | | | | | | | text widget state has changed while dumping. [Bug 1414171] (InsertChars, DeleteChars): fix undo with space-based path. * tests/text.test (text-25.14): [Bug 1452419]
* | * generic/tkText.c (DumpLine): s/segPtr->size/currentSize/hobbs2010-08-271-6/+6
| | | | | | | | | | throughout, but particularly in if lineChanged block where segPtr may no longer be valid. [Bug 3053347]
* | * generic/tkText.c (DumpLine): [Bug 2968379]: When peers are about,dkf2010-03-111-5/+10
| | | | | | | | | | | | there can be unnamed marks present during a dump. Ignore them as they will just be for the peers' insert and current marks, which aren't very important.
* | Refix [Bug 1799782].dkf2010-02-211-3/+12
| |
* | Fix various gcc-4.4 warnings and formatting, allnijtmans2010-01-291-18/+20
| | | | | | | | backported from HEAD.
* | Apply (slight cleaner, tested) version of [Patch 1469210].dkf2009-10-221-16/+53
| |
* | * generic/tkImgPhoto.c: fix numerous leaks discovered with thedas2009-02-061-1/+2
| | | | | | | | | | | | | | | | | | | | * generic/tkMenu.c: Mac OS X Instruments.app Leaks tool. * generic/tkText.c: * generic/tkTextImage.c: * generic/tkTextIndex.c: * generic/tkUndo.c: * generic/ttk/ttkFrame.c: * macosx/tkMacOSXWm.c:
* | Backport of the Millipeter patch [1813597,2218964]ferrieux2008-12-211-5/+3
| |
* | Fix leaks flagged by clang static analyzerdas2008-12-071-2/+2
| |
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * generic/tkText.c (DeleteIndexRange, TextEditCmd, UpdateDirtyFlag):hobbs2007-12-131-40/+48
| | | | | | | | | | | | | | * tests/text.test (text-25.10.1,25.11.[12]): Don't require [update idle] to trigger Modified event [Bug 1809538] Modified virtual event should only fire on state change [Bug 1799782] Make sure we delete chars before triggering <<Modified>> [Bug 1737288]
* | Added code to rebuild the from index after the deletion phase so that thedkf2007-12-111-10/+20
| | | | | | | | linePtr field is valid for the insertion phase. [Bug 1602537]
* | header cleanupdgp2007-09-071-2/+1
| |
* | * generic/tkCanvas.c: allow -selectforeground option to be None; adddas2007-04-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkCanvText.c: fallback to fgColor when selFgColor is None * generic/tkEntry.c: (new default on aqua to match native L&F). * generic/tkListbox.c: * generic/tkText.c: * generic/tkCanvas.c: add support for bypassing all of Tk's double * generic/tkEntry.c: buffered drawing into intermediate pixmaps * generic/tkFrame.c: (via TK_NO_DOUBLE_BUFFERING #define), it is * generic/tkListbox.c: unnecessary & wasteful on aqua where all * generic/tkPanedWindow.c: drawing is already double-buffered by the * generic/tkTextDisp.c: window server. (Use of this on other * generic/ttk/ttkWidget.c: platforms would only require implementation * unix/tkUnixScale.c: of TkpClipDrawableToRect()).
* | D'oh!dkf2007-02-231-2/+2
| |
* | Less of that K&R or wrongly indented function header style!dkf2007-02-221-392/+424
| |
* | various "const" additions, in line with TIP #27nijtmans2007-01-031-2/+2
| |
* | generic/tkText.c: Applied suggested patch from #1536735patthoyts2006-10-171-17/+21
| | | | | | | | | | | | | | | | tests/text.test: Update test for above patch. tests/textWind.test: Corrected test to catch all messages tests/safe.test: Silence spurious win32 failure awaiting TIP150 tests/winDialog.test: Updated test for file name length check. test/winWm.test: Corrected test expectation for menu wrapping.
* | * macosx/tkMacOSXColor.c (TkSetMacColor, TkpGetColor): use AppearanceMgrdas2006-09-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXDefault.h: to retrieve platform std colors for text * macosx/tkMacOSXPort.h: selections, add "systemHighlightSecondary" color name for standard color of inactive selections, use this color as default for text widget -inactiveselectbackground to implement platform standard look for inactive text selections. * library/text.tcl (aqua): remove focus bindings to set selection color. * generic/tkTextBTree.c (TkTextIsElided): on TkAqua, don't show inactive * generic/tkTextDisp.c (GetStyle): text selection when text widget is in disabled state. * generic/tkEntry.c (DisplayEntry): change default TkAqua selection * macosx/tkMacOSXDefault.h: relief to "flat" (platform std). * generic/tkText.c (CreateWidget): fix bug leading to default text selection relief string DEF_TEXT_SELECT_RELIEF being ignored. * macosx/tkMacOSXMouseEvent.c (TkMacOSXProcessMouseEvent): allow mouse event delivery to background windows with kWindowNoActivatesAttribute (e.g. overrideredirect windows), as these never come to the foreground they would not receive any mouse events otherwise. [Bug 1472624] * macosx/tkMacOSXWindowEvent.c (TkMacOSXGenerateFocusEvent): do not send focus events to any windows with kWindowNoActivatesAttribute. * macosx/tkMacOSXXStubs.c (XQueryColor, XQueryColors): implement basic XColor computation from pixel values, enough to make tkImg's window.c happy, fixes img::window failures reported on tcl-mac. * macosx/tkMacOSXMenu.c (DrawMenuEntryLabel): fix leak. [Bug 1554672] * macosx/GNUmakefile: workaround bug in 'cp -pRH' on Darwin 6 and earlier, fixes 'make embedded' failure reported on tcl-mac; fix error from 'make deploy' with same build tree as previous 'make embedded'. * macosx/Wish.xcodeproj/project.pbxproj: add new tclUnixCompat.c file. * macosx/tkMacOSXEntry.c (TkpDrawEntryBorderAndFocus): fix typo. * unix/tcl.m4: sync with tcl/unix/tcl.m4. * unix/configure: autoconf-2.59
* | * generic/tkEntry.c: move hard-coded ALWAYS_SHOW_SELECTIONhobbs2006-09-061-22/+21
| | | | | | | | | | | | | | | | | | | | | | * generic/tkInt.h: control of entry/text selection display * generic/tkText.c: based on focus to the Tcl level, * generic/tkWindow.c: controlled by ::tk::AlwaysShowSelection * library/tk.tcl: (boolean, private). [Bug 1553691] * macosx/tkMacOSXDefault.h: * unix/tkUnixDefault.h: * unix/tkUnixPort.h: * win/tkWinDefault.h: