Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
7878 lines (5872 sloc) 270 KB
2002-12-27 David Gravereaux <>
* generic/tkText.h: ANSI unfriendly typedef for TkTextBTree
repaired for C++ compilers.
2002-12-27 Joe English <>
* unix/tkUnixWm.c (WaitForEvent): process Map and Unmap events
as well as Configure events during WaitFor{Configure|Map}Notify.
Fixes [Bug 578569] (WaitForMapNotify could process Map and Unmap
events out of order, making Tk think a window was unmapped when
it really wasn't).
2002-12-18 Todd M. Helfter <>
* doc/label.n: Fixed documentation of the -compound option to
the label widget. The option was simply missing from the
man page [Bug 577540]
2002-12-17 Donal K. Fellows <>
* doc/photo.n: Fixed documentation of the put subcommand to no
longer talk about files and to mention that you can use colour
names for working with solid colours. [Bug 640026]
2002-12-13 Don Porter <>
* generic/tkMain.c (Tk_Main): Call on Tcl*StartupScript*() routines
to store the startup script, if any. [Bug 616245].
2002-12-10 David Gravereaux <>
* win/ tclThreadTest.obj not required to link
tktest.exe [Bug 651396]
2002-12-08 Jeff Hobbs <>
* generic/tkEntry.c (ConfigureEntry): keep a flag to indicate when
a var is traced to prevent double-traces caused by configuring the
widget in traces with validation on. (dejong)
2002-12-07 Jeff Hobbs <>
* generic/tkInt.decls: add TkWinSetHINSTANCE decl
* generic/tkIntPlatDecls.h: regen
* generic/tkStubInit.c: regen
* win/tkWinInit.c (TkpInit): While init and cleanup aren't correct
* win/tkWinX.c (TkWinXInit): in DllMain, we had to specify the
* win/tkWin32Dll.c (DllMain): true HINSTANCE or the resources of a
dynamic Tk weren't being loaded correctly. Created a new function
TkWinSetHINSTANCE for this purpose.
2002-12-06 Jeff Hobbs <>
* win/tkWinX.c (TkWinXInit): Move cleanup into an exit handler
* win/tkWin32Dll.c (DllMain): to ensure that it will be called
* win/tkWinWm.c (TkWinWmCleanup): without having to unload the dll.
Also reset the static int initialized on cleanup to allow reinit.
2002-12-01 Mo DeJong <>
* tests/event.test (_keypress, _text_ind_to_x_y): Force focus to
widget in _keypress method to avoid problems with window managers
that use focus follows mouse. [Bug 526209]
2002-12-01 Mo DeJong <>
* tests/wm.test: Add wm-transient-6.3 to check that a transient
remains withdrawn when it is first withdrawn and then turned into
a transient.
* unix/tkUnixWm.c:
and set this flag whenever a window is explicitly withdrawn. This
fixes the test case added above. [Bug 644356]
2002-11-22 Jeff Hobbs <>
* tests/textDisp.test:
* generic/tkTextDisp.c (TkTextSeeCmd): handle see for unmapped
text displays. [Bug #641778]
2002-11-19 Jim Ingham <>
* macosx/tkMacOSXScrlbr.c (TkpDisplayScrollbar): If the
scrollbar width is set to 12 or less (but 12 is what you
should use) use the small metric scrollbar.
(UpdateControlValues): Fix thinko in setting off AUTO_ADJUST for
the place geometry manager.
2002-11-19 Jeff Hobbs <>
* unix/ add macosx/*.tcl (buildTkConfig.tcl in
particular) to the dist target.
2002-11-14 Mo DeJong <>
* generic/tkWindow.c (Tk_DestroyWindow, DeleteWindowsExitProc):
Add TkHalfdeadWindow type and halfdeadWindowList to keep track of
windows that were only partially deallocated before a call to
exit. Finish cleaning up these windows in DeleteWindowsExitProc.
Keep track of cleanup status in Tk_DestroyWindow so that a window
with a Destroy binding which calls exit will get fully destroyed.
* tests/window.test: Add Tk_DestroyWindow tests for an assortment
of half dead window cases. [Bug 630533]
2002-11-10 Daniel Steffen <>
* macosx/Wish.pbproj/project.pbxproj: fixed erroneous
removal of libtkstub before Wish was built.
2002-11-07 Mo DeJong <>
* tests/unixWm.test: Add short delay to test unixWm-51.7
to account for raise/lower changes in TIP 107. This allows
the test case to pass under Window Maker on Linux.
2002-11-07 Peter Spjuth <>
* tests/place.test:
* generic/tkPlace.c: place info did not return all settings,
and didn't make sure the result was a proper list.
Put '-in' first in result to be more consistent with how
grid/pack info behaves. [Bug #635025][Bug #532022]
2002-11-07 Daniel Steffen <>
* unix/ added macosx/README to dist target.
* macosx/Wish.pbproj/project.pbxproj: fix to 'wish' script
to allow it to work when not installed into '/'.
2002-11-06 Mo DeJong <>
* unix/configure: Regen.
* unix/tcl.m4: Update from Tcl.
* win/configure: Regen.
* win/ Check that AR, RANLIB, and RC
are found on the path when building with gcc.
2002-11-04 Daniel Steffen <>
* macosx/Wish.pbproj/project.pbxproj: added Wish linker flag
-headerpad_max_install_names to allow use of 'install_name_tool'.
fixed generation and redo_prebinding in the case where
Tk is not installed alongside Tcl.
2002-11-03 David Gravereaux <>
* win/winMain.c (Tcl_AppInit): Calls Registry_Init() and
are set.
* win/ linkexten option now sets the
TCL_USE_STATIC_PACKAGES macro which also adds the registry and
dde static lib files to the link of the shell. [Patch 479697]
* win/ Matches the one from Tcl.
* win/ More useful commentary.
2002-11-01 Andreas Kupries <>
* win/ (TCLREGLIBNAME): Updated to registry 1.1.
2002-10-29 Daniel Steffen <>
* macosx/README: added info on new package searching in
Frameworks directories.
2002-10-22 Jeff Hobbs <>
*** 8.4.1 TAGGED FOR RELEASE ***
* changes: updated for 8.4.1 release
2002-10-21 Daniel Steffen <>
* macosx/README: revised according to Jim's suggestions
* macosx/tkMacOSXAppInit.c: use standard PATH_MAX from <limits.h>
2002-10-18 Jeff Hobbs <>
* win/winMain.c (WinMain, main): remove obsolete SetMessageQueue call
* win/configure: Regen.
* win/tcl.m4 (SC_CONFIG_CFLAGS): Check for bug in Cygwin version
of windres and work around that case by passing a POSIX path
instead of a Windows native path. One can't always pass a POSIX
path because the mingw native toolchain accepts only Windows
native paths. (dejong)
* win/tkWinPort.h: define OPEN_MAX only if not defined.
[Patch #625472] (howell)
2002-10-18 Daniel Steffen <>
* mac/tkMacAppInit.c: removed tcltest dependency.
[Bug #592639] (porter)
2002-10-17 Jeff Hobbs <>
* tests/imgPhoto.test:
* generic/tkImgPhoto.c (ImgPhotoConfigureMaster): fix arg handling
for missing -format or -data options. [Bug #624974]
* tests/text.test: properly return the number of
* unix/tkUnixFont.c (ControlUtfProc): bytes consumed. [Bug #624732]
2002-10-17 Daniel Steffen <>
* macosx/README: info specific to building and running
TclTk on Mac OS X, answers to tcl-mac list FAQs.
* macosx/Makefile: permission fix after embedded install.
* macosx/Wish.pbproj/project.pbxproj: after install, fix
permissions of uninstalled products.
2002-10-17 Daniel Steffen <>
* macosx/Wish.pbproj/project.pbxproj: added TEXT document
type to plist so that files can be dragged onto Wish Shell.
* macosx/tkMacOSXInt.h:
* macosx/tkMacOSXInit.c:
* macosx/tkMacOSXFont.c: added private proc
TkMacOSXUseAntialiasedText() to enable/disable quickdraw
text antialiasing where available, default is enabled.
Added a linked boolean ::tk::mac::antialiasedtext with
write trace to allow control of antialiasing from tcl.
2002-10-16 Vince Darley <>
* macosx/tkMacOSXMenu.c: fix to accelerators shown in menus
with non-alphanumeric keys.
* macosx/tkMacOSXKeyEvent.c:
* macosx/tkMacOSXKeyboard.c: applied first patch from [Patch
#622582] to fix some of [Bug #616988]. Further work is needed
in this area, but this will let foreign keyboards at least work
reasonably with Tk.
2002-10-15 Jeff Hobbs <>
* unix/configure:
* unix/tcl.m4: add AIX-5 ppc build support. Remove unused
* win/configure:
* win/tcl.m4: Add --enable-shared=mem support.
2002-10-10 Peter Spjuth <>
* tests/grid.test:
* generic/tkGrid.c: The grid size was not updated properly
when removing a widget from a grid. [Bug #621241] (forssen)
2002-10-10 Jeff Hobbs <>
* tests/canvPs.test: tests for canvas embedded window ps generation
* generic/tkCanvWind.c (CanvasPsWindow): removed dead code loop.
* generic/tkCanvas.h: moved TkColormapData struct to tkCanvPs.c
* generic/tkCanvPs.c (TkImageGetColor): corrected bogus use of
TkColormapData on Windows (Windows now requires RGB pixel data
from image).
* win/tkWinImage.c (XGetImage, XGetImageZPixmap): added support
for generating ps for embedded widgets on canvases on Windows,
tested for 8, 16, 24 and 32-bit depths (XGetImageZPixmap not used).
* library/tk.tcl: simplified the adding of extra <ISO_Left_Tab>
and <hpBackTab> events to <<PrevWindow>>.
2002-10-09 Jeff Hobbs <>
* unix/README: doc'ed --enable-symbols options.
* unix/ comment docs
* unix/configure: regen
* unix/tcl.m4: replaced SC_ENABLE_MEMDEBUG with a more intelligent
SC_ENABLE_SYMBOLS that takes yes|no|mem|all as options now.
2002-10-09 Don Porter <>
* generic/tk.h: Added reminder comment to edit
macosx/Wish.pbproj/project.pbxproj when version number changes.
2002-10-09 Daniel Steffen <>
* macosx/Makefile: don't remove tclsh after building embedded.
* macosx/Wish.pbproj/project.pbxproj: bumped version to 8.4.1;
added missing library/mkpsenc.tcl to framework.
2002-10-09 Daniel Steffen <>
* generic/tkInt.decls(tkIntXlib): added XQueryTree declaration for
mac & aqua, since it's now called from ParentXId via Tk_HandleEvent.
* generic/tkIntXlibDecls.h:
* generic/tkStubInit.c: regen.
* mac/tkMacXStubs.c: added XQueryTree stub
* mac/tkMacEmbed.c (TkpUseWindow): check that container window
has -container option set (sync with other platforms).
* mac/tkMacBitmap.c:
* mac/tkMacFont.c:
* mac/tkMacSend.c:
* mac/tkMacTest.c:
* mac/tkMacWm.c: CONSTification.
* mac/tkMacProjects.sea.hqx: added tkStyle.c and tkUndo.c to
tk library projects.
2002-10-09 Donal K. Fellows <>
* generic/tkImgPhoto.c (ImgPhotoSetSize): Only error-out if we
fail to allocate a non-empty buffer; getting a NULL when we
allocate an empty buffer is no problem since nothing will look at
the value anyway. [Bug 619544]
Also tidied up file to take into account the fact that we're using
32 bits per pixel in the master to accommodate the alpha channel
as well as RGB.
2002-10-08 Jeff Hobbs <>
* tests/winButton.test: add option clear to top to prevent option
leakage from other tests causing problems. [Bug #582382]
* generic/tkPanedWindow.c (Tk_PanedWindowObjCmd): leave the
DestroyPanedWindow proc to free the pwPtr, add a Preserve
reference to the pwPtr->tkwin.
(DestroyPanedWindow): Release the pwPtr->tkwin.
* generic/tkFocus.c (TkFocusFilterEvent): Ignore event if we are
focusing into a dead window. [Bug #588831] (griffin)
2002-10-02 Jim Ingham <>
* macosx/tkMacOSXScrlbr.c (TkpDisplayScrollbar): Put the Tk scrollbar
pointer into the control reference data for the Mac scrollbar, so we
can get it out again in the ScrollbarActionProc.
2002-10-02 Jeff Hobbs <>
* generic/tkText.c (TextBlinkProc): don't blink the cursor unless
it is visible. [Bug #616791] [Patch #614474] (bonfield)
* tests/entry.test: added entry-20.7
* generic/tkEntry.c (EntryTextVarProc): check if the entry is
being deleted before handling an associated textvariable.
[Bug #607390 #617446]
2002-10-01 Donal K. Fellows <>
* tests/unixSelect.test (unixSelect-1.1[89]): Altered these tests
to work around [Bug #616923]
* unix/tkUnixSelect.c (SelRcvIncrProc,TkSelPropProc): It turns out
a much simpler and more robust solution is possible if we leverage
Tcl's encoding engine by using the same code path as for the
normal string selection. It might be a bit slower, but it should
be a lot more correct. [Bug #614650]
2002-09-30 Jeff Hobbs <>
* tests/panedwindow.test: added panedwindow-28.[12]
* generic/tkPanedWindow.c (PanedWindowCmdDeletedProc):
(Tk_PanedWindowObjCmd): when destroying the panedwindow, destroy
the proxy before the parent to avoid dependency conflicts.
[Bug #616589]
2002-09-30 Donal K. Fellows <>
* tests/unixSelect.test: Test for various things that can fail to
work in 8.4.0...
* unix/tkUnixSelect.c (TkSelPropProc,SelRcvIncrProc): Incremental
transfers of UTF8_STRING selections should now work; Tk will now
tag them with the right size and only transfer complete UTF8
characters. Previously, things only worked when the transfer
could only happen in one go, and even then not always. [Bug 614650]
* doc/bind.n: Doc-fix to mention that %A substitutes UNICODE
characters rather than ASCII ones. Tk's done this ever since 8.1
in any case; after all, it is the right thing to do.
2002-09-27 Don Porter <>
* README: Bumped to version 8.4.1 to avoid confusion
* generic/tk.h: of CVS snapshots with release 8.4.0.
* unix/README:
* unix/
* unix/tk.spec
* win/
* unix/configure: autoconf
* win/configure:
2002-09-26 Jeff Hobbs <>
* unix/configure: regen.
* unix/tcl.m4: improve AIX-4/5 64bit compilation support.
* unix/ add macosx subdir to dist target.
Do not generate .Z, only .gz and .zip in alldist target.
2002-09-18 Mumit Khan <>
Added basic Cygwin support.
* win/tcl.m4 (SC_PATH_TCLCONFIG): Support one-tree build.
(SC_PROG_TCLSH): Likewise.
(SC_CONFIG_CFLAGS): Assume real Cygwin port and remove -mno-cygwin
flags. Add -mwin32 to extra_cflags and extra_ldflags.
Remove ``-e _WinMain@16'' from LDFLAGS_WINDOW.
* win/configure: Regenerate.
* win/tkWinPort.h (tchar.h): Do not include on Cygwin.
(_T): Define for Cygwin.
* win/winMain.c (main): Conditionally define.
2002-09-26 Daniel Steffen <>
* macosx/Makefile: preserve environment value of INSTALL_ROOT.
When embedding only use deployment build. Force relink before
embedded build to ensure new linker flags are picked up.
* macosx/buildTkConfig.tcl (new):
* macosx/Wish.pbproj/project.pbxproj: synthesize
based on in Tcl.framework and
Add symbolic links to debug lib, stub libs and
in framework toplevel. Made tkIntXlibDecls.h a public header
since Headers/X11/Xlib.h includes it. Install wish8.4 script
that runs "Wish" and corresponding wish link.
Use tcl headers from built Tcl.framework instead of from tcl
source directory.
* macosx/tkMacOSXPort.h: added missing standard unix includes
and defines, similarly to tkUnixPort.h.
* macosx/tkMacOSXNotify.c: removed dependency on internal tcl
header "tclPort.h"
* unix/
* unix/install-sh: copied support for 'install-strip' target
over from tcl/unix/{,install-sh}
2002-09-22 Jim Ingham <>
* macosx/tkMacOSXScrlbr.c (UpdateControlValue): HiliteControl
doesn't give the proper "nothing to scroll" look on Mac OS X.
You have to set the min value greater than the max value to
get this.
2002-09-15 Mo DeJong <>
* unix/configure: Regen.
* unix/tcl.m4: Update from Tcl.
* unix/tkUnixEvent.c (TkpCloseDisplay): Use PEEK_XCLOSEIM
to examine the input context queue before invoking
XCloseIM. Generate an assert if there is an input
context that has not been freed.
[Patch 570902]
2002-09-13 Andreas Kupries <>
* generic/tk.h: Moved RC_INVOKED down so that tcl.h is still
included when running the resource compiler. <tcl.h> excludes the
unnecessary parts on its own. This reenables the Windows build. It
failed because the non-inclusion of tcl.h caused the resource
compiler to miss some vital macro definitions (TCL_FINAL_RELEASE,
2002-09-12 Daniel Steffen <>
* generic/tk.h:
* mac/tkMacApplication.r:
* mac/tkMacLibrary.r:
* mac/tkMacResource.r:
* macosx/tkAboutDlg.r:
* macosx/tkMacOSXApplication.r:
* macosx/tkMacOSXLibrary.r:
* macosx/tkMacOSXResource.r: unified use of the two equivalent
resource compiler header inclusion defines RC_INVOKED and
* macosx/tkMacOSXAppInit.c: improved detection of Wish startup
by the finder (by checking if stdin is /dev/null), in which
case we want to bring up the Tk console window.
* macosx/tkMacOSXHLEvents.c: added 'rapp' apple event handler.
2002-09-12 Daniel Steffen <>
* macosx/Wish.pbproj/project.pbxproj: reference & install
tk/generic/ instead of tk/library/
2002-09-10 Daniel Steffen <>
* macosx/Wish.pbproj/project.pbxproj: added backwards
compatibility for OSX 10.1 ProjectBuilder 2.0.
2002-09-10 Daniel Steffen <>
* unix/ added DYLIB_INSTALL_DIR variable for Darwin
and set it to default value ${LIB_RUNTIME_DIR}
* unix/tcl.m4 (Darwin): use DYLIB_INSTALL_DIR instead of
LIB_RUNTIME_DIR in the -install_name argument to ld.
* unix/configure: regen.
* macosx/Wish.pbproj/project.pbxproj:
* macosx/Makefile: added support for building Tcl as an embedded
framework, i.e. using an dyld install_name containing
@executable_path/../Frameworks via the new DYLIB_INSTALL_DIR
unix/Makefile variable.
2002-09-10 Jeff Hobbs <>
*** 8.4.0 TAGGED FOR RELEASE ***
2002-09-09 Jeff Hobbs <>
* macosx/tkMacOSXNotify.c (Tk_MacOSXSetupTkNotifier): corrected
Mac Jaguar event loop issue.
* library/tk.tcl: use command instead of control on Aqua bindings.
Force dialogs to appear below fixed native Mac menubar.
* macosx/tkMacOSXKeyEvent.c:
* macosx/tkMacOSXKeyboard.c: Keypress/release events for pure
modifier keys were not being passed to Tk.
Deadkey presses were inserting null characters into text windows.
Now they do nothing. (Still not ideal, but better than before!)
* macosx/tkMacOSXMenu.c: Allow more than 200 menus to exist -
increased to 2000.
* macosx/tkMacOSXMouseEvent.c: Bad interactions between floating
windows and ordinary ones. Ensure that local<->global coordinate
transformations are wrt to the correct window.
* macosx/tkMacOSXWm.c: Better error msg for 'wm attributes'.
Remove crash in 'wm transient'.
Add 'noActivates' and 'noUpdates' flags to unsupported command.
[Patch #606658] (darley)
* library/xmfbox.tcl (::tk::MotifFDialog_ActivateSEnt): corrected
msgcat code with XPG specifier. [Patch #606719] (miller)
2002-09-06 Don Porter <>
* tests/unixWm.test (unixWm-50.3): Constrained test that hangs
on Windows.
2002-09-05 Daniel Steffen <>
* macosx/Wish.pbproj/project.pbxproj: added overlooked missing
TK_PATCH_LEVEL version bump to 8.4.0.
2002-09-04 Andreas Kupries <>
* win/ (install-libraries): Added code section to
install the message catalogs. Copied same section from
unix/ and adapted it to the slightly different
2002-09-03 Jeff Hobbs <>
* library/button.tcl: further restrict buttons to not resetting
the "original" relief if it has changed in the interim. This
prevents code that simulated overrelief buttons from not working
in 8.4. [Bug #604270]
2002-09-03 Daniel Steffen <>
* macosx/Wish.pbproj/project.pbxproj: Bumped version number to
8.4.0 and updated copyright info.
2002-09-03 Vince Darley <>
* macosx/tkMacOSXWm.c: fix to 'wm attributes' error-handling bug.
2002-09-03 Don Porter <>
* changes: Updated for 8.4.0 release
2002-09-02 Jeff Hobbs <>
* tests/cursor.test: reverted 2002-08-31 change for OS X to use
'heart' cursor because 'arrow' on windows has a pre-skewed use
count. [Bug #602667]
* tests/button.test: added button-14.1
* win/tkWinButton.c (TkpComputeButtonGeometry): correct Win button
sizing to be equal for one-line buttons with -height of 0 or 1, as
well as -height 0 buttons with empty text and no image, which
should be the same as single-line text buttons. [Bug #565485]
* library/button.tcl (::tk::ButtonLeave): correctly restore state
of button to normal for unix bindings. [Bug #597920]
* doc/tk.n: added tk windowingsystem docs.
* tests/wm.test:
* unix/tkUnixWm.c: remove possible 2-second delay in 'raise'.
[Patch #601518] (english) TIP #107
* unix/tcl.m4: add support for 64-bit builds on HP-11 with gcc.
* unix/ make sure to substitute LD_LIBRARY_PATH_VAR.
* unix/configure: regend
* README: Bumped version number to 8.4.0
* generic/tk.h:
* unix/configure:
* unix/
* unix/tk.spec:
* win/configure:
* win/
* generic/tkCmds.c:
* generic/tkWindow.c: made 'tk' available in safe interpreters,
but only the caret and windowingsystem subcommands may be called.
* tests/safe.test (safe-1.2): noted that tk is now available in
safe interps, but not the appname/scaling subcommands.
* tests/tk.test (tk-1.2): noted new tk windowingsystem subcommand
2002-08-31 Daniel Steffen <>
* unix/tcl.m4: update from Tcl
* unix/ import of TK_SHLIB_LD_EXTRAS for Tk library
specific linker settings. Added use of new LD_LIBRARY_PATH_VAR.
* unix/configure: regen
2002-08-31 Daniel Steffen <>
*** macosx-8-4-branch merged into the mainline [tcl patch #602770] ***
* generic/tk.decls:
* generic/tkInt.decls: added new "aqua" specific entries to the
stubs tables. Changed all "unix" entries to "x11" to allow us to
distinguish and build both "aqua" on MacOSX and "x11" on MacOSX.
* generic/tk.h: added a #ifnded RESOURCE_INCLUDED so that tk.h can
be passed to the resource compiler.
* generic/tkCmds.c (Tk_TkObjCmd): added [tk windowingsystem]
subcommand: returns "x11" when running on X11, "win32" on Windows,
"classic" on MacOS9 and "aqua" on MacOSX Aqua (i.e. Carbon)
* generic/tkFont.c (TkFontGetFirstTextLayout): new private function
returning the first chunk of a Tk_TextLayout, i.e. until the first
font change on the first line (or the whole first line if there is
no such font change).
* generic/tkMain.c: made Tcl_ThreadDataKey static
* library/demos/puzzle.tcl: fixed button metrics for aqua
* tests/cursor.test: check for presence of arrow cursor instead of
heart cursor
* xlib/xcolors.c: changed xColors static initialization to more
standard C
* macosx/Wish.pbproj/jingham.pbxuser (new):
* macosx/Wish.pbproj/project.pbxproj (new): project for Apple's
ProjectBuilder IDE.
* macosx/Makefile (new): simple makefile for building the project
from the command line via the ProjectBuilder tool 'pbxbuild'.
* macosx/tkMacOSXAppInit.c (new): macosx specific AppInit looking
for a AppMain.tcl file in its bundled Resources/Scripts folder. If
present, argv[1] is set to that file and the Scripts folder is
added to the auto_path. This allows tk apps to embed scripts within
their bundle directory structure.
* macosx/tkMacOSXInit.c (new): macosx adapted version of
tkUnixInit.c: we initialize & cache the Carbon native encoding
(e.g. 'macRoman') and try to find the tk script library files
inside Tk packaged as a framework.
* macosx/tkMacOSXNotify.c (new): new macosx specific merged
Carbon/select-based notifier.
* macosx/tkMacOSXEvent.c (new):
* macosx/tkMacOSXEvent.h (new):
* macosx/tkMacOSXKeyEvent.c (new):
* macosx/tkMacOSXMouseEvent.c (new):
* macosx/tkMacOSXWindowEvent.c (new): new macosx specific event
handling functionality.
* macosx/tkMacOSX.h (new):
* macosx/tkMacOSXBitmap.c (new):
* macosx/tkMacOSXButton.c (new):
* macosx/tkMacOSXClipboard.c (new):
* macosx/tkMacOSXColor.c (new):
* macosx/tkMacOSXConfig.c (new):
* macosx/tkMacOSXCursor.c (new):
* macosx/tkMacOSXDefault.h (new):
* macosx/tkMacOSXDialog.c (new):
* macosx/tkMacOSXDraw.c (new):
* macosx/tkMacOSXEmbed.c (new):
* macosx/tkMacOSXFont.c (new):
* macosx/tkMacOSXHLEvents.c (new):
* macosx/tkMacOSXInt.h (new):
* macosx/tkMacOSXKeyboard.c (new):
* macosx/tkMacOSXMenu.c (new):
* macosx/tkMacOSXMenubutton.c (new):
* macosx/tkMacOSXMenus.c (new):
* macosx/tkMacOSXPort.h (new):
* macosx/tkMacOSXRegion.c (new):
* macosx/tkMacOSXScale.c (new):
* macosx/tkMacOSXScrlbr.c (new):
* macosx/tkMacOSXSubwindows.c (new):
* macosx/tkMacOSXTest.c (new):
* macosx/tkMacOSXUtil.c (new):
* macosx/tkMacOSXUtil.h (new):
* macosx/tkMacOSXWm.c (new):
* macosx/tkMacOSXWm.h (new):
* macosx/tkMacOSXXStubs.c (new): macosx ports of classic mac Tk
implementation in tk/mac.
* macosx/tkMacOSXSend.c (new): only send to local interp
implemented currently.
* macosx/tkMacOSXDebug.h (new):
* macosx/tkMacOSXDebug.c (new): new macosx specific functions for
debugging MacOS events, regions, etc.
* macosx/tkAboutDlg.r (new):
* macosx/tkMacOSXApplication.r (new):
* macosx/tkMacOSXCursors.r (new):
* macosx/tkMacOSXLibrary.r (new):
* macosx/tkMacOSXMenu.r (new):
* macosx/tkMacOSXResource.r (new):
* macosx/tkMacOSXXCursors.r (new):
* macosx/tclets.r (new): sources for Rez resource compiler.
* macosx/Wish.icns (new): Wish application icon.
* generic/tk.h:
* generic/default.h:
* generic/tkBind.c:
* generic/tkCmds.c:
* generic/tkGrab.c:
* generic/tkPointer.c:
* generic/tkPort.h:
* generic/tkSelect.c:
* generic/tkStubLib.c:
* generic/tkTest.c:
* generic/tkText.c:
* generic/tkWindow.c:
* unix/tkUnix3d.c:
* xlib/xgc.c:
* xlib/X11/X.h:
* xlib/X11/Xlib.h:
* xlib/X11/Xutil.h: added #includes and #ifdefs for macosx
* library/bgerror.tcl:
* library/button.tcl:
* library/console.tcl:
* library/dialog.tcl:
* library/entry.tcl:
* library/listbox.tcl:
* library/menu.tcl:
* library/msgbox.tcl:
* library/scrlbar.tcl:
* library/spinbox.tcl:
* library/text.tcl:
* library/tk.tcl:
* library/demos/menu.tcl:
* library/demos/menubu.tcl:
* library/demos/widget: check [tk windowingsystem] instead of
and/or in addition to $tcl_platform(platform).
* generic/tkInt.h:
* mac/tkMacBitmap.c:
* mac/tkMacWm.c: added missing CONSTification
* generic/tkIntDecls.h:
* generic/tkIntPlatDecls.h:
* generic/tkIntXlibDecls.h:
* generic/tkPlatDecls.h:
* generic/tkStubInit.c: regen
2002-08-27 D. Richard Hipp <>
* doc/checkbutton.n: [Bug 582457] Fix the -offrelief option so
* doc/radiobutton.n: that when -offrelief is flat and -relief is
* mac/tkMacButton.c: sunken and -overrelief is raised, buttons
* unix/tkUnixButton.c: work look toolbar buttons under Windows.
* win/tkWinButton.c: See also: TIP #82.
2002-08-26 Don Porter <>
* win/ Removed dependence on the (parts of) the
* win/winMain.c: tcltest executable on Windows. It was not
used, and the dependency complicated the Makefile. [Bug 592638].
2002-08-20 Don Porter <>
* README: Bumped version number to 8.4b3 to distinguish
* generic/tk.h: HEAD from the 8.4b2 release.
* unix/
* win/
* unix/tk.spec:
* unix/configure: autoconf
* win/configure:
* generic/tk.h: Added compile-time check that the tcl.h header file
#included by Tk 8.4 is one from Tcl 8.4. This is needed to be sure
that new #defines like CONST84 are available. [Bug 597432].
2002-08-16 Jeff Hobbs <>
* unix/ (install-binaries): simplified pkgIndex.tcl
file created on installation.
* win/ (install-binaries): corrected and simplified
creation of pkgIndex.tcl file on installation.
2002-08-14 Vince Darley <>
* win/tkWinDialog.c:
* win/ broken compilation and link from changes
Hobbs-08-07 fixed.
* win/tkWinTest.c: CONST problem resolved.
2002-08-13 Jeff Hobbs <>
* library/button.tcl: change the bindings to use Priv($w,relief)
instead of just Priv(relief). This ensures that neighboring
buttons don't confuse (over)relief settings.
2002-08-13 Reinhard Max <>
* unix/tkUnixSend.c (Tk_SetAppName): Fixed a compiler warning.
2002-08-12 Donal K. Fellows <>
* library/demos/image2.tcl: Tweaked the behaviour of the directory
box on resize, as resizing of the overall window tends to be
common given the sample images.
2002-08-08 Mo DeJong <>
* unix/tkUnixWm.c (WmTransientCmd): Apply fix for
wm transient assertion error that was applied
to tkWinWm.c for Tk Bug #592201.
2002-08-08 Mo DeJong <>
* tests/wm.test: Add deleteWindows at start of
new transient tests so they do not fail if the
toplevels already exist.
* unix/tkUnixWm.c: Revert patch for Tk Bug #592201
which incorrectly removed numTransients member.
2002-08-08 Joe English <>
* unix/tkUnixWm.c:
* win/tkWinWm.c:
* tests/wm.test: Fix for Tk Bug #592201 "wm transient fails with
two masters"; fixes panic after a transient window is reassigned
to new master and either master is subsequently destroyed.
2002-08-08 Don Porter <>
* tests/unixWm.test: Corrected packaging of unixWm-50.3 so that
[setupbg] and [cleanupbg] always balance, no matter what tests
are skipped.
2002-08-08 Reinhard Max <>
* unix/ Fixed typos in DISTNAME, and ZIPNAME.
2002-08-08 Jeff Hobbs <>
*** 8.4b2 TAGGED FOR RELEASE ***
* generic/tkButton.c (TkButtonWorldChanged): added GCFont handling
to the disabledGc of buttons when compound != none. The drawing
appears to be incorrect across platforms still. [Bug #477740]
* generic/tkImgGIF.c (FileReadGIF): fixed -from handling for gifs
[Bug #467524] (obermeier)
2002-08-07 Jeff Hobbs <>
* generic/tkCanvUtil.c (TkSmoothParseProc): recognize the built-in
bezier method by name. [Bug #578654]
* doc/canvas.n: update to note that -smooth really doesn't take
or return just booleans.
* win/tkWinMenu.c (TkpSetWindowMenuBar): fixed logic bug in when
to idle call ReconfigureWindowsMenu.
* doc/GetBitmap.3: removed doc refs to deprecated
Tk_GetBitmapFromData. [Bug #590379]
* generic/tkPanedWindow.c (Tk_PanedWindowObjCmd):
* library/panedwindow.tcl: changed class from PanedWindow to
Panedwindow to not conflict with existing bwidgets, but also to be
more regular with other names used in the core.
* tests/panedwindow.test: added -text foobar to some test buttons
to enable correct testing of panedwindow across platforms.
[Bug #582370]
* win/tkWinDialog.c: enabled use of the updated native Windows
directory browser (tk_chooseDirectory). This does require
shell32.dll v4.71 or greater. [Patch #468139]
* win/configure:
* win/tcl.m4: added shell32 to libs for updated native Windows
tk_chooseDirectory dialog.
2002-08-06 Donal K. Fellows <>
* generic/tkPanedWindow.c (RESIZE_PENDING): Separated out flag for
indicating that a resize needs to be issued.
(PanedWindowReqProc): Do the old behaviour when the panedwindow is
not mapped; easiest way of making the test suite pass while still
preserving improved behaviour in the face of children whose size
is not known immediately.
2002-08-06 Don Porter <>
* tests/defs.tcl: removed file. No longer needed now that Tk is
using the tcltest package to do its testing.
2002-08-05 Don Porter <>
* win/tkWinFont.c: Additional changes to fix CONST warnings on
* win/tkWinWM.c: Windows due to latest patch. Tks Vince Darley.
* doc/3DBorder.3: Applied companion patch for Tcl Patch 585105,
* doc/BindTable.3: updating Tk to use Tcl 8.4's fully CONST-ified
* doc/ConfigWidg.3: interface, and fully CONSTifying Tk at the
* doc/CrtImgType.3: same time.
* doc/CrtWindow.3:
* doc/DeleteImg.3: This patch includes purging Tk of its last
* doc/FindPhoto.3: direct access to interp->result. [Bug 589853]
* doc/GetAnchor.3:
* doc/GetBitmap.3: The substantial changes include copying
* doc/GetCapStyl.3: event sequence strings into Tcl_DStrings
* doc/GetClrmap.3: in tkBind.c, and copying [text] indices into
* doc/GetColor.3: Tcl_DStrings because parsing them involved
* doc/GetCursor.3: overwriting them. If this causes performance
* doc/GetFont.3: trouble, that can be resolved by further
* doc/GetImage.3: converting them to Tcl_Obj's.
* doc/GetJoinStl.3:
* doc/GetJustify.3: The #defines USE_NON_CONST and USE_COMPAT_CONST
* doc/GetOption.3: have the same effect for Tk as they do for Tcl.
* doc/GetRelief.3: (They actually change tcl.h)
* doc/GetScroll.3:
* doc/GetVisual.3:
* doc/InternAtom.3:
* doc/NameOfImg.3:
* doc/SetAppName.3:
* doc/WindowId.3:
* generic/tk.decls:
* generic/tk.h:
* generic/tk3d.c:
* generic/tkAtom.c:
* generic/tkBind.c:
* generic/tkBitmap.c:
* generic/tkButton.c:
* generic/tkCanvArc.c:
* generic/tkCanvBmap.c:
* generic/tkCanvImg.c:
* generic/tkCanvLine.c:
* generic/tkCanvPoly.c:
* generic/tkCanvPs.c:
* generic/tkCanvText.c:
* generic/tkCanvUtil.c:
* generic/tkCanvWind.c:
* generic/tkCanvas.c:
* generic/tkCanvas.h:
* generic/tkClipboard.c:
* generic/tkCmds.c:
* generic/tkColor.c:
* generic/tkConfig.c:
* generic/tkConsole.c:
* generic/tkCursor.c:
* generic/tkDecls.h:
* generic/tkEntry.c:
* generic/tkFont.c:
* generic/tkFrame.c:
* generic/tkGet.c:
* generic/tkGrid.c:
* generic/tkImage.c:
* generic/tkImgBmap.c:
* generic/tkImgPhoto.c:
* generic/tkInt.decls:
* generic/tkInt.h:
* generic/tkIntDecls.h:
* generic/tkIntPlatDecls.h:
* generic/tkListbox.c:
* generic/tkMenu.c:
* generic/tkMenubutton.c:
* generic/tkMessage.c:
* generic/tkOldConfig.c:
* generic/tkOption.c:
* generic/tkRectOval.c:
* generic/tkScale.c:
* generic/tkScrollbar.c:
* generic/tkSelect.c:
* generic/tkStyle.c:
* generic/tkTest.c:
* generic/tkText.c:
* generic/tkText.h:
* generic/tkTextBTree.c:
* generic/tkTextDisp.c:
* generic/tkTextImage.c:
* generic/tkTextIndex.c:
* generic/tkTextMark.c:
* generic/tkTextTag.c:
* generic/tkTextWind.c:
* generic/tkUtil.c:
* generic/tkVisual.c:
* generic/tkWindow.c:
* mac/tkMacConfig.c:
* mac/tkMacCursor.c:
* mac/tkMacEmbed.c:
* mac/tkMacSend.c:
* unix/tkUnixConfig.c:
* unix/tkUnixCursor.c:
* unix/tkUnixEmbed.c:
* unix/tkUnixFont.c:
* unix/tkUnixSelect.c:
* unix/tkUnixSend.c:
* unix/tkUnixWm.c:
* win/tkWinConfig.c:
* win/tkWinCursor.c:
* win/tkWinEmbed.c:
* win/tkWinMenu.c:
* win/tkWinSend.c:
2002-08-02 Donal K. Fellows <>
* generic/tkPanedWindow.c (DestroyPanedWindow): Idle calls need to
be deleted on destruction of the window, or things can *really* go
2002-07-31 Donal K. Fellows <>
* generic/tkPanedWindow.c (PanedWindowReqProc): Postpone pane
arrangement until idle, as is done in other window managers, to
fix problems with size calculations when the children don't
already know their sizes anyway.
* unix/configure: Regen.
* unix/tcl.m4: Update from Tcl.
2002-07-29 Mo DeJong <>
* unix/configure: Regen.
* unix/ Remove code that was setting
account for cc vs ld linking. Tcl now handles this.
* unix/tcl.m4: Update from Tcl.
2002-07-27 Mo DeJong <>
to support changes in tcl.m4 related to library builds.
Use MAKE_LIB macro to avoid dealing with RANLIB issues.
Use new INSTALL_LIB and INSTALL_STUB_LIB substs to
deal with ranlib issues when install libraries.
* unix/configure: Regen.
* unix/ Remove AC_PROG_RANLIB since
this is done by tcl.m4 now. Define CC_SEARCH_FLAGS
instead of TK_CC_SEARCH_FLAGS and so on.
Use MAKE_LIB and MAKE_STUB_LIB from tcl.m4.
Remove AC_SUBST calls that are no done in tcl.m4.
* unix/tcl.m4: Update from Tcl.
* unix/ Subst CC_SEARCH_FLAGS and
2002-07-25 Peter Spjuth <>
* generic/tkInt.h:
* generic/tkWindow.c:
* mac/tkMacWm.c:
* unix/tkUnixWm.c:
* win/tkWinWm.c:
* tests/wm.test:
* tests/winWm.test:
* tests/unixWm.test: Objectifed wm. [Patch #564521]
Note: At this point the Mac file is completely untested
and may not even compile.
2002-07-25 Jeff Hobbs <>
* tests/spinbox.test: added spinbox-22.[1-3]
* generic/tkEntry.c (ConfigureEntry): made the textvariable value
take precedence over changed -from/-to values, unless it must be
constrained. [Bug #559078]
* library/spinbox.tcl (MouseSelect): when not in the entry, just
return instead of invoking - ButtonUp handles invoking already.
[Bug #499168]
* library/tk.tcl (RestoreFocusGrab): handle the case where the
FocusGrab info is not set. [Bug #553283]
2002-07-24 Jeff Hobbs <>
* tests/canvas.test: added canvas-14.[1-6]
* generic/tkCanvas.c (CanvasWidgetCmd): corrected handling of
'scan' subcommand args. Also removed early return cases to goto
done instead where the canvasPtr would be Tcl_Release'd. This may
solve other problems with unreleased canvasPtr's. [Bug #581560]
* win/tkWinButton.c (TkpDisplayButton): corrected display of focus
ring around the actual text when the button is a compound button.
[Bug #583691]
* unix/README: Corrected notes about running user interactive Tk
tests. [Bug #462320]
* generic/tkText.c (TextEditUndo): set isDirtyIncrement to -1 when
reverting to note proper "dirtiness". [Bug #580362] (callewaert)
* generic/tkEntry.c (DisplayEntry): correct cursor position before
calling Tk_SetCaretPos. (yamamoto)
2002-07-23 Mo DeJong <>
* unix/configure: Regen.
* unix/tcl.m4: Update from Tcl.
2002-07-22 Mo DeJong <>
* library/choosedir.tcl (tk::dialog::file::chooseDir):
* library/clrpick.tcl (tk::dialog::file::chooseDir):
* library/msgbox.tcl (tk::MessageBox):
* library/tkfbox.tcl (tk::dialog::file):
* library/xmfbox.tcl (tk::MotifFDialog):
Revert [Tk patch 568278]. The transient window workaround
is no longer needed since the fix for [Tk bug 570764]
solved the problem for withdrawn transients.
2002-07-19 Mo DeJong <>
* unix/configure:
* unix/
* win/configure:
* win/ Add AC_PREREQ(2.13) in an attempt
to make it more clear that the configure scripts
must be generated with autoconf version 2.13.
[Tcl Bug 583573]
2002-07-19 D. Richard Hipp <>
* library/mkpsec.tcl: Fix a bug that was causing postscript generation
to fail under Win2K.
2002-07-18 Reinhard Max <>
* unix/tkUnixSend.c: Using Tcl_GetTime instead of TclpGetTime.
2002-07-17 Reinhard Max <>
* library/unsupported.tcl: Extended ExposePrivateVariable, and
ExposePrivateCommand to accept patterns as well.
2002-07-17 Don Porter <>
* generic/tkFont.c: Corrected reversed logic in assert -> panic
conversion. [Bug 582799]
2002-07-16 Mo DeJong <>
* generic/tkFont.c (TkFontPkgFree): Call panic instead
of assert since assert is not used in the rest of Tk.
[Tk bug 579651]
2002-07-16 Mo DeJong <>
* unix/
* win/ Add a more descriptive warning
in the event `make genstubs` needs to be rerun.
2002-07-16 Vince Darley <>
* win/tkWinWm.c:
* doc/wm.n: fix for part of [Bug 581627], and made iconbitmap
code on Windows more flexible about reading in icons [Bug
2002-07-15 David Gravereaux <>
* win/makefile.bc (new): re-add of the borland makefile. Submitted
by Helmut Giese <>. This needs testing, still.
2002-07-15 Don Porter <>
* Fixes for [Bug 581627, 581795].
* generic/tkTest.c: Test commands not supported on non-Unix
platforms should not be defined there in the first place.
* tests/constraints.tcl: Fixed "secureserver" constraint.
* tests/unixWm.test: Some tests needed "unix" constraint.
* win/tkWinWm.c: Typo in error message.
2002-07-14 Don Porter <>
* tests/event.test: Fixes to enable testing of only userInteraction
* tests/visual_bb.test: tests.
* README: Bumped HEAD to version 8.4b2 in order to
* generic/tk.h: distinguish it from the 8.4b1 release.
* unix/configure*: Also extended LOCALES to cover all message
* unix/tk.spec: catalogs.
* win/configure*:
* tests/focustTcl.test: Conversion bug: Corrected backwards logic.
* tests/imgPhoto.test: Conversion bug: overwrote unix/README.
* tests/all.tcl: Completed conversion of Tk test suite
* tests/constraints.tcl: to use tcltest.
* tests/[b-v]*.test:
* unix/
2002-07-12 Don Porter <>
* tests/constraints.tcl: Converted more files to tcltest and
* tests/[g-x]*.test: factored out common code.
2002-07-11 Don Porter <>
* tests/canvPsImg.tcl: Converted several files in the
* tests/constraints.tcl (new file): Tk test suite for testing by
* tests/[r-x]*.test: tcltest 2.1.
* unix/
2002-07-11 Jeff Hobbs <>
* win/tkWinDialog.c (Tk_ChooseDirectoryObjCmd): initialize
utfTitle to NULL, add a few more notes about limitations of
possible new Tk_ChooseDirectoryObjCmd function.
2002-07-11 Donal K. Fellows <>
* tests/imgPhoto.test (imgPhoto-15.1): Added test of mem-alloc
failure, but this is non-portable.
* generic/tkImgPhoto.c (ImgPhotoSetSize): Allowed this function to
fail when it can't allocate enough memory. Note that not all the
places that call it can fail nicely without API changes; some
still panic but at least some of the potential failures are now
handled gracefully.
* tests/visual_bb.test (lpr): Stopped this from relying on
external files; direct piping is much more flexible for this
2002-07-09 Don Porter <>
* generic/tkTest.c: Removed unused dependence on TclThread_Init()
* tests/defs.tcl: and [testthread]. [Bug 578165, Tcl Bug 531413]
2002-07-08 David Gravereaux <>
* unix/ Added missing win/lamp.bmp to the dist
2002-07-05 Jeff Hobbs <>
*** 8.4b1 TAGGED FOR RELEASE ***
2002-07-04 Donal K. Fellows <>
* library/bgerror.tcl (bgerror): Stopped the bgerror dialog from
getting wider than the screen; in theory really long messages
could make it become taller than the screen now, but that's much
less likely to happen. Also trimmed a little bit of internal
space so that the icon-message gap is the same as the icon-frame
and message-frame gaps.
2002-07-01 Don Porter <>
* unix/configure:
* unix/tcl.m4: Updated to latest tcl.m4 from Tcl.
2002-06-28 Donal K. Fellows <>
* library/msgbox.tcl (MessageBox): Force all non-button widgets to
have the same background as the containing toplevel. [Bug #552515]
2002-06-27 Andreas Kupries <>
* win/ (install-binaries): Fix of troubled Makefile
quoting introduced by [Patch 521356] causing the installed to
2002-06-25 Don Porter <>
* unix/tkUnixFont.c: (Tk_DrawChars) silence compiler warning.
2002-06-26 David Gravereaux <>
* generic/tkStyle.c: <eol> of the committing cvs client didn't
match the <eol> of the file itself. Windows users where getting
\r\r\n. Problem fixed.
2002-06-26 Anton Kovalenko <>
* generic/tkFont.c (TkTextLayoutToPostscript): fixed potential
buffer overflow which could be intentionally triggered from
within safe interpreter -- malicious applet could modify
tk::psglyphs array.
2002-06-26 Anton Kovalenko <>
* tests/font.test (font-32.1): updated this test
to expect the new behavior of canvas postscript.
2002-06-25 Don Porter <>
* unix/ Expanded install-binaries target to create
* win/ and install a pkgIndex.tcl file to enable
Tk as a loadable package [Patch 521356]
2002-06-25 Anton Kovalenko <>
* library/mkpsenc.tcl: (added) utilities to generate
Postscript prolog for current system encoding.
* generic/tkCanvPs.c (TkCanvPostscriptCmd): now
uses mkpsenc.tcl to generate Postscript prolog.
* generic/tkFont.c (TkTextLayoutToPostscript): modified
according to patch #546910. Now outputs system-encoded
characters (for unibyte) or Adobe glyph names (for
multibyte or outside-locale).
* tests/canvText.test (canvText-17.1): updated this test
to expect the new behavior of canvas postscript.
2002-06-25 Reinhard Max <>
* unix/tcl.m4: New macro SC_CONFIG_MANPAGES.
* unix/ Added support for symlinks and compression
* unix/ when installing the manpages. [Patch 518052]
Default is still hardlinks and no compression.
* unix/mkLinks: generated
* unix/configure:
* unix/README: Added documentation for the new features.
* unix/configure: Replaced ${exec_prefix}/lib
* unix/tcl.m4 (SC_PATH_TCLCONFIG): by ${libdir}.
2002-06-24 Mo DeJong <>
* tests/winWm.test: Verify that both an unmapped
and already mapped toplevel are raised and receive
the focus when deiconified.
* tests/wm.test: Add wm deiconify tests. Check that
a toplevel that has never been mapped is not mapped
by the deiconify command since it should be done
at idle by MapFrame.
* win/tkWinWm.c (Tk_WmCmd): Check the WM_NEVER_MAPPED
flag while processing the wm deiconify command.
The WM_UPDATE_PENDING flag should never be set when
WM_NEVER_MAPPED is set, but double check so that
the implementation is more explicit and matches
the comment just above.
Return without invoking TkWmRestackToplevel or
TkSetFocusWin on a toplevel that has never been
mapped. This fixes a bug where a toplevel is mapped
with the wrong size and is then resized by the
idle call to MapFrame. [Tk bug 233150]
2002-06-23 Jeff Hobbs <>
* win/tkWinWm.c (UpdateGeometryInfo): remove the check for a null
wrapper introduced in r1.41 on 2002-06-15 because it prevented
geometry setting from taking effect if the window was not on the
screen. Another check may go in it's place as IsIconic and
IsZoomed should not be passed NULL.
2002-06-22 Mo DeJong <>
* tests/wm.test: Remove invalid minsize test. Add update
calls to wm transient tests so that idle handlers get
run. This is needed to get the tests to pass under Win32.
* unix/tkUnixWm.c (WmWaitMapProc): Move the special
transient withdrawn check into the if body to
make it easier to set a breakpoint on this test
inside a debugger. No functional changes.
* win/tkWinWm.c (WmWaitVisibilityOrMapProc): Ditto.
2002-06-22 Jeff Hobbs <>
* doc/wm.n: TIP #95 Windows implementation and
* mac/tkMacWm.c (Tk_WmCmd): docs with mac and unix stubs.
* unix/tkUnixWm.c (Tk_WmCmd):
* win/tkWinWm.c (Tk_WmCmd):
* tests/unixWm.test:
* tests/winWm.test: more wm attr tests will be needed.
* generic/tkGrid.c (GridReqProc): check that gridPtr is not NULL
(may be when embedded). [Bug #548791] (halliday)
* generic/tkFont.c (TkFontPkgFree): changed panic on freeing fonts
to an assert, and wrapped panic in #ifdef PURIFY. [Bug #568701]
* library/menu.tcl: corrected menus from being posted offscreen
on Windows. [Bug #464451] (darley)
* library/console.tcl: corrected the defaultPrompt substitution
[Bug #553207] and made Tab a default expansion key (like Escape).
* win/tkWinEmbed.c (EmbedWindowDeleted): added a check for a null
containerPtr. The core of this bug is likely elsewhere. [Bug #476176]
* doc/text.n: TIP #93 implementation that
* generic/tkText.c (TextWidgetCmd): enhances the text get and
* generic/tkTextIndex.c (TkTextGetIndex): delete methods to accept
* tests/text.test: multiple range pairs.
This handles the delete case in an atomic, fixed-index fashion.
2002-06-21 Mo DeJong <>
* tests/wm.test: Add tests to make sure a withdrawn
transient does not get remapped by state changes
in the master.
* unix/tkUnixWm.c (Tk_WmCmd, WmWaitMapProc):
* win/tkWinWm.c (Tk_WmCmd, WmWaitVisibilityOrMapProc):
Add a WM_TRANSIENT_WITHDRAWN flag that gets set by the
withdraw, deiconify, or state wm subcommands. Check
this flag before mapping a transient when processing
a MapNotify event. [Tk bug 570764]
2002-06-21 Donal K. Fellows <>
* unix/tk.spec (version), README, win/, unix/
* generic/tk.h (TK_RELEASE_*, TK_PATCH_LEVEL): Bumped to beta1.
2002-06-21 Jeff Hobbs <>
* doc/text.n: TIP #104 implementation which generalizes the
* generic/tkText.c: undo/redo stack to not be tied solely to the
* generic/tkText.h: text widget. The APIs are still private.
* generic/tkUndo.c: This also adds a stack limiting ability and
* generic/tkUndo.h: a -maxundo option to the text widget (in
* library/text.tcl: addition to the options from TIP #26) should
* mac/tkMacDefault.h: users want to limit the undo/redo stack
* tests/text.test: (should not be necessary in most cases).
* unix/ [Patch #554763] (callewart)
* unix/tkUnixDefault.h:
* win/
* win/
* win/tkWinDefault.h:
2002-06-21 Don Porter <>
* unix/ Removed unnecessary dependence of tktest
* unix/tkAppInit.c: executable on the tcltest executable on
Unix. If there are similar dependencies on other platforms, they
can probably be removed as well. [Bug 572134].
2002-06-20 Jeff Hobbs <>
* doc/listbox.n:
* generic/tkListbox.c (DisplayListbox):
* mac/tkMacDefault.h: TIP #94 implementation adding -activestyle
* tests/listbox.test: option to the listbox. This adds the ability
* unix/tkUnixDefault.h: to have listboxes look native on Windows, and
* win/tkWinDefault.h: "nicer" elsewhere using the 'dotbox' style.
2002-06-20 Peter Spjuth <>
* generic/tkGrid.c: Corrected the test for grid propagate change.
[Bug #571433]
2002-06-19 Jeff Hobbs <>
* tests/panedwindow.test:
* generic/tkPanedWindow.c: ensure that sash index is lower bounds
checked. [Bug #548727]
2002-06-19 Mo DeJong <>
* generic/tkClipboard.c (TkClipCleanup): Add code
to set dispPtr->clipWindow to NULL, this was
accidently removed by last commit. Fixes
a crash while running the tests under win32.
2002-06-19 Mo DeJong <>
* generic/tkBind.c (TkBindDeadWindow):
Handle case where Tk_DestroyWindow is invoked
on clipboard and send windows.
* generic/tkClipboard.c (TkClipCleanup):
Invoke Tk_DestroyWindow to cleanup the
dispPtr->clipWindow. Call Tcl_Preserve
and Tcl_Release on the window to avoid an
invalid memory ref on shutdown.
* generic/tkEvent.c (Tk_HandleEvent):
Panic if XCreateIC is invoked twice for
the same window. This should never happen,
the check were just added to make sure it
does not since this could lead to crashes
in XCloseIM.
* generic/tkFocus.c (TkFocusDeadWindow):
Handle case where Tk_DestroyWindow is invoked
on clipboard and send windows.
* generic/tkOption.c (TkOptionDeadWindow): Ditto.
* generic/tkWindow.c (TkCloseDisplay): Move
deletion of dispPtr->winTable after TkpCloseDisplay
call since Tk_DestroyWindow uses it and could
be called by TkpCloseDisplay for clipboard/send windows.
Also invoke ckfree for the dispPtr instead of
doing it in TkpCloseDisplay.
(Tk_DestroyWindow): Check for a null winPtr->mainPtr
before doing certain cleanup tasks so the we can
invoke Tk_DestroyWindow on clipboard and send windows.
We need to do this so that XDestroyIC will get invoked
for the input contexts of each window.
* mac/tkMacXStubs.c (TkpCloseDisplay): Don't free
the displayPtr since this is now done in TkCloseDisplay.
* unix/tkUnixEvent.c (TkpCloseDisplay, OpenIM): Remove
conditional compilation around calls to XCloseIM
since I am confident that the crashes related to
input contexts has been fixed. Don't free
the displayPtr since this is now done in TkCloseDisplay.
* unix/tkUnixSend.c (TkSendCleanup): Invoke the
Tk_DestroyWindow method to cleanup the special
send window. This will call XDestroyIC and thereby
avoid a crash in XCloseIM. The send window needs
to be Tcl_Preserve and Tcl_Release to avoid an
invalid memory ref on shutdown.
* win/tkWinX.c (TkpCloseDisplay): Don't free
the displayPtr since this is now done in TkCloseDisplay.
[Tk patch 570902]
2002-06-19 Donal K. Fellows <>
* generic/tkStyle.c: TIP#48 style engine.
See for details.
* generic/tkConfig.c (GetOptionFromObj): Split to allow for access
to option tables via name as well as via object.
(TkGetOptionSpec): Semi-public interface to GetOption functionality.
(DoObjConfig, Tk_RestoreSavedOptions, FreeResources)
(GetObjectForOption): Basic style support for configure.
* generic/tkWindow.c (TkCreateMainWindow, Tk_DestroyWindow): Added
calls to set up and tear down the style subsystem.
* generic/tk.decls, generic/tk.h: Many declarations forming TIP#48
public interface.
* generic/tkInt.decls (TkStylePkgInit,TkStylePkgFree):
* generic/tkInt.h (TkGetOptionSpec): Supporting declarations.
* unix/, win/, win/ Added
tkStyle.c to list of generic source files.
2002-06-18 Donal K. Fellows <>
* tests/defs.tcl (makeFile): Defined the return value of this
procedure to be the filename of the created file, as in the real
tcltest package...
2002-06-17 Mo DeJong <>
* generic/tkImage.c (Tk_ImageObjCmd, DeleteImage): Call
Tcl_Preserve and Tcl_Release for the masterPtr->winPtr
window to avoid accessing memory that had already
been deallocated in DeleteImage.
2002-06-17 David Gravereaux <>
Trims to support the removal of RESOURCE_INCLUDED from rc
scripts from Tcl's accepted FR #565088.
* generic/tk.h: Changed RESOURCE_INCLUDED to be RC_INVOKED
as the RC tool defines this already by default.
* win/rc/tk.rc:
* win/rc/wish.rc: removed the #define RESOURCE_INCLUDED lines.
2002-06-17 Jeff Hobbs <>
* unix/ (dist): correct installation of
wish.exe.manifest to DISTDIR target directory.
* generic/tkCmds.c (Tk_TkObjCmd):
* generic/tkInt.h (struct TkCaret):
* mac/tkMacXStubs.c (Tk_SetCaretPos):
* unix/tkUnixKey.c (TkpGetString, Tk_SetCaretPos):
* win/tkWinX.c (Tk_SetCaretPos):
* tests/tk.test: Added 'tk caret' implementation of TIP#96
* doc/SetCaret.3 (new): which adds a TkCaret structure element to
* doc/tk.n: TkDisplay for maintaining state.
* unix/tkUnixSend.c (TkSendCleanup): special cleanup of
inputContext to avoid bug in XCloseIM. (dejong)
2002-06-17 Don Porter <>
* library/msgs/en_gb.msg: Added catalog for UK English.
Currently includes only Color -> Colour translation.
2002-06-17 D. Richard Hipp <>
* doc/checkbutton.n:
* doc/radiobutton.n:
* generic/tkButton.c:
* generic/tkButton.h:
* mac/tkMacButton.c:
* tests/button.test:
* unix/tkUnixButton.c:
* win/tkWinButton.c: Implementation of TIP#82 - Added the
-offrelief option to checkbutton and radiobutton.
2002-06-14 Mo DeJong <>
* generic/tkWindow.c (Tk_DestroyWindow): Set the pathName
component of a window to NULL after its memory has been
deallocated to avoid a possible illegal memory access
as a result of a call to Tk_PathName() on a Tk_Window
structure of a window that has already been destroyed.
[Tk bug 521946]
2002-06-14 Mo DeJong <>
* generic/tkOption.c (Tk_GetOption): Allocate
memory with ckalloc not malloc. This keeps
Tk from erroring out when built with
2002-06-14 Jeff Hobbs <>
* generic/tkBind.c (HandleEventGenerate):
* generic/tkInt.h: changed warpInProgress boolean from int to a
bit in the flags variable (TK_DISPLAY_IN_WARP)
* generic/tkCmds.c (Tk_TkObjCmd):
* unix/tkUnixKey.c (TkpGetString):
* generic/tkEvent.c (Tk_HandleEvent):
* generic/tkInt.h: changed useInputMethods boolean from int to a
bit in the flags variable (TK_DISPLAY_USE_IM)
* generic/tkInt.h:
* generic/tkCmds.c (Tk_WmObjCmd):
* unix/tkUnixWm.c (Tk_WmCmd):
* win/tkWinWm.c (Tk_WmCmd): changed wmTracing from being an int to
just a bit in the flags variable (TK_DISPLAY_WM_TRACING)
* generic/tkEvent.c (Tk_HandleEvent):
* unix/tkUnixEvent.c (OpenIM):
* unix/tkUnixKey.c (TkpGetString):
* generic/tkInt.h: added TK_DISPLAY_XIM_SPOT flag bit for TkDisplay
and used this to allow a runtime check to see if over-the-spot XIM
is possible. If not it will try and fallback to the old-style
input context, which handles things like dead keys input.
* generic/tk.decls: added TIP #84 implementation that adds a
* generic/tkDecls.h: Tk_CollapseMotionEvents API which controls Tk's
* generic/tkEvent.c: collapsing of incoming motion events on its
* generic/tkInt.h: windows. The default remains to do collapsing.
* generic/tkStubInit.c: Added a flags parameter to the internal display
* generic/tkWindow.c: structure to support this and be used in the
* doc/QWinEvent.3: future for other bits. [Tk patch 564642]
* unix/mkLinks: updated from current docs
2002-06-14 Mo DeJong <>
* generic/tkEvent.c (TkXErrorHandler): Declare static
function to avoid compiler error with VC++.
* generic/tkBind.c (ExpandPercents): Cast argument to
Tk_GetAtomName in order to avoid compiler warning.
2002-06-14 Joe English <>
* doc/bind.n:
* generic/tk.h:
* generic/tkBind.c:
* generic/tkCanvWind.c:
* generic/tkCmds.c:
* generic/tkEvent.c:
* generic/tkFocus.c:
* generic/tkGrab.c:
* generic/tkGrid.c:
* generic/tkImage.c:
* generic/tkPack.c:
* generic/tkPlace.c:
* generic/tkPointer.c:
* generic/tkTextWind.c:
* generic/tkWindow.c:
* mac/tkMacSubwindows.c:
* mac/tkMacWindowMgr.c
* mac/tkMacWm.c:
* unix/
* unix/tkUnixEmbed.c:
* unix/tkUnixWm.c:
* win/tkWinScrlbr.c:
* win/tkWinWindow.c:
* win/tkWinWm.c: Implementation of TIP #47 by Neil McKay
"Modifying Tk to Allow Writing X Window managers".
Add CirculateRequest, Create, MapRequest, ResizeRequest,
and ConfigureRequest event types;
TK_WIN_MANAGED, and TK_TOP_HIERARCHY. [Tk patch 572978]
2002-06-14 Andreas Kupries <>
* unix/tkAppInit.c: Removed now unneeded and erroneous reference
to 'matherr'. See Tcl ChangeLog entry 2002-05-31 Don Porter.
2002-06-14 David Gravereaux <>
* win/ The test for compiler optimizations was in error.
Thanks goes to Roy Terry <> for his
assistance with this.
2002-06-14 Donal K. Fellows <>
Implement TIP 98 [Tk patch 566765]
* doc/FindPhoto.3, generic/tk.h, generic/tk.decls:
* generic/tkImgPhoto.c: Changed *_Old to *_NoComposite and
following a suggestion from Don Porter.
* tests/imgPhoto.test: Added tests of -compositingrule
* doc/photo.n: Added documentation for "-compositingrule".
* generic/tkImgPhoto.c (ImgPhotoCmd, ParseSubcommandOptions): New
"-compositingrule" option for [$photo copy] subcommand, using
OPT_COMPOSITE flag and compositingRule field in SubcommandOptions
* doc/FindPhoto.3: Documented the extra argument for the
compositing rule and the action to take if anyone wants to
maintain total backward-compatability.
* generic/tk.h (TK_PHOTO_COMPOSITE_*): Defined values for use as
compositing rules.
(USE_OLD_PHOTO_PUT_BLOCK): Added a way for users to select the old
interface to Tk_PhotoPutBlock to provide an easier upgrade path.
* generic/tk.decls: Alter Tk_PhotoPut*Block to Tk_PhotoPut*Block_Old
and introduce new slots for the old name of function with an extra
argument at the end for the compositing rule.
* generic/tkImgPhoto.c (ImgPhotoCmd): Updated "transparency set"
subcommand to use TkSubtractRegion().
* win/tkWinRegion.c (TkSubtractRegion):
* mac/tkMacRegion.c (TkSubtractRegion):
* generic/tkInt.decls (TkSubtractRegion):
* unix/tkUnixPort.h (TkSubtractRegion): Added function to perform
the set-difference operation on regions; it seems all platforms
can support it, and it makes removing rectangular bits from
regions much easier.
* generic/tkImgPPM.c (FileReadPPM): Reading a PPM/PGM always uses
the SET compositing rule because it is faster and the format does
not have any transparency information.
* generic/tkImgGIF.c (FileReadGIF): Reading a GIF always uses the
SET compositing rule because GIF files model transparency as a
single special colour.
* generic/tkImgPhoto.c (Tk_PhotoPutBlock, Tk_PhotoPutZoomedBlock):
Added a compositing rule to allow better control over what happens
to transparent pixels when inserting data into a photo image.
2002-06-13 Mo DeJong <>
* tests/winfo.test: Add basic tests for winfo ismapped.
2002-06-13 Mo DeJong <>
* tests/unixWm.test:
* tests/wm.test: Move wm minsize and wm maxsize
usage tests into the cross platform wm tests.
2002-06-13 Don Porter <>
* tests/cursor.test: corrected error after cursor-2.2.
* tests/defs.tcl: Added enhancements to Tk's fake version of
tcltest required by recent cursor.test changes.
2002-06-13 Donal K. Fellows <>
* tests/cursor.test (cursor-2.[34]): Tests added to ensure that
cursor specs really are well-behaved lists. Also some general
* win/tkWinCursor.c (TkGetCursorByName): Undone Jeff's back-off
and fixed things so that they should work now. Cursor specs are
lists first and foremost.
2002-06-12 Mo DeJong <>
* changes: Clearly label wm transient changes as
* doc/wm.n: Remove "some window managers will" text
and explicitly state what behavior a transient
window will display. Also mention that it is an
error to make a window a transient of itself.
2002-06-12 Mo DeJong <>
* library/choosedir.tcl (tk::dialog::file::chooseDir):
* library/clrpick.tcl (tk::dialog::file::chooseDir):
* library/msgbox.tcl (tk::MessageBox):
* library/tkfbox.tcl (tk::dialog::file):
* library/xmfbox.tcl (tk::MotifFDialog): Remove the
transient property on dialogs after they have been
dismissed to insulate them from further state changes
in the master. This keeps a withdrawn dialog from
being mapped when the master is deiconified. [Tk patch 568278]
2002-06-12 Jeff Hobbs <>
* win/tkWinCursor.c (TkGetCursorByName): reverted fix from
2002-06-06 because it broke the ability to use built-in cursors
like left_ptr.
2002-06-12 Mo DeJong <>
* library/choosedir.tcl (tk::dialog::file::chooseDir):
* library/clrpick.tcl (tk::dialog::color):
* library/dialog.tcl (tk_dialog):
* library/msgbox.tcl (tk::MessageBox):
* library/tkfbox.tcl (tk::dialog::file):
* library/xmfbox.tcl (tk::MotifFDialog_Create):
Only make the dialog window a transient if
the master is visible. This check already
appeared in some of the dialogs. This patch
just copies the check into those that were
lacking. [Tk patch 568253]
2002-06-12 Mo DeJong <>
* changes: Add note about new transient behavior.
* tests/unixWm.test: Check that the WM_TRANSIENT_FOR
property for a transient window is being cleared
when the master is destroyed.
* tests/wm.test: Source defs.tcl instead of using
tcltest to match the rest of Tk's test files.
Add new tests that ensure that a transient's state
mirrors the state of the master.
* unix/tkUnixWm.c (WmInfo, TkWmNewWindow, TkWmMapWindow)
(TkWmDeadWindow, Tk_WmCmd, WmWaitMapProc): Add numTransients
member to WmInfo structure. Keep state of master and
transient in sync using a callback that tracks MapNotify
and UnmapNotify events. When the master is mapped, map
the transient. When the master is unmapped or iconified,
withdraw the transient.
* win/tkWinWm.c (TkWmMapWindow, TkpWmSetState)
(TkWmDeadWindow, Tk_WmCmd, WmWaitVisibilityOrMapProc):
Keep state of master and transient in sync using a
callback that tracks MapNotify and UnmapNotify events.
Move masterPtr check from TkpWmSetState into TkWmMapWindow
to deal with WM_NEVER_MAPPED transients. Cleanup
numTransients and the callback in TkWmDeadWindow.
Cleanup numTransients and the callback only after
deleting a master in wm transient command to avoid
deleting the callback when an error is raised.
Add support for MapNotify and UnmapNotify events
to the master callback. [Tk patch 561708]
2002-06-11 Joe English <>
* library/menu.tcl: fix for bug report #530212 "Bad Window Path
Name in tkMenuFind"
2002-06-10 David Gravereaux <>
* win/ Fixed a win98 issue where the /exclude option
for xcopy is unsupported.
Reported by Roy Terry <>.
2002-06-10 Anton Kovalenko <>
* library/tk.tcl: added utility functions to get "-underline" and
"-text" for labels and buttons from translatable string containing
"magic ampersand" [patch #566605]
* library/clrpick.tcl:
* library/msgbox.tcl:
* library/tkfbox.tcl:
* library/xmfbox.tcl: some places where msgcat is used to get
translated label are modified to handle labels with magic ampersand.
* library/msgs/ru.msg: russian translations added
* library/msgs/cs.msg:
* library/msgs/de.msg:
* library/msgs/el.msg:
* library/msgs/es.msg:
* library/msgs/fr.msg:
* library/msgs/it.msg:
* library/msgs/nl.msg: all translation files now have labels with
'magic ampersand' where appropriate. In el.msg some ampersands are
missing, as I don't know which underline positions seems natural
to "el" users.
2002-06-09 Mo DeJong <>
* library/bgerror.tcl (tk::dialog::error::bgerror):
Don't set the bgerror dialog as a transient of
itself since this operation is ill defined.
2002-06-06 Donal K. Fellows <>
* win/tkWinCursor.c (TkGetCursorByName): Fixed so that the reading
of cursors from a file with a cursor spec was built using [list]
works when the file has a space in instead of requiring fiddling
with backslashes.
2002-06-06 Anton Kovalenko <>
* library/msgbox.tcl (MessageBox): Add -default normal
when creating non-default buttons for message box.
They already get -default normal when they're
unfocused, and dialog window size used to change suddenly
in such cases.
2002-06-05 Anton Kovalenko <>
* unix/tkUnixFont.c (Tk_DrawChars): Don't assume that
one char is always one byte, and that required
subfont for the last character in any string is
the same as for the previous character
[Bug #559435] [Patch #559437]
2002-05-27 Mo DeJong <>
* changes: Document [wm transient .t .t] error.
* tests/wm.test: Check that setting a window
as a transient of itself raises an error. Check
that passing a non-toplevel window to the wm
transient command uses the enclosing toplevel.
* unix/tkUnixWm.c (Tk_WmCmd): Raise an error
if the user tries to make a toplevel a
transient of itself.
* win/tkWinWm.c (Tk_WmCmd): Raise an error
if the user tries to make a toplevel a
transient of itself. Test for other error
before checking for the transient self error.
2002-05-27 Mo DeJong <>
* unix/tkUnixWm.c (WmInfo, TkWmCleanup, TkWmNewWindow)
(TkWmMapWindow, TkWmDeadWindow, Tk_WmCmd): Replace
WmInfo's master and masterWindowName members with
a masterPtr member. This implementation is much
simpler and mirrors the Win32 implementation. This
change makes it easy to check the flags of the
master window. No user visible changes.
2002-05-27 Mo DeJong <>
* generic/tkInt.decls: Add unix decl for TkpWmSetState.
* generic/tkIntPlatDecls.h: Regen.
* generic/tkStubInit.c: Regen.
* tests/wm.test: Test state changes between iconic,
normal, and withdrawn both before and after initial
* unix/tkUnixWm.c (Tk_WmCmd, TkpWmSetState): Move
state change code into TkpWmSetState to more closely
match the Win32 implementation. No user visible changes.
2002-05-27 Mo DeJong <>
* tests/embed.test: Added cross platform embed tests.
Check that window passed to -use has the -container
option set.
* tests/wm.test: Remove useless catch call. Deiconify
. just in case, stackorder tests will not pass unless
it is in the normal state. Add -container flag to
embedded stackorder test.
* unix/tkUnixEmbed.c (TkpUseWindow):
* win/tkWinEmbed.c (TkpUseWindow): Lookup Tk window
based on the id passed in as the value for -use.
Generate an error if the Tk window did not have
the -container option set.
2002-05-26 Peter Spjuth <>
* generic/tkButton.c (ConfigureButton): When creating
a radiobutton with -value "" it was not drawn properly
if the -variable was created by the radiobutton.
[Bug #548765]
2002-05-26 Peter Spjuth <>
* generic/tkCanvText.c (ComputeTextBbox): Negative
coordinates were rounded badly causing a 1 pixel
displacement. [Bug #556526]
2002-05-24 Mo DeJong <>
* mac/tkMacWm.c (Tk_WmCmd):
* tests/unixWm.test: Move wm transient checks over
to wm.test so they will be run on all systems.
* tests/wm.test: Add tests to check for error when
an iconwindow is passed to the wm transient command.
* unix/tkUnixWm.c (Tk_WmCmd):
* win/tkWinWm.c (Tk_WmCmd): Raise an error if one
of the windows passed to the wm transient command
is an iconwindow for another toplevel.
2002-05-23 Mo DeJong <>
* mac/tkMacWm.c (TkWmStackorderToplevelWrapperMap):
* tests/wm.test: Add embedded Window test case for
the stackorder command.
* unix/tkUnixWm.c (TkWmStackorderToplevelWrapperMap):
* win/tkWinWm.c (TkWmStackorderToplevelWrapperMap):
Ignore embedded windows during wm stackorder command.
2002-05-21 Mo DeJong <>
* unix/configure: Regen.
* unix/ Invoke SC_ENABLE_SHARED before
variable can be checked inside SC_CONFIG_CFLAGS.
* unix/tcl.m4: Update from Tcl.
2002-05-20 Don Porter <>
* library/tk.tcl: A little namespace cleanup on Daniel Steffen's
latest revisions to avoid defining new global commands.
2002-05-20 Daniel Steffen <>
* mac/tkMacInit.c:
* mac/tkMacTclCode.r: include msgcat package in resources
as bgerror depends on it. Restores ability of mac static
build to run standalone (except for encoding file issues).
* mac/tkMacInit.c:
* library/console.tcl:
* library/tk.tcl: fix tk.tcl not sourcing library files
that define bindings at startup on mac. (independent of
tk library files being in resources or on auto_path)
2002-05-08 Don Porter <>
* library/bgerror.tcl:
* library/tclIndex: Cleaned up namespace usage of the bgerror
dialog. Completes soft dependence on msgcat. [FR 539309]
2002-05-07 David Gravereaux <>
* win/ Problem with TCLDIR macro not accepting
forward slash path seperators resolved. Added the same logic
to INSTALLDIR, too. [Bug #553208]
2002-04-26 Jeff Hobbs <>
* unix/configure:
* unix/tcl.m4: change HP-11 SHLIB_LD_LIBS from "" to ${LIBS} so
that the .sl knows its dependent libs.
2002-04-24 Daniel Steffen <>
* mac/tkMacTclCode.r:
* mac/tkMacResource.r: added check of
TCLTK_NO_LIBRARY_TEXT_RESOURCES #define to allow disabling the
inclusion of the tk library code in the resource fork of Tk
executables and shared libraries.
Moved tk library code inclusion to separate file like in tcl.
Added 'panedwindow' resource.
2002-04-22 Jeff Hobbs <>
* library/button.tcl (ButtonLeave): corrected the 3
implementations of ButtonLeave to check for Priv(relief) existing
before trying to use it. [Patch #541849]
* generic/tkTextDisp.c (DisplayLineBackground):
* unix/tkUnix3d.c (Tk_3DHorizontalBevel):
* unix/tkUnixFont.c (Tk_DrawChars): applied fixes to not overrun
the X window 16-bit size limit. [Patch #541999] (bonfield)
2002-04-22 Donal K. Fellows <>
* generic/tkTextDisp.c (GetXView, GetYView): Comparison with
previous values of scrollbar range are now done in a way that is
sensitive to the bizarreness of floating-point on architectures
where IEEE-FP is not used on the processor. Also increased the
size of the temporary buffer to take account of the fact that
TCL_DOUBLE_SPACE is meant to only imply enough space to take a
printed double and trailing '\0', and no more. [Bug #223739]
(FP_EQUAL_SCALE): New macro to help compare floating-point numbers
for equality in a sane way, used in GetXView and GetYView.
2002-04-12 Jeff Hobbs <>
* generic/tkWindow.c (TkCloseDisplay): Added to centralize where a
display was closed. This handles freeing memory associated with a
display and closing it.
(DeleteWindowsExitProc): actually close displays. This would also
ideally be done in Tk_DestroyWindow when the last window on the
display has been closed, but that still has unresolved order of
cleanup problems.
(Tk_DestroyWindow): added TkFocusFree call.
* generic/tkStubInit.c:
* generic/tkIntPlatDecls.h:
* generic/tkIntDecls.h:
* generic/tkInt.decls: added TkFocusFree, TkClipCleanup and
TkGCCleanup generic private procs, and TkWmCleanup, TkSendCleanup
and TkFreeXId unix private procs.
* generic/tkInt.h:
* unix/tkUnixXId.c (TkFreeXId): frees XID resources.
Made idCleanupScheduled a Tcl_TimerToken (was int) in TkDisplay
structure to allow us to delete the timer scheduled for it.
* unix/tkUnixWm.c (TkWmStackorderToplevel): ensure children
structure is freed.
(ConfigureEvent, ComputeReparentGeometry): Add extra wm tracing info
(TkWmRestackToplevel): initialize changes to 0 to prevent UMR.
Use WaitForConfigureNotify on all windows. This part still
requires fixing as it is the root of the 2 second raise delay on
some window managers (those that use extra wrapper windows of
their own).
* unix/tkUnixSend.c (TkSendCleanup): free send-related resources
* unix/tkUnixEvent.c (TkpCloseDisplay): call TkSendCleanup and
* unix/tkUnixSelect.c (SelRcvIncrProc): added missing Tcl_Release
of interp
* generic/tkGet.c (FreeUidThreadExitProc): free thread-specific
resources on thread exit
* generic/tkFocus.c (TkFocusFree): frees TkMainInfo data
* generic/tkClipboard.c (TkClipCleanup): frees TkDisplay data
* generic/tkGC.c (TkGCCleanup): frees TkDisplay data
* unix/tkUnixFont.c (FontPkgCleanup): cleanup thread specific font
resources on thread exit.
* mac/tkMacXStubs.c (TkpOpenDisplay): memset the initial display
structures to 0.
* generic/tkOption.c (OptionThreadExitProc): freed tsd option
stacks on thread exit.
(Tk_GetOption): free mem used to get Tk_Uid
* generic/tkMenu.c (ConfigureMenu): freed saved options in all
error cases.
* win/tkWinInt.h: declaration for TkWinGetUnicodeEncoding
* win/tkWinDialog.c (GetFileNameW): use TkWinGetUnicodeEncoding
* win/tkWinInit.c (TkpDisplayWarning): use TkWinGetUnicodeEncoding
* win/tkWinFont.c: use TkWinGetUnicodeEncoding instead of static
* win/tkWinX.c (Tk_SetCaretPos): remove WM_IME_STARTCOMPOSITION
and place the IME position within Tk_SetCaretPos. Cache results in
Tk_SetCaretPos to reduce unnecessary repositioning. Also call
DestroyCaret if we receive WM_KILLFOCUS.
(TkpOpenDisplay): ZeroMemory the initial display structures.
(TkWinGetUnicodeEncoding): Added so that Windows only needs to
cache this value one, and then free it in TkWinXCleanup.
(HandleIMEComposition): add support for Win98 and ATOK13
IME. (yamamoto)
* generic/tkConsole.c (ConsoleCmd): correct return that should
have just set result code.
* generic/tkImgPhoto.c: Added PhotoFormatThreadExitProc to clean
up on thread exit. (Tk_PhotoPutBlock) slight code updates
* generic/tkPanedWindow.c (DestroyPanedWindow, ConfigureSlaves):
fix mem leaks in not freeing slave info
* win/configure:
* win/tcl.m4: Enabled COFF as well as CV style debug info with
--enable-symbols to allow Dr. Watson users to see function info.
More info on debugging levels can be obtained at:
2002-04-10 Mo DeJong <>
* doc/wm.n:
* mac/tkMacWm.c:
* tests/wm.test:
* unix/tkUnixWm.c:
* win/tkWinWm.c: Update wm stackorder usage message
to make it clear that either 1 or 3 arguments are
required. [Bug 540013]
2002-04-08 Daniel Steffen <>
* mac/tkMacProjects.sea.hqx: added tkPanedWindow.c to projects
* mac/tkMacAppInit.c: fixes to MSL stdin/stdout hookup to the
TkConsole when using shared MSL libraries; fix for crashing
bug on exit: writing to stdin/sterr when console has already
been destroyed. (both fixes need support in MSL, see
'CW Pro6 changes' in tcl/mac/tcltkMacBuildSupport.sea.hqx)
* mac/tkMacDialog.c: fixes to Navigation Services Dialog filter.
* mac/tkMacDraw.c: add panic for overwide TkImages that would
crash Tk on mac otherwise.
2002-04-05 Jeff Hobbs <>
* mac/tkMacXStubs.c: added Tk_SetCaretPos stub (does nothing).
* win/tkWinX.c: added Tk_SetCaretPos code to position IME windows
correctly when WM_IME_STARTCOMPOSITION is received.
* unix/tkUnixKey.c: added Tk_SetCaretPos and code for setting
XIM caret in TkpGetString.
* generic/tkStubInit.c:
* generic/tkDecls.h:
* generic/tk.decls: added Tk_SetCaretPos declaration. This command
allows users to indicate the cursor position and is used by XIM
(Unix) or IME (Windows) to place the caret box correctly. It is
also part of correct Accessibility style on Windows to make the
magnifier jump to the focus point.
* win/tkWinButton.c (TkpDisplayButton):
* generic/tkTextMark.c (TkTextInsertDisplayProc):
* generic/tkCanvText.c (DisplayCanvText):
* generic/tkEntry.c (DisplayEntry): added Tk_SetCaretPos calls
* generic/tkInt.h: added TK_XIM_SPOT #define (default 1).
Added XFontSet attribute to TkDisplay when TK_XIM_SPOT is true.
* generic/tkEvent.c (Tk_HandleEvent): made sure inputContexts are
not getting created on DestroyNotify events (for dead windows).
Added over-the-spot support if TK_XIM_SPOT is defined (default).
The is the nicer XIM behavior, but uses a bit more memory.
* unix/tkUnixEvent.c:
* generic/tkWindow.c: moved OpenIM over to tkUnixEvent.c.
Removed setting inputContext to null in Tk_MakeWindowExist as it
was redundant.
* unix/tkUnixWm.c (CreateWrapper): Removed redundat setting of
inputContext to null.
* win/ changed gdb and shell targets to properly build
all binaries before running (otherwise an error often occured).
2002-03-28 David Gravereaux <>
* win/.cvsignore (new):
* win/lamp.bmp (new):
* win/
* win/nmakehlp.c (new):
* win/ Brought the makefile up-to-date with Tcl's one.
This now has support for Win9x issues and the winhelp target now
exists. Color scheme can be changed. I'm just imparting a first
suggestion using orange :) I'll have to think about the install
portion of the helpfile as I'll need to do some tricks to insert
tk's contents file into Tcl's using some special winhlp32.exe
switches. [Bug 533862 527941]
* win/ Tk helpfile is now installing itself into Tcl's
contents file as part of the install target and rebuilding the
contents table as desired. [Bug 527941]
* doc/console.n: Changed topic from "Tcl Built-In Commands" to
"Tk Built-In Commands"
* win/ Update to match Tcl.
2002-03-26 Andreas Kupries <>
* unix/tkUnixFont.c: Added inclusion of <arpa/inet.h>. This fixes
a GCC/HPUX problem with missing a "htons". See also
"tclUnixPort.h" for equivalent code.
2002-03-21 David Gravereaux <>
* win/ Changed optimize flag to -0ti instead of -02.
[Bug 528441]
2002-03-20 Don Porter <>
* generic/tkButton.c (ButtonTextVarProc,ButtonVarProc):
* generic/tkCmds.c (WaitVariableProc):
* generic/tkEntry.c (EntryTextVarProc):
* generic/tkListbox.c (ListboxListVarProc):
* generic/tkMenu.c (MenuVarProc):
* generic/tkMenubutton.c (MenuButtonTextVarProc):
* generic/tkMessage.c (MessageTextVarProc):
* generic/tkScale.c (ScaleVarProc): Updates to handle change in
type of part2 argument of Tcl_VarTraceProc typedef. [TIP 27]
[Patch 532644].
2002-03-19 Jeff Hobbs <>
* generic/tkOldConfig.c (Tk_ConfigureValue): prevent leaving
interp->result as NULL.
2002-03-07 Donal K. Fellows <>
* library/text.tcl (TextPasteSelection): Renaming of TextPaste to
prevent confusion with tk_textPaste. Stopped code from inserting
selections twice, which seems to have happened with TIP#26, and
reorganized code to reduce amount of stuff protected by catch
which is tricky to maintain.
(tk_textPaste): Reduce amount of code protected by catch.
2002-03-06 Mo DeJong <>
* win/tkWinX.c: Define _WIN32_IE as 0x0300
before including commctrl.h so that we can
access the InitCommonControlsEx API when
building Tk with mingw.
2002-03-06 Donal K. Fellows <>
* README, generic/tk.h, unix/, unix/tk.spec:
* win/ Bumped patchlevel; this might need to change
in the future, but it will help us distinguish between the CVS
version and the most recent released version.
2002-03-05 Jeff Hobbs <>
*** 8.4a4 TAGGED FOR RELEASE ***
* unix/README: updated --* options docs.
* unix/tk.spec: fixed URL refs to use or SF.
2002-03-04 Jeff Hobbs <>
* mac/README:
* unix/README:
* win/README: updated to use URL.
2002-03-03 Jeff Hobbs <>
* library/entry.tcl: added catch around Triple-1 binding use of
2002-02-28 Don Porter <>
* library/console.tcl (ConsoleBind): Corrected console <<Paste>>
binding on Unix platforms.
2002-02-26 Jeff Hobbs <>
* unix/configure: Regen.
* unix/tcl.m4: Update from Tcl.
* generic/tkWindow.c (Tk_MainWindow, Tk_GetNumMainWindows):
protect against being called before Tcl stubs are init'ed.
[Bug #220916] (porter)
2002-02-25 Jeff Hobbs <>
* generic/tkText.c (ConfigureText): reenable the blinking cursor
on state change where necessary. [Bug #503772]
* tests/listbox.test:
* generic/tkListbox.c: corrected error handling when setting to an
invalid listvar value. [Bug #503613]
* library/scale.tcl: mirror B2 bindings to B3 on Windows to better
accomodate two button mice. [Patch #493145]
* library/panedwindow.tcl: improved proxy sash handling. (boudaillier)
2002-02-25 Donal K. Fellows <>
* tests/filebox.test: Reorganised and fixed so that tests are
executed fewer times (!) and the automatic extension adding
behaviour of tk_getSaveFile is tested.
2002-02-23 Mo DeJong <>
* unix/configure: Regen.
* unix/tcl.m4: Update from Tcl.
2002-02-22 Jeff Hobbs <>
* generic/tkPanedWindow.c (PanedWindowWidgetObjCmd): fixed returns
that should have been breaks instead. Corrected .pw configure
handling for insufficient args. [Patch #521436] (boudaillier)
* mac/tkMacDefault.h:
* unix/tkUnixDefault.h:
* win/tkWinDefault.h: changed panedwindow default relief to flat,
a more natural outer relief.
* library/panedwindow.tcl (ReleaseSash): changed to not pass x and
y args at all (they aren't used).
Added proc comments. Made configuring sash cursor more efficient.
Added Cursor timer that restores the default cursor when pointer
is no longer over the sash. This is necessary because Leave
events won't be seen when moving into a paned child.
2002-02-22 Donal K. Fellows <>
* library/demos/widget: New section "Paned Windows"
* library/demos/paned2.tcl, library/demos/paned1.tcl: New files.
* library/panedwindow.tcl (ReleaseSash): Added missing arguments.
* library/tk.tcl: Bindings for paned window were not being loaded
by default.
* unix/tkUnixMenu.c (GetMenuLabelGeometry,DrawMenuEntryLabel):
Stop meaningless GCC warnings.
2002-02-21 Jeff Hobbs <>
* doc/panedwindow.n (new):
* generic/tkPanedWindow.c (new):
* generic/tkInt.h:
* generic/tkWindow.c:
* library/panedwindow.tcl (new):
* mac/tkMacDefault.h:
* tests/panedwindow.test (new):
* unix/
* unix/tkUnixDefault.h:
* win/
* win/
* win/tkWinDefault.h: added implementation of TIP #41, panedwindow
widget. [Patch #512503] (melski)
* generic/tkOption.c (ReadOptionFile): fixed Tcl_Seek casting to
remove warnings (we expect no option files with be > 2GB).
* unix/configure: regenerated
* unix/tcl.m4: updated to sync with Tcl's tcl.m4
Added --enable-64bit support for AIX-4 using IBM's xlc (-q64 flag).
2002-02-19 Don Porter <>
* changes: First draft of updated changes for 8.4a4 release.
2002-02-19 Donal K. Fellows <>
* generic/tkImgPhoto.c (MatchFileFormat): Tcl_Seek takes
Tcl_WideInt offset (three places.)
* generic/tkImgPPM.c (FileReadPPM): Tcl_Seek takes Tcl_WideInt offset.
* generic/tkFrame.c (ConfigureFrame): Stop GCC warning.
* generic/tkImgGIF.c: Made file meet the formatting rules from the
Tcl Engineering Manual better; mostly differences in whitespace.
2002-02-18 Jeff Hobbs <>
* unix/configure: regen'd
* unix/tcl.m4:
* unix/ added macros and calls to SC_TCL_EARLY_FLAGS
and SC_TCL_64BIT_FLAGS, part of TIP #72.
2002-02-14 Mo DeJong <>
* library/entry.tcl:
* library/text.tcl: Adjust <Double-1> and <Triple-1> bindings
so that no anchor point is set and the insertion cursor is
set to the last character in the selection. [Bug 220943]
* tests/event.test: Add test cases for double click and
drag as well as triple click and drag in the text and
entry widgets.
2002-02-14 Mo DeJong <>
* tests/event.test (_text_ind_to_x_y, _get_selection): Fix
incorrect use of results from bbox invocation so that
y center point for a give index is calculated correctly.
Add new method to return the selection and use it in
test cases. Always lappend to the result list to avoid
case where initial result includes a space.
2002-02-07 Don Porter <>
* generic/tkMain.c:
* mac/tkMacInit.c:
* mac/tkMacKeyboard.c:
* win/tkWinDialog.c:
* win/tkWinTest.c: modified some callers of Tcl routines that
were restored to return (char *) pointing into Tcl_DStrings.
2002-02-03 eric melski <>
* generic/tkImage.c (Tk_ImageObjCmd): Clean up bogus for loop in
[image inuse] subcommand [Bug #485803].
2002-02-01 Jeff Hobbs <>
* generic/tkCmds.c (Tk_TkObjCmd): don't use 'bool' as an arg as it
conflicts with the C99 spec. [Bug #511956] (ingham)
2002-02-01 David Gravereaux <>
* win/ unset macro located in the tktest target
caused a failure to build. [Bug 511652]
2002-01-30 Don Porter <>
* win/stubs.c (XSetCommand): Overlooked CONSTification.
2002-02-01 Donal K. Fellows <>
* doc/photo.n: Documented transparency subcommand.
* tests/imgPhoto.test (imgPhoto-4.40...imgPhoto-4.68): Tests for
the transparency subcommand.
* generic/tkImgPhoto.c (ImgPhotoCmd): Added transparency
subcommand (see TIP #14.)
2002-01-31 Todd Helfter <>
* generic/tkMenu.c (ConfigureMenuCloneEntries)
* tests/menu.test (menu3.68)
Correct and test for logic error when cloning menus. [Bug #508988]
2002-01-30 Don Porter <>
* generic/tk.decls: The POTENTIAL INCOMPATIBILITY in the changing
interface of Tk_ParseArgv can now be removed by the -DUSE_NON_CONST
compiler flag.
* generic/tkDecls.h: make genstubs
2002-01-29 Andreas Kupries <>
* win/tkWinInit.c (TkpGetAppName): TIP 27 fixup. The code now does
not write into the CONST path returned by "argv0" and
Tcl_SplitPath anymore.
2002-01-28 Mo DeJong <>
* unix/configure: Regen.
* unix/ Don't set TCL_LIB_SPEC and
TCL_STUB_LIB_SPEC variables since this breaks
the AIX build. This was used in the past to
support linking with Tcl from the build dir
or the install dir, but it is no longer needed.
2002-01-28 Mo DeJong <>
* unix/ Remove commented out vars.
* unix/configure: Regen.
* unix/ Don't subst vars that are already
taken care of in SC_LOAD_TCLCONFIG.
* unix/tcl.m4: Update from Tcl.
* win/configure: Regen.
* win/tcl.m4: Update from Tcl.
2001-01-27 Daniel Steffen <>
* generic/tkFileFilter.c:
* mac/tkMacInit.c:
* mac/tkMacKeyboard.c:
* mac/tkMacMenus.c: TIP 27 CONSTification induced changes
2002-01-25 Don Porter <>
* All changes below are Patch 505159
* doc/AddOption.3:
* doc/CanvTkWin.3:
* doc/GetPixels.3:
* doc/Name.3:
* doc/ParseArgv.3:
* generic/tk.decls (Tk_AddOption,Tk_CanvasGetCoord,Tk_GetPixels)
* generic/tkArgv.c (Tk_ParseArgv):
* generic/tkCanvLine.c (ParseArrowShape):
* generic/tkCanvUtil.c (Tk_CanvasGetCoord,Tk_CanvasTagsParseProc)
* generic/tkCanvas.c (ConfigureCanvas):
* generic/tkGet.c (Tk_GetPixels,Tk_GetScreenMM):
* generic/tkImgPhoto.c (ImgPhotoCmd):
* generic/tkMain.c (Tk_MainEx):
* generic/tkOldConfig.c (FormatConfigInfo):
* generic/tkOption.c (Tk_AddOption):
* generic/tkText.c (TextWidgetCmd,TkTextGetTabs,DumpSegment):
* generic/tkText.h (TkTextCreateTag):
* generic/tkTextTag.c (TkTextCreateTag):
* generic/tkWindow.c (Tk_NameToWindow,Initialize):
* mac/tkMacCursor.c (FindCursorByName,TkGetCursorByName):
* mac/tkMacWm.c (Tk_WmCmd):
* unix/tkUnixCursor.c (TkGetCursorByName):
* unix/tkUnixSend.c (ValidateName):
* unix/tkUnixWm.c (Tk_WmCmd):
* win/tkWinCursor.c (TkGetCursorByName):
* win/tkWinWm.c (Tk_WmCmd): Updated callers of Tcl_SplitList and
* generic/tkDecls.h: make genstubs
Includes a source incompatibility in the argv argument of Tcl_ParseArgv.
* generic/tkBind.c (DeleteVirtualEvent):
* generic/tkCanvas.c (ScrollFractions, CanvasWidgetCmd)
* generic/tkTestTag.c (TkTextTagCmd): Updated callers of
Tcl_GetStringResult. Rewrote PrintScrollFractions to
ScrollFractions to stop scribbling directly on interp->result.
* generic/tkInt.decls (TkGetDefaultScreenName, TkpDisplayWarning)
* generic/tkCanvPs.c (Tk_PostscriptColor, Tk_PostscriptFont):
* generic/tkEntry.c (EntrySetValue, EntryValidateChange)
(ExpandPercents, EntryValueChanged, Tk_EntryObjCmd, DestroyEntry)
(ConfigureEntry, EntryComputeGeometry, InsertChars, DeleteChars)
(EntryFetchSelection, EntryTextVarProc, Tk_SpinBoxObjCmd)
* generic/tkMain.c (Prompt):
* generic/tkMenu.c (MenuVarProc):
* generic/tkMenubutton.c (ConfigureMenuButton, MenuButtonTextVarProc):
* generic/tkMessage.c (ConfigureMessage, MessageTextVarProc):
* generic/tkWindow.c (GetScreen, Initialize):
* mac/tkMacInit.c (TkpInit, TkpDisplayWarning):
* mac/tkMacXStubs.c (TkGetDefaultScreenName, TkpOpenDisplay):
* unix/tkUnix.c (TkGetDefaultScreenName):
* unix/tkUnixEvent.c (TkpOpenDisplay):
* unix/tkUnixInit.c (TkpGetAppName, TkpDisplayWarning):
* unix/tkUnixSend.c (SendEventProc):
* win/tkWinInit.c (TkpGetAppName, TkpDisplayWarning):
* win/tkWinX.c (TkGetDefaultScreenName,TkpOpenDisplay): Updated
callers of Tcl_GetVar, Tcl_GetVar2
* generic/tkIntDecls.h: make genstubs
* generic/tkCanvPs.c (TkCanvPostscriptCmd):
* generic/tkImgBmap.c (TkGetBitmapData):
* generic/tkOption.c (ReadOptionFile):
* mac/tkMacInit.c (TkpInit, TkpGetAppName):
* win/tkWinInit.c (TkpGetAppName): Updated callers of
Tcl_SplitPath, Tcl_JoinPath, and Tcl_TranslateFileName.
2002-01-18 Mo DeJong <>
* tests/wm.test: Rewrite stackorder tests that
deal with toplevels that have the overrideredirect
flag set. [Tk bug 492259]
2002-01-18 Don Porter <>
* win/tkWinDialog.c: Overlooked Tcl_GetIndexFromObj callers.
2001-01-18 Daniel Steffen <>
* mac/tkMacDialog.c:
* mac/tkMacSend.c: TIP 27 CONSTification broke the mac
build in a few places.
2002-01-16 Jeff Hobbs <>
* generic/tkListbox.c (ChangeListboxOffset): improved tracking
when scrolling on x axis with entry/text. [Bug #225025] (voskuil)
2002-01-16 Don Porter <>
* generic/tk3d.c (Tk_GetReliefFromObj):
* generic/tkBind.c (Tk_EventObjCmd, HandleEventGenerate):
* generic/tkButton.c (ButtonWidgetObjCmd):
* generic/tkCanvas.c (CanvasWidgetCmd, FindItems):
* generic/tkClipboard.c (Tk_ClipboardObjCmd):
* generic/tkCmds.c (Tk_BellObjCmd, Tk_TkObjCmd, Tk_TkwaitObjCmd)
(Tk_UpdateObjCmd, Tk_WinfoObjCmd, Tk_WmObjCmd):
* generic/tkConfig.c (DoObjConfig):
* generic/tkEntry.c (EntryWidgetObjCmd, SpinboxWidgetObjCmd):
* generic/tkFocus.c (Tk_FocusObjCmd):
* generic/tkFont.c (Tk_FocusObjCmd, ConfigAttributesObj):
* generic/tkFrame.c (Tk_FrameObjCmd):
* generic/tkGet.c (Tk_GetAnchorFromObj, Tk_GetJustifyFromObj):
* generic/tkGrab.c (Tk_GrabObjCmd):
* generic/tkGrid.c (Tk_GridObjCmd, GridRowColumnConfigureCommand)
(GridSlavesCommand, ConfigureSlaves):
* generic/tkImage.c (Tk_ImageObjCmd):
* generic/tkImgBmap.c (ImgBmapCmd):
* generic/tkImgGIF.c (FileReadGIF):
* generic/tkImgPhoto.c (ImgPhotoCmd):
* generic/tkListbox.c (ListboxWidgetObjCmd, ListboxSelectionSubCmd)
* generic/tkMenu.c (MenuWidgetObjCmd, MenuAddOrInsert, MenuCmd)
(ConfigureMenu, CloneMenu):
* generic/tkMenubutton.c (MenuButtonWidgetObjCmd):
* generic/tkMessage.c (MessageWidgetObjCmd):
* generic/tkOption.c (Tk_OptionObjCmd):
* generic/tkPack.c (Tk_PackObjCmd, ConfigureSlaves):
* generic/tkPlace.c (Tk_PlaceObjCmd):
* generic/tkScale.c (ScaleWidgetObjCmd):
* generic/tkSelect.c (Tk_SelectionObjCmd):
* generic/tkSquare.c (SquareWidgetObjCmd):
* generic/tkTest.c (TestobjconfigObjCmd, TrivialConfigObjCmd)
(TestfontObjCmd): Updates to handle change in type of tablePtr
argument of Tcl_GetIndexFromObj(Struct) from (char **) to
(CONST char **). [TIP 27] [Patch 504705]
* generic/tkCanvText.c (GetSelText):
* generic/tkEntry.c (Entry{FetchSelection,Setvalue},ExpandPercents):
* generic/tkSelect.c (HandleTclCommand):
* generic/tkText.c (TextSearchCmd):
* generic/tkTextIndex.c (TkTextMakeByteIndex, TkTextIndexBackChars):
* mac/tkMacFont.c (Tk_MeasureChars, BreakLine):
* unix/tkUnixMenu.c (DrawMenuUnderline):
* win/tkWinMenu.c (GetEntryText, DrawMenuUnderline): Updated
callers of Tcl_Utf* and Tcl_Regexp* APIs to reflect TIP 27 API
changes (see Tcl Patch 471509). [Patch 471513]
2002-01-16 Mo DeJong <>
* unix/configure: Regen.
* unix/tcl.m4: Update from Tcl.
* win/configure: Regen.
* win/tcl.m4: Update from Tcl.
2002-01-04 Don Porter <>
* generic/tkMain.c (Tk_MainEx): Updated callers of CONSTified
Tcl interfaces Tcl_EvalFile and TclGetStartupScriptFileName.
* generic/tkConsole.c (ConsoleOutputProc, TkConsolePrint):
* generic/tkInt.h (TkConsolePrint):
* mac/tkMacAppInit.c (TkConsolePrint): Updated Tk's console to
CONSTified channel driver interface. [Tcl Patch 503565, Tk Patch
2002-01-11 Mo DeJong <>
Use ${libdir} instead of ${exec_prefix}/lib. [Tcl bug 489370]
* unix/configure: Regen.
* unix/ Define and use libdir.
* win/configure: Regen.
* win/ Define libdir.
2002-01-11 Mo DeJong <>
* unix/ Burn Tcl and Tk build
directories into tktest executable to avoid crashes
caused by ld loading a previously installed version
of the tcl or tk shared libraries. Remove setting
before running tktest since it should no
longer be required.
2002-01-11 Mo DeJong <>
Enable use of Tcl stubs when building Tk as
a shared library. This should fix the build
under AIX. [Bugs 220858, 220955, 220921]
* unix/ Add TCL_STUB_LIB_SPEC and
TCL_STUB_LIB_FLAG variables.
* unix/configure: Regen.
* unix/ Pass TCL_STUB_LIB_SPEC into
Makefile and use it when linking the tk shared library.
Define USE_TCL_STUBS when building shared. Subst
2002-01-08 D. Richard Hipp <>
* win/tkWinMenu.c: Fix the following bug: If you select an entry
on a cascade menu then the next time the parent menu is posted, the
cascade entry was active. Also, if you traverse to a disabled entry
using keystrokes and press ENTER on the disabled entry, then that
entry appears active the next time the menu is posted. The same
patch fixes both problems.
2002-01-04 Don Porter <>
* generic/tkBind.c (TkBindFree):
* generic/tkGrid.c (ResolveConstraints,CheckSlotData,DestroyGrid):
* generic/tkSelect.c (Tk_DeleteSelHandler,TkSelDeadWindow): Replaced
Tcl_Free calls with ckfree so that memory debugging is fully supported.
2001-12-28 Jeff Hobbs <>
* test/winButton.test:
* win/tkWinButton.c: added updated patch #463234 which returns the
default sizing behavior (not so native), but enables native L&F
with negative sizing (-11 for example).
* library/text.tcl (tk::TextButton1): made text receive focus even
in disabled state for Windows to show selection and allow
mouse-wheel scrolling.
* win/tkWinInit.c (TkpDisplayWarning): added Tcl_DStringFree's
* win/tkWinInt.h:
* win/tkWinX.c: added TkWinProcs that represent a function table
to switch between unicode and ansi procs on Windows. This is
analogous to the TclWinProcs. Using Tcl_WinUtfToTChar, we can
easily take advantage of using unicode functions where available
without having to switch on the platform id each time.
* win/tkWinWm.c (InitWindowClass): corrected init routines to
allow unicode in window titles on Windows (for Win2K/XP).
(TkWmStackorderToplevel): Corrected casts to enable debug compile
* win/configure: regen'ed
* win/tcl.m4: added shell32.lib to link libs, as these are
necessary for new directory chooser (when enabled).
* win/tkWinDialog.c (Tk_MessageBoxObjCmd): use MessageBoxW for
proper display of unicode errors.
Added patch which uses new OLE based directory chooser. This
still has some issues, so is disabled by default. [Patch #468139]
(ColorDlgHookProc) Corrected ability to use unicode chars in
tk_chooseColor -title.
2001-12-27 Jeff Hobbs <>
* win/tkWinInit.c (TkpDisplayWarning): Use MessageBoxW in case the
error displayed has unicode chars. [Bug #485986]
2001-12-27 Daniel Steffen <>
* mac/tkMacInit.c:
* mac/tkMacResource.r: synced up tkInit features to unix/win:
use existing tkInit proc if defined. Added spinbox.tcl resource.
Used TclGetEnv() instead of Tcl_GetVar2(interp, env)
* mac/tkMacApplication.r:
* mac/tkMacLibrary.r: minor version resources cleanup
2001-12-27 Jeff Hobbs <>
* generic/tkButton.c (ButtonTextVarProc): guard against being
called while the *button/label is being deleted. [Bug #490051]
* library/entry.tcl:
* library/spinbox.tcl:
* library/text.tcl: added extra checks against bug #220269 and
made spinbox reuse more of the entry procedure code.
2001-12-20 Mo DeJong <>
* unix/configure: Regen.
* unix/tcl.m4: Update from Tcl.
2001-12-19 Mo DeJong <>
* unix/configure: Regen.
* unix/tcl.m4: Update from Tcl.
2001-12-18 Mo DeJong <>
* unix/configure: Regen.
* unix/ Move EXP file changes over from
Tcl configure script to fix AIX build with gcc. [Bug 220955]
2001-12-18 Mo DeJong <>
* unix/
* win/ Use $(MAKE) instead of make
in the tcltest rule.
2001-12-18 Don Porter <>
* tests/event.test (event-click-drag-1.2): Corrected test that
failed on Solaris/CDE due to text scrolling. [Bug 413735]
2001-12-18 Jeff Hobbs <>
* library/spinbox.tcl (ButtonDown): added catch to ignore
possible error in after cancel when Priv(afterId) isn't defined.
* doc/spinbox.n: corrected spin(up|down) -> button(up|down)
2001-12-14 Donal K. Fellows <>
* doc/getOpenFile.n: Documented change.
* library/tkfbox.tcl (SetFilter): Added code to guess the correct
default extension from whatever value was selected in the
filetypes option menu. Adapted from code by Chris Nelson
submitted in Patch #492220.
2001-12-12 Jeff Hobbs <>
* unix/tkUnixWm.c (TkWmStackorderToplevelWrapperMap): added static
2001-12-05 Jeff Hobbs <>
* generic/tkText.c:
* generic/tkText.h: changed TkTextEditType enums to be prefaced
with TK_EDIT_ to prevent name collision.
2001-12-05 Daniel Steffen <>
* mac/tkMacWm.c: mac implementation of wm stackorder
(patch 481148, TIP 74)
2001-12-03 Mo DeJong <>
Add TK patch 481148 to implement TIP 74, the
wm stackorder command.
* doc/winfo.n: Update documentation for the winfo
children command to indicate that top-level windows
are not returned in stacking order.
* doc/wm.n: Add documentation for wm stackorder.
* generic/tkInt.decls (TkWmStackorderToplevel):
Add decl for new function.
* generic/tkIntDecls.h: Regen.
* generic/tkStubInit.c: Regen.
* tests/unixWm.test: Add stackorder command to test
for wm command usage message.
* tests/wm.test: Add new set of tests for generic
window manager methods.
* unix/tkUnixWm.c (Tk_WmCmd, TkWmStackorderToplevelWrapperMap)
(TkWmStackorderToplevel): Add unix implementation of
new wm stackorder command.
* win/tkWinWm.c (Tk_WmCmd, TkWmStackorderToplevelEnumProc)
(TkWmStackorderToplevelWrapperMap, TkWmStackorderToplevel): Add
windows implementation of new wm stackorder command.
2001-12-03 David Gravereaux <>
* win/ install target changes by request from
Ryan Casey <>.
2001-11-30 Donal K. Fellows <>
* library/demos/widget: Further overhauling; shrank fonts, made
better use of fonts, added an icon, fixed the About box. Prompted
by Bug #487442 from Vincent Wartelle.
2001-11-29 Donal K. Fellows <>
* library/palette.tcl (tk_setPalette): Added heuristic to guess
from the background whether to use black or white for the
foreground when not told specifically. Suggested by Chris Nelson,
this makes the command fit the documentation better!
2001-11-27 David Gravereaux <>
* win/ Fixed CAT32 target. cat.c is located in the Tcl
source, not the Tk source.
2001-11-27 D. Richard Hipp <>
* library/menu.tcl: Do not allow keyboard traversal of torn-off
menus to visit the (invisible) tearoff bar.
2001-11-26 D. Richard Hipp <>
* win/tkWinMenu.c: disabled menu items show the activebackground
color in their background. This change makes menu behavior
consistent with what native windows does.
2001-11-24 Mo DeJong <>
* unix/ Add comments to better describe
TCL_EXE and when it should be available. Add
rule that prints message about running `make genstubs`
when tkStubInit.c is out of date.
* win/ Add TCL_TOOL_DIR and TCL_EXE
variables to better match the Tcl Makefile. Add
genstubs rule so tkSTubInit.c can be regenerated.
2001-11-24 Mo DeJong <>
* win/configure: Regen.
or CFLAGS_WARNING since it is now done in SC_CONFIG_CFLAGS.
2001-11-23 Daniel Steffen <>
Up-port to 8.4 of mac code changes for 8.3.3 & various new
changes for 8.4, some already backported to 8.3.4 (patch #435660)
* library/tk.tcl: added <Key-F1> binding for <<Undo>> on the mac (TIP26)
* library/button.tcl: fixed undefined $Priv(repeated) error for button
without -repeatdelay support
* generic/tkConsole.c:
* library/console.tcl:
* mac/tkMacInit.c:
* mac/tkMacResource.r: corrected how mac deals with tcl library
files present both in resources and in $tk_library directory.
* generic/tkConsole.c: crashing bug fix when printing to console
at program exit after the console has already been closed.
Now setting gStdoutInterp=NULL in ConsoleClose().
* mac/tkMacInit.c: correct use of Tcl_JoinPath in tk_library
* mac/tkMacMenu.c: special MDEF_PROC_OFFSET only needed for
exactly one specific version of the MWERKS 68k compiler .
* mac/tkMacShLib.exp: removed file
* unix/ removed reference to .exp files
* mac/MWTkBuildLibHeader.h:
* mac/MW_TkBuildLibHeader.pch:
* mac/MW_TkHeaderCommon.h:
* mac/MW_TkOldImgStaticHeader.h:
* mac/MW_TkStaticHeader.h:
* mac/MW_TkStaticHeader.pch: new precompiled header files
* mac/MW_TkHeader.pch:
* mac/MW_TkOldImgHeader.h:
* mac/MW_TkTestHeader.pch: revised precompiled header handling: now
include a common header file 'MW_TkHeaderCommon.h' from all .pch files,
the .pch files themselves now only setup #defines (e.g. BUILD_tk,
STATIC_BUILD, TCL_DEBUG, TCL_THREADS) like in makefiles on other
* mac/tkMac.h:
* mac/tkMacPort.h:
* mac/tkMacInt.h: use of BUILD_tk and TCL_STORAGE_CLASS like on other
platforms, standardize #include'd files to what's done on other
platforms, removed use of #pragma export, changed extern to EXTERN
where appropriate to enable DLL export via the TCL_STORAGE_CLASS
* mac/tkMacAppearanceStubs.c: removed use of #pragma export
* mac/widget.r: new resource file for 'Widget Demos'
* mac/tkMacProjects.sea.hqx: updated mac build project files:
build support for CodeWarrior Pro6, UnivIntf 3.4 & shared runtime
libraries (see Tcl ChangeLog for details).
changed weak linking so that CFM68k binaries now work on all OS
versions from the free 7.5.5 onwards, with or without AppearanceMgr
and/or NavigationMgr installed.
added target to automatically build 'Widget Demos'
included XML versions of the projects for CW Pro5 or Pro7 users.
use compat/strtod.c instead of MSL's strtod()
* generic/tkInt.decls:
* generic/tkIntDecls.h:
* generic/tkIntPlatDecls.h:
* generic/tkStubInit.c:
* mac/tkMacInt.h: MAC_TCL tk stub support was badly broken due to
multiply defined (mac specific) names in tk.decls and tkInt.decls,
removed the duplicates from the internal unsupported interfaces
"interface tkInt" and "interface tkIntPlat"; moved declaration of
TkpIsWindowFloating from tkMacInt.h to tkInt.decls: interface tkIntPlat.
- these changes to the stub tables might require you to recompile your
Tk extensions if they turn out to reference one of the removed routines
in the wrong table (should be unlikely).
* generic/tkMain.c: MAC_TCL: workaround for broken/non-standard isatty
on MW Pro6, #include <unistd.h> instead of defining isatty
* generic/tkPointer.c: MAC_TCL: #include tkMacInt.h
* generic/tkStubLib.c: MAC_TCL: removed obsolete special casing of mac
headers, standardize #include'd files to what's done on other platforms
* mac/tclets.r:
* mac/tkMacWindowMgr.c:
* mac/tkMacScrlbr.c:
* mac/tkMacMenu.c:
* mac/tkMacMenus.c:
* mac/tkMacFont.c:
* mac/tkMacDialog.c:
* mac/tkMacButton.c: renamed obsolete apple API names to modern
equivalents; UH3.4 support: added #include <ControlDefinitions.h>;
fixed munged non-ASCII chars in sources due to bungled latin1<->mac
roman encoding in CVS repository.
* mac/tkMacDialog.c: added support for -filetypes option (fix for bug
tcl #221636); added update event handling for background windows while
in a NavigationMgr dialog; fixed nasty bug when calling CustomGetFile
(missing addr operator) (fix for bug tk #220911 & tcl #219367); renamed
routines conflicting with standard MoreFiles headers (see Tcl ChangeLog
for details)
* mac/tkMacApplication.r:
* mac/tkMacLibrary.r:
* mac/tkMacResource.r: fixed obsolete copyrights/dates in version
strings, updated version strings to standard usage, added support for
'(Support Libraries)' subfolder for shared runtime libraries in
unmerged binaries, commented out demo setting of "Tcl Environment
Variables"; reorganized resources among these files to avoid
multiple copies in applications and shared libraries, the script
libraries/Xcursors etc are now no longer duplicated in Wish but are
only included in the resources of Tk.shlb.
* mac/tkMacMenu.c:
* mac/tkMacMDEF.r: changes to support MW Pro 6 68k (vers 0x2400 only)
compiler producing different offset to start of MDEF; fix to static 68k
presence testing when calling the custom MDEF
* mac/tkMacWm.c.c:
* mac/tkMacWindowMgr.c: added/fixed AppearanceMgr checks; override
AppearanceMgr version detection on static 68k to ensure static 68k Wish
runs on PPCs with recent AppearanceMgr
* mac/tkMacButton.c: fixed misplaced/missing variable initialization.
2001-11-20 Jeff Hobbs <>
* generic/tkText.c (TextGetText): reworked to use DString for
improved speed. (callewaert, darley)
(DestroyText): plugged mem leak when not clearing stack (callewaert)
(TextGetText): more efficient string size calculation (darley)
2001-11-19 Donal K. Fellows <>
* library/demos/entry3.tcl: New demo showing off validation and
password entry.
* library/demos/widget: Some reorganization to make the code
simpler, plus a new entry demo.
2001-11-17 Jeff Hobbs <>
* win/tkWinButton.c (TkpComputeButtonGeometry): corrected the
default size of Windows buttons to conform to the Windows style.
This changes the default size of buttons on Windows.
[Patch #463234] (nelson)
2001-11-16 Jeff Hobbs <>
* library/menu.tcl: corrected menu traversal code on Unix to
better handle entering cascades. [Patch #481219] (oleinick)
2001-11-16 David Gravereaux <>
* win/ Install target repaired.
2001-11-15 Donal K. Fellows <>
* library/demos/image2.tcl: Many improvements to this
image-viewing demo; now uses labelframes and tk_chooseDirectory
* library/palette.tcl (::tk::RecolorTree): Made this work better
with CDE, which does some extremely annoying things with the
option database that interact badly with Tk's way of handling
* doc/text.n: Overhauled the documentation of undo to make it
easier to understand.
* library/tk.tcl (::tk::EventMotifBindings): Added Emacs-like undo
binding, but not behaviour (we separate undo and redo.)
* library/demos/text.tcl: Show off our undo capability!
2001-11-12 David Gravereaux <>
* win/mkd.bat:
* win/rmd.bat: Removed -kb CVS attribute and added changes
from Llyod Lim for better stability. [Patch #456761]
* win/
* win/
* win/ large rewrite following Tcl's as
a guide and Patch #456761. Appears BugFree(tm).
2001-11-12 Jeff Hobbs <>
* doc/text.n:
* generic/tkText.c:
* generic/tkText.h:
* generic/tkTextTag.c:
* library/text.tcl:
* library/tk.tcl:
* mac/tkMacDefault.h:
* tests/text.test:
* unix/tkUnixDefault.h:
* win/tkWinDefault.h: added TIP #26 implementation of simple
built-in undo/redo of text editing in the text widget.
[Patch #458879] (callewaert)
2001-11-12 Donal K. Fellows <>
* library/demos/menu.tcl: Show off -compound support in menus.
* library/demos/radio.tcl: Added some code to both show off the
extra capabilities of the buttons and also show what can be done
with compound images on the sly.
2001-11-10 Mo DeJong <>
* unix/
* win/ Add "make gdb" target. This target
can run wish inside either gdb or insight.
2001-11-09 Jeff Hobbs <>
* library/clrpick.tcl: changed a few parameters so that the full
0..255 range could be accessed via the mouse. [Bug #478498]
* unix/configure:
* unix/tcl.m4: added -lc to AIX libs, fixed path to ldAix
* win/configure:
* win/tcl.m4:
* win/ add comctl32.lib to build libs.
* win/tkWinX.c (TkWinXInit): added InitCommonControlsEx call.
* win/rc/tk.rc:
* win/rc/wish.rc:
* win/rc/wish.exe.manifest: added resources that specify using v6
of the MS Common Controls library when available (WinXP+). This
enables use of the themeable widgets (like scrollbars) to be used
in Tk. [Patch #478933]
2001-11-09 Mo DeJong <>
* unix/configure:
* unix/tcl.m4: Update from Tcl.
2001-11-08 Mo DeJong <>
* unix/
Avoid adding libc to the LIBS and WISH_LIBS
variables since it is not needed when linking with CC.
If required when linking with LD it should be done
on a case by case basis in tcl.m4.
2001-11-05 Donal K. Fellows <>
* library/demos/dialog2.tcl: Typo-fix.
* library/demos/browse, library/demos/ixset, library/demos/rolodex:
Installation does version number fixup, so we shouldn't. Thanks
to for pointing these (thankfully minor) problems
2001-10-30 Donal K. Fellows <>
* library/demos/widget: Integrated labelframe item into the labels
section and added a spinbox demo to the (retitled) entry section.
* library/demos/labelframe.tcl: Adjusted so as to show off the
labelframe widget to better effect and have a better description.
* library/demos/spin.tcl: New demo to show off spinbox capabilities.
* library/demos/rolodex: Changes up-ported from core-8-3-1-branch
to make the script use more 8.*-isms, but not menus due to the way
the context help system works.
* library/demos/ixset: Changed to use the labelframe widget and
the grid geometry manager.
2001-10-29 Donal K. Fellows <>
* library/demos/browse: Changes up-ported from core-8-3-1-branch
to make the script much more robust, particularly when neither the
current version of wish or the script are on the path.
* library/demos/hello: Added emacs trailing tag-line.
* library/demos/tcolor: Changes up-ported from core-8-3-1-branch
to make the script compliant with current good practise, as well
as extensive use of the new labelframe widget.
* library/demos/timer: Changes up-ported from core-8-3-1-branch to
make the script look and work better.
* library/demos/rmt: Changes up-ported from core-8-3-1-branch to
use more 8.* features and make the demo script more generally
useful to people.
2001-10-23 Donal K. Fellows <>
* generic/tkCursor.c (Tk_GetCursorFromData): Fixed uninit nextPtr
field. [adapted from Patch 473875]
(GetCursor): Removed double-assignment to nextPtr field.
2001-10-19 Jeff Hobbs <>
* library/console.tcl: removed transpose ability until the console
can get a proper rewrite of tag handling.
2001-10-18 Jeff Hobbs <>
* tests/defs.tcl: removed threaded build warning under X.
* library/console.tcl (ConsoleOutput): fixed undefined widget
2001-10-16 Jeff Hobbs <>
* library/xmfbox.tcl: fixed filtering in motif file dialog.
[Patch #469670] (nelson)
* generic/tkWindow.c (OpenIM): Added simple XIM patch to enable
basic XIM input on Unix. [Patch #412727] (fabian)
2001-10-15 Jeff Hobbs <>
* unix/configure:
* unix/
* win/configure:
* win/
* win/ reworked to be a little cleaner in
comparison to each other, and to AC_SUBST even empty vars for
2001-10-12 Todd M. Helfter <>
* ChangeLog:
* doc/menu.n:
* generic/tkMenu.c:
* generic/tkMenu.h:
* generic/tkMenubutton.c:
* generic/tkMenubutton.h:
* mac/tkMacDefault.h:
* mac/tkMacMenu.c:
* mac/tkMacMenubutton.c:
* tests/menu.test:
* unix/tkUnixDefault.h:
* unix/tkUnixMenu.c:
* win/
* win/tkWinDefault.h:
* win/tkWinMenu.c:
* win/tkWinWm.c: Implementation of TIP #63, the addition of
a -compound option to menu entries allowing text and an image to
be displayed at the same time.
2001-10-09 Jeff Hobbs <>
* library/console.tcl: added more smarts extracted from tkcon to
the default console.
2001-10-01 Jeff Hobbs <>
* win/tkWinTest.c: better error reporting from testclipboard
* win/tkWinDialog.c: minor cast changes to support Win64
* win/tkWinWindow.c: made use of standard Tk_GetHWND instead of
older, private TkWinGetHWND.
* win/configure: regen'ed
* win/tcl.m4:
* win/ updated for Win64 SDK RC1 compilation support
2001-09-30 Peter Spjuth <>
* doc/grid.n:
* generic/tkGrid.c:
* tests/grid.test: Added -uniform option to grid's row/column-
configure. [TIP 37] [Patch 459343]
2001-09-26 Peter Spjuth <>
* win/tkWinFont.c (Tk_DrawChars): Added support for clipping text.
* doc/frame.n:
* doc/labelframe.n:
* doc/toplevel.n:
* generic/tkFrame.c:
* generic/tkInt.h:
* generic/tkWindow.c:
* library/demos/radio.tcl:
* library/demos/labelframe.tcl:
* library/demos/widget:
* mac/tkMacDefault.h:
* tests/frame.test:
* unix/tkUnixDefault.h:
* win/tkWinDefault.h: Added labelframe widget. Added -padx/y
options to frame and toplevel.
* tests/grid.test:
* tests/pack.test:
* tests/place.test: Used labelframe to test geometry manager changes.
[TIP 18] [Patch 429164]
2001-09-26 Peter Spjuth <>
* doc/GeomReq.3:
* doc/WindowId.3:
* generic/tk.decls:
* generic/tk.h:
* generic/tkDecls.h:
* generic/tkGeometry.c:
* generic/tkGrid.c (ArrangeGrid):
* generic/tkInt.h:
* generic/tkPack.c (ArrangePacking):
* generic/tkPlace.c (RecomputePlacement):
* generic/tkStubInit.c:
* generic/tkUtil.c (TkComputeAnchor):
* generic/tkWindow.c (TkAllocWindow):
* unix/mkLinks: Geometry manager changes to support TIP#18.
Allows a widget to set different internal border widths on
different sides, and to set a minimum requested size.
2001-09-25 Don Porter <>
* generic/tkBind.c:
* generic/tkInt.decls (TkpScanWindowId):
* unix/tkUnixPort.h (Tkp{Print,Scan}WindowId):
* unix/tkUnixXId.c (TkpScanWindowId):
* win/tkWinWindow.c (TkpScanWindowId): Corrected definition of
TkpScanWindowId to handle situation where types Window and int
do not have the same number of bits. CONST-ified too.
* generic/tkIntPlatDecls.h:
* generic/tkStubInit.c: make genstubs
2001-09-24 Don Porter <>
* generic/tkMain.c (StdinProc): Update to handle change in
return type of Tcl_DStringAppend() from (char *) to (CONST char *).
[TIP 27]
2001-09-23 Peter Spjuth <>
* generic/tkPack.c (ConfigureSlaves):
* tests/pack.test:
* tests/grid.test: Pack accepted asymmetric values for -ipadx/y.
Only -padx/y supports asymmetry. [Bug #462348]
2001-09-21 Jeff Hobbs <>
* win/tkWinWindow.c (TkpPrintWindowId, TkpScanWindowId): fixed to
work on Win64 with 64bit XIDs.
* generic/tkWindow.c (Tk_CreateAnonymousWindow):
* generic/tkEntry.c (GetSpinboxElement): fixed unreachable returns.
* win/tkWinX.c (TkGetServerInfo): added recognition of Win64.
* xlib/X11/X.h: made XID __int64 type for Win64.
* unix/tkUnixPort.h:
* mac/tkMacPort.h: add (int*) cast to TkpScanWindowId.
These may need to be changed to Window* (ulong).
* generic/tkCmds.c (Tk_WinfoObjCmd):
* generic/tkBind.c (NameToWindow):
correct Window id's to be of type Window
* generic/tkIntDecls.h:
* generic/tkIntPlatDecls.h:
* generic/tkInt.decls (TkpScanWindowId): changed decl to use
Window* instead of int*.
* xlib/xcolors.c:
* generic/tkPack.c,tkWindow.c:
* win/tkWinFont.c,tkWinMenu.c:
* unix/tkUnixScale.c: minor cast fixes to prevent 64bit warnings.
* tests/scrollbar.test (scrollbar-6.27): marked knownBug because
it is skewed by bad dimensions returned by Windows.
* tests/textDisp.test (textDisp-4.12): corrected test to work
properly on Windows.
* tests/id.test,macFont.test,macMenu.test,macscrollbar.test:
* tests/send.test,winClipboard.test,winDialog.test,winFont.test:
improved use of test constraints
* win/tkWinWm.c (WinSetIcon): fixed SetClassLong for 64bit support.
2001-09-20 Jeff Hobbs <>
* unix/configure: regen'ed
* unix/tcl.m4: added --enable-64bit support for HP-11 with the
64-bit kernel.
2001-09-17 Don Porter <>
* generic/tkGrid.c (ConfigureSlaves):
* generic/tkPack.c (PackAfter): Corrected type definition of
argument passed to Tcl_GetStringFromObj() from size_t to int.
Incorrect type broke [pack] and [grid] on systems where
sizeof(size_t) != sizeof(int). [Bugs 462375, 462342, 462338]
2001-09-17 Donal K. Fellows <>
* library/choosedir.tcl (DblClick):
* library/tkfbox.tcl (OkCmd, ListInvoke): Rewrote so as to avoid
the highly confusing string "text" and to be consistent about what
is and what is not a list. [Bug 459895, reported by fandom]
2001-09-14 Andreas Kupries <>
* generic/tkImgGIF.c:
* generic/tkImgPPM.c:
* generic/tkImgPhoto.c:
* generic/tkMenu.c: Applied patch [461578], provided by Vincent
Darley. This fixes several memory leaks in the image code. They
happen if there are errors during the initialization of the
channel the image is supposed to be read from.
2001-09-12 Mo DeJong <>
* unix/configure:
* unix/tcl.m4: Update from Tcl.
2001-09-12 D. Richard Hipp <>
* library/tkfbox.tcl: fixed error that appeared when you would
click on the canvas while viewing an empty directory.
2001-09-10 Mo DeJong <>
* unix/configure:
* unix/tcl.m4: Update from Tcl.
2001-09-09 Mo DeJong <>
* win/ Fix Windows Makefile so that
tcltest will automatically be compiled if the
user tries to build tktest.
2001-09-09 Mo DeJong <>
* win/ Use TKTEST variable directly
instead of depending on the tktest alias.
2001-09-08 Mo DeJong <>
* win/mkd.bat:
* win/rmd.bat:
Apply binary property (cvs admin -kb) to files and convert
to CRLF linefeed format to fix the VC++ build. [Tcl Bug #219409]
2001-08-29 Jeff Hobbs <>
* tests/menu.test:
* tests/send.test:
* tests/select.test: corrected to use testConfig constraints in
* tests/unixSend.test: removed test file completely identical to
send.test. Removed platform specific named file in case somebody
gets send working on Win/Mac in the future.
* tests/config.test: added config-14.1 to test namespace import
evaluation of widgets.
* generic/tkButton.c (ButtonCreate):
* generic/tkFrame.c (CreateFrame):
* generic/tkMenubutton.c (Tk_MenubuttonObjCmd):
* generic/tkPlace.c (Tk_PlaceObjCmd):
* generic/tkScale.c (Tk_ScaleObjCmd):
* generic/tkMessage.c (Tk_MessageObjCmd):
* generic/tkEntry.c (Tk_EntryObjCmd, Tk_SpinboxObjCmd):
* generic/tkSquare.c (SquareObjCmd): redid the handling of
optionTables in widgets to allow them to be imported into other
namespaces. [Bug #456632]
2001-08-28 Jeff Hobbs <>
* win/tkWinDialog.c (ChooseDirectoryHookProc): work-around for MS
bug that caused crashing in tk_chooseDirectory on Win95.
[Bug #224936] (baker)
* unix/tkUnixWm.c (TkWmRestackToplevel): reworked how
ConfigureNotify requests were handled in relation to the parent to
avoid the problem with potential 'raise' delays on some wms.
[Bug #220260] (baker) wms that were affected should notice the
difference in tests unixWm-51.* not failing that failed before.
2001-08-26 Don Porter <>
* library/text.tcl (<Shift-Up> binding): Corrected TIP 44 typo
that broke binding. Thanks to "Michal" for the fix.
[Bug 455468]
2001-08-23 Jeff Hobbs <>
* unix/configure:
* unix/tcl.m4: added QNX-6 build support. [Bug #219410] (loverso)
* doc/CrtPhImgFmt.3: removed bogus note about including tkPhoto.h
2001-08-22 Peter Spjuth <>
* generics/tkGrid.c (ConfigureSlaves):
* tests/grid.test: Fixed a bug where adjacent 'x' and '^' where
not handled properly. [Bug #452040]
2001-08-22 Jeff Hobbs <>
* generic/tkPack.c (TkParsePadAmount): added lint init for sepChar.
* tests/dialog.test (HitReturn): fixed failing dialog-2.1 test
because it wasn't always getting focus properly.
2001-08-21 Jeff Hobbs <>
* tests/unixFont.test (unixFont-2.[234]): fixed to be more
sensitive on systems that have more installed fonts.
* library/dialog.tcl (tk_dialog): changed dialog to show bar on
Windows as well and added some y padding between the buttons and
the bar. [Patch #442835] (harrismh)
2001-08-20 Peter Spjuth <>
* generic/tkInt.h:
* generic/tkWindow.c:
* generic/tkGrid.c:
* generic/tkPack.c:
* tests/grid.test:
* tests/oldpack.test:
* tests/pack.test: Objectified grid and pack commands.
2001-08-20 Donal K. Fellows <>
* generic/tkObj.c (TkGetWindowFromObj): Rewrote window code to
reuse a previously worked-out set of window information exactly
when the reference window is the same and no window deletions have
occurred since the object was allocated (display has same epoch
counter.) Required changing the internal rep of the window quite
a bit as now need to save three words-worth of information in the
internal rep (this window, reference window, display epoch.)
* generic/tkObj.c (SetWindowFromAny, DupWindowInternalRep)
(FreeWindowInternalRep): Code to support new internal rep for
window objects.
* generic/tkInt.h: Added epoch counter to TkDisplay structure
* generic/tkWindow.c (GetScreen, Tk_DestroyWindow): Epoch counter
is incremented every time a window is deleted.
2001-08-18 Peter Spjuth <>
* doc/grid.n:
* tests/grid.test:
* generic/tkGrid.c: Grid configure rejected initial "x" and "^".
[Bug #418664]
2001-08-17 Donal K. Fellows <>
* generic/tkObj.c (TkGetWindowFromObj): Was failing to reuse
cached window objects, forcing a call to Tcl_GetStringFromObj and
Tk_NameToWindow every time. This fault has been in there for
nearly three years...
2001-08-15 Don Porter <>
* changes: Labelled the TIP 44 changes as "POTENTIAL INCOMPATIBILITY".
Although technically internal changes are not incompatible, they'll
be perceived as such by those who get bitten, and this will help
them find the cause of their trouble.
2001-08-14 Donal K. Fellows <>
* generic/tk{Util,Font,Cursor,Color,Bitmap,3d}.c: Modified
objtype declarations so that they can be picked up in tkObj.c and
the names are now prefixed with "tk" too.
* generic/tkObj.c (TkRegisterObjTypes):
* generic/tkWindow.c (Initialize):
* generic/tkInt.h: Added code to register Tk's object types with
the Tcl runtime. [Tcl Bug 450545]
2001-08-12 Mo DeJong <>
* unix/configure: Regen.
* unix/tcl.m4: Update from Tcl.
2001-08-10 Donal K. Fellows <>
* library/demos/image2.tcl (loadDir): Converted non-portable
[glob [file join $dirName *]] to [glob -directory $dirName *]
which is both fully portable and more reliable when directory
names contain glob-significant characters. [Bug 223313]
2001-08-08 Don Porter <>
* tests/dialog.test: New file testing [tk_dialog].
* library/dialog.tcl:
* library/tkfbox.tcl: Corrections to problems introduced by
the TIP 44 changes. [Bug 449261]
* generic/tk.h:
* unix/configure:
* unix/
* unix/tk.spec:
* win/configure:
* win/ Bumped up patchlevel to 8.4a4 to distinguish
CVS snapshots from the 8.4a3 release. This does not necessarily
mean there will be an 8.4a4 release. [Bug 448938].
2001-08-07 Jeff Hobbs <>
* unix/ (dist): added {unix,win}/tcl.m4 and
library/msgs/*.msg to dist target. [Bug: #448802]
2001-08-06 Jeff Hobbs <>
* changes:
* README: updated for 8.4a3 release
* unix/configure: regenerated
* unix/tcl.m4: added GNU (HURD) configuration target. (brinkmann)
[Patch: #442974]
2001-08-06 Don Porter <>
* generic/tkConsole.c:
* generic/tkWindow.c:
* library/bgerror.tcl:
* library/dialog.tcl:
* library/msgbox.tcl:
* library/unsupported.tcl:
* mac/tclets.tcl:
* mac/tkMacHLEvents.c:
* mac/tkMacWm.c: TIP 44 changes specific to the Mac and
Windows platforms that were overlooked before: tkOpenDocument,
tkConsoleExit, tkConsoleOutput, unsupported1 out of namespace :: .
Thanks to Vince Darley for prompting another look.
2001-08-03 Jeff Hobbs <>
* win/winMain.c (WishPanic): fixed CONST changes to go with
CONST-ification in Tcl.
* win/configure: regenerated
* win/tcl.m4: fixed DLLSUFFIX definition to always be ${DBGX}.dll.
This is necessary for TEA compliant builds that build shared
against a static-built Tk.
* win/ ($(WISH)): added $(TK_STUB_LIB_FILE) to build
target, otherwise it wouldn't get generated in a static build.
2001-08-01 Don Porter <>
* doc/console.n:
* doc/menu.n:
* doc/text.n:
* doc/tkvars.n:
* generic/tkBind.c:
* generic/tkMenu.c:
* library/bgerror.tcl:
* library/button.tcl:
* library/choosedir.tcl:
* library/clrpick.tcl:
* library/comdlg.tcl:
* library/console.tcl:
* library/dialog.tcl:
* library/entry.tcl:
* library/focus.tcl:
* library/listbox.tcl:
* library/menu.tcl:
* library/msgbox.tcl:
* library/optMenu.tcl:
* library/palette.tcl:
* library/scale.tcl:
* library/scrlbar.tcl:
* library/spinbox.tcl:
* library/tclIndex:
* library/tearoff.tcl:
* library/text.tcl:
* library/tk.tcl:
* library/tkfbox.tcl:
* library/unsupported.tcl:
* library/xmfbox.tcl:
* mac/tkMacMenu.c:
* tests/clrpick.test:
* tests/filebox.test:
* tests/macMenu.test:
* tests/menu.test:
* tests/menuDraw.test:
* tests/msgbox.test:
* tests/text.test:
* tests/unixMenu.test:
* tests/winMenu.test:
* tests/xmfbox.test:
* unix/mkLinks:
* unix/tkUnixDialog.c: Merged changes from feature branch
dgp-privates-into-namespace, implementing TIP 44. All
Tk commands and variables matching tk[A-Z]* are now in the
::tk namespace. See "BRANCH: dgp-privates-into-namespace"
entries below for details. [FR 220936]
2001-07-24 Mo DeJong <>
* generic/default.h: Include tkWinDefault.h
when built with Cygwin or Mingw.
2001-07-18 Don Porter <>
BRANCH dgp-privates-into-namespace:
* doc/console.n: Updated names of private console commands.
2001-07-16 Don Porter <>
BRANCH dgp-privates-into-namespace:
* library/console.tcl:
* library/unsupported.tcl: Renamed tk::histNum to tk::HistNum
as directed by the Tcl Style Guide.
2001-07-10 Mo DeJong <>
* unix/ Add AR and STLIB_LD variables.
* unix/configure:
* unix/ Use STLIB_LD when defining MAKE_LIB