summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tkArgv.c: Fix gcc warnings about 'cast to/fromdas2007-10-1512-58/+107
| | | | | | | | | | | | | | | | | | | | | * generic/tkCanvUtil.c: pointer from/to integer of different * generic/tkCanvas.c: size' on 64-bit platforms by casting * generic/tkCursor.c: to intermediate types * generic/tkInt.h: intptr_t/uintptr_t via new PTR2INT(), * generic/tkListbox.c: INT2PTR(), PTR2UINT() and UINT2PTR() * generic/tkObj.c: macros. * generic/tkStyle.c: * generic/tkTextIndex.c: * generic/tkUtil.c: * generic/ttk/ttkTheme.h: * generic/ttk/ttkTreeview.c: * unix/tkUnixMenu.c: * unix/configure.in: * unix/configure: autoconf-2.59 * unix/tkConfig.h.in: autoheader-2.59 FossilOrigin-Name: a5a2868bd786806ab6e48d4de625258a70129d94
* * generic/tkTextDisp.c (CharUndisplayProc): fix textDisp.test crash.das2007-10-121-21/+23
| | | FossilOrigin-Name: 7a48c5caab12df775da5f95d688e1977711f0db4
* Make Ttk_GetImage safe if called with NULL interp. Added some testspatthoyts2007-10-091-2/+4
| | | | | | that crash on Windows without this fix. FossilOrigin-Name: fb96f8c88ef2cf1d01b5d1b3a39ac4242efa1bf9
* * generic/tk.h: Bump version number to 8.5b1.1 to distinguishdgp2007-10-021-2/+2
| | | | | | | | | | | | * library/tk.tcl: CVS development snapshots from the 8.5b1 * unix/configure.in: release. Updated LOCALES. * unix/tk.spec: * win/configure.in: * unix/configure: autoconf (2.59) * win/configure: FossilOrigin-Name: 75ae2ea83c2429737ea254e2441be646b56db3b4
* Only call callbacks that are not NULL. [Bug 1791052]dkf2007-09-201-3/+8
| | | FossilOrigin-Name: d67cb76fb6dd789b52001cf7752f3938f24a3ecf
* fix 'make checkstubs' complaint about Tk_PkgInitStubsCheckdas2007-09-201-1/+3
| | | FossilOrigin-Name: 7f239cb5ee1e6f7afbd0269287ac412b0354195e
* * README: Bump version number to 8.5b1.dgp2007-09-191-4/+4
| | | | | | | | | | * generic/tk.h: Merge from core-stabilizer-branch. * library/tk.tcl: Stabilizing toward 8.5b1 release now done * unix/configure.in: on the HEAD. core-stabilizer-branch is * unix/tk.spec: now suspended. * win/configure.in: FossilOrigin-Name: d2539be7e0f05658c9b17b88d51bc886ef039786
* Replace isdigit call with an internal implementation to avoid libc linkage ↵patthoyts2007-09-191-2/+11
| | | | | on windows FossilOrigin-Name: f8ff31e6d1a9d6e709fab64205adada8bb117d2d
* * generic/tkStubLib.c: Remove C library calls from Tk_InitStubs()dgp2007-09-181-2/+8
| | | | | | | * win/makefile.vc: so that we don't need the C library linked in to libtkStub. FossilOrigin-Name: 1e706b7a6876565ae1691762d2f579c2299a2345
* fix warningsdas2007-09-181-3/+3
| | | FossilOrigin-Name: 714a48504342076a053f85df1dd4c86d8c5938d2
* Yet another step in the tidying up of the GIF code.dkf2007-09-181-138/+169
| | | FossilOrigin-Name: 8d114a1ee37e8173c54980ae823c1b83d8a7ad67
* * generic/tkConsole.c: Revised callers of Tcl_InitStubs() to accountdgp2007-09-175-11/+75
| | | | | | | | | | | | | | * generic/tkMain.c: for restored compatible support for the call * generic/tkWindow.c: Tcl_InitStubs(interp, TCL_VERSION, 1). Also revised Tcl_PkgRequire() call for Tcl so that, for example, a Tk library built against Tcl 8.5.1 headers will not refuse to [load] into a Tcl 8.5.0 interpreter. [Tcl Bug 1578344]. * generic/tk.h: Revised Tk_InitStubs() to restore Tk 8.4 * generic/tkStubLib.c: source compatibility with callers of * generic/tkWindow.c: Tk_InitStubs(interp, TK_VERSION, 1). FossilOrigin-Name: f9329db97048998b94a7d240b96f069ee4a29144
* Missed one PkgRequire Tcl revisiondgp2007-09-111-2/+2
| | | FossilOrigin-Name: 05962b126b8854b260c9916e31a1f4dec45b6160
* * 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: 865f831b965f75ae2d7730227cc01da78e4bf5d9
* * generic/tkConsole.c: Revised calls to Tcl_InitStubs() anddgp2007-09-113-6/+6
| | | | | | | | | | | * generic/tkMain.c: [package require Tcl] so that Tk Says What * generic/tkWindow.c: It Means using the new facilties of [package] * library/tk.tcl: in Tcl 8.5 about what version(s) of Tcl it * unix/Makefile.in: is willing to work with. [Bug 1578344]. * win/Makefile.in: * win/makefile.vc: FossilOrigin-Name: 010ab6d6a465c23f11326eef0b83e3f1c06f8354
* * generic/tkConsole.c: Revise all Tcl_InitStubs() calls to restoredgp2007-09-103-6/+6
| | | | | | | | | * generic/tkMain.c: the traditional practice that a Tk shared * generic/tkWindow.c: library may [load] into a Tcl 8.5 interp at any patchlevel. This practice also matches the compile time checks of TCL_MAJOR_VERSION and TCL_MINOR_VERSION in tk.h. [Bug 1723622] FossilOrigin-Name: a906ff915174d5038962baa5a44599ccc74193d8
* Assorted minor cleanups.dkf2007-09-085-92/+125
| | | FossilOrigin-Name: 0f99ca37c21ca0c804eca626d4d63714d8f1950a
* Disable __NO_OLD_CONFIG configuration enabled by latest commitdgp2007-09-071-1/+3
| | | FossilOrigin-Name: be64cbacc9f5154d053c790956f8630620355262
* header cleanupdgp2007-09-0767-141/+86
| | | FossilOrigin-Name: 04ffea40ef0b3c0cad59a3e1576275019f29e913
* * generic/tkWindow.c (Initialize): Moved common Tk initializationdgp2007-09-062-55/+23
| | | | | | | | | | | | | * generic/tkInitScript.h (removed): script out of tkInitScript.h * macosx/tkMacOSXInit.c: and multiple TkpInit() routines and * unix/Makefile.in: into the common Initialize() routine in * unix/tkUnixInit.c: generic code. Also removed constraint on * win/tkWinInit.c: ability to define a custom [tkInit] before calling Tk_Init(). Until now the custom [tkInit] had to be a proc. Now it can be any command. Removal of tkInitScript.h also fixes [Bug 1656283]. FossilOrigin-Name: 8b6b21d988cf7030c31a12c343fd3d5b8a298dfb
* Fix for [Bug 1788019] "tkTest.c compiler warning".jenglish2007-09-041-4/+5
| | | FossilOrigin-Name: ae006ec2da876d4a46cd80ec97bb28a8cac89037
* * generic/ttk/ttkInit.c (Ttk_Init): register ttk in package databasedas2007-09-032-5/+3
| | | | | | | | to enable extension access to the ttkStubs table. * generic/ttk/ttkDecls.h: correct capitalization of ttk package name. FossilOrigin-Name: 62f15b82ce692f1cce10fcc035a61b9f96c5cbe2
* restore unix line endingsdgp2007-06-258-2491/+2491
| | | FossilOrigin-Name: 5f2fb4b20482efc69092595b3fe586f6d99a7b86
* fix compile errors & warnings introduced by dkf's cleanupdas2007-06-253-8/+8
| | | FossilOrigin-Name: 22826e45feb216d1ab0cc4f935b8373e08d89270
* Cleaning up whitespace, comments, declarations. No functional changes.dkf2007-06-241-830/+825
| | | FossilOrigin-Name: c1097ac7f3108861c6589384d9d9ee296a02b253
* Cleaning up whitespace, comments, declarations. No functional changes.dkf2007-06-242-80/+77
| | | FossilOrigin-Name: 092f7edaa49cb045d942b0625fda728f7d975fc9
* Cleaning up whitespace, comments, declarations. No functional changes.dkf2007-06-2417-2195/+2160
| | | FossilOrigin-Name: c98da578d4520ec508451f459a942855c575ec00
* * generic/tkImgPhoto.c (ImgPhotoConfigureInstance, DisposeInstance):das2007-06-231-19/+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: fa5f3efc81ea4998f4b2da3e72687a9f4c456733
* Added -width and -height options.jenglish2007-06-101-15/+69
| | | | | | | | | Added 'panes' method, return list of managed windows. 'sashpos' method is now documented as part of the public interface, and details clarified. Should be easier to set initial sash positions now [Alleviates #1659067]. FossilOrigin-Name: e67826b372bd21f0c57bacc04ec101a7f33fa843
* Ttk_Manager API overhaul:jenglish2007-06-095-339/+386
| | | | | | | | | | | | | + Ttk_Manager no longer responsible for managing slave records + Ttk_Manager structure now opaque + Ttk_Slave structure now private + Pass Ttk_Manager * to Tk_GeomMgr hooks instead of Ttk_Slave * ttk::labelframe: Simplified -labelwidget management. ttk::noteboook 'insert' command didn't correctly maintain current tab. Changed documentation of ttk::panedwindow 'identify' command to match implementation. FossilOrigin-Name: def6bb17f9e3906823584da8275e0052377733db
* * generic/tkFont.c: #ifdef out debug msg printing to stderr.das2007-05-312-3/+9
| | | | | | * generic/tkTextDisp.c: FossilOrigin-Name: 6d03ab2b3c8eca6cd3aac88d5ee38bee01e9c0e7
* * generic/tk.h: Correct placement of #include <tcl.h> [Bug 1723812].dgp2007-05-301-8/+6
| | | FossilOrigin-Name: bb3a0c11e4f0dfdd140aaf5417756fe2e3494a32
* Fix comments. (Thanks to Emiliano for spotting)dkf2007-05-241-3/+3
| | | FossilOrigin-Name: 3ffdac451356d5258e5026f6a1279592170e5387
* EntrySetValue: Ensure that widget is in a consistent state before settingjenglish2007-05-181-5/+10
| | | | | | | the linked -textvariable. Previously, it was possible for [$e index insert] to point past the end of the string, leading to heap corruption [Bug 1721532]. FossilOrigin-Name: 6e624fd3ec8886cffe28f45649d20212a066fe5c
* * unix/configure: autoconf-2.59 (FC6 fork)dgp2007-05-181-3/+3
| | | | | | | | | | | | | * win/configure: * README: Bump version number to 8.5a7 * generic/tk.h: * library/tk.tcl: * unix/configure.in: * unix/tk.spec: * win/configure.in: FossilOrigin-Name: 2d64ab8f608edca871bd7a450f6204854716a54a
* * generic/tk.decls: workaround 'make checkstubs' failures fromdas2007-05-161-1/+19
| | | | | | | | | tkStubLib.c MODULE_SCOPE revert. [Bug 1716117] * macosx/Wish.xcodeproj/project.pbxproj: add tkOldTest.c and remove tkStubImg.c. FossilOrigin-Name: f7a1ab248c7db5df2996c39443285d7cbee0d7d9
* Change Tk_InitStubs(), tkStubsPtr, and the auxilliary stubs table pointersjenglish2007-05-161-16/+2
| | | | | | | | back to public visibility. See [Bug 1716117] for details. Removed TCL_STORAGE_CLASS monkey business, as it had no effect. FossilOrigin-Name: 3429d4abf609e981cfedd26303907f426c12b171
* * generic/tkGrid.c: Stop crash due to list intrep shimmer [Bug 1677608]dgp2007-05-151-3/+23
| | | FossilOrigin-Name: af5a9a06b806389a2acd4b740d3268d3d445f6d3
* [Tk Bug 1712081]dgp2007-05-149-149/+468
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * unix/Makefile.in: Updates to account for new and deleted files * win/Makefile.in: tkStubImg.c and tkOldTest.c. * win/makefile.bc: * win/makefile.vc: * generic/tkOldTest.c (new): New file used to create testing * generic/tkTest.c: commands for testing various Tk * tests/constraints.tcl: legacy interfaces where a separate * tests/image.test: compilation unit is needed in order to #define suitable macros during compilation. Only the effect of USE_OLD_IMAGE on Tk_CreateImageType() is currently tested, but more similar testing commands can be added to this same file. New constraint defined to detect presence of the image type provided by the new testing code, and a few tests added to exercise it. Having USE_OLD_IMAGE support tested by the default test suite should reduce chance of a recurrence of this bug. * doc/CrtImgType.3: Revised docs to better indicate the legacy * doc/CrtPhImgFmt.3: nature of the interfaces supported by USE_OLD_IMAGE. * generic/tkDecls.h: make genstubs * generic/tkStubInit.c: * generic/tk.decls: Reworked USE_OLD_IMAGE support to use * generic/tk.h: the same support mechanisms both with * generic/tkStubImg.c (deleted):and without a stub-enabled build. In each case, route the legacy calls to Tk_CreateImageType and Tk_CreatePhotoImageFormat through the Tk_CreateOldImageType and Tk_CreateOldPhotoImageFormat routines. Add those routines to the public stub table so they're available to a stub-enabled extension. Remove the definition of Tk_InitImageArgs() and use a macro to convert any calls to it in source code into a comment. * generic/tkImage.c: Removed the MODULE_SCOPE declarations that * generic/tkImgPhoto.c: broke USE_OLD_IMAGE support. FossilOrigin-Name: 3d8af15d18f3b3196cf838b1acc80354e5b00adc
* bug #1716613 propagate error from TkDeleteNamedFont.patthoyts2007-05-111-5/+5
| | | FossilOrigin-Name: b940710a354f0948e5ddbdf80301eb7df4658f9f
* * generic/tkFileFilter.c (AddClause): OSType endianness fixes.das2007-05-091-3/+5
| | | FossilOrigin-Name: e162ce0a1c4f741c8b8fec81363acde664bf2dbe
* TIP #145 implementationpatthoyts2007-05-042-23/+50
| | | FossilOrigin-Name: 5c1d2633c30b24b2068350342eb9d853e153dfa6
* Another pun warningdkf2007-05-031-2/+3
| | | FossilOrigin-Name: 453372b0e3d97324f4075a7f34b175bafdf3e242
* Fix more type pun warnings (those not found by my local version of GCC)dkf2007-05-031-2/+4
| | | FossilOrigin-Name: 3ca7875ba095ca07b0e1dfbe433830ca8513b229
* Missed a place (or rather not all versions of GCC catch it.)dkf2007-05-031-36/+21
| | | FossilOrigin-Name: 2bbd44fdaaff2f7fcb072d76862b335e7fa9a167
* Tackle [Bug 1711985]dkf2007-05-032-17/+16
| | | FossilOrigin-Name: 4440e13a9654ef13ef444975d65718503760fd39
* * generic/ttk/ttkTreeview.c(TagOptionSpecs): Use TK_OPTION_STRINGjenglish2007-04-281-4/+4
| | | | | | instead of TK_OPTION_FONT to avoid resource leak in tag management. FossilOrigin-Name: 1d2caf6fee392a711f86c1e4f8ed1f03fae83945
* * generic/tkCanvas.c: allow -selectforeground option to be None; adddas2007-04-239-58/+156
| | | | | | | | | | | | | | | | | | * 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()). FossilOrigin-Name: 8587f5212246ba9f459a48f58e15c59c4937832d
* Fix indentation errordkf2007-04-171-4/+4
| | | FossilOrigin-Name: 01922cf40c17c37bbd7b4820de61867ba5a8aabf
* Add in cast for boneheadedness in VC's handling of const qualifiersdkf2007-04-171-4/+5
| | | FossilOrigin-Name: 940015b1d987e8bf16e549dbcf5a8c57aece5e33