summaryrefslogtreecommitdiffstats
path: root/generic/tkTextDisp.c
Commit message (Collapse)AuthorAgeFilesLines
* Cherrypicked bug fix for Bug [c199ef90a6] - Wrong index returned by @x,y ↵fvogel2014-12-231-1/+6
| | | | with elided lines at end of text
* Fixed test of index being at start of both a logical line and a display line ↵fvogel2014-12-211-1/+3
| | | | in TkTextFindDisplayLineEnd
* Fixed vertical scrolling with elided lines. MeasureUp was not measuring ↵fvogel2014-12-171-0/+2
| | | | fully correctly.
* At least one display line is supposed to change when calling TkTextChanged.fvogel2014-12-141-0/+13
|
* More complete commentfvogel2014-12-101-1/+2
|
* Merged from branch bug-7703f947aafvogel2014-12-101-10/+58
|\
| * Fixed TextChanged caller of FindDLine for correct taking into account of ↵fvogel2014-12-101-10/+58
| | | | | | | | elided newlines
* | Fixed indentation in FindDLinefvogel2014-12-101-17/+17
| |
* | Merged from branch bug-7703f947aafvogel2014-12-071-0/+24
|\ \ | |/
| * Fixed text yview scroll pixels|lines with elided linesfvogel2014-12-071-0/+24
| |
* | indexPtr->byteIndex == 0 is the beginning of a display line only if indexPtr ↵fvogel2014-12-061-5/+3
| | | | | | | | is not elided. The start of a logical line is not always the start of a display line.
* | indexPtr->byteIndex == 0 is the beginning of a display line only if indexPtr ↵fvogel2014-12-061-1/+2
| | | | | | | | is not elided
* | Merged from branch bug-7703f947aafvogel2014-12-051-3/+6
|\ \ | |/
| * Fixed text count -ypixels with indices in elided linesfvogel2014-12-051-3/+6
| |
* | indexPtr->byteIndex == 0 is the beginning of a display line only if indexPtr ↵fvogel2014-12-051-1/+2
|/ | | | is not elided
* Fixed text count -xpixels with indices in elided linesfvogel2014-12-051-3/+5
|
* Fixed text see command for elided target indices.fvogel2014-12-031-44/+51
|
* Changed variable name for a better onefvogel2014-12-031-7/+7
|
* Checked dlineinfo caller of FindDLine, comments addedfvogel2014-12-031-0/+9
|
* Fixed indentation and typos in commentsfvogel2014-12-031-18/+16
|
* Fixed FindDLine again (the previous fix [575b376065] was an improvement ↵fvogel2014-11-301-48/+51
| | | | despite it did not fix all cases), see case 'C' in bug [7703f947aa]
* Fixed bbox caller of FindDLine, see case 'B' in bug [7703f947aa]fvogel2014-11-301-2/+16
|
* Fixing FindDLine was not enough in all cases, now fix its callers (see test ↵fvogel2014-11-231-2/+2
| | | | case 'A' in bug [7703f947aa])
* Fixed bug [7703f947aa] - Wrong refresh of display lines when tagging text as ↵fvogel2014-11-221-1/+3
| | | | elided
* Fix typos in commentsfvogel2014-11-211-2/+2
|
* Fix for shimmering of buttons embedded when scrolled in text and canvas ↵Kevin Walzer2014-08-161-0/+10
| | | | widgets; improvements in scrolling smoothness in text widget. Thanks to Marc Culler for patches.
* Simpify determination whether we are running on cygwin. jan.nijtmans2012-05-301-0/+2
|\ | | | | Export Tk_GetHINSTANCE, TkSetPixmapColormap and TkpPrintWindowId on the Cygwin dll.
| * merge core-8-4-branch, still to be tested on Unixtobetestedjan.nijtmans2012-05-291-0/+2
| |\
| | * Simpify determination whether we are running on cygwin.jan.nijtmans2012-05-251-0/+2
| | | | | | | | | | | | Export Tk_GetHINSTANCE, TkSetPixmapColormap and TkpPrintWindowId on the Cygwin dll. Fix "make genstubs" when cross-compiling on UNIX
* | | Better fix for bug-1630254bug_1630254fvogel2012-05-171-15/+3
| | |
* | | [Bug 1630254]: missing scrolling of text widget when from a -startline == ↵fvogel2012-05-171-2/+15
|/ / | | | | | | -endline initial state it is configured to display a non-empty part of it
* | Bug-3487407: Weird text indicesbug_1630262fvogel2012-02-181-1/+1
| |
* | Better fix for bug-1630262, also fixing bug-1615425fvogel2012-02-021-28/+0
| |
* | [Bug-1630262]: segfault when deleting lines with peer text widgetsfvogel2012-01-311-2/+30
| |
* | [Bug-1754043] and [Bug-2321450]: When -blockcursor is true, the cursor ↵patch_3479498fvogel2012-01-251-0/+3
| | | | | | | | appears as a blinking bar which expands to the right edge of the widget.
* | Purge RCS Keywords.dgp2011-06-081-2/+0
|\ \ | |/
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |
| * [Patch #3129527]: Fix buffer overflow w/ GCC 4.5 and -D_FORTIFY_SOURCE=2.nijtmans2011-01-251-2/+2
| | | | | | | | Just the strcpy->memcpy part, to prevent anything like [Bug #3164879]
| * * generic/tkCanvas.c: allow -selectforeground option to be None; adddas2007-04-291-27/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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()).
| * * macosx/tkMacOSXColor.c (TkSetMacColor, TkpGetColor): use AppearanceMgrdas2006-09-101-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-6/+6
| | | | | | | | | | | | | | | | | | | | * 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/tkTextDisp.c (TkTextPixelIndex): Don't segfault on fullhobbs2006-04-051-2/+10
| | | | | | | | -elide text. [Bug 1442102]
| * * unix/tcl.m4 (Darwin): add 64bit support, check for Tiger copyfile(),das2005-11-271-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add CFLAGS to SHLIB_LD to support passing -isysroot in env(CFLAGS) to configure (flag can't be present twice, so can't be in both CFLAGS and LDFLAGS during configure), don't use -prebind when deploying on 10.4, define TCL_IO_TRACK_OS_FOR_DRIVER_WITH_BAD_BLOCKING (rdar://3171542). (SC_ENABLE_LANGINFO, SC_TIME_HANDLER): add/fix caching, fix obsolete autoconf macros. Sync with tk/unix/tcl.m4, sync whitespace with HEAD. * unix/configure.in: fix obsolete autoconf macros, sync gratuitous formatting/ordering differences with tcl/unix/configure.in. * unix/Makefile.in: add CFLAGS to wish/tktest link to make executable linking the same as during configure (needed to avoid loosing any linker relevant flags in CFLAGS, in particular flags that can't be in LDFLAGS). Avoid concurrent linking of wish and compiling of tkTestInit.o during parallel make, fix dependencies and flags for building tkMacOSXInit.o (checkstubs, checkexports): dependency and Darwin fixes * macosx/tkMacOSXEvent.c (TkMacOSXProcessEvent): * macosx/tkMacOSXEvent.h: * macosx/tkMacOSXMouseEvent.c (TkMacOSXProcessMouseEvent): * macosx/tkMacOSXCarbonEvents.c: install standard application event handler, add & call functions to start and stop carbon even timer that runs the tcl event loop periodically during a nested carbon event loop in the toolbox (e.g. during menutracking) to ensure tcl timers etc continue to fire, register app event handler for menu tracking and HI command carbon events, move menu event handling to new handlers for those carbon events, no longer register for/handle appleevent carbon event (now dealt with by standard application event handler), event debugging code dynamically acquires carbon event debugging functions to allow use on Tiger where they are no longer exported from HIToolbox. * macosx/tkMacOSXFont.c (TkMacOSXUseAntialiasedText): * macosx/tkMacOSXKeyEvent.c (GetKeyboardLayout): * macosx/tkMacOSXCarbonEvents.c (TkMacOSXInitCarbonEvents): * macosx/tkMacOSXInit.c: * macosx/tkMacOSXInt.h: abstract common code to dynamically acquire address of a named symbol (from a loaded dynamic library) into new function TkMacOSXGetNamedSymbol() and macro TkMacOSXInitNamedSymbol. * macosx/tkMacOSXMenu.c (TkpNewMenu): * macosx/tkMacOSXMenubutton.c (MenuButtonInitControl): * macosx/tkMacOSXMenus.c (TkMacOSXHandleMenuSelect): switch to modern utf8 aware menu manager API, remove obsolete code, add error handling. * macosx/tkMacOSXMouseEvent.c: define OSX 10.3 or later only constants if necessary to allow compilation on OSX 10.2 * macosx/tkMacOSXWm.c (UpdateSizeHints): remove code that is never executed. * generic/tk.h: add/correct location of version numbers in macosx files. * generic/tkInt.h: clarify fat compile comment. * macosx/Wish.pbproj/default.pbxuser (new file): * macosx/Wish.pbproj/jingham.pbxuser: * macosx/Wish.pbproj/project.pbxproj: sync with HEAD. * macosx/buildTkConfig.tcl (removed): remove obsolete build files. * macosx/README: clarification/cleanup, sync with HEAD, document universal (fat) builds via CFLAGS (i.e. ppc and i386 at the same time). * macosx/Makefile: add support for reusing configure cache, build target fixes. * generic/tkMenu.c: * macosx/tkMacOSXButton.c: * macosx/tkMacOSXDebug.c: * macosx/tkMacOSXDebug.h: * macosx/tkMacOSXDialog.c: * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXEntry.c: * macosx/tkMacOSXMenu.c: * macosx/tkMacOSXMouseEvent.c: * macosx/tkMacOSXXStubs.c: * macosx/tkMacOSXSubwindows.c: * xlib/xgc.c: declare functions and globals used only in own file as static, #ifdef out a few Xlib and aqua functions that are never called (sync with HEAD). * macosx/tkMacOSXPort.h: * generic/tkInt.decls: correct signature of TkMacOSXHandleMenuSelect, add XSync to aqua Xlib stubs. * generic/tkTest.c: #ifdef unix only declarations. (TestmetricsCmd): unify win and mac implementation. * generic/tkTextDisp.c: * generic/tkTextBTree.c: * macosx/tkMacOSXInit.c: * macosx/tkMacOSXKeyEvent.c: * macosx/tkMacOSXWindowEvent.c: * macosx/tkMacOSXXStubs.c: fix gcc 4 warnings. * macosx/tkMacOSXNotify.c: * macosx/tkMacOSXTest.c: sync with HEAD. * generic/tkIntPlatDecls.h: * generic/tkIntXlibDecls.h: * generic/tkStubInit.c: * unix/configure: regen.
* | [Bug 2677890]: Fix odd text widget update problem that had scrollbars beingdkf2010-01-071-3/+4
| | | | | | | | unable to cover the whole widget. Fix is to reify the range to update sooner.
* | Fix word-wrapping of non-breaking spaces in the text widget to work reliably.dkf2009-08-041-2/+2
| |
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * generic/tkTextDisp.c (CharUndisplayProc): fix textDisp.test crash.das2007-10-121-21/+23
| |
* | Only call callbacks that are not NULL. [Bug 1791052]dkf2007-09-201-3/+8
| |
* | header cleanupdgp2007-09-071-2/+1
| |
* | * generic/tkFont.c: #ifdef out debug msg printing to stderr.das2007-05-311-2/+6
| | | | | | | | * generic/tkTextDisp.c: