summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* * 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. FossilOrigin-Name: c83c543647979f202b718a61c81ac9f8763d7660
* Fix for [Bug 2010422]: account for X11 changing constant LASTEvent.jenglish2008-08-061-9/+7
| | | FossilOrigin-Name: b1bd86cd2adebd35ccf23aa967c26d2b48b5ea0f
* * 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] FossilOrigin-Name: 8524e84a5a41d94365fb301b1fe36a257dc146e3
* * generic/tkCanvas.c: Fix logic that determines when canvas itemdgp2008-04-171-4/+5
| | | | | | <Enter> event should fire. Thanks to Sebastian Wangnick. [Bug 1327482] FossilOrigin-Name: 34f1ba78d705912888096725f5fd827691dab68f
* * generic/tkWindow.c (Initialize): fix double-free on Tk_ParseArgvhobbs2008-04-071-2/+1
| | | | | | * tests/main.test (main-3.*): error. [Bug 1937135] FossilOrigin-Name: 9395b7e10d138d4e37f624da399f06095336b6c1
* * 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. FossilOrigin-Name: fdb428db9291a12f88b3ba5199a8720cf04d2402
* *** 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. FossilOrigin-Name: ea6696f24e1abe7986f5e45e7b523b121ebb3da0
* * generic/tkImgGIF.c: Fixed a buffer overflow (CVE-2006-4484).rmax2008-02-011-1/+7
| | | | | | * tests/imgPhoto.test: Added a test for the above. FossilOrigin-Name: fb40595a088937ee93e4572b98f7787e3e4461a3
* * generic/tkMenubutton.c (ConfigureMenuButton): trace thehobbs2007-12-131-27/+23
| | | | | | -textvariable even if an image exists as it may use -compound. FossilOrigin-Name: e677ad358f4fa0ee50703cf52c9ef694c0fc7f73
* * 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] FossilOrigin-Name: dec49c3caeefc3a150a1c7eaabe872552e205acb
* Backport from HEAD of [Bug #1822391]:kennykb2007-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]. FossilOrigin-Name: d7902b20d936053d91698cb8e3eac5f57828a7c6
* * generic/tkPlace.c: Prevent segfault in place geometry manager.dgp2007-10-251-4/+43
| | | | | | Thanks to Colin McDonald. [Bug 1818491] FossilOrigin-Name: 5db44042b42f960c69bbe7cb73b1a63be04604ed
* * 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: FossilOrigin-Name: 123c8cd52f85edce0ed2324fa41fddb39b08cf10
* * 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. FossilOrigin-Name: 8c92a336d05efa1b4aed740e93f262aeb7abd050
* * 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. FossilOrigin-Name: 457bc0415be5be7326b6dcae64f24335daae71f0
* * generic/tkFont.c: #ifdef out debug msg printing to stderr.das2007-05-311-1/+3
| | | FossilOrigin-Name: 1151a2bedae7ed71fda32eac07461907884fb7fe
* * generic/tk.h: Correct placement of #include <tcl.h> [Bug 1723812].dgp2007-05-301-8/+6
| | | FossilOrigin-Name: c3118670f6ac0c15d4d4e5c534e79ce67310fa61
* * 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: FossilOrigin-Name: 8133140d315978dfec2080d2f61cf455601bce35
* * generic/tkFileFilter.c (AddClause): fix warning.das2007-05-301-2/+2
| | | FossilOrigin-Name: f728ce73cae4ab759943d626db86eb526b7b288a
* * generic/tkGrid.c: Stop crash due to list intrep shimmer [Bug 1677608]dgp2007-05-151-2/+18
| | | FossilOrigin-Name: 5b59f6c84cfec8e753e325ba58a36438c15ce4ae
* * generic/tkFileFilter.c (AddClause): OSType endianness fixes.das2007-05-091-2/+5
| | | FossilOrigin-Name: bce7c20f848ee4ba23fbaa95155fde4b550ea547
* * 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()). FossilOrigin-Name: e28d001869d11668fedf18232365561b08014860
* * 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 FossilOrigin-Name: 96596797ddee54cd4d5b931f47e1d312bd666c28
* * generic/tkListbox.c (ConfigureListboxItem): ListboxWorldChangedhobbs2006-12-041-5/+10
| | | | | | not needed - just call EventuallyRedrawRange. [Bug 1608046] (rezic) FossilOrigin-Name: 297e33dd77cb08eeee39a697138c6117a3883941
* * 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: FossilOrigin-Name: 9e887159dcec4b85caf12167b4cb9d015b45c407
* * 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: FossilOrigin-Name: 59e9503d17cc03773c368bb9fda72e260206fadd
* * 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). FossilOrigin-Name: d5ad7c09bcdb5331665449c5bd2d5b0a3d8e59c5
* * 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: FossilOrigin-Name: 8a215ea28667a92a96b020e42d065bc49ba78303
* * 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: FossilOrigin-Name: 20c45754f76680260016fd3f7ed12c0c0e9465e5
* Fix [Bug 1562528]dkf2006-09-221-10/+9
| | | FossilOrigin-Name: 3f46d757347b64930d95851c174567ac257e1703
* * 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. FossilOrigin-Name: a6b148a86cc1751227a181469941db4d39943164
* * generic/tkWindow.c: add #include "tclInt.h" now required due to usedas2006-09-071-1/+3
| | | | | | of tcl internal Tcl_CreateNamespace() in previous commit. FossilOrigin-Name: 92014b8b585bb76799f0c3d728929b4f96487451
* * 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: FossilOrigin-Name: a3cfbe860d50a31ca8d861e27c1db67dfde2a8c4
* * generic/tkText.c (DeleteChars): backport of 8.5 text deletehobbs2006-09-061-1/+20
| | | | | | speedup that removes tags from deleted area first. [Bug 1456342] FossilOrigin-Name: b3d4792b3edb1c6aad33d5aff100d41be4767725
* swap out of order "F34" and "R14"das2006-07-211-2/+2
| | | FossilOrigin-Name: 97321dc96c55dc8c487c510a3b2414cb1401f754
* * 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). FossilOrigin-Name: f5f3a91f43a5de54973951ef7931b8a21651e6b3
* * 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. FossilOrigin-Name: 356aa6446ee423f8120ad0276b6904b304a70c09
* * 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]. FossilOrigin-Name: 536e572bde9a57dfa1f2e0a30e89b132cf074683
* * 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. FossilOrigin-Name: f732e26226724ecf99c53cd5ee5731a307c7363f
* * generic/tkInt.h: Thread safety for the data structures ofdgp2006-06-052-321/+456
| | | | | | * generic/tkConsole.c: the wish [console]. [Bug 1188340]. FossilOrigin-Name: 10a79ac1bed99e6824053237f89e440d5572672d
* * 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]. FossilOrigin-Name: 7ed05ec2262b88b500f4f4da12e2dd5473602a4c
* * tests/entry.test (entry-22.1):hobbs2006-05-291-24/+22
| | | | | | | | | * tests/listbox.test (listbox-6.15): * generic/tkListbox.c (ListboxInsertSubCmd, ListboxDeleteSubCmd): Ignore Tcl_SetVar2Ex failure of listVarName, similar to entry widget handling. [Bug 1424513] FossilOrigin-Name: 18780b1c4f4abdbd9ed9662513ee984e64ad568b
* * generic/tkMenu.c (DeleteMenuCloneEntries): Modify entry indexhobbs2006-05-251-5/+6
| | | | | | changes to work around VC6 optimization bug. [Bug 1224330] FossilOrigin-Name: d7bde6dca39602d3e5da420cc94316db30fdaaf6
* * generic/tkMessage.c (MessageWidgetObjCmd): Correct msgPtrhobbs2006-05-251-8/+9
| | | | | | preserve/release pairing. [Bug 1485750] (afredd) FossilOrigin-Name: e0ce2033c4f7216eef898d2f52855b705bded75e
* * generic/tkWindow.c (Initialize): Correct mutex (un)lockhobbs2006-05-251-16/+14
| | | | | | pairing. [Bug 1479587] FossilOrigin-Name: 4021b1249e600f12eda7732aa8858ab9711646f8
* * generic/tkImgPhoto.c (Tk_PhotoPutBlock, Tk_PhotoPutZoomedBlock):hobbs2006-05-131-19/+29
| | | | | | | Fix opt added 2006-03 that caused slowdown for some common cases. [Bug 1409140] FossilOrigin-Name: 13d8168f40a239dd86506ddf0947e7c6572527e0
* * generic/tkCanvWind.c (DisplayWinItem, WinItemRequestProc): ensuredas2006-05-121-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | canvas window items are unmapped when canvas is unmapped. [Bug 940117] * macosx/tkMacOSXSubwindows.c (TkMacOSXUpdateClipRgn): empty clip region of unmapped windows to prevent any drawing into them or into their children from becoming visible. [Bug 940117] * macosx/tkMacOSXInt.h: revert Jim's attempt of 2005-03-14 to * macosx/tkMacOSXSubwindows.c: fix Bug 940117 as it disables Map/Unmap event propagation to children. [Bug 1480105] * macosx/tkMacOSXDraw.c (TkPutImage): handle tkPictureIsOpen flag, fixes incorrect positioning of images with complex alpha on native buttons; actual alpha blending is still broken in this situation. [Bug 1155596] * macosx/tkMacOSXEvent.c (TkMacOSXProcessCommandEvent): * macosx/tkMacOSXMenus.c (TkMacOSXInitMenus): workaround carbon bug with key shortcut for 'Preferences' app menu item. [Bug 1481503] * macosx/tkMacOSXKeyEvent.c (TkMacOSXProcessKeyboardEvent): only check for HICommand menu item shortcuts in the application menu. * macosx/tkMacOSXInt.h: initialize keyboard layout setup in * macosx/tkMacOSXInit.c: TkpInit() rather than during handling of * macosx/tkMacOSXKeyEvent.c: first key down event. * macosx/tkMacOSXDraw.c: add optional debug code to flash clip * macosx/tkMacOSXSubwindows.c: regions during update or draw. FossilOrigin-Name: a75d23da37089f4892a8bcf58c4e6f5c37adabf9
* * README: Bump version number to 8.4.14dgp2006-05-041-3/+3
| | | | | | | | | | | | * generic/tk.h: * unix/configure.in: * unix/tk.spec: * win/configure.in: * unix/configure: autoconf-2.13 * win/configure: FossilOrigin-Name: 67e7acba427dee71fedbe4b502874fb51de9c1c9
* Correction to 1432666 fix.pspjuth2006-04-121-6/+1
| | | FossilOrigin-Name: 4b53d3060c75dc7cbadcb5620162426be8f2b73d
* * generic/tkGrid.c: Fixed handling of out of bounds row or column.dgp2006-04-121-7/+116
| | | | | | * tests/grid.test: [Bug 1432666] FossilOrigin-Name: 3e3d4dfb08c1ed417bbf549b750a66c36c2b8f33