summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* [Patch #3129527]: Fix buffer overflow w/ GCC 4.5 and -D_FORTIFY_SOURCE=2.nijtmans2011-01-252-5/+5
| | | | Just the strcpy->memcpy part, to prevent anything like [Bug #3164879]
* [Bug 2956548] TkpButtonSetDefaults only initializes one button typenijtmans2010-03-122-7/+11
| | | | Fix 2 minor gcc warnings in tkWinTest.c
* generic/tkMenu.c: Defer TkMenuOptionTables cleanup to CallWhenDeleted() time,jenglish2010-02-171-4/+5
| | | | | to ensure that the record doesn't get freed until after all widget instance commands have been deleted (Fixes [Bug#2952745]).
* Apply (upgraded) version of [Patch 1469210].dkf2009-10-222-47/+87
|
* * generic/tkMenuDraw.c (TkPostSubmenu): Fix reposting of submenu inhobbs2009-09-141-2/+3
| | | | | | | * win/tkWinMenu.c (TkWinHandleMenuEvent): torn off Windows menu. [Bug 873613] (DrawMenuEntryArrow): Draw Win menu arrow after being torn off. [Bug 873608]
* [Bug 2496114]: Ensure that focus desynchronization doesn't cause a crash.dkf2009-07-221-1/+13
|
* * generic/tk.h: Restore _TCL guards around tcl.h inclusion to restoredgp2009-04-091-1/+3
| | | | compat with early 8.4.* releases. Thanks Stuart Cassoff. [Bug 1723812]
* [Bug 2645457] check for dead windows after calling Tk_MakeWindowExist to ↵patthoyts2009-02-281-1/+8
| | | | avoid a crash when mapping dead windows.
* * generic/tkImgPhoto.c: fix leaks discovered with the Mac OS Xdas2009-02-062-3/+12
| | | | | * generic/tkMenu.c: Instruments.app Leaks tool. * macosx/tkMacOSXWm.c:
* * generic/tkPort.h: remove the ../unix/ header dir as the buildhobbs2008-11-041-2/+2
| | | | | system already has it, and it confuses builds when used with private headers installed.
* Fix for [Bug 2010422]: account for X11 changing constant LASTEvent.jenglish2008-08-061-9/+7
|
* * generic/tkPointer.c (Tk_UpdatePointer): fix failure to restore adas2008-06-121-6/+4
| | | | | | global grab capture and to release the restrict window capture when releasing a button grab. Fixes segfault due to dangling reference to restrict window inside TkpSetCapture() implementation. [Bug 1991932]
* * generic/tkCanvas.c: Fix logic that determines when canvas itemdgp2008-04-171-4/+5
| | | | <Enter> event should fire. Thanks to Sebastian Wangnick. [Bug 1327482]
* * generic/tkWindow.c (Initialize): fix double-free on Tk_ParseArgvhobbs2008-04-071-2/+1
| | | | * tests/main.test (main-3.*): error. [Bug 1937135]
* * README: Bump version number to 8.4.19dgp2008-04-071-3/+3
| | | | | | | | | | | | * generic/tk.h: * unix/configure.in: * unix/tk.spec: * win/configure.in: * unix/configure: autoconf-2.13 * win/configure: * changes: updates for 8.4.19 release.
* *** 8.4.18 TAGGED FOR RELEASE ***dgp2008-02-061-3/+3
| | | | | | | | | | | | | * README: Bump version number to 8.4.18 * generic/tk.h: * unix/configure.in: * unix/tk.spec: * win/configure.in: * unix/configure: autoconf-2.13 * win/configure: * changes: updates for 8.4.18 release.
* * generic/tkImgGIF.c: Fixed a buffer overflow (CVE-2006-4484).rmax2008-02-011-1/+7
| | | | * tests/imgPhoto.test: Added a test for the above.
* * generic/tkMenubutton.c (ConfigureMenuButton): trace thehobbs2007-12-131-27/+23
| | | | -textvariable even if an image exists as it may use -compound.
* * 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]
* Backport from HEAD of [Bug #1822391]:Kevin B Kenny2007-11-261-2/+2
| | | | | | | | * generic/tkImgPPM.c (StringReadPPM): Corrected a comparison whose sense was reversed that resulted in reading beyond the end of the input buffer on malformed PPM data. [Bug #1822391] * tests/imgPPM.test (imgPPM-4.1): Added test case that exercises [Bug #1822391].
* * generic/tkPlace.c: Prevent segfault in place geometry manager.dgp2007-10-251-4/+43
| | | | Thanks to Colin McDonald. [Bug 1818491]
* * README: Bump version number to 8.4.17dgp2007-10-021-3/+3
| | | | | | | | | | * generic/tk.h: * unix/configure.in: Removed "es_ES" entry in LOCALES * unix/tk.spec: * win/configure.in: * unix/configure: autoconf-2.13 * win/configure:
* * generic/tkImgGIF.c: Fixed a buffer overrun that got triggered byrmax2007-09-111-2/+2
| | | | | | | multi-frame interlaced GIFs that contain subsequent frames that are smaller than the first one. * tests/imgPhoto.test: Added a test for the above.
* * generic/tkImgPhoto.c (ImgPhotoConfigureInstance, DisposeInstance):das2007-06-231-20/+12
| | | | | | | | use XDestroyImage instead of XFree to destroy XImage; replace runtime endianness determination by compile-time check for WORDS_BIGENDIAN. * xlib/ximage.c (XCreateBitmapFromData): use XCreateImage and XDestroyImage instead of creating XImage structure manually.
* * generic/tkFont.c: #ifdef out debug msg printing to stderr.das2007-05-311-1/+3
|
* * generic/tk.h: Correct placement of #include <tcl.h> [Bug 1723812].dgp2007-05-301-8/+6
|
* * README: Bump version number to 8.4.16dgp2007-05-301-3/+3
| | | | | | | | | | * generic/tk.h: * unix/configure.in: * unix/tk.spec: * win/configure.in: * unix/configure: autoconf-2.13 * win/configure:
* * generic/tkFileFilter.c (AddClause): fix warning.das2007-05-301-2/+2
|
* * generic/tkGrid.c: Stop crash due to list intrep shimmer [Bug 1677608]dgp2007-05-151-2/+18
|
* * generic/tkFileFilter.c (AddClause): OSType endianness fixes.das2007-05-091-2/+5
|
* * generic/tkCanvas.c: allow -selectforeground option to be None; adddas2007-04-298-50/+142
| | | | | | | | | | | | | | | | * 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/tkMain.c (Tk_MainEx): replicate macosx-specific code fromdas2007-03-071-5/+18
| | | | | | | | | | | | | TkpInit() that ensures the console window appears when wish is started from the OS X Finder (i.e. with stdin == /dev/null), jeffh's 2006-11-24 change rendered the corresponding code in TkpInit() ineffective in wish because Tk_MainEx() sets tcl_interactive before calling TkpInit(). * macosx/tkMacOSXDebug.c (TkMacOSXGetNamedDebugSymbol): add fix for libraries loaded with a DYLD_IMAGE_SUFFIX. * unix/tcl.m4 (Darwin): s/CFLAGS/CPPFLAGS/ in macosx-version-min check. * unix/configure: autoconf-2.13
* * generic/tkListbox.c (ConfigureListboxItem): ListboxWorldChangedhobbs2006-12-041-5/+10
| | | | not needed - just call EventuallyRedrawRange. [Bug 1608046] (rezic)
* * README: Bump version number to 8.4.15dgp2006-10-231-3/+3
| | | | | | | | | | * generic/tk.h: * unix/configure.in: * unix/tk.spec: * win/configure.in: * unix/configure: autoconf-2.13 * win/configure:
* * generic/tkPanedWindow.c: Cleaned up some code flagged by adgp2006-10-174-10/+10
| | | | | | * generic/tkText.c: `make checkexports` test. * generic/tkText.h * generic/tkTextTag.c:
* * changes: updates for 8.4.14 release.das2006-10-163-3/+29
| | | | | | | | | | | | | * macosx/tkMacOSXDraw.c: fix numerous issues in CG and QD drawing procs so that they now match X11 drawing much more closely [Bug 1558051]; use Tiger ellipse drawing API when available; fix comments & whitespace. * macosx/tkMacOSXInit.c: set default linewidth limit for CG antialiasing to 0 as thin horizontal/vertical lines look good now. * generic/tkCanvLine.c (ConfigureLine): on TkAqua, pass outline * generic/tkCanvPoly.c (ConfigurePolygon): linewidth in gc even for * generic/tkRectOval.c (ConfigureRectOval): fills (as it controls AA).
* * generic/tkConsole.c: Complete reversal of the changes of Sep 22.andreas_kupries2006-09-253-8/+8
| | | | | | | | | | | | | | * generic/tkMain.c: For compat reason the Tcl core will not change * generic/tkWindow.c: the registered version to include the patchlevel, * library/tk.tcl: making the changes to Tk unnecessary. * unix/configure: * unix/Makefile.in: * unix/tcl.m4: * win/configure: * win/Makefile.in: * win/makefile.vc: * win/rules.vc: * win/tcl.m4:
* * generic/tkConsole.c: TIP #268 update regarding registered packageandreas_kupries2006-09-223-9/+9
| | | | | | | | | | | | | | * generic/tkMain.c: version, now using full patchlevel instead of * generic/tkWindow.c: major.minor * library/tk.tcl: * unix/configure: * unix/Makefile.in: * unix/tcl.m4: * win/configure: * win/Makefile.in: * win/makefile.vc: * win/rules.vc: * win/tcl.m4:
* Fix [Bug 1562528]dkf2006-09-221-10/+9
|
* * macosx/tkMacOSXColor.c (TkSetMacColor, TkpGetColor): use AppearanceMgrdas2006-09-104-9/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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/tkWindow.c: add #include "tclInt.h" now required due to usedas2006-09-071-1/+3
| | | | of tcl internal Tcl_CreateNamespace() in previous commit.
* * generic/tkEntry.c: move hard-coded ALWAYS_SHOW_SELECTIONhobbs2006-09-066-41/+82
| | | | | | | | | | * 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]
* swap out of order "F34" and "R14"das2006-07-211-2/+2
|
* * generic/tkBind.c (TkBindInit): for REDO_KEYSYM_LOOKUP, changedas2006-07-211-7/+9
| | | | | | | | | keysym-to-string mapping hash to use first name in ks_names.h instead of last (if there are multiple possibilities), e.g. "F11" instead of "L1". * macosx/tkMacOSXKeyboard.c (TkpGetKeySym): correct keysyms for pure modifier key presses [Bugs 700311, 1525905]; correct keysym for Enter key; add keysyms for new NumLock and Fn modifiers (added 2005-08-09).
* * generic/tkWindow.c (Initialize): Modify change of 2006-05-25andreas_kupries2006-07-141-2/+8
| | | | | | (jeffh). Release mutex a bit earlier, to prevent lock when OS X creates its console windows (recursively enters Tk_Init). Patch by JeffH.
* * generic/tkScale.c: Revised variable writing logic to accountdgp2006-06-141-5/+12
| | | | | for [scale]'s design that it deals with its value as a formatted string, and not as a double. [Bug 891141].
* * generic/tkMain.c: Added Tcl_Preserve() call on the masterdgp2006-06-091-1/+3
| | | | | interp as crash protection against any Tcl_DeleteInterp() call that might happen.
* * generic/tkInt.h: Thread safety for the data structures ofdgp2006-06-052-321/+456
| | | | * generic/tkConsole.c: the wish [console]. [Bug 1188340].
* * generic/tkConsole.c: Added Tcl_RegisterChannel() calls to bumpdgp2006-06-011-2/+11
| | | | | the refcount of channels passed to Tcl_SetStdChannel(). This prevents early free-ing of the channels that leads to crashes. [Bug 912571].