summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* Revise Tcl_Panic() calls ending with a newline removing the newline, because ↵nijtmans2010-11-1913-28/+28
| | | | Tcl_Panic() outputs a final newline already
* reverted previous commit: it has effect on the Windows consolenijtmans2010-11-151-28/+38
|
* Eliminate use of the function Tcl_WinTCharToUtf in generic codenijtmans2010-11-151-38/+28
|
* Sync TK_ASCII_MAIN usage with tclMain.cnijtmans2010-11-051-4/+9
|
* [FRQ 491789]: "setargv() doesn't support a unicodenijtmans2010-10-111-5/+9
| | | | cmdline" implemented for Tk on MSVC++
* Fix crash in 'tag add' / 'tag remove' when no -tags specified [SF#3085489].jenglish2010-10-111-4/+4
|
* * generic/tkImgPhoto.c (Tk_PhotoPutBlock, Tk_PhotoPutZoomedBlock):dkf2010-10-011-3/+19
| | | | | [Bug 3078902]: Ensure that zero-dimensioned data blocks cause no changes at all instead of causing a hang.
* tkMain.c: make compilable with -DUNICODE as wellnijtmans2010-09-291-40/+86
|
* Add explicit scspec "EXTERN", as in Tclnijtmans2010-09-283-3/+11
| | | | Don't let Tk_MainEx macro disturb compilation
* Dummy genstubs::export (from genStubs.tcl)nijtmans2010-09-231-1/+19
|
* clean-up, port all genStubs.tcl changesnijtmans2010-09-204-549/+590
| | | | | from Tcl to ttkGenStubs.tcl as well (no change in any output files)
* TreeviewSeeCommand: Schedule redisplay if [$tv see] opens any items [#2829363]jenglish2010-09-081-1/+2
|
* * 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]
* [Patch 3034251]: Backport ttkGenStubs.tcl features to genStubs.tcl, partly:nijtmans2010-08-215-125/+125
| | | | Use void (*reserved$i)(void) = 0 instead of void *reserved$i = NULL for unused stub entries, in case pointer-to-function and pointer-to-object are different sizes.
* Move USE_OLD_IMAGE support after tkDecls.hnijtmans2010-08-191-6/+8
|
* [Patch 3034251] partly: remove some more unneeded ifdeffery from stub header ↵nijtmans2010-08-197-3876/+55
| | | | files
* * generic/tkImgGIF.c (StringWriteGIF): Added ability to write a GIF todkf2010-07-181-318/+370
| | | | | | a string (as a byte array, of course) following comments on c.l.t by Aric Bills. Also improved readability of some of the function and field names in this file.
* [Tcl Bug 3029891] Functions that don't belong in the stub table (Tk part, ↵nijtmans2010-07-163-10/+15
| | | | | | not really removed from the stub table, just disabled) [Bug 3027438] Tk_Main calls Tcl_CreateInterp before Tcl_FindExecutable
* [Patch #3019624] fix "place" command segfault on half-dead app main window.a_kovalenko2010-06-222-6/+7
|
* [Bug #3019363] "make genstubs" failurenijtmans2010-06-222-13/+13
| | | | (undid previous unintended edit)
* [Bug #3019363] "make genstubs" failurenijtmans2010-06-223-18/+17
|
* [Patch #2999889] TkCopyAndGlobalEval obsoletenijtmans2010-06-214-65/+9
|
* [Patch 3009998]: Replace binding procedures with ordinary event handlersjenglish2010-06-198-600/+63
| | | | | | | | | | | in win/tkWinScrlbr.c and carbon/tkMacOSXScrlbr.c. Simplifications enabled by previous change: * TkCreateBindingProcedure() and associated machinery no longer needed. * TkBindDeadWindow() no longer needed. * TK_DEFER_MODAL_LOOP and associated machinery no longer needed. * Tests related to C binding procedures no longer needed.
* Eliminate many unnecessary (ClientData) type casts.nijtmans2010-06-1512-62/+59
|
* Tk_CreateBinding): Silently ignore empty scripts (Fixes [Bug 3006842]).jenglish2010-05-311-2/+6
|
* ttk::treeview: [$tv tag bind $tag <...> {}] now removes binding completely.jenglish2010-05-271-17/+22
| | | | | Fixes [Bug 3006842] (although there's still a problem somewhere in Tk_CreateBinding()).
* Fix some gcc strict-aliasing warnings (discovered with "-Wstrict-aliasing=2"nijtmans2010-05-261-4/+4
|
* Revert [Patch #2999920], as it entails an incompatible change to the C APIjenglish2010-05-171-7/+14
| | | | is and is the cause of [Bug #3002768].
* [Patch #2999920]: Optimize Internal Virtual event string operationsnijtmans2010-05-171-14/+7
| | | | [Bug #2987995]: Tk_getOpenFile returns garbage under described circumstances
* Consistent use of variable names in RestrictEventnijtmans2010-05-111-6/+6
| | | | | | API documentation and implementation: Use 'prev' in stead of 'old', and 'arg' in stead of 'clientData' everywhere, just as in tkEvent.c.
* CONSTify TkCopyAndGlobalEval, TkpSetMainMenubar,nijtmans2010-05-106-37/+38
| | | | | TkpMenuNotifyToplevelCreate, and TkSetWindowMenuBar Bring Tk_CreateBinding doc and signature (param name) in line.
* * generic/tk.h: Bump patchlevel to 8.6b1.2 to distinguishdgp2010-05-031-2/+2
| | | | | | | | | * library/tk.tcl: CVS snapshots from earlier snapshots as well * unix/configure.in: as the 8.6b1 and 8.6b2 releases. * win/configure.in: * unix/configure: autoconf-2.59 * win/configure:
* * generic/tkImgPNG.c (ReadIDAT, DecodePNG): Move the check for overalldkf2010-04-251-12/+15
| | | | | | termination of the compressed stream until after the final IDAT has been read, so that multi-segment images will work right. Reported by Andy Goth on the Wiki.
* Formattingnijtmans2010-04-2316-141/+29
| | | | | | typo fixes remove not existing tkDisplayList; Useless re-definitions of TCL_STORAGE_CLASS
* tkPort.h already includes tk.h, which includes tcl.hnijtmans2010-04-203-11/+5
| | | | Always use #include "tkInt.h", not <tkInt.h>
* Make sure that tkWinPort.h is always includednijtmans2010-04-202-16/+17
| | | | | before tcl.h, otherwise the fallback for TCHAR might go off before the inclusion of <tchar.h>
* * generic/tkImgPNG.c (WriteIDAT): [Bug 2984787]: Use the correctdkf2010-04-121-3/+90
| | | | | | | | | | flushing semantics when handling the last data from the image. Without this, many PNG readers (notably including Firefox) refuse to show the image and instead complain about errors. (ReadIDAT): Added sanity checks to ensure that when we've got bad data of the sorts of forms we were previously generating, we detect it and error out rather than silently failing. (WriteExtraChunks): New function to write in some basic metadata.
* * generic/tkImgPhoto.c (ImgPhotoCmd): [Bug 2983824]: Use the filedkf2010-04-091-19/+75
| | | | extension to guess the output format to use if one isn't specified.
* ttk::treeview widget: add 'tag names', 'tag add', and 'tag remove' methods.jenglish2010-03-285-16/+188
|
* Removed lame reliance on the leading letters of the names of segment types whendkf2010-03-114-9/+13
| | | | | dumping a text widget. Entailed expanding the scope of the declarations of the types of embedded images and windows.
* * generic/tkText.c (DumpLine): [Bug 2968379]: When peers are about,dkf2010-03-111-8/+13
| | | | | | 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.
* * generic/tkPlatDecls.h: Correct broken 2886635 fix. [Bug 2965600]dgp2010-03-081-2/+2
|
* Use @EXEEXT@ in stead of @EXT_SUFFIX@nijtmans2010-02-224-12/+12
| | | | | Use -DBUILD_tk in Makefile Make internal Tk_ObjCustomOption const
* Tiny whitespace changes for readability improvement.dkf2010-02-214-10/+10
|
* Re-fix [Bug 1799782].dkf2010-02-211-7/+17
|
* ttk::treeview: Cache the result of the last call to EndPosition()jenglish2010-02-201-10/+30
| | | | | | | to avoid quadratic-time behavior in the common cases where the treeview is populated in depth-first or breadth-first order. (Translation for LM: that means "3X faster!")
* Put all Tk_OptionSpec for buttons and labelsnijtmans2010-02-182-26/+42
| | | | | | in const memory. With some changes to win32 and macosx, preventing direct writes to read-only memory.
* 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]).
* CONSTify everything related to Tk_ConfigSpecnijtmans2010-02-1718-79/+76
|
* tkWindow.c/tkStubInit.c adapted from stub changes in Tclnijtmans2010-02-164-18/+21
| | | | | | | | | | | | tkArgv.c make defaultTable const tkScrollbar.c Store default for "-with" in static non-const memory tkWinInt.h make tkWinProcs const, and 5 tkWinX.c procs MODULE_SCOPE tkWinColor.c make sysColors const tkWinKey.c make keymap const tkWinScrlbr.c Simplify copying of "-with" default value. tkUnixWm.c make TkSetTransientFor static tests/textImage.test textImage-1.13 depends on hash-order