1 2008-08-05 Joe English <jenglish@users.sourceforge.net>
3 * generic/tk.h, generic/tkEvent.c: Fix for [Bug 2010422] "no event
4 type or button # or keysym while executing " bind Listbox
7 2006-11-30 Christopher Faylor <cgf@timesys.com>
9 * tk/win/tcl.m4 (LIB_AC_PROG_CC): Upgrade to avoid use of obsolete
10 ac_cv_cygwin variable.
11 * tk/win/configure: Regenerate.
13 2006-07-13 Steve Ellcey <sje@cup.hp.com>
15 * configure.in: Fix for autoconf 2.5.
16 * unix/tcl.m4: Fix for autoconf 2.5.
17 * configure: Regenerate.
18 * unix/configure: Regenerate.
19 * win/configure: Regenerate.
21 2006-02-08 Alexandre Oliva <aoliva@redhat.com>
23 * unix/tcl.m4 (SC_CONFIG_CFLAGS, SC_BLOCKING_STYLE): Remove
24 unmatched single quote inside backticks.
25 * unix/configure: Rebuild.
27 2003-10-15 Ben Elliston <bje@wasabisystems.com>
29 * win/tcl.m4 (SC_PROG_TCLSH): Replace with version from tcl/win.
30 * win/configure: Regenerate.
32 2003-02-07 Martin M. Hunt <hunt@redhat.com>
34 * win/tcl.m4 (SC_CONFIG_CFLAGS): Don't default to -O.
35 * unix/tcl.m4 (SC_CONFIG_CFLAGS): Don't default to -O.
36 CFLAGS gets set to "-O2" by default in top level
37 configure. Adding "-O" here causes the "-O2" to be
38 ignored, but only when the user types "make" within
39 the tcl subdirectory. This caused some confusion.
40 * win/configure: Rebuilt.
41 * unix/configure: Rebuilt.
44 2002-10-22 Jeff Hobbs <jeffh@ActiveState.com>
46 *** 8.4.1 TAGGED FOR RELEASE ***
48 * changes: updated for 8.4.1 release
50 2002-10-21 Daniel Steffen <das@users.sourceforge.net>
52 * macosx/README: revised according to Jim's suggestions
53 * macosx/tkMacOSXAppInit.c: use standard PATH_MAX from <limits.h>
55 2002-10-18 Jeff Hobbs <jeffh@ActiveState.com>
57 * win/winMain.c (WinMain, main): remove obsolete SetMessageQueue call
59 * win/configure: Regen.
60 * win/tcl.m4 (SC_CONFIG_CFLAGS): Check for bug in Cygwin version
61 of windres and work around that case by passing a POSIX path
62 instead of a Windows native path. One can't always pass a POSIX
63 path because the mingw native toolchain accepts only Windows
64 native paths. (dejong)
66 * win/tkWinPort.h: define OPEN_MAX only if not defined.
67 [Patch #625472] (howell)
69 2002-10-18 Daniel Steffen <das@users.sourceforge.net>
71 * mac/tkMacAppInit.c: removed tcltest dependency.
72 [Bug #592639] (porter)
74 2002-10-17 Jeff Hobbs <jeffh@ActiveState.com>
76 * tests/imgPhoto.test:
77 * generic/tkImgPhoto.c (ImgPhotoConfigureMaster): fix arg handling
78 for missing -format or -data options. [Bug #624974]
80 * tests/text.test: properly return the number of
81 * unix/tkUnixFont.c (ControlUtfProc): bytes consumed. [Bug #624732]
83 2002-10-17 Daniel Steffen <das@users.sourceforge.net>
85 * macosx/README: info specific to building and running
86 TclTk on Mac OS X, answers to tcl-mac list FAQs.
87 * macosx/Makefile: permission fix after embedded install.
88 * macosx/Wish.pbproj/project.pbxproj: after install, fix
89 permissions of uninstalled products.
91 2002-10-17 Daniel Steffen <das@users.sourceforge.net>
93 * macosx/Wish.pbproj/project.pbxproj: added TEXT document
94 type to plist so that files can be dragged onto Wish Shell.
96 * macosx/tkMacOSXInt.h:
97 * macosx/tkMacOSXInit.c:
98 * macosx/tkMacOSXFont.c: added private proc
99 TkMacOSXUseAntialiasedText() to enable/disable quickdraw
100 text antialiasing where available, default is enabled.
101 Added a linked boolean ::tk::mac::antialiasedtext with
102 write trace to allow control of antialiasing from tcl.
104 2002-10-16 Vince Darley <vincentdarley@users.sourceforge.net>
106 * macosx/tkMacOSXMenu.c: fix to accelerators shown in menus
107 with non-alphanumeric keys.
108 * macosx/tkMacOSXKeyEvent.c:
109 * macosx/tkMacOSXKeyboard.c: applied first patch from [Patch
110 #622582] to fix some of [Bug #616988]. Further work is needed
111 in this area, but this will let foreign keyboards at least work
114 2002-10-15 Jeff Hobbs <jeffh@ActiveState.com>
117 * unix/tcl.m4: add AIX-5 ppc build support. Remove unused
121 * win/tcl.m4: Add --enable-shared=mem support.
123 2002-10-10 Peter Spjuth <peter.spjuth@space.se>
126 * generic/tkGrid.c: The grid size was not updated properly
127 when removing a widget from a grid. [Bug #621241] (forssen)
129 2002-10-10 Jeff Hobbs <jeffh@ActiveState.com>
131 * tests/canvPs.test: tests for canvas embedded window ps generation
132 * generic/tkCanvWind.c (CanvasPsWindow): removed dead code loop.
133 * generic/tkCanvas.h: moved TkColormapData struct to tkCanvPs.c
134 * generic/tkCanvPs.c (TkImageGetColor): corrected bogus use of
135 TkColormapData on Windows (Windows now requires RGB pixel data
137 * win/tkWinImage.c (XGetImage, XGetImageZPixmap): added support
138 for generating ps for embedded widgets on canvases on Windows,
139 tested for 8, 16, 24 and 32-bit depths (XGetImageZPixmap not used).
141 * library/tk.tcl: simplified the adding of extra <ISO_Left_Tab>
142 and <hpBackTab> events to <<PrevWindow>>.
144 2002-10-09 Jeff Hobbs <jeffh@ActiveState.com>
146 * unix/README: doc'ed --enable-symbols options.
147 * unix/Makefile.in: comment docs
148 * unix/configure: regen
149 * unix/tcl.m4: replaced SC_ENABLE_MEMDEBUG with a more intelligent
150 SC_ENABLE_SYMBOLS that takes yes|no|mem|all as options now.
152 2002-10-09 Don Porter <dgp@users.sf.net>
154 * generic/tk.h: Added reminder comment to edit
155 macosx/Wish.pbproj/project.pbxproj when version number changes.
157 2002-10-09 Daniel Steffen <das@users.sourceforge.net>
159 * macosx/Makefile: don't remove tclsh after building embedded.
161 * macosx/Wish.pbproj/project.pbxproj: bumped version to 8.4.1;
162 added missing library/mkpsenc.tcl to framework.
164 2002-10-09 Daniel Steffen <das@users.sourceforge.net>
166 * generic/tkInt.decls(tkIntXlib): added XQueryTree declaration for
167 mac & aqua, since it's now called from ParentXId via Tk_HandleEvent.
168 * generic/tkIntXlibDecls.h:
169 * generic/tkStubInit.c: regen.
170 * mac/tkMacXStubs.c: added XQueryTree stub
172 * mac/tkMacEmbed.c (TkpUseWindow): check that container window
173 has -container option set (sync with other platforms).
179 * mac/tkMacWm.c: CONSTification.
181 * mac/tkMacProjects.sea.hqx: added tkStyle.c and tkUndo.c to
184 2002-10-09 Donal K. Fellows <fellowsd@cs.man.ac.uk>
186 * generic/tkImgPhoto.c (ImgPhotoSetSize): Only error-out if we
187 fail to allocate a non-empty buffer; getting a NULL when we
188 allocate an empty buffer is no problem since nothing will look at
189 the value anyway. [Bug 619544]
190 Also tidied up file to take into account the fact that we're using
191 32 bits per pixel in the master to accommodate the alpha channel
194 2002-10-08 Jeff Hobbs <jeffh@ActiveState.com>
196 * tests/winButton.test: add option clear to top to prevent option
197 leakage from other tests causing problems. [Bug #582382]
199 * generic/tkPanedWindow.c (Tk_PanedWindowObjCmd): leave the
200 DestroyPanedWindow proc to free the pwPtr, add a Preserve
201 reference to the pwPtr->tkwin.
202 (DestroyPanedWindow): Release the pwPtr->tkwin.
204 * generic/tkFocus.c (TkFocusFilterEvent): Ignore event if we are
205 focusing into a dead window. [Bug #588831] (griffin)
207 2002-10-02 Jim Ingham <jingham@apple.com>
209 * macosx/tkMacOSXScrlbr.c (TkpDisplayScrollbar): Put the Tk scrollbar
210 pointer into the control reference data for the Mac scrollbar, so we
211 can get it out again in the ScrollbarActionProc.
213 2002-10-02 Jeff Hobbs <jeffh@ActiveState.com>
215 * generic/tkText.c (TextBlinkProc): don't blink the cursor unless
216 it is visible. [Bug #616791] [Patch #614474] (bonfield)
218 * tests/entry.test: added entry-20.7
219 * generic/tkEntry.c (EntryTextVarProc): check if the entry is
220 being deleted before handling an associated textvariable.
221 [Bug #607390 #617446]
223 2002-10-01 Donal K. Fellows <fellowsd@cs.man.ac.uk>
225 * tests/unixSelect.test (unixSelect-1.1[89]): Altered these tests
226 to work around [Bug #616923]
227 * unix/tkUnixSelect.c (SelRcvIncrProc,TkSelPropProc): It turns out
228 a much simpler and more robust solution is possible if we leverage
229 Tcl's encoding engine by using the same code path as for the
230 normal string selection. It might be a bit slower, but it should
231 be a lot more correct. [Bug #614650]
233 2002-09-30 Jeff Hobbs <jeffh@ActiveState.com>
235 * tests/panedwindow.test: added panedwindow-28.[12]
236 * generic/tkPanedWindow.c (PanedWindowCmdDeletedProc):
237 (Tk_PanedWindowObjCmd): when destroying the panedwindow, destroy
238 the proxy before the parent to avoid dependency conflicts.
241 2002-09-30 Donal K. Fellows <fellowsd@cs.man.ac.uk>
243 * tests/unixSelect.test: Test for various things that can fail to
245 * unix/tkUnixSelect.c (TkSelPropProc,SelRcvIncrProc): Incremental
246 transfers of UTF8_STRING selections should now work; Tk will now
247 tag them with the right size and only transfer complete UTF8
248 characters. Previously, things only worked when the transfer
249 could only happen in one go, and even then not always. [Bug 614650]
251 * doc/bind.n: Doc-fix to mention that %A substitutes UNICODE
252 characters rather than ASCII ones. Tk's done this ever since 8.1
253 in any case; after all, it is the right thing to do.
255 2002-09-27 Don Porter <dgp@users.sf.net>
257 * README: Bumped to version 8.4.1 to avoid confusion
258 * generic/tk.h: of CVS snapshots with release 8.4.0.
264 * unix/configure: autoconf
267 2002-09-26 Jeff Hobbs <jeffh@ActiveState.com>
269 * unix/configure: regen.
270 * unix/tcl.m4: improve AIX-4/5 64bit compilation support.
272 * unix/Makefile.in: add macosx subdir to dist target.
273 Do not generate .Z, only .gz and .zip in alldist target.
275 2002-09-18 Mumit Khan <khan@nanotech.wisc.edu>
277 Added basic Cygwin support.
279 * win/tcl.m4 (SC_PATH_TCLCONFIG): Support one-tree build.
280 (SC_PATH_TKCONFIG): Likewise.
281 (SC_PROG_TCLSH): Likewise.
282 (SC_CONFIG_CFLAGS): Assume real Cygwin port and remove -mno-cygwin
283 flags. Add -mwin32 to extra_cflags and extra_ldflags.
284 Remove ``-e _WinMain@16'' from LDFLAGS_WINDOW.
285 * win/configure: Regenerate.
287 * win/tkWinPort.h (tchar.h): Do not include on Cygwin.
288 (_T): Define for Cygwin.
289 * win/winMain.c (main): Conditionally define.
291 2002-09-26 Daniel Steffen <das@users.sourceforge.net>
293 * macosx/Makefile: preserve environment value of INSTALL_ROOT.
294 When embedding only use deployment build. Force relink before
295 embedded build to ensure new linker flags are picked up.
297 * macosx/buildTkConfig.tcl (new):
298 * macosx/Wish.pbproj/project.pbxproj: synthesize tkConfig.sh
299 based on tclConfig.sh in Tcl.framework and tkConfig.sh.in.
300 Add symbolic links to debug lib, stub libs and tkConfig.sh
301 in framework toplevel. Made tkIntXlibDecls.h a public header
302 since Headers/X11/Xlib.h includes it. Install wish8.4 script
303 that runs "Wish Shell.app" and corresponding wish link.
304 Use tcl headers from built Tcl.framework instead of from tcl
307 * macosx/tkMacOSXPort.h: added missing standard unix includes
308 and defines, similarly to tkUnixPort.h.
309 * macosx/tkMacOSXNotify.c: removed dependency on internal tcl
313 * unix/install-sh: copied support for 'install-strip' target
314 over from tcl/unix/{Makefile.in,install-sh}
316 2002-09-22 Jim Ingham <jingham@apple.com>
318 * macosx/tkMacOSXScrlbr.c (UpdateControlValue): HiliteControl
319 doesn't give the proper "nothing to scroll" look on Mac OS X.
320 You have to set the min value greater than the max value to
323 2002-09-15 Mo DeJong <mdejong@users.sourceforge.net>
325 * unix/configure: Regen.
326 * unix/tcl.m4: Update from Tcl.
327 * unix/tkUnixEvent.c (TkpCloseDisplay): Use PEEK_XCLOSEIM
328 to examine the input context queue before invoking
329 XCloseIM. Generate an assert if there is an input
330 context that has not been freed.
333 2002-09-13 Andreas Kupries <andreas_kupries@users.sourceforge.net>
335 * generic/tk.h: Moved RC_INVOKED down so that tcl.h is still
336 included when running the resource compiler. <tcl.h> excludes
337 the unnecessary parts on its own. This reenables the Windows
338 build. It failed because the non-inclusion of tcl.h caused the
339 resource compiler to miss some vital macro definitions
340 (TCL_FINAL_RELEASE, STRINGIFY, ...).
342 2002-09-12 Daniel Steffen <das@users.sourceforge.net>
345 * mac/tkMacApplication.r:
346 * mac/tkMacLibrary.r:
347 * mac/tkMacResource.r:
348 * macosx/tkAboutDlg.r:
349 * macosx/tkMacOSXApplication.r:
350 * macosx/tkMacOSXLibrary.r:
351 * macosx/tkMacOSXResource.r: unified use of the two equivalent
352 resource compiler header inclusion defines RC_INVOKED and
353 RESOURCE_INCLUDED, now use RC_INVOKED throughout.
355 * macosx/tkMacOSXAppInit.c: improved detection of Wish startup
356 by the finder (by checking if stdin is /dev/null), in which
357 case we want to bring up the Tk console window.
359 * macosx/tkMacOSXHLEvents.c: added 'rapp' apple event handler.
361 2002-09-12 Daniel Steffen <das@users.sourceforge.net>
363 * macosx/Wish.pbproj/project.pbxproj: reference & install
364 tk/generic/prolog.ps instead of tk/library/prolog.ps.
366 2002-09-10 Daniel Steffen <das@users.sourceforge.net>
368 * macosx/Wish.pbproj/project.pbxproj: added backwards
369 compatibility for OSX 10.1 ProjectBuilder 2.0.
371 2002-09-10 Daniel Steffen <das@users.sourceforge.net>
373 * unix/Makefile.in: added DYLIB_INSTALL_DIR variable for Darwin
374 and set it to default value ${LIB_RUNTIME_DIR}
375 * unix/tcl.m4 (Darwin): use DYLIB_INSTALL_DIR instead of
376 LIB_RUNTIME_DIR in the -install_name argument to ld.
377 * unix/configure: regen.
379 * macosx/Wish.pbproj/project.pbxproj:
380 * macosx/Makefile: added support for building Tcl as an embedded
381 framework, i.e. using an dyld install_name containing
382 @executable_path/../Frameworks via the new DYLIB_INSTALL_DIR
383 unix/Makefile variable.
385 2002-09-10 Jeff Hobbs <jeffh@ActiveState.com>
387 *** 8.4.0 TAGGED FOR RELEASE ***
389 2002-09-09 Jeff Hobbs <jeffh@ActiveState.com>
391 * macosx/tkMacOSXNotify.c (Tk_MacOSXSetupTkNotifier): corrected
392 Mac Jaguar event loop issue.
394 * library/tk.tcl: use command instead of control on Aqua bindings.
395 Force dialogs to appear below fixed native Mac menubar.
396 * macosx/tkMacOSXKeyEvent.c:
397 * macosx/tkMacOSXKeyboard.c: Keypress/release events for pure
398 modifier keys were not being passed to Tk.
399 Deadkey presses were inserting null characters into text windows.
400 Now they do nothing. (Still not ideal, but better than before!)
401 * macosx/tkMacOSXMenu.c: Allow more than 200 menus to exist -
403 * macosx/tkMacOSXMouseEvent.c: Bad interactions between floating
404 windows and ordinary ones. Ensure that local<->global coordinate
405 transformations are wrt to the correct window.
406 * macosx/tkMacOSXWm.c: Better error msg for 'wm attributes'.
407 Remove crash in 'wm transient'.
408 Add 'noActivates' and 'noUpdates' flags to unsupported command.
409 [Patch #606658] (darley)
411 * library/xmfbox.tcl (::tk::MotifFDialog_ActivateSEnt): corrected
412 msgcat code with XPG specifier. [Patch #606719] (miller)
414 2002-09-06 Don Porter <dgp@users.sf.net>
416 * tests/unixWm.test (unixWm-50.3): Constrained test that hangs
419 2002-09-05 Daniel Steffen <das@users.sourceforge.net>
421 * macosx/Wish.pbproj/project.pbxproj: added overlooked missing
422 TK_PATCH_LEVEL version bump to 8.4.0.
424 2002-09-04 Andreas Kupries <andreas_kupries@users.sourceforge.net>
426 * win/Makefile.in (install-libraries): Added code section to
427 install the message catalogs. Copied same section from
428 unix/Makefile.in and adapted it to the slightly different
431 2002-09-03 Jeff Hobbs <jeffh@ActiveState.com>
433 * library/button.tcl: further restrict buttons to not resetting
434 the "original" relief if it has changed in the interim. This
435 prevents code that simulated overrelief buttons from not working
436 in 8.4. [Bug #604270]
438 2002-09-03 Daniel Steffen <das@users.sourceforge.net>
440 * macosx/Wish.pbproj/project.pbxproj: Bumped version number to
441 8.4.0 and updated copyright info.
443 2002-09-03 Vince Darley <vincentdarley@users.sourceforge.net>
445 * macosx/tkMacOSXWm.c: fix to 'wm attributes' error-handling bug.
447 2002-09-03 Don Porter <dgp@users.sf.net>
449 * changes: Updated for 8.4.0 release
451 2002-09-02 Jeff Hobbs <jeffh@ActiveState.com>
453 * tests/cursor.test: reverted 2002-08-31 change for OS X to use
454 'heart' cursor because 'arrow' on windows has a pre-skewed use
457 * tests/button.test: added button-14.1
458 * win/tkWinButton.c (TkpComputeButtonGeometry): correct Win button
459 sizing to be equal for one-line buttons with -height of 0 or 1, as
460 well as -height 0 buttons with empty text and no image, which
461 should be the same as single-line text buttons. [Bug #565485]
463 * library/button.tcl (::tk::ButtonLeave): correctly restore state
464 of button to normal for unix bindings. [Bug #597920]
466 * doc/tk.n: added tk windowingsystem docs.
469 * unix/tkUnixWm.c: remove possible 2-second delay in 'raise'.
470 [Patch #601518] (english) TIP #107
472 * unix/tcl.m4: add support for 64-bit builds on HP-11 with gcc.
473 * unix/configure.in: make sure to substitute LD_LIBRARY_PATH_VAR.
474 * unix/configure: regend
476 * README: Bumped version number to 8.4.0
485 * generic/tkWindow.c: made 'tk' available in safe interpreters,
486 but only the caret and windowingsystem subcommands may be called.
487 * tests/safe.test (safe-1.2): noted that tk is now available in
488 safe interps, but not the appname/scaling subcommands.
490 * tests/tk.test (tk-1.2): noted new tk windowingsystem subcommand
492 2002-08-31 Daniel Steffen <das@users.sourceforge.net>
494 * unix/tcl.m4: update from Tcl
496 * unix/Makefile.in: import of TK_SHLIB_LD_EXTRAS for Tk library
497 specific linker settings. Added use of new LD_LIBRARY_PATH_VAR.
499 * unix/configure: regen
501 2002-08-31 Daniel Steffen <das@users.sourceforge.net>
503 *** macosx-8-4-branch merged into the mainline [tcl patch #602770] ***
506 * generic/tkInt.decls: added new "aqua" specific entries to the
507 stubs tables. Changed all "unix" entries to "x11" to allow us to
508 distinguish and build both "aqua" on MacOSX and "x11" on MacOSX.
510 * generic/tk.h: added a #ifnded RESOURCE_INCLUDED so that tk.h can
511 be passed to the resource compiler.
513 * generic/tkCmds.c (Tk_TkObjCmd): added [tk windowingsystem]
514 subcommand: returns "x11" when running on X11, "win32" on Windows,
515 "classic" on MacOS9 and "aqua" on MacOSX Aqua (i.e. Carbon)
517 * generic/tkFont.c (TkFontGetFirstTextLayout): new private function
518 returning the first chunk of a Tk_TextLayout, i.e. until the first
519 font change on the first line (or the whole first line if there is
520 no such font change).
522 * generic/tkMain.c: made Tcl_ThreadDataKey static
524 * library/demos/puzzle.tcl: fixed button metrics for aqua
526 * tests/cursor.test: check for presence of arrow cursor instead of
529 * xlib/xcolors.c: changed xColors static initialization to more
532 * macosx/Wish.pbproj/jingham.pbxuser (new):
533 * macosx/Wish.pbproj/project.pbxproj (new): project for Apple's
536 * macosx/Makefile (new): simple makefile for building the project
537 from the command line via the ProjectBuilder tool 'pbxbuild'.
539 * macosx/tkMacOSXAppInit.c (new): macosx specific AppInit looking
540 for a AppMain.tcl file in its bundled Resources/Scripts folder. If
541 present, argv[1] is set to that file and the Scripts folder is
542 added to the auto_path. This allows tk apps to embed scripts within
543 their bundle directory structure.
545 * macosx/tkMacOSXInit.c (new): macosx adapted version of
546 tkUnixInit.c: we initialize & cache the Carbon native encoding
547 (e.g. 'macRoman') and try to find the tk script library files
548 inside Tk packaged as a framework.
550 * macosx/tkMacOSXNotify.c (new): new macosx specific merged
551 Carbon/select-based notifier.
553 * macosx/tkMacOSXEvent.c (new):
554 * macosx/tkMacOSXEvent.h (new):
555 * macosx/tkMacOSXKeyEvent.c (new):
556 * macosx/tkMacOSXMouseEvent.c (new):
557 * macosx/tkMacOSXWindowEvent.c (new): new macosx specific event
558 handling functionality.
560 * macosx/tkMacOSX.h (new):
561 * macosx/tkMacOSXBitmap.c (new):
562 * macosx/tkMacOSXButton.c (new):
563 * macosx/tkMacOSXClipboard.c (new):
564 * macosx/tkMacOSXColor.c (new):
565 * macosx/tkMacOSXConfig.c (new):
566 * macosx/tkMacOSXCursor.c (new):
567 * macosx/tkMacOSXDefault.h (new):
568 * macosx/tkMacOSXDialog.c (new):
569 * macosx/tkMacOSXDraw.c (new):
570 * macosx/tkMacOSXEmbed.c (new):
571 * macosx/tkMacOSXFont.c (new):
572 * macosx/tkMacOSXHLEvents.c (new):
573 * macosx/tkMacOSXInt.h (new):
574 * macosx/tkMacOSXKeyboard.c (new):
575 * macosx/tkMacOSXMenu.c (new):
576 * macosx/tkMacOSXMenubutton.c (new):
577 * macosx/tkMacOSXMenus.c (new):
578 * macosx/tkMacOSXPort.h (new):
579 * macosx/tkMacOSXRegion.c (new):
580 * macosx/tkMacOSXScale.c (new):
581 * macosx/tkMacOSXScrlbr.c (new):
582 * macosx/tkMacOSXSubwindows.c (new):
583 * macosx/tkMacOSXTest.c (new):
584 * macosx/tkMacOSXUtil.c (new):
585 * macosx/tkMacOSXUtil.h (new):
586 * macosx/tkMacOSXWm.c (new):
587 * macosx/tkMacOSXWm.h (new):
588 * macosx/tkMacOSXXStubs.c (new): macosx ports of classic mac Tk
589 implementation in tk/mac.
591 * macosx/tkMacOSXSend.c (new): only send to local interp
592 implemented currently.
594 * macosx/tkMacOSXDebug.h (new):
595 * macosx/tkMacOSXDebug.c (new): new macosx specific functions for
596 debugging MacOS events, regions, etc.
598 * macosx/tkAboutDlg.r (new):
599 * macosx/tkMacOSXApplication.r (new):
600 * macosx/tkMacOSXCursors.r (new):
601 * macosx/tkMacOSXLibrary.r (new):
602 * macosx/tkMacOSXMenu.r (new):
603 * macosx/tkMacOSXResource.r (new):
604 * macosx/tkMacOSXXCursors.r (new):
605 * macosx/tclets.r (new): sources for Rez resource compiler.
607 * macosx/Wish.icns (new): Wish application icon.
614 * generic/tkPointer.c:
616 * generic/tkSelect.c:
617 * generic/tkStubLib.c:
620 * generic/tkWindow.c:
625 * xlib/X11/Xutil.h: added #includes and #ifdefs for macosx
627 * library/bgerror.tcl:
628 * library/button.tcl:
629 * library/console.tcl:
630 * library/dialog.tcl:
632 * library/listbox.tcl:
634 * library/msgbox.tcl:
635 * library/scrlbar.tcl:
636 * library/spinbox.tcl:
639 * library/demos/menu.tcl:
640 * library/demos/menubu.tcl:
641 * library/demos/widget: check [tk windowingsystem] instead of
642 and/or in addition to $tcl_platform(platform).
646 * mac/tkMacWm.c: added missing CONSTification
648 * generic/tkIntDecls.h:
649 * generic/tkIntPlatDecls.h:
650 * generic/tkIntXlibDecls.h:
651 * generic/tkPlatDecls.h:
652 * generic/tkStubInit.c: regen
654 2002-08-27 D. Richard Hipp <drh@hwaci.com>
656 * doc/checkbutton.n: [Bug 582457] Fix the -offrelief option so
657 * doc/radiobutton.n: that when -offrelief is flat and -relief is
658 * mac/tkMacButton.c: sunken and -overrelief is raised, buttons
659 * unix/tkUnixButton.c: work look toolbar buttons under Windows.
660 * win/tkWinButton.c: See also: TIP #82.
662 2002-08-26 Don Porter <dgp@users.sf.net>
664 * win/Makefile.in: Removed dependence on the (parts of) the
665 * win/winMain.c: tcltest executable on Windows. It was not
666 used, and the dependency complicated the Makefile. [Bug 592638].
668 2002-08-20 Don Porter <dgp@users.sf.net>
670 * README: Bumped version number to 8.4b3 to distinguish
671 * generic/tk.h: HEAD from the 8.4b2 release.
676 * unix/configure: autoconf
679 * generic/tk.h: Added compile-time check that the tcl.h header file
680 #included by Tk 8.4 is one from Tcl 8.4. This is needed to be sure
681 that new #defines like CONST84 are available. [Bug 597432].
683 2002-08-16 Jeff Hobbs <jeffh@ActiveState.com>
685 * unix/Makefile.in (install-binaries): simplified pkgIndex.tcl
686 file created on installation.
687 * win/Makefile.in (install-binaries): corrected and simplified
688 creation of pkgIndex.tcl file on installation.
690 2002-08-14 Vince Darley <vincentdarley@users.sourceforge.net>
693 * win/makefile.vc: broken compilation and link from changes
695 * win/tkWinTest.c: CONST problem resolved.
697 2002-08-13 Jeff Hobbs <jeffh@ActiveState.com>
699 * library/button.tcl: change the bindings to use Priv($w,relief)
700 instead of just Priv(relief). This ensures that neighboring
701 buttons don't confuse (over)relief settings.
703 2002-08-13 Reinhard Max <max@suse.de>
705 * unix/tkUnixSend.c (Tk_SetAppName): Fixed a compiler warning.
707 2002-08-12 Donal K. Fellows <fellowsd@cs.man.ac.uk>
709 * library/demos/image2.tcl: Tweaked the behaviour of the directory
710 box on resize, as resizing of the overall window tends to be
711 common given the sample images.
713 2002-08-08 Mo DeJong <mdejong@users.sourceforge.net>
715 * unix/tkUnixWm.c (WmTransientCmd): Apply fix for
716 wm transient assertion error that was applied
717 to tkWinWm.c for Tk Bug #592201.
719 2002-08-08 Mo DeJong <mdejong@users.sourceforge.net>
721 * tests/wm.test: Add deleteWindows at start of
722 new transient tests so they do not fail if the
723 toplevels already exist.
724 * unix/tkUnixWm.c: Revert patch for Tk Bug #592201
725 which incorrectly removed numTransients member.
727 2002-08-08 Joe English <jenglish@users.sourceforge.net>
731 * tests/wm.test: Fix for Tk Bug #592201 "wm transient fails with two
732 masters"; fixes panic after a transient window is reassigned to
733 new master and either master is subsequently destroyed.
735 2002-08-08 Don Porter <dgp@users.sf.net>
737 * tests/unixWm.test: Corrected packaging of unixWm-50.3 so that
738 [setupbg] and [cleanupbg] always balance, no matter what tests
741 2002-08-08 Reinhard Max <max@suse.de>
743 * unix/Makefile.in: Fixed typos in DISTNAME, and ZIPNAME.
745 2002-08-08 Jeff Hobbs <jeffh@ActiveState.com>
747 *** 8.4b2 TAGGED FOR RELEASE ***
749 * generic/tkButton.c (TkButtonWorldChanged): added GCFont handling
750 to the disabledGc of buttons when compound != none. The drawing
751 appears to be incorrect across platforms still. [Bug #477740]
753 * generic/tkImgGIF.c (FileReadGIF): fixed -from handling for gifs
754 [Bug #467524] (obermeier)
756 2002-08-07 Jeff Hobbs <jeffh@ActiveState.com>
758 * generic/tkCanvUtil.c (TkSmoothParseProc): recognize the built-in
759 bezier method by name. [Bug #578654]
760 * doc/canvas.n: update to note that -smooth really doesn't take
761 or return just booleans.
763 * win/tkWinMenu.c (TkpSetWindowMenuBar): fixed logic bug in when
764 to idle call ReconfigureWindowsMenu.
766 * doc/GetBitmap.3: removed doc refs to deprecated
767 Tk_GetBitmapFromData. [Bug #590379]
769 * generic/tkPanedWindow.c (Tk_PanedWindowObjCmd):
770 * library/panedwindow.tcl: changed class from PanedWindow to
771 Panedwindow to not conflict with existing bwidgets, but also to be
772 more regular with other names used in the core.
774 * tests/panedwindow.test: added -text foobar to some test buttons
775 to enable correct testing of panedwindow across platforms.
778 * win/tkWinDialog.c: enabled use of the updated native Windows
779 directory browser (tk_chooseDirectory). This does require
780 shell32.dll v4.71 or greater. [Patch #468139]
783 * win/tcl.m4: added shell32 to libs for updated native Windows
784 tk_chooseDirectory dialog.
786 2002-08-06 Donal K. Fellows <fellowsd@cs.man.ac.uk>
788 * generic/tkPanedWindow.c (RESIZE_PENDING): Separated out flag for
789 indicating that a resize needs to be issued.
790 (PanedWindowReqProc): Do the old behaviour when the panedwindow is
791 not mapped; easiest way of making the test suite pass while still
792 preserving improved behaviour in the face of children whose size
793 is not known immediately.
795 2002-08-06 Don Porter <dgp@users.sf.net>
797 * tests/defs.tcl: removed file. No longer needed now that Tk is
798 using the tcltest package to do its testing.
800 2002-08-05 Don Porter <dgp@users.sf.net>
802 * win/tkWinFont.c: Additional changes to fix CONST warnings on
803 * win/tkWinWM.c: Windows due to latest patch. Tks Vince Darley.
805 * doc/3DBorder.3: Applied companion patch for Tcl Patch 585105,
806 * doc/BindTable.3: updating Tk to use Tcl 8.4's fully CONST-ified
807 * doc/ConfigWidg.3: interface, and fully CONSTifying Tk at the
808 * doc/CrtImgType.3: same time.
810 * doc/DeleteImg.3: This patch includes purging Tk of its last
811 * doc/FindPhoto.3: direct access to interp->result. [Bug 589853]
813 * doc/GetBitmap.3: The substantial changes include copying
814 * doc/GetCapStyl.3: event sequence strings into Tcl_DStrings
815 * doc/GetClrmap.3: in tkBind.c, and copying [text] indices into
816 * doc/GetColor.3: Tcl_DStrings because parsing them involved
817 * doc/GetCursor.3: overwriting them. If this causes performance
818 * doc/GetFont.3: trouble, that can be resolved by further
819 * doc/GetImage.3: converting them to Tcl_Obj's.
821 * doc/GetJustify.3: The #defines USE_NON_CONST and USE_COMPAT_CONST
822 * doc/GetOption.3: have the same effect for Tk as they do for Tcl.
823 * doc/GetRelief.3: (They actually change tcl.h)
835 * generic/tkBitmap.c:
836 * generic/tkButton.c:
837 * generic/tkCanvArc.c:
838 * generic/tkCanvBmap.c:
839 * generic/tkCanvImg.c:
840 * generic/tkCanvLine.c:
841 * generic/tkCanvPoly.c:
842 * generic/tkCanvPs.c:
843 * generic/tkCanvText.c:
844 * generic/tkCanvUtil.c:
845 * generic/tkCanvWind.c:
846 * generic/tkCanvas.c:
847 * generic/tkCanvas.h:
848 * generic/tkClipboard.c:
851 * generic/tkConfig.c:
852 * generic/tkConsole.c:
853 * generic/tkCursor.c:
861 * generic/tkImgBmap.c:
862 * generic/tkImgPhoto.c:
863 * generic/tkInt.decls:
865 * generic/tkIntDecls.h:
866 * generic/tkIntPlatDecls.h:
867 * generic/tkListbox.c:
869 * generic/tkMenubutton.c:
870 * generic/tkMessage.c:
871 * generic/tkOldConfig.c:
872 * generic/tkOption.c:
873 * generic/tkRectOval.c:
875 * generic/tkScrollbar.c:
876 * generic/tkSelect.c:
881 * generic/tkTextBTree.c:
882 * generic/tkTextDisp.c:
883 * generic/tkTextImage.c:
884 * generic/tkTextIndex.c:
885 * generic/tkTextMark.c:
886 * generic/tkTextTag.c:
887 * generic/tkTextWind.c:
889 * generic/tkVisual.c:
890 * generic/tkWindow.c:
895 * unix/tkUnixConfig.c:
896 * unix/tkUnixCursor.c:
897 * unix/tkUnixEmbed.c:
899 * unix/tkUnixSelect.c:
908 2002-08-02 Donal K. Fellows <fellowsd@cs.man.ac.uk>
910 * generic/tkPanedWindow.c (DestroyPanedWindow): Idle calls need to
911 be deleted on destruction of the window, or things can *really* go
914 2002-07-31 Donal K. Fellows <fellowsd@cs.man.ac.uk>
916 * generic/tkPanedWindow.c (PanedWindowReqProc): Postpone pane
917 arrangement until idle, as is done in other window managers, to
918 fix problems with size calculations when the children don't
919 already know their sizes anyway.
921 * unix/configure: Regen.
922 * unix/tcl.m4: Update from Tcl.
924 2002-07-29 Mo DeJong <mdejong@users.sourceforge.net>
926 * unix/configure: Regen.
927 * unix/configure.in: Remove code that was setting
928 CC_SEARCH_FLAGS and LD_SEARCH_FLAGS to try to
929 account for cc vs ld linking. Tcl now handles this.
930 * unix/tcl.m4: Update from Tcl.
932 2002-07-27 Mo DeJong <mdejong@users.sourceforge.net>
934 * unix/Makefile.in: Add MAJOR_VERSION, MINOR_VERSION,
935 PATCH_LEVEL, INSTALL_LIBRARY, STUB_LIB_FILE, and LIB_FILE
936 to support changes in tcl.m4 related to library builds.
937 Use MAKE_LIB macro to avoid dealing with RANLIB issues.
938 Rename TK_CC_SEARCH_FLAGS to CC_SEARCH_FLAGS and
939 rename TK_LD_SEARCH_FLAGS to LD_SEARCH_FLAGS.
940 Use new INSTALL_LIB and INSTALL_STUB_LIB substs to
941 deal with ranlib issues when install libraries.
942 * unix/configure: Regen.
943 * unix/configure.in: Remove AC_PROG_RANLIB since
944 this is done by tcl.m4 now. Define CC_SEARCH_FLAGS
945 instead of TK_CC_SEARCH_FLAGS and so on.
946 Use MAKE_LIB and MAKE_STUB_LIB from tcl.m4.
947 Remove AC_SUBST calls that are no done in tcl.m4.
948 * unix/tcl.m4: Update from Tcl.
949 * unix/tkConfig.sh.in: Subst CC_SEARCH_FLAGS and
952 2002-07-25 Peter Spjuth <peter.spjuth@space.se>
955 * generic/tkWindow.c:
961 * tests/unixWm.test: Objectifed wm. [Patch #564521]
962 Note: At this point the Mac file is completely untested
963 and may not even compile.
965 2002-07-25 Jeff Hobbs <jeffh@ActiveState.com>
967 * tests/spinbox.test: added spinbox-22.[1-3]
968 * generic/tkEntry.c (ConfigureEntry): made the textvariable value
969 take precedence over changed -from/-to values, unless it must be
970 constrained. [Bug #559078]
972 * library/spinbox.tcl (MouseSelect): when not in the entry, just
973 return instead of invoking - ButtonUp handles invoking already.
976 * library/tk.tcl (RestoreFocusGrab): handle the case where the
977 FocusGrab info is not set. [Bug #553283]
979 2002-07-24 Jeff Hobbs <jeffh@ActiveState.com>
981 * tests/canvas.test: added canvas-14.[1-6]
982 * generic/tkCanvas.c (CanvasWidgetCmd): corrected handling of
983 'scan' subcommand args. Also removed early return cases to goto
984 done instead where the canvasPtr would be Tcl_Release'd. This may
985 solve other problems with unreleased canvasPtr's. [Bug #581560]
987 * win/tkWinButton.c (TkpDisplayButton): corrected display of focus
988 ring around the actual text when the button is a compound button.
991 * unix/README: Corrected notes about running user interactive Tk
994 * generic/tkText.c (TextEditUndo): set isDirtyIncrement to -1 when
995 reverting to note proper "dirtiness". [Bug #580362] (callewaert)
997 * generic/tkEntry.c (DisplayEntry): correct cursor position before
998 calling Tk_SetCaretPos. (yamamoto)
1000 2002-07-23 Mo DeJong <mdejong@users.sourceforge.net>
1002 * unix/configure: Regen.
1003 * unix/tcl.m4: Update from Tcl.
1005 2002-07-22 Mo DeJong <mdejong@users.sourceforge.net>
1007 * library/choosedir.tcl (tk::dialog::file::chooseDir):
1008 * library/clrpick.tcl (tk::dialog::file::chooseDir):
1009 * library/msgbox.tcl (tk::MessageBox):
1010 * library/tkfbox.tcl (tk::dialog::file):
1011 * library/xmfbox.tcl (tk::MotifFDialog):
1012 Revert [Tk patch 568278]. The transient window workaround
1013 is no longer needed since the fix for [Tk bug 570764]
1014 solved the problem for withdrawn transients.
1016 2002-07-19 Mo DeJong <mdejong@users.sourceforge.net>
1019 * unix/configure.in:
1021 * win/configure.in: Add AC_PREREQ(2.13) in an attempt
1022 to make it more clear that the configure scripts
1023 must be generated with autoconf version 2.13.
1026 2002-07-19 D. Richard Hipp <drh@hwaci.com>
1028 * library/mkpsec.tcl: Fix a bug that was causing postscript generation
1029 to fail under Win2K.
1031 2002-07-18 Reinhard Max <max@suse.de>
1033 * unix/tkUnixSend.c: Using Tcl_GetTime instead of TclpGetTime.
1035 2002-07-17 Reinhard Max <max@suse.de>
1037 * library/unsupported.tcl: Extended ExposePrivateVariable, and
1038 ExposePrivateCommand to accept patterns as well.
1040 2002-07-17 Don Porter <dgp@users.sf.net>
1042 * generic/tkFont.c: Corrected reversed logic in assert -> panic
1043 conversion. [Bug 582799]
1045 2002-07-16 Mo DeJong <mdejong@users.sourceforge.net>
1047 * generic/tkFont.c (TkFontPkgFree): Call panic instead
1048 of assert since assert is not used in the rest of Tk.
1051 2002-07-16 Mo DeJong <mdejong@users.sourceforge.net>
1054 * win/Makefile.in: Add a more descriptive warning
1055 in the event `make genstubs` needs to be rerun.
1057 2002-07-16 Vince Darley <vincentdarley@users.sourceforge.net>
1060 * doc/wm.n: fix for part of [Bug 581627], and made iconbitmap
1061 code on Windows more flexible about reading in icons [Bug
1064 2002-07-15 David Gravereaux <davygrvy@pobox.com>
1066 * win/makefile.bc (new): re-add of the borland makefile. Submitted
1067 by Helmut Giese <hgiese@ratiosoft.com>. This needs testing, still.
1069 2002-07-15 Don Porter <dgp@users.sf.net>
1071 * Fixes for [Bug 581627, 581795].
1072 * generic/tkTest.c: Test commands not supported on non-Unix
1073 platforms should not be defined there in the first place.
1074 * tests/constraints.tcl: Fixed "secureserver" constraint.
1075 * tests/unixWm.test: Some tests needed "unix" constraint.
1076 * win/tkWinWm.c: Typo in error message.
1078 2002-07-14 Don Porter <dgp@users.sf.net>
1080 * tests/event.test: Fixes to enable testing of only userInteraction
1081 * tests/visual_bb.test: tests.
1083 * README: Bumped HEAD to version 8.4b2 in order to
1084 * generic/tk.h: distinguish it from the 8.4b1 release.
1085 * unix/configure*: Also extended LOCALES to cover all message
1086 * unix/tk.spec: catalogs.
1089 * tests/focustTcl.test: Conversion bug: Corrected backwards logic.
1090 * tests/imgPhoto.test: Conversion bug: overwrote unix/README.
1092 * tests/all.tcl: Completed conversion of Tk test suite
1093 * tests/constraints.tcl: to use tcltest.
1094 * tests/[b-v]*.test:
1097 2002-07-12 Don Porter <dgp@users.sf.net>
1099 * tests/constraints.tcl: Converted more files to tcltest and
1100 * tests/[g-x]*.test: factored out common code.
1102 2002-07-11 Don Porter <dgp@users.sf.net>
1104 * tests/canvPsImg.tcl: Converted several files in the
1105 * tests/constraints.tcl (new file): Tk test suite for testing by
1106 * tests/[r-x]*.test: tcltest 2.1.
1109 2002-07-11 Jeff Hobbs <jeffh@ActiveState.com>
1111 * win/tkWinDialog.c (Tk_ChooseDirectoryObjCmd): initialize
1112 utfTitle to NULL, add a few more notes about limitations of
1113 possible new Tk_ChooseDirectoryObjCmd function.
1115 2002-07-11 Donal K. Fellows <fellowsd@cs.man.ac.uk>
1117 * tests/imgPhoto.test (imgPhoto-15.1): Added test of mem-alloc
1118 failure, but this is non-portable.
1119 * generic/tkImgPhoto.c (ImgPhotoSetSize): Allowed this function to
1120 fail when it can't allocate enough memory. Note that not all the
1121 places that call it can fail nicely without API changes; some
1122 still panic but at least some of the potential failures are now
1125 * tests/visual_bb.test (lpr): Stopped this from relying on
1126 external files; direct piping is much more flexible for this
1129 2002-07-09 Don Porter <dgp@users.sf.net>
1131 * generic/tkTest.c: Removed unused dependence on TclThread_Init()
1132 * tests/defs.tcl: and [testthread]. [Bug 578165, Tcl Bug 531413]
1134 2002-07-08 David Gravereaux <davygrvy@pobox.com>
1136 * unix/Makefile.in: Added missing win/lamp.bmp to the dist
1139 2002-07-05 Jeff Hobbs <jeffh@ActiveState.com>
1141 *** 8.4b1 TAGGED FOR RELEASE ***
1143 2002-07-04 Donal K. Fellows <fellowsd@cs.man.ac.uk>
1145 * library/bgerror.tcl (bgerror): Stopped the bgerror dialog from
1146 getting wider than the screen; in theory really long messages
1147 could make it become taller than the screen now, but that's much
1148 less likely to happen. Also trimmed a little bit of internal
1149 space so that the icon-message gap is the same as the icon-frame
1150 and message-frame gaps.
1152 2002-07-01 Don Porter <dgp@users.sf.net>
1155 * unix/tcl.m4: Updated to latest tcl.m4 from Tcl.
1157 2002-06-28 Donal K. Fellows <fellowsd@cs.man.ac.uk>
1159 * library/msgbox.tcl (MessageBox): Force all non-button widgets to
1160 have the same background as the containing toplevel. [Bug #552515]
1162 2002-06-27 Andreas Kupries <andreas_kupries@users.sourceforge.net>
1164 * win/Makefile.in (install-binaries): Fix of troubled Makefile
1165 quoting introduced by [Patch 521356] causing the installed to
1168 2002-06-25 Don Porter <dgp@users.sf.net>
1170 * unix/tkUnixFont.c: (Tk_DrawChars) silence compiler warning.
1172 2002-06-26 David Gravereaux <davygrvy@pobox.com>
1174 * generic/tkStyle.c: <eol> of the committing cvs client didn't
1175 match the <eol> of the file itself. Windows users where getting
1176 \r\r\n. Problem fixed.
1178 2002-06-26 Anton Kovalenko <a_kovalenko@users.sourceforge.net>
1180 * generic/tkFont.c (TkTextLayoutToPostscript): fixed potential
1181 buffer overflow which could be intentionally triggered from
1182 within safe interpreter -- malicious applet could modify
1185 2002-06-26 Anton Kovalenko <a_kovalenko@users.sourceforge.net>
1187 * tests/font.test (font-32.1): updated this test
1188 to expect the new behavior of canvas postscript.
1190 2002-06-25 Don Porter <dgp@users.sf.net>
1192 * unix/Makefile.in: Expanded install-binaries target to create
1193 * win/Makefile.in: and install a pkgIndex.tcl file to enable
1194 Tk as a loadable package [Patch 521356]
1196 2002-06-25 Anton Kovalenko <a_kovalenko@users.sourceforge.net>
1198 * library/mkpsenc.tcl: (added) utilities to generate
1199 Postscript prolog for current system encoding.
1200 * generic/tkCanvPs.c (TkCanvPostscriptCmd): now
1201 uses mkpsenc.tcl to generate Postscript prolog.
1202 * generic/tkFont.c (TkTextLayoutToPostscript): modified
1203 according to patch #546910. Now outputs system-encoded
1204 characters (for unibyte) or Adobe glyph names (for
1205 multibyte or outside-locale).
1206 * tests/canvText.test (canvText-17.1): updated this test
1207 to expect the new behavior of canvas postscript.
1209 2002-06-25 Reinhard Max <max@suse.de>
1211 * unix/tcl.m4: New macro SC_CONFIG_MANPAGES.
1212 * unix/configure.in: Added support for symlinks and compression
1213 * unix/Makefile.in: when installing the manpages. [Patch 518052]
1214 Default is still hardlinks and no compression.
1216 * unix/mkLinks: generated
1219 * unix/README: Added documentation for the new features.
1221 * unix/configure: Replaced ${exec_prefix}/lib
1222 * unix/tcl.m4 (SC_PATH_TCLCONFIG): by ${libdir}.
1224 2002-06-24 Mo DeJong <mdejong@users.sourceforge.net>
1226 * tests/winWm.test: Verify that both an unmapped
1227 and already mapped toplevel are raised and receive
1228 the focus when deiconified.
1229 * tests/wm.test: Add wm deiconify tests. Check that
1230 a toplevel that has never been mapped is not mapped
1231 by the deiconify command since it should be done
1232 at idle by MapFrame.
1233 * win/tkWinWm.c (Tk_WmCmd): Check the WM_NEVER_MAPPED
1234 flag while processing the wm deiconify command.
1235 The WM_UPDATE_PENDING flag should never be set when
1236 WM_NEVER_MAPPED is set, but double check so that
1237 the implementation is more explicit and matches
1238 the comment just above.
1239 Return without invoking TkWmRestackToplevel or
1240 TkSetFocusWin on a toplevel that has never been
1241 mapped. This fixes a bug where a toplevel is mapped
1242 with the wrong size and is then resized by the
1243 idle call to MapFrame. [Tk bug 233150]
1245 2002-06-23 Jeff Hobbs <jeffh@ActiveState.com>
1247 * win/tkWinWm.c (UpdateGeometryInfo): remove the check for a null
1248 wrapper introduced in r1.41 on 2002-06-15 because it prevented
1249 geometry setting from taking effect if the window was not on the
1250 screen. Another check may go in it's place as IsIconic and
1251 IsZoomed should not be passed NULL.
1253 2002-06-22 Mo DeJong <mdejong@users.sourceforge.net>
1255 * tests/wm.test: Remove invalid minsize test. Add update
1256 calls to wm transient tests so that idle handlers get
1257 run. This is needed to get the tests to pass under Win32.
1258 * unix/tkUnixWm.c (WmWaitMapProc): Move the special
1259 transient withdrawn check into the if body to
1260 make it easier to set a breakpoint on this test
1261 inside a debugger. No functional changes.
1262 * win/tkWinWm.c (WmWaitVisibilityOrMapProc): Ditto.
1264 2002-06-22 Jeff Hobbs <jeffh@ActiveState.com>
1266 * doc/wm.n: TIP #95 Windows implementation and
1267 * mac/tkMacWm.c (Tk_WmCmd): docs with mac and unix stubs.
1268 * unix/tkUnixWm.c (Tk_WmCmd):
1269 * win/tkWinWm.c (Tk_WmCmd):
1270 * tests/unixWm.test:
1271 * tests/winWm.test: more wm attr tests will be needed.
1273 * generic/tkGrid.c (GridReqProc): check that gridPtr is not NULL
1274 (may be when embedded). [Bug #548791] (halliday)
1276 * generic/tkFont.c (TkFontPkgFree): changed panic on freeing fonts
1277 to an assert, and wrapped panic in #ifdef PURIFY. [Bug #568701]
1279 * library/menu.tcl: corrected menus from being posted offscreen
1280 on Windows. [Bug #464451] (darley)
1282 * library/console.tcl: corrected the defaultPrompt substitution
1283 [Bug #553207] and made Tab a default expansion key (like Escape).
1285 * win/tkWinEmbed.c (EmbedWindowDeleted): added a check for a null
1286 containerPtr. The core of this bug is likely elsewhere. [Bug #476176]
1288 * doc/text.n: TIP #93 implementation that
1289 * generic/tkText.c (TextWidgetCmd): enhances the text get and
1290 * generic/tkTextIndex.c (TkTextGetIndex): delete methods to accept
1291 * tests/text.test: multiple range pairs.
1292 This handles the delete case in an atomic, fixed-index fashion.
1294 2002-06-21 Mo DeJong <mdejong@users.sourceforge.net>
1296 * tests/wm.test: Add tests to make sure a withdrawn
1297 transient does not get remapped by state changes
1299 * unix/tkUnixWm.c (Tk_WmCmd, WmWaitMapProc):
1300 * win/tkWinWm.c (Tk_WmCmd, WmWaitVisibilityOrMapProc):
1301 Add a WM_TRANSIENT_WITHDRAWN flag that gets set by the
1302 withdraw, deiconify, or state wm subcommands. Check
1303 this flag before mapping a transient when processing
1304 a MapNotify event. [Tk bug 570764]
1306 2002-06-21 Donal K. Fellows <fellowsd@cs.man.ac.uk>
1308 * unix/tk.spec (version), README, win/configure.in, unix/configure.in:
1309 * generic/tk.h (TK_RELEASE_*, TK_PATCH_LEVEL): Bumped to beta1.
1311 2002-06-21 Jeff Hobbs <jeffh@ActiveState.com>
1313 * doc/text.n: TIP #104 implementation which generalizes the
1314 * generic/tkText.c: undo/redo stack to not be tied solely to the
1315 * generic/tkText.h: text widget. The APIs are still private.
1316 * generic/tkUndo.c: This also adds a stack limiting ability and
1317 * generic/tkUndo.h: a -maxundo option to the text widget (in
1318 * library/text.tcl: addition to the options from TIP #26) should
1319 * mac/tkMacDefault.h: users want to limit the undo/redo stack
1320 * tests/text.test: (should not be necessary in most cases).
1321 * unix/Makefile.in: [Patch #554763] (callewart)
1322 * unix/tkUnixDefault.h:
1325 * win/tkWinDefault.h:
1327 2002-06-21 Don Porter <dgp@users.sf.net>
1329 * unix/Makefile.in: Removed unnecessary dependence of tktest
1330 * unix/tkAppInit.c: executable on the tcltest executable on
1331 Unix. If there are similar dependencies on other platforms, they
1332 can probably be removed as well. [Bug 572134].
1334 2002-06-20 Jeff Hobbs <jeffh@ActiveState.com>
1337 * generic/tkListbox.c (DisplayListbox):
1338 * mac/tkMacDefault.h: TIP #94 implementation adding -activestyle
1339 * tests/listbox.test: option to the listbox. This adds the ability
1340 * unix/tkUnixDefault.h: to have listboxes look native on Windows, and
1341 * win/tkWinDefault.h: "nicer" elsewhere using the 'dotbox' style.
1343 2002-06-20 Peter Spjuth <peter.spjuth@space.se>
1345 * generic/tkGrid.c: Corrected the test for grid propagate change.
1348 2002-06-19 Jeff Hobbs <jeffh@ActiveState.com>
1350 * tests/panedwindow.test:
1351 * generic/tkPanedWindow.c: ensure that sash index is lower bounds
1352 checked. [Bug #548727]
1354 2002-06-19 Mo DeJong <mdejong@users.sourceforge.net>
1356 * generic/tkClipboard.c (TkClipCleanup): Add code
1357 to set dispPtr->clipWindow to NULL, this was
1358 accidently removed by last commit. Fixes
1359 a crash while running the tests under win32.
1361 2002-06-19 Mo DeJong <mdejong@users.sourceforge.net>
1363 * generic/tkBind.c (TkBindDeadWindow):
1364 Handle case where Tk_DestroyWindow is invoked
1365 on clipboard and send windows.
1366 * generic/tkClipboard.c (TkClipCleanup):
1367 Invoke Tk_DestroyWindow to cleanup the
1368 dispPtr->clipWindow. Call Tcl_Preserve
1369 and Tcl_Release on the window to avoid an
1370 invalid memory ref on shutdown.
1371 * generic/tkEvent.c (Tk_HandleEvent):
1372 Panic if XCreateIC is invoked twice for
1373 the same window. This should never happen,
1374 the check were just added to make sure it
1375 does not since this could lead to crashes
1377 * generic/tkFocus.c (TkFocusDeadWindow):
1378 Handle case where Tk_DestroyWindow is invoked
1379 on clipboard and send windows.
1380 * generic/tkOption.c (TkOptionDeadWindow): Ditto.
1381 * generic/tkWindow.c (TkCloseDisplay): Move
1382 deletion of dispPtr->winTable after TkpCloseDisplay
1383 call since Tk_DestroyWindow uses it and could
1384 be called by TkpCloseDisplay for clipboard/send windows.
1385 Also invoke ckfree for the dispPtr instead of
1386 doing it in TkpCloseDisplay.
1387 (Tk_DestroyWindow): Check for a null winPtr->mainPtr
1388 before doing certain cleanup tasks so the we can
1389 invoke Tk_DestroyWindow on clipboard and send windows.
1390 We need to do this so that XDestroyIC will get invoked
1391 for the input contexts of each window.
1392 * mac/tkMacXStubs.c (TkpCloseDisplay): Don't free
1393 the displayPtr since this is now done in TkCloseDisplay.
1394 * unix/tkUnixEvent.c (TkpCloseDisplay, OpenIM): Remove
1395 conditional compilation around calls to XCloseIM
1396 since I am confident that the crashes related to
1397 input contexts has been fixed. Don't free
1398 the displayPtr since this is now done in TkCloseDisplay.
1399 * unix/tkUnixSend.c (TkSendCleanup): Invoke the
1400 Tk_DestroyWindow method to cleanup the special
1401 send window. This will call XDestroyIC and thereby
1402 avoid a crash in XCloseIM. The send window needs
1403 to be Tcl_Preserve and Tcl_Release to avoid an
1404 invalid memory ref on shutdown.
1405 * win/tkWinX.c (TkpCloseDisplay): Don't free
1406 the displayPtr since this is now done in TkCloseDisplay.
1409 2002-06-19 Donal K. Fellows <fellowsd@cs.man.ac.uk>
1411 * generic/tkStyle.c: TIP#48 style engine.
1412 See http://purl.org/tcl/tip/48.html for details.
1414 * generic/tkConfig.c (GetOptionFromObj): Split to allow for access
1415 to option tables via name as well as via object.
1416 (TkGetOptionSpec): Semi-public interface to GetOption functionality.
1417 (DoObjConfig, Tk_RestoreSavedOptions, FreeResources)
1418 (GetObjectForOption): Basic style support for configure.
1420 * generic/tkWindow.c (TkCreateMainWindow, Tk_DestroyWindow): Added
1421 calls to set up and tear down the style subsystem.
1423 * generic/tk.decls, generic/tk.h: Many declarations forming TIP#48
1426 * generic/tkInt.decls (TkStylePkgInit,TkStylePkgFree):
1427 * generic/tkInt.h (TkGetOptionSpec): Supporting declarations.
1429 * unix/Makefile.in, win/Makefile.in, win/makefile.vc: Added
1430 tkStyle.c to list of generic source files.
1432 2002-06-18 Donal K. Fellows <fellowsd@cs.man.ac.uk>
1434 * tests/defs.tcl (makeFile): Defined the return value of this
1435 procedure to be the filename of the created file, as in the real
1438 2002-06-17 Mo DeJong <mdejong@users.sourceforge.net>
1440 * generic/tkImage.c (Tk_ImageObjCmd, DeleteImage): Call
1441 Tcl_Preserve and Tcl_Release for the masterPtr->winPtr
1442 window to avoid accessing memory that had already
1443 been deallocated in DeleteImage.
1445 2002-06-17 David Gravereaux <davygrvy@pobox.com>
1447 Trims to support the removal of RESOURCE_INCLUDED from rc
1448 scripts from Tcl's accepted FR #565088.
1450 * generic/tk.h: Changed RESOURCE_INCLUDED to be RC_INVOKED
1451 as the RC tool defines this already by default.
1454 * win/rc/wish.rc: removed the #define RESOURCE_INCLUDED lines.
1456 2002-06-17 Jeff Hobbs <jeffh@ActiveState.com>
1458 * unix/Makefile.in (dist): correct installation of
1459 wish.exe.manifest to DISTDIR target directory.
1461 * generic/tkCmds.c (Tk_TkObjCmd):
1462 * generic/tkInt.h (struct TkCaret):
1463 * mac/tkMacXStubs.c (Tk_SetCaretPos):
1464 * unix/tkUnixKey.c (TkpGetString, Tk_SetCaretPos):
1465 * win/tkWinX.c (Tk_SetCaretPos):
1466 * tests/tk.test: Added 'tk caret' implementation of TIP#96
1467 * doc/SetCaret.3 (new): which adds a TkCaret structure element to
1468 * doc/tk.n: TkDisplay for maintaining state.
1470 * unix/tkUnixSend.c (TkSendCleanup): special cleanup of
1471 inputContext to avoid bug in XCloseIM. (dejong)
1473 2002-06-17 Don Porter <dgp@users.sf.net>
1475 * library/msgs/en_gb.msg: Added catalog for UK English.
1476 Currently includes only Color -> Colour translation.
1478 2002-06-17 D. Richard Hipp <drh@hwaci.com>
1480 * doc/checkbutton.n:
1481 * doc/radiobutton.n:
1482 * generic/tkButton.c:
1483 * generic/tkButton.h:
1484 * mac/tkMacButton.c:
1485 * tests/button.test:
1486 * unix/tkUnixButton.c:
1487 * win/tkWinButton.c: Implementation of TIP#82 - Added the
1488 -offrelief option to checkbutton and radiobutton.
1490 2002-06-14 Mo DeJong <mdejong@users.sourceforge.net>
1492 * generic/tkWindow.c (Tk_DestroyWindow): Set the pathName
1493 component of a window to NULL after its memory has been
1494 deallocated to avoid a possible illegal memory access
1495 as a result of a call to Tk_PathName() on a Tk_Window
1496 structure of a window that has already been destroyed.
1499 2002-06-14 Mo DeJong <mdejong@users.sourceforge.net>
1501 * generic/tkOption.c (Tk_GetOption): Allocate
1502 memory with ckalloc not malloc. This keeps
1503 Tk from erroring out when built with
1506 2002-06-14 Jeff Hobbs <jeffh@ActiveState.com>
1508 * generic/tkBind.c (HandleEventGenerate):
1509 * generic/tkInt.h: changed warpInProgress boolean from int to a
1510 bit in the flags variable (TK_DISPLAY_IN_WARP)
1512 * generic/tkCmds.c (Tk_TkObjCmd):
1513 * unix/tkUnixKey.c (TkpGetString):
1514 * generic/tkEvent.c (Tk_HandleEvent):
1515 * generic/tkInt.h: changed useInputMethods boolean from int to a
1516 bit in the flags variable (TK_DISPLAY_USE_IM)
1519 * generic/tkCmds.c (Tk_WmObjCmd):
1520 * unix/tkUnixWm.c (Tk_WmCmd):
1521 * win/tkWinWm.c (Tk_WmCmd): changed wmTracing from being an int to
1522 just a bit in the flags variable (TK_DISPLAY_WM_TRACING)
1524 * generic/tkEvent.c (Tk_HandleEvent):
1525 * unix/tkUnixEvent.c (OpenIM):
1526 * unix/tkUnixKey.c (TkpGetString):
1527 * generic/tkInt.h: added TK_DISPLAY_XIM_SPOT flag bit for TkDisplay
1528 and used this to allow a runtime check to see if over-the-spot XIM
1529 is possible. If not it will try and fallback to the old-style
1530 input context, which handles things like dead keys input.
1532 * generic/tk.decls: added TIP #84 implementation that adds a
1533 * generic/tkDecls.h: Tk_CollapseMotionEvents API which controls
1534 * generic/tkEvent.c: Tk's collapsing of incoming motion events
1535 * generic/tkInt.h: on its windows. The default remains to do
1536 * generic/tkStubInit.c: collapsing. Added a flags parameter to the
1537 * generic/tkWindow.c: internal display structure to support this
1538 * doc/QWinEvent.3: and be used in the future for other bits.
1541 * unix/mkLinks: updated from current docs
1543 2002-06-14 Mo DeJong <mdejong@users.sourceforge.net>
1545 * generic/tkEvent.c (TkXErrorHandler): Declare static
1546 function to avoid compiler error with VC++.
1547 * generic/tkBind.c (ExpandPercents): Cast argument to
1548 Tk_GetAtomName in order to avoid compiler warning.
1550 2002-06-14 Joe English <jenglish@users.sf.net>
1555 * generic/tkCanvWind.c:
1557 * generic/tkEvent.c:
1558 * generic/tkFocus.c:
1561 * generic/tkImage.c:
1563 * generic/tkPlace.c:
1564 * generic/tkPointer.c:
1565 * generic/tkTextWind.c:
1566 * generic/tkWindow.c:
1567 * mac/tkMacSubwindows.c:
1568 * mac/tkMacWindowMgr.c
1571 * unix/tkUnixEmbed.c:
1573 * win/tkWinScrlbr.c:
1574 * win/tkWinWindow.c:
1575 * win/tkWinWm.c: Implementation of TIP #47 by Neil McKay
1576 "Modifying Tk to Allow Writing X Window managers".
1577 Add CirculateRequest, Create, MapRequest, ResizeRequest,
1578 and ConfigureRequest event types;
1579 Split TK_TOPLEVEL flag into TK_TOPLEVEL, TK_HAS_WRAPPER,
1580 TK_WIN_MANAGED, and TK_TOP_HIERARCHY. [Tk patch 572978]
1582 2002-06-14 Andreas Kupries <andreas_kupries@users.sourceforge.net>
1584 * unix/tkAppInit.c: Removed now unneeded and erroneous reference
1585 to 'matherr'. See Tcl ChangeLog entry 2002-05-31 Don Porter.
1587 2002-06-14 David Gravereaux <davygrvy@pobox.com>
1589 * win/rules.vc: The test for compiler optimizations was in error.
1590 Thanks goes to Roy Terry <royterry@earthlink.net> for his
1591 assistance with this.
1593 2002-06-14 Donal K. Fellows <fellowsd@cs.man.ac.uk>
1595 Implement TIP 98 [Tk patch 566765]
1597 * doc/FindPhoto.3, generic/tk.h, generic/tk.decls:
1598 * generic/tkImgPhoto.c: Changed *_Old to *_NoComposite and
1599 USE_OLD_PHOTO_PUT_BLOCK to USE_COMPOSITELESS_PHOTO_PUT_BLOCK
1600 following a suggestion from Don Porter.
1602 * tests/imgPhoto.test: Added tests of -compositingrule
1604 * doc/photo.n: Added documentation for "-compositingrule".
1605 * generic/tkImgPhoto.c (ImgPhotoCmd, ParseSubcommandOptions): New
1606 "-compositingrule" option for [$photo copy] subcommand, using
1607 OPT_COMPOSITE flag and compositingRule field in SubcommandOptions
1610 * doc/FindPhoto.3: Documented the extra argument for the
1611 compositing rule and the action to take if anyone wants to
1612 maintain total backward-compatability.
1614 * generic/tk.h (TK_PHOTO_COMPOSITE_*): Defined values for use as
1616 (USE_OLD_PHOTO_PUT_BLOCK): Added a way for users to select the old
1617 interface to Tk_PhotoPutBlock to provide an easier upgrade path.
1619 * generic/tk.decls: Alter Tk_PhotoPut*Block to Tk_PhotoPut*Block_Old
1620 and introduce new slots for the old name of function with an extra
1621 argument at the end for the compositing rule.
1623 * generic/tkImgPhoto.c (ImgPhotoCmd): Updated "transparency set"
1624 subcommand to use TkSubtractRegion().
1626 * win/tkWinRegion.c (TkSubtractRegion):
1627 * mac/tkMacRegion.c (TkSubtractRegion):
1628 * generic/tkInt.decls (TkSubtractRegion):
1629 * unix/tkUnixPort.h (TkSubtractRegion): Added function to perform
1630 the set-difference operation on regions; it seems all platforms
1631 can support it, and it makes removing rectangular bits from
1632 regions much easier.
1634 * generic/tkImgPPM.c (FileReadPPM): Reading a PPM/PGM always uses
1635 the SET compositing rule because it is faster and the format does
1636 not have any transparency information.
1638 * generic/tkImgGIF.c (FileReadGIF): Reading a GIF always uses the
1639 SET compositing rule because GIF files model transparency as a
1640 single special colour.
1642 * generic/tkImgPhoto.c (Tk_PhotoPutBlock, Tk_PhotoPutZoomedBlock):
1643 Added a compositing rule to allow better control over what happens
1644 to transparent pixels when inserting data into a photo image.
1646 2002-06-13 Mo DeJong <mdejong@users.sourceforge.net>
1648 * tests/winfo.test: Add basic tests for winfo ismapped.
1650 2002-06-13 Mo DeJong <mdejong@users.sourceforge.net>
1652 * tests/unixWm.test:
1653 * tests/wm.test: Move wm minsize and wm maxsize
1654 usage tests into the cross platform wm tests.
1656 2002-06-13 Don Porter <dgp@users.sf.net>
1658 * tests/cursor.test: corrected error after cursor-2.2.
1659 * tests/defs.tcl: Added enhancements to Tk's fake version of
1660 tcltest required by recent cursor.test changes.
1662 2002-06-13 Donal K. Fellows <fellowsd@cs.man.ac.uk>
1664 * tests/cursor.test (cursor-2.[34]): Tests added to ensure that
1665 cursor specs really are well-behaved lists. Also some general
1667 * win/tkWinCursor.c (TkGetCursorByName): Undone Jeff's back-off
1668 and fixed things so that they should work now. Cursor specs are
1669 lists first and foremost.
1671 2002-06-12 Mo DeJong <mdejong@users.sourceforge.net>
1673 * changes: Clearly label wm transient changes as
1674 a POTENTIAL INCOMPATIBILITY.
1675 * doc/wm.n: Remove "some window managers will" text
1676 and explicitly state what behavior a transient
1677 window will display. Also mention that it is an
1678 error to make a window a transient of itself.
1680 2002-06-12 Mo DeJong <mdejong@users.sourceforge.net>
1682 * library/choosedir.tcl (tk::dialog::file::chooseDir):
1683 * library/clrpick.tcl (tk::dialog::file::chooseDir):
1684 * library/msgbox.tcl (tk::MessageBox):
1685 * library/tkfbox.tcl (tk::dialog::file):
1686 * library/xmfbox.tcl (tk::MotifFDialog): Remove the
1687 transient property on dialogs after they have been
1688 dismissed to insulate them from further state changes
1689 in the master. This keeps a withdrawn dialog from
1690 being mapped when the master is deiconified. [Tk patch 568278]
1692 2002-06-12 Jeff Hobbs <jeffh@ActiveState.com>
1694 * win/tkWinCursor.c (TkGetCursorByName): reverted fix from
1695 2002-06-06 because it broke the ability to use built-in cursors
1698 2002-06-12 Mo DeJong <mdejong@users.sourceforge.net>
1700 * library/choosedir.tcl (tk::dialog::file::chooseDir):
1701 * library/clrpick.tcl (tk::dialog::color):
1702 * library/dialog.tcl (tk_dialog):
1703 * library/msgbox.tcl (tk::MessageBox):
1704 * library/tkfbox.tcl (tk::dialog::file):
1705 * library/xmfbox.tcl (tk::MotifFDialog_Create):
1706 Only make the dialog window a transient if
1707 the master is visible. This check already
1708 appeared in some of the dialogs. This patch
1709 just copies the check into those that were
1710 lacking. [Tk patch 568253]
1712 2002-06-12 Mo DeJong <mdejong@users.sourceforge.net>
1714 * changes: Add note about new transient behavior.
1715 * tests/unixWm.test: Check that the WM_TRANSIENT_FOR
1716 property for a transient window is being cleared
1717 when the master is destroyed.
1718 * tests/wm.test: Source defs.tcl instead of using
1719 tcltest to match the rest of Tk's test files.
1720 Add new tests that ensure that a transient's state
1721 mirrors the state of the master.
1722 * unix/tkUnixWm.c (WmInfo, TkWmNewWindow, TkWmMapWindow,
1723 TkWmDeadWindow, Tk_WmCmd, WmWaitMapProc): Add numTransients
1724 member to WmInfo structure. Keep state of master and
1725 transient in sync using a callback that tracks MapNotify
1726 and UnmapNotify events. When the master is mapped, map
1727 the transient. When the master is unmapped or iconified,
1728 withdraw the transient.
1729 * win/tkWinWm.c (TkWmMapWindow, TkpWmSetState,
1730 TkWmDeadWindow, Tk_WmCmd, WmWaitVisibilityOrMapProc):
1731 Keep state of master and transient in sync using a
1732 callback that tracks MapNotify and UnmapNotify events.
1733 Move masterPtr check from TkpWmSetState into TkWmMapWindow
1734 to deal with WM_NEVER_MAPPED transients. Cleanup
1735 numTransients and the callback in TkWmDeadWindow.
1736 Cleanup numTransients and the callback only after
1737 deleting a master in wm transient command to avoid
1738 deleting the callback when an error is raised.
1739 Add support for MapNotify and UnmapNotify events
1740 to the master callback. [Tk patch 561708]
1742 2002-06-11 Joe English <jenglish@users.sf.net>
1744 * library/menu.tcl: fix for bug report #530212 "Bad Window Path
1747 2002-06-10 David Gravereaux <davygrvy@pobox.com>
1749 * win/makefile.vc: Fixed a win98 issue where the /exclude option
1750 for xcopy is unsupported.
1751 Reported by Roy Terry <royterry@earthlink.net>.
1753 2002-06-10 Anton Kovalenko <a_kovalenko@users.sourceforge.net>
1755 * library/tk.tcl: added utility functions to get "-underline" and
1756 "-text" for labels and buttons from translatable string containing
1757 "magic ampersand" [patch #566605]
1758 * library/clrpick.tcl:
1759 * library/msgbox.tcl:
1760 * library/tkfbox.tcl:
1761 * library/xmfbox.tcl: some places where msgcat is used to get
1762 translated label are modified to handle labels with magic ampersand.
1763 * library/msgs/ru.msg: russian translations added
1764 * library/msgs/cs.msg:
1765 * library/msgs/de.msg:
1766 * library/msgs/el.msg:
1767 * library/msgs/es.msg:
1768 * library/msgs/fr.msg:
1769 * library/msgs/it.msg:
1770 * library/msgs/nl.msg: all translation files now have labels with
1771 'magic ampersand' where appropriate. In el.msg some ampersands are
1772 missing, as I don't know which underline positions seems natural
1775 2002-06-09 Mo DeJong <mdejong@users.sourceforge.net>
1777 * library/bgerror.tcl (tk::dialog::error::bgerror):
1778 Don't set the bgerror dialog as a transient of
1779 itself since this operation is ill defined.
1781 2002-06-06 Donal K. Fellows <fellowsd@cs.man.ac.uk>
1783 * win/tkWinCursor.c (TkGetCursorByName): Fixed so that the reading
1784 of cursors from a file with a cursor spec was built using [list]
1785 works when the file has a space in instead of requiring fiddling
1788 2002-06-06 Anton Kovalenko <a_kovalenko@users.sourceforge.net>
1790 * library/msgbox.tcl (MessageBox): Add -default normal
1791 when creating non-default buttons for message box.
1792 They already get -default normal when they're
1793 unfocused, and dialog window size used to change suddenly
1796 2002-06-05 Anton Kovalenko <a_kovalenko@users.sourceforge.net>
1798 * unix/tkUnixFont.c (Tk_DrawChars): Don't assume that
1799 one char is always one byte, and that required
1800 subfont for the last character in any string is
1801 the same as for the previous character
1802 [Bug #559435] [Patch #559437]
1804 2002-05-27 Mo DeJong <mdejong@users.sourceforge.net>
1806 * changes: Document [wm transient .t .t] error.
1807 * tests/wm.test: Check that setting a window
1808 as a transient of itself raises an error. Check
1809 that passing a non-toplevel window to the wm
1810 transient command uses the enclosing toplevel.
1811 * unix/tkUnixWm.c (Tk_WmCmd): Raise an error
1812 if the user tries to make a toplevel a
1813 transient of itself.
1814 * win/tkWinWm.c (Tk_WmCmd): Raise an error
1815 if the user tries to make a toplevel a
1816 transient of itself. Test for other error
1817 before checking for the transient self error.
1819 2002-05-27 Mo DeJong <mdejong@users.sourceforge.net>
1821 * unix/tkUnixWm.c (WmInfo, TkWmCleanup, TkWmNewWindow,
1822 TkWmMapWindow, TkWmDeadWindow, Tk_WmCmd): Replace
1823 WmInfo's master and masterWindowName members with
1824 a masterPtr member. This implementation is much
1825 simpler and mirrors the Win32 implementation. This
1826 change makes it easy to check the flags of the
1827 master window. No user visible changes.
1829 2002-05-27 Mo DeJong <mdejong@users.sourceforge.net>
1831 * generic/tkInt.decls: Add unix decl for TkpWmSetState.
1832 * generic/tkIntPlatDecls.h: Regen.
1833 * generic/tkStubInit.c: Regen.
1834 * tests/wm.test: Test state changes between iconic,
1835 normal, and withdrawn both before and after initial
1837 * unix/tkUnixWm.c (Tk_WmCmd, TkpWmSetState): Move
1838 state change code into TkpWmSetState to more closely
1839 match the Win32 implementation. No user visible changes.
1841 2002-05-27 Mo DeJong <mdejong@users.sourceforge.net>
1843 * tests/embed.test: Added cross platform embed tests.
1844 Check that window passed to -use has the -container
1846 * tests/wm.test: Remove useless catch call. Deiconify
1847 . just in case, stackorder tests will not pass unless
1848 it is in the normal state. Add -container flag to
1849 embedded stackorder test.
1850 * unix/tkUnixEmbed.c (TkpUseWindow):
1851 * win/tkWinEmbed.c (TkpUseWindow): Lookup Tk window
1852 based on the id passed in as the value for -use.
1853 Generate an error if the Tk window did not have
1854 the -container option set.
1856 2002-05-26 Peter Spjuth <peter.spjuth@space.se>
1858 * generic/tkButton.c (ConfigureButton): When creating
1859 a radiobutton with -value "" it was not drawn properly
1860 if the -variable was created by the radiobutton.
1863 2002-05-26 Peter Spjuth <peter.spjuth@space.se>
1865 * generic/tkCanvText.c (ComputeTextBbox): Negative
1866 coordinates were rounded badly causing a 1 pixel
1867 displacement. [Bug #556526]
1869 2002-05-24 Mo DeJong <mdejong@users.sourceforge.net>
1871 * mac/tkMacWm.c (Tk_WmCmd):
1872 * tests/unixWm.test: Move wm transient checks over
1873 to wm.test so they will be run on all systems.
1874 * tests/wm.test: Add tests to check for error when
1875 an iconwindow is passed to the wm transient command.
1876 * unix/tkUnixWm.c (Tk_WmCmd):
1877 * win/tkWinWm.c (Tk_WmCmd): Raise an error if one
1878 of the windows passed to the wm transient command
1879 is an iconwindow for another toplevel.
1881 2002-05-23 Mo DeJong <mdejong@users.sourceforge.net>
1883 * mac/tkMacWm.c (TkWmStackorderToplevelWrapperMap):
1884 * tests/wm.test: Add embedded Window test case for
1885 the stackorder command.
1886 * unix/tkUnixWm.c (TkWmStackorderToplevelWrapperMap):
1887 * win/tkWinWm.c (TkWmStackorderToplevelWrapperMap):
1888 Ignore embedded windows during wm stackorder command.
1890 2002-05-21 Mo DeJong <mdejong@users.sourceforge.net>
1892 * unix/configure: Regen.
1893 * unix/configure.in: Invoke SC_ENABLE_SHARED before
1894 calling SC_CONFIG_CFLAGS so that the SHARED_BUILD
1895 variable can be checked inside SC_CONFIG_CFLAGS.
1896 * unix/tcl.m4: Update from Tcl.
1898 2002-05-20 Don Porter <dgp@users.sourceforge.net>
1900 * library/tk.tcl: A little namespace cleanup on Daniel Steffen's
1901 latest revisions to avoid defining new global commands.
1903 2002-05-20 Daniel Steffen <das@users.sourceforge.net>
1906 * mac/tkMacTclCode.r: include msgcat package in resources
1907 as bgerror depends on it. Restores ability of mac static
1908 build to run standalone (except for encoding file issues).
1911 * library/console.tcl:
1912 * library/tk.tcl: fix tk.tcl not sourcing library files
1913 that define bindings at startup on mac. (independent of
1914 tk library files being in resources or on auto_path)
1916 2002-05-08 Don Porter <dgp@users.sourceforge.net>
1918 * library/bgerror.tcl:
1919 * library/tclIndex: Cleaned up namespace usage of the bgerror
1920 dialog. Completes soft dependence on msgcat. [FR 539309]
1922 2002-05-07 David Gravereaux <davygrvy@pobox.com>
1923 * win/makefile.vc: Problem with TCLDIR macro not accepting
1924 forward slash path seperators resolved. Added the same logic
1925 to INSTALLDIR, too. [Bug #553208]
1927 2002-04-26 Jeff Hobbs <jeffh@ActiveState.com>
1930 * unix/tcl.m4: change HP-11 SHLIB_LD_LIBS from "" to ${LIBS} so
1931 that the .sl knows its dependent libs.
1933 2002-04-24 Daniel Steffen <das@users.sourceforge.net>
1935 * mac/tkMacTclCode.r:
1936 * mac/tkMacResource.r: added check of
1937 TCLTK_NO_LIBRARY_TEXT_RESOURCES #define to allow disabling the
1938 inclusion of the tk library code in the resource fork of Tk
1939 executables and shared libraries.
1940 Moved tk library code inclusion to separate file like in tcl.
1941 Added 'panedwindow' resource.
1943 2002-04-22 Jeff Hobbs <jeffh@ActiveState.com>
1945 * library/button.tcl (ButtonLeave): corrected the 3
1946 implementations of ButtonLeave to check for Priv(relief) existing
1947 before trying to use it. [Patch #541849]
1949 * generic/tkTextDisp.c (DisplayLineBackground):
1950 * unix/tkUnix3d.c (Tk_3DHorizontalBevel):
1951 * unix/tkUnixFont.c (Tk_DrawChars): applied fixes to not overrun
1952 the X window 16-bit size limit. [Patch #541999] (bonfield)
1954 2002-04-22 Donal K. Fellows <fellowsd@cs.man.ac.uk>
1956 * generic/tkTextDisp.c (GetXView, GetYView): Comparison with
1957 previous values of scrollbar range are now done in a way that is
1958 sensitive to the bizarreness of floating-point on architectures
1959 where IEEE-FP is not used on the processor. Also increased the
1960 size of the temporary buffer to take account of the fact that
1961 TCL_DOUBLE_SPACE is meant to only imply enough space to take a
1962 printed double and trailing '\0', and no more. [Bug #223739]
1963 (FP_EQUAL_SCALE): New macro to help compare floating-point numbers
1964 for equality in a sane way, used in GetXView and GetYView.
1966 2002-04-12 Jeff Hobbs <jeffh@ActiveState.com>
1968 * generic/tkWindow.c (TkCloseDisplay): Added to centralize where a
1969 display was closed. This handles freeing memory associated with a
1970 display and closing it.
1971 (DeleteWindowsExitProc): actually close displays. This would also
1972 ideally be done in Tk_DestroyWindow when the last window on the
1973 display has been closed, but that still has unresolved order of
1975 (Tk_DestroyWindow): added TkFocusFree call.
1977 * generic/tkStubInit.c:
1978 * generic/tkIntPlatDecls.h:
1979 * generic/tkIntDecls.h:
1980 * generic/tkInt.decls: added TkFocusFree, TkClipCleanup and
1981 TkGCCleanup generic private procs, and TkWmCleanup, TkSendCleanup
1982 and TkFreeXId unix private procs.
1985 * unix/tkUnixXId.c (TkFreeXId): frees XID resources.
1986 Made idCleanupScheduled a Tcl_TimerToken (was int) in TkDisplay
1987 structure to allow us to delete the timer scheduled for it.
1989 * unix/tkUnixWm.c (TkWmStackorderToplevel): ensure children
1991 (ConfigureEvent, ComputeReparentGeometry): Add extra wm tracing info
1992 (TkWmRestackToplevel): initialize changes to 0 to prevent UMR.
1993 Use WaitForConfigureNotify on all windows. This part still
1994 requires fixing as it is the root of the 2 second raise delay on
1995 some window managers (those that use extra wrapper windows of
1998 * unix/tkUnixSend.c (TkSendCleanup): free send-related resources
2000 * unix/tkUnixEvent.c (TkpCloseDisplay): call TkSendCleanup and
2003 * unix/tkUnixSelect.c (SelRcvIncrProc): added missing Tcl_Release
2006 * generic/tkGet.c (FreeUidThreadExitProc): free thread-specific
2007 resources on thread exit
2009 * generic/tkFocus.c (TkFocusFree): frees TkMainInfo data
2010 * generic/tkClipboard.c (TkClipCleanup): frees TkDisplay data
2011 * generic/tkGC.c (TkGCCleanup): frees TkDisplay data
2013 * unix/tkUnixFont.c (FontPkgCleanup): cleanup thread specific font
2014 resources on thread exit.
2016 * mac/tkMacXStubs.c (TkpOpenDisplay): memset the initial display
2019 * generic/tkOption.c (OptionThreadExitProc): freed tsd option
2020 stacks on thread exit.
2021 (Tk_GetOption): free mem used to get Tk_Uid
2023 * generic/tkMenu.c (ConfigureMenu): freed saved options in all
2026 * win/tkWinInt.h: declaration for TkWinGetUnicodeEncoding
2027 * win/tkWinDialog.c (GetFileNameW): use TkWinGetUnicodeEncoding
2028 * win/tkWinInit.c (TkpDisplayWarning): use TkWinGetUnicodeEncoding
2029 * win/tkWinFont.c: use TkWinGetUnicodeEncoding instead of static
2032 * win/tkWinX.c (Tk_SetCaretPos): remove WM_IME_STARTCOMPOSITION
2033 and place the IME position within Tk_SetCaretPos. Cache results in
2034 Tk_SetCaretPos to reduce unnecessary repositioning. Also call
2035 DestroyCaret if we receive WM_KILLFOCUS.
2036 (TkpOpenDisplay): ZeroMemory the initial display structures.
2037 (TkWinGetUnicodeEncoding): Added so that Windows only needs to
2038 cache this value one, and then free it in TkWinXCleanup.
2039 (HandleIMEComposition): add support for Win98 and ATOK13
2042 * generic/tkConsole.c (ConsoleCmd): correct return that should
2043 have just set result code.
2045 * generic/tkImgPhoto.c: Added PhotoFormatThreadExitProc to clean
2046 up on thread exit. (Tk_PhotoPutBlock) slight code updates
2048 * generic/tkPanedWindow.c (DestroyPanedWindow, ConfigureSlaves):
2049 fix mem leaks in not freeing slave info
2052 * win/tcl.m4: Enabled COFF as well as CV style debug info with
2053 --enable-symbols to allow Dr. Watson users to see function info.
2054 More info on debugging levels can be obtained at:
2055 http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
2057 2002-04-10 Mo DeJong <mdejong@users.sourceforge.net>
2063 * win/tkWinWm.c: Update wm stackorder usage message
2064 to make it clear that either 1 or 3 arguments are
2065 required. [Bug 540013]
2067 2002-04-08 Daniel Steffen <das@users.sourceforge.net>
2069 * mac/tkMacProjects.sea.hqx: added tkPanedWindow.c to projects
2070 * mac/tkMacAppInit.c: fixes to MSL stdin/stdout hookup to the
2071 TkConsole when using shared MSL libraries; fix for crashing
2072 bug on exit: writing to stdin/sterr when console has already
2073 been destroyed. (both fixes need support in MSL, see
2074 'CW Pro6 changes' in tcl/mac/tcltkMacBuildSupport.sea.hqx)
2075 * mac/tkMacDialog.c: fixes to Navigation Services Dialog filter.
2076 * mac/tkMacDraw.c: add panic for overwide TkImages that would
2077 crash Tk on mac otherwise.
2079 2002-04-05 Jeff Hobbs <jeffh@ActiveState.com>
2081 * mac/tkMacXStubs.c: added Tk_SetCaretPos stub (does nothing).
2082 * win/tkWinX.c: added Tk_SetCaretPos code to position IME windows
2083 correctly when WM_IME_STARTCOMPOSITION is received.
2084 * unix/tkUnixKey.c: added Tk_SetCaretPos and code for setting
2085 XIM caret in TkpGetString.
2087 * generic/tkStubInit.c:
2088 * generic/tkDecls.h:
2089 * generic/tk.decls: added Tk_SetCaretPos declaration. This command
2090 allows users to indicate the cursor position and is used by XIM
2091 (Unix) or IME (Windows) to place the caret box correctly. It is
2092 also part of correct Accessibility style on Windows to make the
2093 magnifier jump to the focus point.
2095 * win/tkWinButton.c (TkpDisplayButton):
2096 * generic/tkTextMark.c (TkTextInsertDisplayProc):
2097 * generic/tkCanvText.c (DisplayCanvText):
2098 * generic/tkEntry.c (DisplayEntry): added Tk_SetCaretPos calls
2100 * generic/tkInt.h: added TK_XIM_SPOT #define (default 1).
2101 Added XFontSet attribute to TkDisplay when TK_XIM_SPOT is true.
2102 * generic/tkEvent.c (Tk_HandleEvent): made sure inputContexts are
2103 not getting created on DestroyNotify events (for dead windows).
2104 Added over-the-spot support if TK_XIM_SPOT is defined (default).
2105 The is the nicer XIM behavior, but uses a bit more memory.
2107 * unix/tkUnixEvent.c:
2108 * generic/tkWindow.c: moved OpenIM over to tkUnixEvent.c.
2109 Removed setting inputContext to null in Tk_MakeWindowExist as it
2112 * unix/tkUnixWm.c (CreateWrapper): Removed redundat setting of
2113 inputContext to null.
2115 * win/Makefile.in: changed gdb and shell targets to properly build
2116 all binaries before running (otherwise an error often occured).
2118 2002-03-28 David Gravereaux <davygrvy@pobox.com>
2120 * win/.cvsignore (new):
2121 * win/lamp.bmp (new):
2123 * win/nmakehlp.c (new):
2124 * win/rules.vc: Brought the makefile up-to-date with Tcl's one.
2125 This now has support for Win9x issues and the winhelp target now
2126 exists. Color scheme can be changed. I'm just imparting a first
2127 suggestion using orange :) I'll have to think about the install
2128 portion of the helpfile as I'll need to do some tricks to insert
2129 tk's contents file into Tcl's using some special winhlp32.exe
2130 switches. [Bug 533862 527941]
2132 * win/makefile.vc: Tk helpfile is now installing itself into Tcl's
2133 contents file as part of the install target and rebuilding the
2134 contents table as desired. [Bug 527941]
2136 * doc/console.n: Changed topic from "Tcl Built-In Commands" to
2137 "Tk Built-In Commands"
2139 * win/buildall.vc.bat: Update to match Tcl.
2141 2002-03-26 Andreas Kupries <andreask_kupries@users.sourceforge.net>
2143 * unix/tkUnixFont.c: Added inclusion of <arpa/inet.h>. This fixes
2144 a GCC/HPUX problem with missing a "htons". See also
2145 "tclUnixPort.h" for equivalent code.
2147 2002-03-21 David Gravereaux <davygrvy@pobox.com>
2149 * win/makefile.vc: Changed optimize flag to -0ti instead of -02.
2152 2002-03-20 Don Porter <dgp@users.sourceforge.net>
2154 * generic/tkButton.c (ButtonTextVarProc,ButtonVarProc):
2155 * generic/tkCmds.c (WaitVariableProc):
2156 * generic/tkEntry.c (EntryTextVarProc):
2157 * generic/tkListbox.c (ListboxListVarProc):
2158 * generic/tkMenu.c (MenuVarProc):
2159 * generic/tkMenubutton.c (MenuButtonTextVarProc):
2160 * generic/tkMessage.c (MessageTextVarProc):
2161 * generic/tkScale.c (ScaleVarProc): Updates to handle change in
2162 type of part2 argument of Tcl_VarTraceProc typedef. [TIP 27]
2165 2002-03-19 Jeff Hobbs <jeffh@ActiveState.com>
2167 * generic/tkOldConfig.c (Tk_ConfigureValue): prevent leaving
2168 interp->result as NULL.
2170 2002-03-07 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2172 * library/text.tcl (TextPasteSelection): Renaming of TextPaste to
2173 prevent confusion with tk_textPaste. Stopped code from inserting
2174 selections twice, which seems to have happened with TIP#26, and
2175 reorganized code to reduce amount of stuff protected by catch
2176 which is tricky to maintain.
2177 (tk_textPaste): Reduce amount of code protected by catch.
2179 2002-03-06 Mo DeJong <mdejong@users.sourceforge.net>
2181 * win/tkWinX.c: Define _WIN32_IE as 0x0300
2182 before including commctrl.h so that we can
2183 access the InitCommonControlsEx API when
2184 building Tk with mingw.
2186 2002-03-06 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2188 * README, generic/tk.h, unix/configure.in, unix/tk.spec:
2189 * win/configure.in: Bumped patchlevel; this might need to change
2190 in the future, but it will help us distinguish between the CVS
2191 version and the most recent released version.
2193 2002-03-05 Jeff Hobbs <jeffh@ActiveState.com>
2195 *** 8.4a4 TAGGED FOR RELEASE ***
2197 * unix/README: updated --* options docs.
2199 * unix/tk.spec: fixed URL refs to use www.tcl.tk or SF.
2201 2002-03-04 Jeff Hobbs <jeffh@ActiveState.com>
2206 * win/README: updated to use www.tcl.tk URL.
2208 2002-03-03 Jeff Hobbs <jeffh@ActiveState.com>
2210 * library/entry.tcl: added catch around Triple-1 binding use of
2213 2002-02-28 Don Porter <dgp@users.sourceforge.net>
2215 * library/console.tcl (ConsoleBind): Corrected console <<Paste>>
2216 binding on Unix platforms.
2218 2002-02-26 Jeff Hobbs <jeffh@ActiveState.com>
2220 * unix/configure: Regen.
2221 * unix/tcl.m4: Update from Tcl.
2223 * generic/tkWindow.c (Tk_MainWindow, Tk_GetNumMainWindows):
2224 protect against being called before Tcl stubs are init'ed.
2225 [Bug #220916] (porter)
2227 2002-02-25 Jeff Hobbs <jeffh@ActiveState.com>
2229 * generic/tkText.c (ConfigureText): reenable the blinking cursor
2230 on state change where necessary. [Bug #503772]
2232 * tests/listbox.test:
2233 * generic/tkListbox.c: corrected error handling when setting to an
2234 invalid listvar value. [Bug #503613]
2236 * library/scale.tcl: mirror B2 bindings to B3 on Windows to better
2237 accomodate two button mice. [Patch #493145]
2239 * library/panedwindow.tcl: improved proxy sash handling. (boudaillier)
2241 2002-02-25 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2243 * tests/filebox.test: Reorganised and fixed so that tests are
2244 executed fewer times (!) and the automatic extension adding
2245 behaviour of tk_getSaveFile is tested.
2247 2002-02-23 Mo DeJong <mdejong@users.sourceforge.net>
2249 * unix/configure: Regen.
2250 * unix/tcl.m4: Update from Tcl.
2252 2002-02-22 Jeff Hobbs <jeffh@ActiveState.com>
2254 * generic/tkPanedWindow.c (PanedWindowWidgetObjCmd): fixed returns
2255 that should have been breaks instead. Corrected .pw configure
2256 handling for insufficient args. [Patch #521436] (boudaillier)
2258 * mac/tkMacDefault.h:
2259 * unix/tkUnixDefault.h:
2260 * win/tkWinDefault.h: changed panedwindow default relief to flat,
2261 a more natural outer relief.
2263 * library/panedwindow.tcl (ReleaseSash): changed to not pass x and
2264 y args at all (they aren't used).
2265 Added proc comments. Made configuring sash cursor more efficient.
2266 Added Cursor timer that restores the default cursor when pointer
2267 is no longer over the sash. This is necessary because Leave
2268 events won't be seen when moving into a paned child.
2270 2002-02-22 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2272 * library/demos/widget: New section "Paned Windows"
2273 * library/demos/paned2.tcl, library/demos/paned1.tcl: New files.
2275 * library/panedwindow.tcl (ReleaseSash): Added missing arguments.
2276 * library/tk.tcl: Bindings for paned window were not being loaded
2279 * unix/tkUnixMenu.c (GetMenuLabelGeometry,DrawMenuEntryLabel):
2280 Stop meaningless GCC warnings.
2282 2002-02-21 Jeff Hobbs <jeffh@ActiveState.com>
2284 * doc/panedwindow.n (new):
2285 * generic/tkPanedWindow.c (new):
2287 * generic/tkWindow.c:
2288 * library/panedwindow.tcl (new):
2289 * mac/tkMacDefault.h:
2290 * tests/panedwindow.test (new):
2292 * unix/tkUnixDefault.h:
2295 * win/tkWinDefault.h: added implementation of TIP #41, panedwindow
2296 widget. [Patch #512503] (melski)
2298 * generic/tkOption.c (ReadOptionFile): fixed Tcl_Seek casting to
2299 remove warnings (we expect no option files with be > 2GB).
2301 * unix/configure: regenerated
2302 * unix/tcl.m4: updated to sync with Tcl's tcl.m4
2303 Added --enable-64bit support for AIX-4 using IBM's xlc (-q64 flag).
2305 2002-02-19 Don Porter <dgp@users.sourceforge.net>
2307 * changes: First draft of updated changes for 8.4a4 release.
2309 2002-02-19 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2311 * generic/tkImgPhoto.c (MatchFileFormat): Tcl_Seek takes
2312 Tcl_WideInt offset (three places.)
2313 * generic/tkImgPPM.c (FileReadPPM): Tcl_Seek takes Tcl_WideInt offset.
2314 * generic/tkFrame.c (ConfigureFrame): Stop GCC warning.
2316 * generic/tkImgGIF.c: Made file meet the formatting rules from the
2317 Tcl Engineering Manual better; mostly differences in whitespace.
2319 2002-02-18 Jeff Hobbs <jeffh@ActiveState.com>
2321 * unix/configure: regen'd
2323 * unix/configure.in: added macros and calls to SC_TCL_EARLY_FLAGS
2324 and SC_TCL_64BIT_FLAGS, part of TIP #72.
2326 2002-02-14 Mo DeJong <mdejong@users.sourceforge.net>
2328 * library/entry.tcl:
2329 * library/text.tcl: Adjust <Double-1> and <Triple-1> bindings
2330 so that no anchor point is set and the insertion cursor is
2331 set to the last character in the selection. [Bug 220943]
2332 * tests/event.test: Add test cases for double click and
2333 drag as well as triple click and drag in the text and
2336 2002-02-14 Mo DeJong <mdejong@users.sourceforge.net>
2338 * tests/event.test (_text_ind_to_x_y, _get_selection): Fix
2339 incorrect use of results from bbox invocation so that
2340 y center point for a give index is calculated correctly.
2341 Add new method to return the selection and use it in
2342 test cases. Always lappend to the result list to avoid
2343 case where initial result includes a space.
2345 2002-02-07 Don Porter <dgp@users.sourceforge.net>
2349 * mac/tkMacKeyboard.c:
2350 * win/tkWinDialog.c:
2351 * win/tkWinTest.c: modified some callers of Tcl routines that
2352 were restored to return (char *) pointing into Tcl_DStrings.
2354 2002-02-03 eric melski <ericm@interwoven.com>
2356 * generic/tkImage.c (Tk_ImageObjCmd): Clean up bogus for loop in
2357 [image inuse] subcommand [Bug #485803].
2359 2002-02-01 Jeff Hobbs <jeffh@ActiveState.com>
2361 * generic/tkCmds.c (Tk_TkObjCmd): don't use 'bool' as an arg as it
2362 conflicts with the C99 spec. [Bug #511956] (ingham)
2364 2002-02-01 David Gravereaux <davygrvy@pobox.com>
2366 * win/makefile.vc: unset macro located in the tktest target
2367 caused a failure to build. [Bug 511652]
2369 2002-01-30 Don Porter <dgp@users.sourceforge.net>
2371 * win/stubs.c (XSetCommand): Overlooked CONSTification.
2373 2002-02-01 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2375 * doc/photo.n: Documented transparency subcommand.
2376 * tests/imgPhoto.test (imgPhoto-4.40...imgPhoto-4.68): Tests for
2377 the transparency subcommand.
2378 * generic/tkImgPhoto.c (ImgPhotoCmd): Added transparency
2379 subcommand (see TIP #14.)
2381 2002-01-31 Todd Helfter <tmh@users.sourceforge.net>
2382 * generic/tkMenu.c (ConfigureMenuCloneEntries)
2383 * tests/menu.test (menu3.68)
2384 Correct and test for logic error when cloning menus. [Bug #508988]
2386 2002-01-30 Don Porter <dgp@users.sourceforge.net>
2388 * generic/tk.decls: The POTENTIAL INCOMPATIBILITY in the changing
2389 interface of Tk_ParseArgv can now be removed by the -DUSE_NON_CONST
2391 * generic/tkDecls.h: make genstubs
2393 2002-01-29 Andreas Kupries <andreas_kupries@users.sourceforge.net>
2395 * win/tkWinInit.c (TkpGetAppName): TIP 27 fixup. The code now does
2396 not write into the CONST path returned by "argv0" and
2397 Tcl_SplitPath anymore.
2399 2002-01-28 Mo DeJong <mdejong@users.sourceforge.net>
2401 * unix/configure: Regen.
2402 * unix/configure.in: Don't set TCL_LIB_SPEC and
2403 TCL_STUB_LIB_SPEC variables since this breaks
2404 the AIX build. This was used in the past to
2405 support linking with Tcl from the build dir
2406 or the install dir, but it is no longer needed.
2408 2002-01-28 Mo DeJong <mdejong@users.sourceforge.net>
2410 * unix/Makefile.in: Remove commented out vars.
2411 * unix/configure: Regen.
2412 * unix/configure.in: Don't subst vars that are already
2413 taken care of in SC_LOAD_TCLCONFIG.
2414 * unix/tcl.m4: Update from Tcl.
2415 * win/configure: Regen.
2416 * win/tcl.m4: Update from Tcl.
2418 2001-01-27 Daniel Steffen <das@users.sourceforge.net>
2420 * generic/tkFileFilter.c:
2422 * mac/tkMacKeyboard.c:
2423 * mac/tkMacMenus.c: TIP 27 CONSTification induced changes
2425 2002-01-25 Don Porter <dgp@users.sourceforge.net>
2427 * All changes below are Patch 505159
2434 * generic/tk.decls (Tk_AddOption,Tk_CanvasGetCoord,Tk_GetPixels,
2435 Tk_GetScreenMM,Tk_NameToWindow,Tk_ParseArgv):
2436 * generic/tkArgv.c (Tk_ParseArgv):
2437 * generic/tkCanvLine.c (ParseArrowShape):
2438 * generic/tkCanvUtil.c (Tk_CanvasGetCoord,Tk_CanvasTagsParseProc,
2439 Tk_CanvasTagsPrintProc,Tk_GetDash):
2440 * generic/tkCanvas.c (ConfigureCanvas):
2441 * generic/tkGet.c (Tk_GetPixels,Tk_GetScreenMM):
2442 * generic/tkImgPhoto.c (ImgPhotoCmd):
2443 * generic/tkMain.c (Tk_MainEx):
2444 * generic/tkOldConfig.c (FormatConfigInfo):
2445 * generic/tkOption.c (Tk_AddOption):
2446 * generic/tkText.c (TextWidgetCmd,TkTextGetTabs,DumpSegment):
2447 * generic/tkText.h (TkTextCreateTag):
2448 * generic/tkTextTag.c (TkTextCreateTag):
2449 * generic/tkWindow.c (Tk_NameToWindow,Initialize):
2450 * mac/tkMacCursor.c (FindCursorByName,TkGetCursorByName):
2451 * mac/tkMacWm.c (Tk_WmCmd):
2452 * unix/tkUnixCursor.c (TkGetCursorByName):
2453 * unix/tkUnixSend.c (ValidateName):
2454 * unix/tkUnixWm.c (Tk_WmCmd):
2455 * win/tkWinCursor.c (TkGetCursorByName):
2456 * win/tkWinWm.c (Tk_WmCmd): Updated callers of Tcl_SplitList and
2458 * generic/tkDecls.h: make genstubs
2459 ***POTENTIAL INCOMPATIBILITY***
2460 Includes a source incompatibility in the argv argument of Tcl_ParseArgv.
2462 * generic/tkBind.c (DeleteVirtualEvent):
2463 * generic/tkCanvas.c (ScrollFractions, CanvasWidgetCmd,
2464 CanvasUpdateScrollbars):
2465 * generic/tkTestTag.c (TkTextTagCmd): Updated callers of
2466 Tcl_GetStringResult. Rewrote PrintScrollFractions to
2467 ScrollFractions to stop scribbling directly on interp->result.
2469 * generic/tkInt.decls (TkGetDefaultScreenName, TkpDisplayWarning,
2471 * generic/tkCanvPs.c (Tk_PostscriptColor, Tk_PostscriptFont):
2472 * generic/tkEntry.c (EntrySetValue, EntryValidateChange, ExpandPercents,
2473 EntryValueChanged, Tk_EntryObjCmd, DestroyEntry, ConfigureEntry,
2474 EntryComputeGeometry, InsertChars, DeleteChars, EntryFetchSelection,
2475 EntryTextVarProc, Tk_SpinBoxObjCmd, SpinboxWidgetObjCmd):
2476 * generic/tkMain.c (Prompt):
2477 * generic/tkMenu.c (MenuVarProc):
2478 * generic/tkMenubutton.c (ConfigureMenuButton, MenuButtonTextVarProc):
2479 * generic/tkMessage.c (ConfigureMessage, MessageTextVarProc):
2480 * generic/tkWindow.c (GetScreen, Initialize):
2481 * mac/tkMacInit.c (TkpInit, TkpDisplayWarning):
2482 * mac/tkMacXStubs.c (TkGetDefaultScreenName, TkpOpenDisplay):
2483 * unix/tkUnix.c (TkGetDefaultScreenName):
2484 * unix/tkUnixEvent.c (TkpOpenDisplay):
2485 * unix/tkUnixInit.c (TkpGetAppName, TkpDisplayWarning):
2486 * unix/tkUnixSend.c (SendEventProc):
2487 * win/tkWinInit.c (TkpGetAppName, TkpDisplayWarning):
2488 * win/tkWinX.c (TkGetDefaultScreenName,TkpOpenDisplay): Updated
2489 callers of Tcl_GetVar, Tcl_GetVar2
2490 * generic/tkIntDecls.h: make genstubs
2492 * generic/tkCanvPs.c (TkCanvPostscriptCmd):
2493 * generic/tkImgBmap.c (TkGetBitmapData):
2494 * generic/tkOption.c (ReadOptionFile):
2495 * mac/tkMacInit.c (TkpInit, TkpGetAppName):
2496 * win/tkWinInit.c (TkpGetAppName): Updated callers of
2497 Tcl_SplitPath, Tcl_JoinPath, and Tcl_TranslateFileName.
2499 2002-01-18 Mo DeJong <mdejong@users.sourceforge.net>
2501 * tests/wm.test: Rewrite stackorder tests that
2502 deal with toplevels that have the overrideredirect
2503 flag set. [Tk bug 492259]
2505 2002-01-18 Don Porter <dgp@users.sourceforge.net>
2507 * win/tkWinDialog.c: Overlooked Tcl_GetIndexFromObj callers.
2509 2001-01-18 Daniel Steffen <das@users.sourceforge.net>
2511 * mac/tkMacDialog.c:
2512 * mac/tkMacSend.c: TIP 27 CONSTification broke the mac
2513 build in a few places.
2515 2002-01-16 Jeff Hobbs <jeffh@ActiveState.com>
2517 * generic/tkListbox.c (ChangeListboxOffset): improved tracking
2518 when scrolling on x axis with entry/text. [Bug #225025] (voskuil)
2520 2002-01-16 Don Porter <dgp@users.sourceforge.net>
2522 * generic/tk3d.c (Tk_GetReliefFromObj):
2523 * generic/tkBind.c (Tk_EventObjCmd,HandleEventGenerate):
2524 * generic/tkButton.c (ButtonWidgetObjCmd):
2525 * generic/tkCanvas.c (CanvasWidgetCmd,FindItems):
2526 * generic/tkClipboard.c (Tk_ClipboardObjCmd):
2527 * generic/tkCmds.c (Tk_BellObjCmd, Tk_TkObjCmd, Tk_TkwaitObjCmd,
2528 Tk_UpdateObjCmd, Tk_WinfoObjCmd, Tk_WmObjCmd):
2529 * generic/tkConfig.c (DoObjConfig):
2530 * generic/tkEntry.c (EntryWidgetObjCmd, SpinboxWidgetObjCmd):
2531 * generic/tkFocus.c (Tk_FocusObjCmd):
2532 * generic/tkFont.c (Tk_FocusObjCmd, ConfigAttributesObj):
2533 * generic/tkFrame.c (Tk_FrameObjCmd):
2534 * generic/tkGet.c (Tk_GetAnchorFromObj, Tk_GetJustifyFromObj):
2535 * generic/tkGrab.c (Tk_GrabObjCmd):
2536 * generic/tkGrid.c (Tk_GridObjCmd,GridRowColumnConfigureCommand,
2537 GridSlavesCommand, ConfigureSlaves):
2538 * generic/tkImage.c (Tk_ImageObjCmd):
2539 * generic/tkImgBmap.c (ImgBmapCmd):
2540 * generic/tkImgGIF.c (FileReadGIF):
2541 * generic/tkImgPhoto.c (ImgPhotoCmd):
2542 * generic/tkListbox.c (ListboxWidgetObjCmd, ListboxSelectionSubCmd,
2544 * generic/tkMenu.c (MenuWidgetObjCmd, MenuAddOrInsert, MenuCmd,
2545 ConfigureMenu, CloneMenu):
2546 * generic/tkMenubutton.c (MenuButtonWidgetObjCmd):
2547 * generic/tkMessage.c (MessageWidgetObjCmd):
2548 * generic/tkOption.c (Tk_OptionObjCmd):
2549 * generic/tkPack.c (Tk_PackObjCmd, ConfigureSlaves):
2550 * generic/tkPlace.c (Tk_PlaceObjCmd):
2551 * generic/tkScale.c (ScaleWidgetObjCmd):
2552 * generic/tkSelect.c (Tk_SelectionObjCmd):
2553 * generic/tkSquare.c (SquareWidgetObjCmd):
2554 * generic/tkTest.c (TestobjconfigObjCmd, TrivialConfigObjCmd,
2555 TestfontObjCmd): Updates to handle change in type of tablePtr
2556 argument of Tcl_GetIndexFromObj(Struct) from (char **) to
2557 (CONST char **). [TIP 27] [Patch 504705]
2559 * generic/tkCanvText.c (GetSelText):
2560 * generic/tkEntry.c (Entry{FetchSelection,Setvalue},ExpandPercents):
2561 * generic/tkSelect.c (HandleTclCommand):
2562 * generic/tkText.c (TextSearchCmd):
2563 * generic/tkTextIndex.c (TkTextMakeByteIndex, TkTextIndexBackChars):
2564 * mac/tkMacFont.c (Tk_MeasureChars, BreakLine):
2565 * unix/tkUnixMenu.c (DrawMenuUnderline):
2566 * win/tkWinMenu.c (GetEntryText, DrawMenuUnderline): Updated
2567 callers of Tcl_Utf* and Tcl_Regexp* APIs to reflect TIP 27 API
2568 changes (see Tcl Patch 471509). [Patch 471513]
2570 2002-01-16 Mo DeJong <mdejong@users.sourceforge.net>
2572 * unix/configure: Regen.
2573 * unix/tcl.m4: Update from Tcl.
2574 * win/configure: Regen.
2575 * win/tcl.m4: Update from Tcl.
2577 2002-01-04 Don Porter <dgp@users.sourceforge.net>
2579 * generic/tkMain.c (Tk_MainEx): Updated callers of CONSTified
2580 Tcl interfaces Tcl_EvalFile and TclGetStartupScriptFileName.
2582 * generic/tkConsole.c (ConsoleOutputProc, TkConsolePrint):
2583 * generic/tkInt.h (TkConsolePrint):
2584 * mac/tkMacAppInit.c (TkConsolePrint): Updated Tk's console to
2585 CONSTified channel driver interface. [Tcl Patch 503565, Tk Patch
2588 2002-01-11 Mo DeJong <mdejong@users.sourceforge.net>
2590 Use ${libdir} instead of ${exec_prefix}/lib. [Tcl bug 489370]
2592 * unix/configure: Regen.
2593 * unix/configure.in: Define and use libdir.
2594 * win/configure: Regen.
2595 * win/configure.in: Define libdir.
2597 2002-01-11 Mo DeJong <mdejong@users.sourceforge.net>
2599 * unix/Makefile.in: Burn Tcl and Tk build
2600 directories into tktest executable to avoid crashes
2601 caused by ld loading a previously installed version
2602 of the tcl or tk shared libraries. Remove setting
2603 of LD_LIBRARY_PATH, LIBPATH, and SHLIB_PATH
2604 before running tktest since it should no
2607 2002-01-11 Mo DeJong <mdejong@users.sourceforge.net>
2609 Enable use of Tcl stubs when building Tk as
2610 a shared library. This should fix the build
2611 under AIX. [Bugs 220858, 220955, 220921]
2613 * unix/Makefile.in: Add TCL_STUB_LIB_SPEC and
2614 TCL_STUB_LIB_FLAG variables.
2615 * unix/configure: Regen.
2616 * unix/configure.in: Pass TCL_STUB_LIB_SPEC into
2617 Makefile and use it when linking the tk shared library.
2618 Define USE_TCL_STUBS when building shared. Subst
2619 TCL_STUB_LIB_SPEC and TCL_STUB_LIB_FLAG.
2621 2002-01-08 D. Richard Hipp <drh@hwaci.com>
2623 * win/tkWinMenu.c: Fix the following bug: If you select an entry
2624 on a cascade menu then the next time the parent menu is posted, the
2625 cascade entry was active. Also, if you traverse to a disabled entry
2626 using keystrokes and press ENTER on the disabled entry, then that
2627 entry appears active the next time the menu is posted. The same
2628 patch fixes both problems.
2630 2002-01-04 Don Porter <dgp@users.sourceforge.net>
2632 * generic/tkBind.c (TkBindFree):
2633 * generic/tkGrid.c (ResolveConstraints,CheckSlotData,DestroyGrid):
2634 * generic/tkSelect.c (Tk_DeleteSelHandler,TkSelDeadWindow): Replaced
2635 Tcl_Free calls with ckfree so that memory debugging is fully supported.
2637 2001-12-28 Jeff Hobbs <jeffh@ActiveState.com>
2639 * test/winButton.test:
2640 * win/tkWinButton.c: added updated patch #463234 which returns the
2641 default sizing behavior (not so native), but enables native L&F
2642 with negative sizing (-11 for example).
2644 * library/text.tcl (tk::TextButton1): made text receive focus even
2645 in disabled state for Windows to show selection and allow
2646 mouse-wheel scrolling.
2648 * win/tkWinInit.c (TkpDisplayWarning): added Tcl_DStringFree's
2651 * win/tkWinX.c: added TkWinProcs that represent a function table
2652 to switch between unicode and ansi procs on Windows. This is
2653 analogous to the TclWinProcs. Using Tcl_WinUtfToTChar, we can
2654 easily take advantage of using unicode functions where available
2655 without having to switch on the platform id each time.
2657 * win/tkWinWm.c (InitWindowClass): corrected init routines to
2658 allow unicode in window titles on Windows (for Win2K/XP).
2659 (TkWmStackorderToplevel): Corrected casts to enable debug compile
2661 * win/configure: regen'ed
2662 * win/tcl.m4: added shell32.lib to link libs, as these are
2663 necessary for new directory chooser (when enabled).
2665 * win/tkWinDialog.c (Tk_MessageBoxObjCmd): use MessageBoxW for
2666 proper display of unicode errors.
2667 Added patch which uses new OLE based directory chooser. This
2668 still has some issues, so is disabled by default. [Patch #468139]
2669 (ColorDlgHookProc) Corrected ability to use unicode chars in
2670 tk_chooseColor -title.
2672 2001-12-27 Jeff Hobbs <jeffh@ActiveState.com>
2674 * win/tkWinInit.c (TkpDisplayWarning): Use MessageBoxW in case the
2675 error displayed has unicode chars. [Bug #485986]
2677 2001-12-27 Daniel Steffen <das@users.sourceforge.net>
2680 * mac/tkMacResource.r: synced up tkInit features to unix/win:
2681 use existing tkInit proc if defined. Added spinbox.tcl resource.
2682 Used TclGetEnv() instead of Tcl_GetVar2(interp, env)
2683 * mac/tkMacApplication.r:
2684 * mac/tkMacLibrary.r: minor version resources cleanup
2686 2001-12-27 Jeff Hobbs <jeffh@ActiveState.com>
2688 * generic/tkButton.c (ButtonTextVarProc): guard against being
2689 called while the *button/label is being deleted. [Bug #490051]
2691 * library/entry.tcl:
2692 * library/spinbox.tcl:
2693 * library/text.tcl: added extra checks against bug #220269 and
2694 made spinbox reuse more of the entry procedure code.
2696 2001-12-20 Mo DeJong <mdejong@users.sourceforge.net>
2698 * unix/configure: Regen.
2699 * unix/tcl.m4: Update from Tcl.
2701 2001-12-19 Mo DeJong <mdejong@users.sourceforge.net>
2703 * unix/configure: Regen.
2704 * unix/tcl.m4: Update from Tcl.
2706 2001-12-18 Mo DeJong <mdejong@users.sourceforge.net>
2708 * unix/configure: Regen.
2709 * unix/configure.in: Move EXP file changes over from
2710 Tcl configure script to fix AIX build with gcc. [Bug 220955]
2712 2001-12-18 Mo DeJong <mdejong@users.sourceforge.net>
2715 * win/Makefile.in: Use $(MAKE) instead of make
2716 in the tcltest rule.
2718 2001-12-18 Don Porter <dgp@users.sourceforge.net>
2720 * tests/event.test (event-click-drag-1.2): Corrected test that
2721 failed on Solaris/CDE due to text scrolling. [Bug 413735]
2723 2001-12-18 Jeff Hobbs <jeffh@ActiveState.com>
2725 * library/spinbox.tcl (ButtonDown): added catch to ignore
2726 possible error in after cancel when Priv(afterId) isn't defined.
2728 * doc/spinbox.n: corrected spin(up|down) -> button(up|down)
2730 2001-12-14 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2732 * doc/getOpenFile.n: Documented change.
2733 * library/tkfbox.tcl (SetFilter): Added code to guess the correct
2734 default extension from whatever value was selected in the
2735 filetypes option menu. Adapted from code by Chris Nelson
2736 submitted in Patch #492220.
2738 2001-12-12 Jeff Hobbs <jeffh@ActiveState.com>
2740 * unix/tkUnixWm.c (TkWmStackorderToplevelWrapperMap): added static
2742 2001-12-05 Jeff Hobbs <jeffh@ActiveState.com>
2745 * generic/tkText.h: changed TkTextEditType enums to be prefaced
2746 with TK_EDIT_ to prevent name collision.
2748 2001-12-05 Daniel Steffen <das@users.sourceforge.net>
2750 * mac/tkMacWm.c: mac implementation of wm stackorder
2751 (patch 481148, TIP 74)
2753 2001-12-03 Mo DeJong <mdejong@users.sourceforge.net>
2755 Add TK patch 481148 to implement TIP 74, the
2756 wm stackorder command.
2758 * doc/winfo.n: Update documentation for the winfo
2759 children command to indicate that top-level windows
2760 are not returned in stacking order.
2761 * doc/wm.n: Add documentation for wm stackorder.
2762 * generic/tkInt.decls (TkWmStackorderToplevel):
2763 Add decl for new function.
2764 * generic/tkIntDecls.h: Regen.
2765 * generic/tkStubInit.c: Regen.
2766 * tests/unixWm.test: Add stackorder command to test
2767 for wm command usage message.
2768 * tests/wm.test: Add new set of tests for generic
2769 window manager methods.
2770 * unix/tkUnixWm.c (Tk_WmCmd,
2771 TkWmStackorderToplevelWrapperMap,
2772 TkWmStackorderToplevel): Add unix implementation of
2773 new wm stackorder command.
2774 * win/tkWinWm.c (Tk_WmCmd,
2775 TkWmStackorderToplevelEnumProc,
2776 TkWmStackorderToplevelWrapperMap,
2777 TkWmStackorderToplevel): Add windows implementation
2778 of new wm stackorder command.
2780 2001-12-03 David Gravereaux <davygrvy@pobox.com>
2782 * win/makefile.vc: install target changes by request from
2783 Ryan Casey <scfiead@hotmail.com>.
2785 2001-11-30 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2787 * library/demos/widget: Further overhauling; shrank fonts, made
2788 better use of fonts, added an icon, fixed the About box. Prompted
2789 by Bug #487442 from Vincent Wartelle.
2791 2001-11-29 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2793 * library/palette.tcl (tk_setPalette): Added heuristic to guess
2794 from the background whether to use black or white for the
2795 foreground when not told specifically. Suggested by Chris Nelson,
2796 this makes the command fit the documentation better!
2798 2001-11-27 David Gravereaux <davygrvy@pobox.com>
2800 * win/makefile.vc: Fixed CAT32 target. cat.c is located in the Tcl
2801 source, not the Tk source.
2803 2001-11-27 D. Richard Hipp <drh@hwaci.com>
2805 * library/menu.tcl: Do not allow keyboard traversal of torn-off
2806 menus to visit the (invisible) tearoff bar.
2808 2001-11-26 D. Richard Hipp <drh@hwaci.com>
2810 * win/tkWinMenu.c: disabled menu items show the activebackground
2811 color in their background. This change makes menu behavior
2812 consistent with what native windows does.
2814 2001-11-24 Mo DeJong <mdejong@users.sourceforge.net>
2816 * unix/Makefile.in: Add comments to better describe
2817 TCL_EXE and when it should be available. Add
2818 rule that prints message about running `make genstubs`
2819 when tkStubInit.c is out of date.
2820 * win/Makefile.in: Add TCL_TOOL_DIR and TCL_EXE
2821 variables to better match the Tcl Makefile. Add
2822 genstubs rule so tkSTubInit.c can be regenerated.
2824 2001-11-24 Mo DeJong <mdejong@users.sourceforge.net>
2826 * win/configure: Regen.
2827 * win/configure.in: Don't AC_SUBST CFLAGS_DEBUG, CFLAGS_OPTIMIZE,
2828 or CFLAGS_WARNING since it is now done in SC_CONFIG_CFLAGS.
2829 * win/tcl.m4 (SC_CONFIG_CFLAGS): AC_SUBST DL_LIBS, CFLAGS_DEBUG,
2830 CFLAGS_OPTIMIZE, and CFLAGS_WARNING.
2832 2001-11-23 Daniel Steffen <das@users.sourceforge.net>
2834 Up-port to 8.4 of mac code changes for 8.3.3 & various new
2835 changes for 8.4, some already backported to 8.3.4 (patch #435660)
2837 * library/tk.tcl: added <Key-F1> binding for <<Undo>> on the mac (TIP26)
2839 * library/button.tcl: fixed undefined $Priv(repeated) error for button
2840 without -repeatdelay support
2842 * generic/tkConsole.c:
2843 * library/console.tcl:
2845 * mac/tkMacResource.r: corrected how mac deals with tcl library
2846 files present both in resources and in $tk_library directory.
2848 * generic/tkConsole.c: crashing bug fix when printing to console
2849 at program exit after the console has already been closed.
2850 Now setting gStdoutInterp=NULL in ConsoleClose().
2852 * mac/tkMacInit.c: correct use of Tcl_JoinPath in tk_library
2855 * mac/tkMacMenu.c: special MDEF_PROC_OFFSET only needed for
2856 exactly one specific version of the MWERKS 68k compiler .
2858 * mac/tkMacShLib.exp: removed file
2860 * unix/Makefile.in: removed reference to .exp files
2862 * mac/MWTkBuildLibHeader.h:
2863 * mac/MW_TkBuildLibHeader.pch:
2864 * mac/MW_TkHeaderCommon.h:
2865 * mac/MW_TkOldImgStaticHeader.h:
2866 * mac/MW_TkStaticHeader.h:
2867 * mac/MW_TkStaticHeader.pch: new precompiled header files
2869 * mac/MW_TkHeader.pch:
2870 * mac/MW_TkOldImgHeader.h:
2871 * mac/MW_TkTestHeader.pch: revised precompiled header handling: now
2872 include a common header file 'MW_TkHeaderCommon.h' from all .pch files,
2873 the .pch files themselves now only setup #defines (e.g. BUILD_tk,
2874 STATIC_BUILD, TCL_DEBUG, TCL_THREADS) like in makefiles on other
2879 * mac/tkMacInt.h: use of BUILD_tk and TCL_STORAGE_CLASS like on other
2880 platforms, standardize #include'd files to what's done on other
2881 platforms, removed use of #pragma export, changed extern to EXTERN
2882 where appropriate to enable DLL export via the TCL_STORAGE_CLASS
2885 * mac/tkMacAppearanceStubs.c: removed use of #pragma export
2887 * mac/widget.r: new resource file for 'Widget Demos'
2889 * mac/tkMacProjects.sea.hqx: updated mac build project files:
2890 build support for CodeWarrior Pro6, UnivIntf 3.4 & shared runtime
2891 libraries (see Tcl ChangeLog for details).
2892 changed weak linking so that CFM68k binaries now work on all OS
2893 versions from the free 7.5.5 onwards, with or without AppearanceMgr
2894 and/or NavigationMgr installed.
2895 added target to automatically build 'Widget Demos'
2896 included XML versions of the projects for CW Pro5 or Pro7 users.
2897 use compat/strtod.c instead of MSL's strtod()
2899 * generic/tkInt.decls:
2900 * generic/tkIntDecls.h:
2901 * generic/tkIntPlatDecls.h:
2902 * generic/tkStubInit.c:
2904 * mac/tkMacInt.h: MAC_TCL tk stub support was badly broken due to
2905 multiply defined (mac specific) names in tk.decls and tkInt.decls,
2906 removed the duplicates from the internal unsupported interfaces
2907 "interface tkInt" and "interface tkIntPlat"; moved declaration of
2908 TkpIsWindowFloating from tkMacInt.h to tkInt.decls: interface tkIntPlat.
2909 - these changes to the stub tables might require you to recompile your
2910 Tk extensions if they turn out to reference one of the removed routines
2911 in the wrong table (should be unlikely).
2913 * generic/tkMain.c: MAC_TCL: workaround for broken/non-standard isatty
2914 on MW Pro6, #include <unistd.h> instead of defining isatty
2916 * generic/tkPointer.c: MAC_TCL: #include tkMacInt.h
2918 * generic/tkStubLib.c: MAC_TCL: removed obsolete special casing of mac
2919 headers, standardize #include'd files to what's done on other platforms
2922 * mac/tkMacWindowMgr.c:
2923 * mac/tkMacScrlbr.c:
2927 * mac/tkMacDialog.c:
2928 * mac/tkMacButton.c: renamed obsolete apple API names to modern
2929 equivalents; UH3.4 support: added #include <ControlDefinitions.h>;
2930 fixed munged non-ASCII chars in sources due to bungled latin1<->mac
2931 roman encoding in CVS repository.
2933 * mac/tkMacDialog.c: added support for -filetypes option (fix for bug
2934 tcl #221636); added update event handling for background windows while
2935 in a NavigationMgr dialog; fixed nasty bug when calling CustomGetFile
2936 (missing addr operator) (fix for bug tk #220911 & tcl #219367); renamed
2937 routines conflicting with standard MoreFiles headers (see Tcl ChangeLog
2940 * mac/tkMacApplication.r:
2941 * mac/tkMacLibrary.r:
2942 * mac/tkMacResource.r: fixed obsolete copyrights/dates in version
2943 strings, updated version strings to standard usage, added support for
2944 '(Support Libraries)' subfolder for shared runtime libraries in
2945 unmerged binaries, commented out demo setting of "Tcl Environment
2946 Variables"; reorganized resources among these files to avoid
2947 multiple copies in applications and shared libraries, the script
2948 libraries/Xcursors etc are now no longer duplicated in Wish but are
2949 only included in the resources of Tk.shlb.
2952 * mac/tkMacMDEF.r: changes to support MW Pro 6 68k (vers 0x2400 only)
2953 compiler producing different offset to start of MDEF; fix to static 68k
2954 presence testing when calling the custom MDEF
2957 * mac/tkMacWindowMgr.c: added/fixed AppearanceMgr checks; override
2958 AppearanceMgr version detection on static 68k to ensure static 68k Wish
2959 runs on PPCs with recent AppearanceMgr
2961 * mac/tkMacButton.c: fixed misplaced/missing variable initialization.
2963 2001-11-20 Jeff Hobbs <jeffh@ActiveState.com>
2965 * generic/tkText.c (TextGetText): reworked to use DString for
2966 improved speed. (callewaert, darley)
2967 (DestroyText): plugged mem leak when not clearing stack (callewaert)
2968 (TextGetText): more efficient string size calculation (darley)
2970 2001-11-19 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2972 * library/demos/entry3.tcl: New demo showing off validation and
2975 * library/demos/widget: Some reorganization to make the code
2976 simpler, plus a new entry demo.
2978 2001-11-17 Jeff Hobbs <jeffh@ActiveState.com>
2980 * win/tkWinButton.c (TkpComputeButtonGeometry): corrected the
2981 default size of Windows buttons to conform to the Windows style.
2982 This changes the default size of buttons on Windows.
2983 [Patch #463234] (nelson)
2984 **** POTENTIAL VISUAL INCOMPATABILITY ****
2986 2001-11-16 Jeff Hobbs <jeffh@ActiveState.com>
2988 * library/menu.tcl: corrected menu traversal code on Unix to
2989 better handle entering cascades. [Patch #481219] (oleinick)
2991 2001-11-16 David Gravereaux <davygrvy@pobox.com>
2993 * win/makefile.vc: Install target repaired.
2995 2001-11-15 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2997 * library/demos/image2.tcl: Many improvements to this
2998 image-viewing demo; now uses labelframes and tk_chooseDirectory
3000 * library/palette.tcl (::tk::RecolorTree): Made this work better
3001 with CDE, which does some extremely annoying things with the
3002 option database that interact badly with Tk's way of handling
3005 * doc/text.n: Overhauled the documentation of undo to make it
3006 easier to understand.
3007 * library/tk.tcl (::tk::EventMotifBindings): Added Emacs-like undo
3008 binding, but not behaviour (we separate undo and redo.)
3009 * library/demos/text.tcl: Show off our undo capability!
3011 2001-11-12 David Gravereaux <davygrvy@pobox.com>
3014 * win/rmd.bat: Removed -kb CVS attribute and added changes
3015 from Llyod Lim for better stability. [Patch #456761]
3017 * win/rules.vc(new):
3018 * win/buildall.vc.bat(new):
3019 * win/makefile.vc: large rewrite following Tcl's makefile.vc as
3020 a guide and Patch #456761. Appears BugFree(tm).
3022 2001-11-12 Jeff Hobbs <jeffh@ActiveState.com>
3027 * generic/tkTextTag.c:
3030 * mac/tkMacDefault.h:
3032 * unix/tkUnixDefault.h:
3033 * win/tkWinDefault.h: added TIP #26 implementation of simple
3034 built-in undo/redo of text editing in the text widget.
3035 [Patch #458879] (callewaert)
3037 2001-11-12 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3039 * library/demos/menu.tcl: Show off -compound support in menus.
3041 * library/demos/radio.tcl: Added some code to both show off the
3042 extra capabilities of the buttons and also show what can be done
3043 with compound images on the sly.
3045 2001-11-10 Mo DeJong <mdejong@users.sourceforge.net>
3048 * win/Makefile.in: Add "make gdb" target. This target
3049 can run wish inside either gdb or insight.
3051 2001-11-09 Jeff Hobbs <jeffh@ActiveState.com>
3053 * library/clrpick.tcl: changed a few parameters so that the full
3054 0..255 range could be accessed via the mouse. [Bug #478498]
3057 * unix/tcl.m4: added -lc to AIX libs, fixed path to ldAix
3061 * win/makefile.vc: add comctl32.lib to build libs.
3062 * win/tkWinX.c (TkWinXInit): added InitCommonControlsEx call.
3065 * win/rc/wish.exe.manifest: added resources that specify using v6
3066 of the MS Common Controls library when available (WinXP+). This
3067 enables use of the themeable widgets (like scrollbars) to be used
3068 in Tk. [Patch #478933]
3070 2001-11-09 Mo DeJong <mdejong@users.sourceforge.net>
3073 * unix/tcl.m4: Update from Tcl.
3075 2001-11-08 Mo DeJong <mdejong@users.sourceforge.net>
3078 Avoid adding libc to the LIBS and WISH_LIBS
3079 variables since it is not needed when linking with CC.
3080 If required when linking with LD it should be done
3081 on a case by case basis in tcl.m4.
3083 2001-11-05 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3085 * library/demos/dialog2.tcl: Typo-fix.
3086 * library/demos/browse, library/demos/ixset, library/demos/rolodex:
3087 Installation does version number fixup, so we shouldn't. Thanks
3088 to wohnivec@iol.cz for pointing these (thankfully minor) problems
3091 2001-10-30 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3093 * library/demos/widget: Integrated labelframe item into the labels
3094 section and added a spinbox demo to the (retitled) entry section.
3096 * library/demos/labelframe.tcl: Adjusted so as to show off the
3097 labelframe widget to better effect and have a better description.
3099 * library/demos/spin.tcl: New demo to show off spinbox capabilities.
3101 * library/demos/rolodex: Changes up-ported from core-8-3-1-branch
3102 to make the script use more 8.*-isms, but not menus due to the way
3103 the context help system works.
3105 * library/demos/ixset: Changed to use the labelframe widget and
3106 the grid geometry manager.
3108 2001-10-29 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3110 * library/demos/browse: Changes up-ported from core-8-3-1-branch
3111 to make the script much more robust, particularly when neither the
3112 current version of wish or the script are on the path.
3114 * library/demos/hello: Added emacs trailing tag-line.
3116 * library/demos/tcolor: Changes up-ported from core-8-3-1-branch
3117 to make the script compliant with current good practise, as well
3118 as extensive use of the new labelframe widget.
3120 * library/demos/timer: Changes up-ported from core-8-3-1-branch to
3121 make the script look and work better.
3123 * library/demos/rmt: Changes up-ported from core-8-3-1-branch to
3124 use more 8.* features and make the demo script more generally
3127 2001-10-23 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3129 * generic/tkCursor.c (Tk_GetCursorFromData): Fixed uninit nextPtr
3130 field. [adapted from Patch 473875]
3131 (GetCursor): Removed double-assignment to nextPtr field.
3133 2001-10-19 Jeff Hobbs <jeffh@ActiveState.com>
3135 * library/console.tcl: removed transpose ability until the console
3136 can get a proper rewrite of tag handling.
3138 2001-10-18 Jeff Hobbs <jeffh@ActiveState.com>
3140 * tests/defs.tcl: removed threaded build warning under X.
3142 * library/console.tcl (ConsoleOutput): fixed undefined widget
3145 2001-10-16 Jeff Hobbs <jeffh@ActiveState.com>
3147 * library/xmfbox.tcl: fixed filtering in motif file dialog.
3148 [Patch #469670] (nelson)
3150 * generic/tkWindow.c (OpenIM): Added simple XIM patch to enable
3151 basic XIM input on Unix. [Patch #412727] (fabian)
3153 2001-10-15 Jeff Hobbs <jeffh@ActiveState.com>
3156 * unix/configure.in:
3159 * win/tkConfig.sh.in: reworked to be a little cleaner in
3160 comparison to each other, and to AC_SUBST even empty vars for
3163 2001-10-12 Todd M. Helfter <tmh@purdue.edu>
3169 * generic/tkMenubutton.c:
3170 * generic/tkMenubutton.h:
3171 * mac/tkMacDefault.h:
3173 * mac/tkMacMenubutton.c:
3175 * unix/tkUnixDefault.h:
3176 * unix/tkUnixMenu.c:
3178 * win/tkWinDefault.h:
3180 * win/tkWinWm.c: Implementation of TIP #63, the addition of
3181 a -compound option to menu entries allowing text and an image to
3182 be displayed at the same time.
3184 2001-10-09 Jeff Hobbs <jeffh@ActiveState.com>
3186 * library/console.tcl: added more smarts extracted from tkcon to
3187 the default console.
3189 2001-10-01 Jeff Hobbs <jeffh@ActiveState.com>
3191 * win/tkWinTest.c: better error reporting from testclipboard
3193 * win/tkWinDialog.c: minor cast changes to support Win64
3195 * win/tkWinWindow.c: made use of standard Tk_GetHWND instead of
3196 older, private TkWinGetHWND.
3198 * win/configure: regen'ed
3200 * win/makefile.vc: updated for Win64 SDK RC1 compilation support
3202 2001-09-30 Peter Spjuth <peter.spjuth@space.se>
3206 * tests/grid.test: Added -uniform option to grid's row/column-
3207 configure. [TIP 37] [Patch 459343]
3209 2001-09-26 Peter Spjuth <peter.spjuth@space.se>
3211 * win/tkWinFont.c (Tk_DrawChars): Added support for clipping text.
3216 * generic/tkFrame.c:
3218 * generic/tkWindow.c:
3219 * library/demos/radio.tcl:
3220 * library/demos/labelframe.tcl:
3221 * library/demos/widget:
3222 * mac/tkMacDefault.h:
3224 * unix/tkUnixDefault.h:
3225 * win/tkWinDefault.h: Added labelframe widget. Added -padx/y
3226 options to frame and toplevel.
3230 * tests/place.test: Used labelframe to test geometry manager changes.
3231 [TIP 18] [Patch 429164]
3233 2001-09-26 Peter Spjuth <peter.spjuth@space.se>
3239 * generic/tkDecls.h:
3240 * generic/tkGeometry.c:
3241 * generic/tkGrid.c (ArrangeGrid):
3243 * generic/tkPack.c (ArrangePacking):
3244 * generic/tkPlace.c (RecomputePlacement):
3245 * generic/tkStubInit.c:
3246 * generic/tkUtil.c (TkComputeAnchor):
3247 * generic/tkWindow.c (TkAllocWindow):
3248 * unix/mkLinks: Geometry manager changes to support TIP#18.
3249 Allows a widget to set different internal border widths on
3250 different sides, and to set a minimum requested size.
3251 POTENTIAL INCOMPATIBILITY. [Patch 429164]
3253 2001-09-25 Don Porter <dgp@users.sourceforge.net>
3256 * generic/tkInt.decls (TkpScanWindowId):
3257 * unix/tkUnixPort.h (Tkp{Print,Scan}WindowId):
3258 * unix/tkUnixXId.c (TkpScanWindowId):
3259 * win/tkWinWindow.c (TkpScanWindowId): Corrected definition of
3260 TkpScanWindowId to handle situation where types Window and int
3261 do not have the same number of bits. CONST-ified too.
3263 * generic/tkIntPlatDecls.h:
3264 * generic/tkStubInit.c: make genstubs
3266 2001-09-24 Don Porter <dgp@users.sourceforge.net>
3268 * generic/tkMain.c (StdinProc): Update to handle change in
3269 return type of Tcl_DStringAppend() from (char *) to (CONST char *).
3272 2001-09-23 Peter Spjuth <peter.spjuth@space.se>
3273 * generic/tkPack.c (ConfigureSlaves):
3275 * tests/grid.test: Pack accepted asymmetric values for -ipadx/y.
3276 Only -padx/y supports asymmetry. [Bug #462348]
3278 2001-09-21 Jeff Hobbs <jeffh@ActiveState.com>
3280 * win/tkWinWindow.c (TkpPrintWindowId, TkpScanWindowId): fixed to
3281 work on Win64 with 64bit XIDs.
3283 * generic/tkWindow.c (Tk_CreateAnonymousWindow):
3284 * generic/tkEntry.c (GetSpinboxElement): fixed unreachable returns.
3286 * win/tkWinX.c (TkGetServerInfo): added recognition of Win64.
3288 * xlib/X11/X.h: made XID __int64 type for Win64.
3290 * unix/tkUnixPort.h:
3291 * mac/tkMacPort.h: add (int*) cast to TkpScanWindowId.
3292 These may need to be changed to Window* (ulong).
3294 * generic/tkCmds.c (Tk_WinfoObjCmd):
3295 * generic/tkBind.c (NameToWindow):
3296 correct Window id's to be of type Window
3298 * generic/tkIntDecls.h:
3299 * generic/tkIntPlatDecls.h:
3300 * generic/tkInt.decls (TkpScanWindowId): changed decl to use
3301 Window* instead of int*.
3304 * generic/tkPack.c,tkWindow.c:
3305 * win/tkWinFont.c,tkWinMenu.c:
3306 * unix/tkUnixScale.c: minor cast fixes to prevent 64bit warnings.
3308 * tests/scrollbar.test (scrollbar-6.27): marked knownBug because
3309 it is skewed by bad dimensions returned by Windows.
3311 * tests/textDisp.test (textDisp-4.12): corrected test to work
3312 properly on Windows.
3314 * tests/id.test,macFont.test,macMenu.test,macscrollbar.test:
3315 * tests/send.test,winClipboard.test,winDialog.test,winFont.test:
3316 improved use of test constraints
3318 * win/tkWinWm.c (WinSetIcon): fixed SetClassLong for 64bit support.
3320 2001-09-20 Jeff Hobbs <jeffh@ActiveState.com>
3322 * unix/configure: regen'ed
3323 * unix/tcl.m4: added --enable-64bit support for HP-11 with the
3326 2001-09-17 Don Porter <dgp@users.sourceforge.net>
3328 * generic/tkGrid.c (ConfigureSlaves):
3329 * generic/tkPack.c (PackAfter): Corrected type definition of
3330 argument passed to Tcl_GetStringFromObj() from size_t to int.
3331 Incorrect type broke [pack] and [grid] on systems where
3332 sizeof(size_t) != sizeof(int). [Bugs 462375, 462342, 462338]
3334 2001-09-17 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3336 * library/choosedir.tcl (DblClick):
3337 * library/tkfbox.tcl (OkCmd, ListInvoke): Rewrote so as to avoid
3338 the highly confusing string "text" and to be consistent about what
3339 is and what is not a list. [Bug 459895, reported by fandom]
3341 2001-09-14 Andreas Kupries <andreas_kupries@users.sourceforge.net>
3343 * generic/tkImgGIF.c:
3344 * generic/tkImgPPM.c:
3345 * generic/tkImgPhoto.c:
3346 * generic/tkMenu.c: Applied patch [461578], provided by Vincent
3347 Darley. This fixes several memory leaks in the image code. They
3348 happen if there are errors during the initialization of the
3349 channel the image is supposed to be read from.
3351 2001-09-12 Mo DeJong <mdejong@users.sourceforge.net>
3354 * unix/tcl.m4: Update from Tcl.
3356 2001-09-12 D. Richard Hipp <drh@hwaci.com>
3358 * library/tkfbox.tcl: fixed error that appeared when you would
3359 click on the canvas while viewing an empty directory.
3361 2001-09-10 Mo DeJong <mdejong@users.sourceforge.net>
3364 * unix/tcl.m4: Update from Tcl.
3366 2001-09-09 Mo DeJong <mdejong@users.sourceforge.net>
3368 * win/Makefile.in: Fix Windows Makefile so that
3369 tcltest will automatically be compiled if the
3370 user tries to build tktest.
3372 2001-09-09 Mo DeJong <mdejong@users.sourceforge.net>
3374 * win/Makefile.in: Use TKTEST variable directly
3375 instead of depending on the tktest alias.
3377 2001-09-08 Mo DeJong <mdejong@users.sourceforge.net>
3381 Apply binary property (cvs admin -kb) to files and convert
3382 to CRLF linefeed format to fix the VC++ build. [Tcl Bug #219409]
3384 2001-08-29 Jeff Hobbs <jeffh@ActiveState.com>
3388 * tests/select.test: corrected to use testConfig constraints in
3389 the TK_ALT_DISPLAY case
3391 * tests/unixSend.test: removed test file completely identical to
3392 send.test. Removed platform specific named file in case somebody
3393 gets send working on Win/Mac in the future.
3395 * tests/config.test: added config-14.1 to test namespace import
3396 evaluation of widgets.
3397 * generic/tkButton.c (ButtonCreate):
3398 * generic/tkFrame.c (CreateFrame):
3399 * generic/tkMenubutton.c (Tk_MenubuttonObjCmd):
3400 * generic/tkPlace.c (Tk_PlaceObjCmd):
3401 * generic/tkScale.c (Tk_ScaleObjCmd):
3402 * generic/tkMessage.c (Tk_MessageObjCmd):
3403 * generic/tkEntry.c (Tk_EntryObjCmd, Tk_SpinboxObjCmd):
3404 * generic/tkSquare.c (SquareObjCmd): redid the handling of
3405 optionTables in widgets to allow them to be imported into other
3406 namespaces. [Bug #456632]
3408 2001-08-28 Jeff Hobbs <jeffh@ActiveState.com>
3410 * win/tkWinDialog.c (ChooseDirectoryHookProc): work-around for MS
3411 bug that caused crashing in tk_chooseDirectory on Win95.
3412 [Bug #224936] (baker)
3414 * unix/tkUnixWm.c (TkWmRestackToplevel): reworked how
3415 ConfigureNotify requests were handled in relation to the parent to
3416 avoid the problem with potential 'raise' delays on some wms.
3417 [Bug #220260] (baker) wms that were affected should notice the
3418 difference in tests unixWm-51.* not failing that failed before.
3420 2001-08-26 Don Porter <dgp@users.sourceforge.net>
3422 * library/text.tcl (<Shift-Up> binding): Corrected TIP 44 typo
3423 that broke binding. Thanks to "Michal" for the fix.
3426 2001-08-23 Jeff Hobbs <jeffh@ActiveState.com>
3429 * unix/tcl.m4: added QNX-6 build support. [Bug #219410] (loverso)
3431 * doc/CrtPhImgFmt.3: removed bogus note about including tkPhoto.h
3433 2001-08-22 Peter Spjuth <peter.spjuth@space.se>
3435 * generics/tkGrid.c (ConfigureSlaves):
3436 * tests/grid.test: Fixed a bug where adjacent 'x' and '^' where
3437 not handled properly. [Bug #452040]
3439 2001-08-22 Jeff Hobbs <jeffh@ActiveState.com>
3441 * generic/tkPack.c (TkParsePadAmount): added lint init for sepChar.
3443 * tests/dialog.test (HitReturn): fixed failing dialog-2.1 test
3444 because it wasn't always getting focus properly.
3446 2001-08-21 Jeff Hobbs <jeffh@ActiveState.com>
3448 * tests/unixFont.test (unixFont-2.[234]): fixed to be more
3449 sensitive on systems that have more installed fonts.
3451 * library/dialog.tcl (tk_dialog): changed dialog to show bar on
3452 Windows as well and added some y padding between the buttons and
3453 the bar. [Patch #442835] (harrismh)
3455 2001-08-20 Peter Spjuth <peter.spjuth@space.se>
3458 * generic/tkWindow.c:
3462 * tests/oldpack.test:
3463 * tests/pack.test: Objectified grid and pack commands.
3465 2001-08-20 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3467 * generic/tkObj.c (TkGetWindowFromObj): Rewrote window code to
3468 reuse a previously worked-out set of window information exactly
3469 when the reference window is the same and no window deletions have
3470 occurred since the object was allocated (display has same epoch
3471 counter.) Required changing the internal rep of the window quite
3472 a bit as now need to save three words-worth of information in the
3473 internal rep (this window, reference window, display epoch.)
3474 * generic/tkObj.c (SetWindowFromAny, DupWindowInternalRep,
3475 FreeWindowInternalRep): Code to support new internal rep for
3477 * generic/tkInt.h: Added epoch counter to TkDisplay structure
3478 * generic/tkWindow.c (GetScreen, Tk_DestroyWindow): Epoch counter
3479 is incremented every time a window is deleted.
3481 2001-08-18 Peter Spjuth <peter.spjuth@space.se>
3485 * generic/tkGrid.c: Grid configure rejected initial "x" and "^".
3488 2001-08-17 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3490 * generic/tkObj.c (TkGetWindowFromObj): Was failing to reuse
3491 cached window objects, forcing a call to Tcl_GetStringFromObj and
3492 Tk_NameToWindow every time. This fault has been in there for
3493 nearly three years...
3495 2001-08-15 Don Porter <dgp@users.sourceforge.net>
3497 * changes: Labelled the TIP 44 changes as "POTENTIAL INCOMPATIBILITY".
3498 Although technically internal changes are not incompatible, they'll
3499 be perceived as such by those who get bitten, and this will help
3500 them find the cause of their trouble.
3502 2001-08-14 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3504 * generic/tk{Util,Font,Cursor,Color,Bitmap,3d}.c: Modified
3505 objtype declarations so that they can be picked up in tkObj.c and
3506 the names are now prefixed with "tk" too.
3507 * generic/tkObj.c (TkRegisterObjTypes):
3508 * generic/tkWindow.c (Initialize):
3509 * generic/tkInt.h: Added code to register Tk's object types with
3510 the Tcl runtime. [Tcl Bug 450545]
3512 2001-08-12 Mo DeJong <mdejong@redhat.com>
3514 * unix/configure: Regen.
3515 * unix/tcl.m4: Update from Tcl.
3517 2001-08-10 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3519 * library/demos/image2.tcl (loadDir): Converted non-portable
3520 [glob [file join $dirName *]] to [glob -directory $dirName *]
3521 which is both fully portable and more reliable when directory
3522 names contain glob-significant characters. [Bug 223313]
3524 2001-08-08 Don Porter <dgp@users.sourceforge.net>
3526 * tests/dialog.test: New file testing [tk_dialog].
3528 * library/dialog.tcl:
3529 * library/tkfbox.tcl: Corrections to problems introduced by
3530 the TIP 44 changes. [Bug 449261]
3535 * unix/configure.in:
3538 * win/configure.in: Bumped up patchlevel to 8.4a4 to distinguish
3539 CVS snapshots from the 8.4a3 release. This does not necessarily
3540 mean there will be an 8.4a4 release. [Bug 448938].
3542 2001-08-07 Jeff Hobbs <jeffh@ActiveState.com>
3544 * unix/Makefile.in (dist): added {unix,win}/tcl.m4 and
3545 library/msgs/*.msg to dist target. [Bug: #448802]
3547 2001-08-06 Jeff Hobbs <jeffh@ActiveState.com>
3552 * README: updated for 8.4a3 release
3554 * unix/configure: regenerated
3555 * unix/tcl.m4: added GNU (HURD) configuration target. (brinkmann)
3558 2001-08-06 Don Porter <dgp@users.sourceforge.net>
3560 * generic/tkConsole.c:
3561 * generic/tkWindow.c:
3562 * library/bgerror.tcl:
3563 * library/dialog.tcl:
3564 * library/msgbox.tcl:
3565 * library/unsupported.tcl:
3567 * mac/tkMacHLEvents.c:
3568 * mac/tkMacWm.c: TIP 44 changes specific to the Mac and
3569 Windows platforms that were overlooked before: tkOpenDocument,
3570 tkConsoleExit, tkConsoleOutput, unsupported1 out of namespace :: .
3571 Thanks to Vince Darley for prompting another look.
3573 2001-08-03 Jeff Hobbs <jeffh@ActiveState.com>
3575 * win/winMain.c (WishPanic): fixed CONST changes to go with
3576 CONST-ification in Tcl.
3578 * win/configure: regenerated
3579 * win/tcl.m4: fixed DLLSUFFIX definition to always be ${DBGX}.dll.
3580 This is necessary for TEA compliant builds that build shared
3581 against a static-built Tk.
3582 * win/Makefile.in ($(WISH)): added $(TK_STUB_LIB_FILE) to build
3583 target, otherwise it wouldn't get generated in a static build.
3585 2001-08-01 Don Porter <dgp@users.sourceforge.net>
3593 * library/bgerror.tcl:
3594 * library/button.tcl:
3595 * library/choosedir.tcl:
3596 * library/clrpick.tcl:
3597 * library/comdlg.tcl:
3598 * library/console.tcl:
3599 * library/dialog.tcl:
3600 * library/entry.tcl:
3601 * library/focus.tcl:
3602 * library/listbox.tcl:
3604 * library/msgbox.tcl:
3605 * library/optMenu.tcl:
3606 * library/palette.tcl:
3607 * library/scale.tcl:
3608 * library/scrlbar.tcl:
3609 * library/spinbox.tcl:
3611 * library/tearoff.tcl:
3614 * library/tkfbox.tcl:
3615 * library/unsupported.tcl:
3616 * library/xmfbox.tcl:
3618 * tests/clrpick.test:
3619 * tests/filebox.test:
3620 * tests/macMenu.test:
3622 * tests/menuDraw.test:
3623 * tests/msgbox.test:
3625 * tests/unixMenu.test:
3626 * tests/winMenu.test:
3627 * tests/xmfbox.test:
3629 * unix/tkUnixDialog.c: Merged changes from feature branch
3630 dgp-privates-into-namespace, implementing TIP 44. All
3631 Tk commands and variables matching tk[A-Z]* are now in the
3632 ::tk namespace. See "BRANCH: dgp-privates-into-namespace"
3633 entries below for details. [FR 220936]
3635 2001-07-24 Mo DeJong <mdejong@redhat.com>
3637 * generic/default.h: Include tkWinDefault.h
3638 when built with Cygwin or Mingw.
3640 2001-07-18 Don Porter <dgp@users.sourceforge.net>
3642 BRANCH dgp-privates-into-namespace:
3643 * doc/console.n: Updated names of private console commands.
3645 2001-07-16 Don Porter <dgp@users.sourceforge.net>
3647 BRANCH dgp-privates-into-namespace:
3648 * library/console.tcl:
3649 * library/unsupported.tcl: Renamed tk::histNum to tk::HistNum
3650 as directed by the Tcl Style Guide.
3652 2001-07-10 Mo DeJong <mdejong@redhat.com>
3654 * unix/Makefile.in: Add AR and STLIB_LD variables.
3656 * unix/configure.in: Use STLIB_LD when defining MAKE_LIB
3657 and MAKE_STUB_LIB. Subst STLIB_LD, RANLIB, and AR.
3658 * unix/tcl.m4: Update from Tcl.
3659 * win/configure: Regen.
3660 * win/tcl.m4: Update from Tcl.
3662 2001-07-06 Mo DeJong <mdejong@redhat.com>
3664 * win/configure: Regen.
3665 * win/tcl.m4: Update from Tcl.
3667 2001-07-05 Mo DeJong <mdejong@redhat.com>
3669 * win/Makefile.in: Subst DEPARG directly instead
3670 of relying on a variable. This will make Cygwin
3671 build faster since an extra exec will be avoided.
3672 * win/configure: Regen.
3673 * win/configure.in: Subst DEPARG.
3674 * win/tcl.m4: Update from Tcl.
3676 2001-07-04 Jeff Hobbs <jeffh@ActiveState.com>
3681 * win/README: updated READMEs with purls
3683 2001-07-03 Jeff Hobbs <jeffh@ActiveState.com>
3685 * tests/canvas.test:
3686 * generic/tkCanvPoly.c (PolygonToArea): Added patch that respects
3687 the polygon difference of including points in the polygon even
3688 when fill is empty. [Bug #226357]
3690 2001-07-03 Mo DeJong <mdejong@redhat.com>
3692 * win/Makefile.in: Remove PATHTYPE variable.
3693 * win/configure: Regen.
3694 * win/configure.in: Don't subst PATHTYPE.
3695 * win/tcl.m4: Update from Tcl.
3697 2001-07-03 Mo DeJong <mdejong@redhat.com>
3699 * win/Makefile.in: Don't use VPSEP, instead just use :
3701 * win/configure: Regen.
3702 * win/configure.in: Don't subst VPSEP.
3704 2001-07-03 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3706 * library/xmfbox.tcl (tkMotifFDialog_ActivateSEnt): Added missing
3707 backslash [Bug #438247]
3709 2001-07-02 Jeff Hobbs <jeffh@ActiveState.com>
3711 * generic/tkWindow.c (Tk_DestroyWindow): changed to use
3712 Tcl_EventuallyFree instead of ckfree so that widgets that have
3713 references to a tkwin can use them.
3715 * generic/tkCanvArc.c:
3716 * generic/tkCanvBmap.c:
3717 * generic/tkCanvLine.c:
3718 * generic/tkCanvPoly.c:
3719 * generic/tkCanvText.c:
3720 * generic/tkCanvWind.c:
3721 * generic/tkRectOval.c: corrected argument handling in
3722 Create<Item> functions that could lead to ABRs or FMRs and
3723 corrected names of argc/argv to objc/objv.
3725 * generic/tkImgGIF.c (Mgetc): corrected screwy use of ternary
3726 operator and possible FMR.
3728 * generic/tkEntry.c: corrected missing Tcl_Release that caused
3729 font not freed complaints when trying valid cleanup calls.
3730 * generic/tkListbox.c: made use of Tcl_Preserve/Tcl_Release to
3731 prevent FMR errors in Display functions.
3733 * unix/tkUnixScale.c (TkpDisplayScale): corrected FMR when scale
3734 was deleted while calling its command.
3736 * library/console.tcl:
3737 * library/entry.tcl:
3738 * library/spinbox.tcl:
3740 * library/tk.tcl: added private ::tk::GetSelection command to
3741 handle requesting selection. This is to support requesting
3742 UTF8_STRING before generic STRING on Unix. Changed Text, Spinbox,
3743 Entry and Console to use this command.
3745 * tests/select.test:
3746 * generic/tkSelect.c (Tk_CreateSelHandler, Tk_DeleteSelHandler):
3747 on Unix, a UTF8_STRING handler will be created when the user
3748 requests a STRING handler (in addition to the STRING handler).
3749 This provides implicit support for the new UTF8_STRING selection
3751 * unix/tkUnixSelect.c (TkSelEventProc, ConvertSelection): Added
3752 support for UTF8_STRING target. [RFE #418653, Patch #433283]
3754 * generic/tkInt.h: added utf8Atom to TkDisplay structure.
3756 * tests/listbox.test: changed 'darkblue' to 'white' in a test
3757 because it isn't a portable color name.
3759 * generic/tkEntry.c (DestroyEntry): used Tcl_EventuallyFree
3760 instead of ckfree for entryPtr to prevent FMRs. [Bug #413904]
3762 2001-06-26 Mo DeJong <mdejong@redhat.com>
3765 * win/Makefile.in: Add `make shell` target. This target
3766 will set the proper env vars before invoking wish
3767 from the build directory.
3769 2001-06-26 Mo DeJong <mdejong@redhat.com>
3772 * win/configure.in: Revert cross compiling change
3773 accidently added during last checkin.
3775 2001-06-26 Mo DeJong <mdejong@redhat.com>
3777 * unix/configure: Regen.
3778 * unix/configure.in: Fix last checkin by removing
3779 export since that only works in bash.
3780 * win/configure: Regen.
3781 * win/configure.in: Ditto.
3783 2001-06-26 Mo DeJong <mdejong@redhat.com>
3785 * unix/configure: Regen.
3786 * unix/configure.in: Set CFLAGS to "" if the user
3787 did not set CFLAGS in the env. This keeps AC_PROG_CC
3788 from adding "-g -O2" to the CFLAGS by default.
3789 * win/configure: Regen.
3790 * win/configure.in: Ditto.
3792 2001-06-22 Mo DeJong <mdejong@redhat.com>
3794 * win/configure: Regen.
3795 * win/configure.in: Use RC_DEFINE flag from tcl.m4.
3796 * win/tcl.m4: Update from Tcl.
3798 2001-06-22 Mo DeJong <mdejong@redhat.com>
3800 * win/configure: Regen.
3801 * win/tcl.m4: Update from Tcl.
3803 2001-06-22 Mo DeJong <mdejong@redhat.com>
3805 * win/configure: Regen.
3806 * win/tcl.m4 (SC_CONFIG_CFLAGS): Link to the
3807 imm32 library when building with mingw gcc.
3808 * win/tkWinX.c: Include the imm.h header
3809 to fix compiling with mingw gcc.
3811 2001-06-22 Mo DeJong <mdejong@redhat.com>
3813 * win/configure: Regen.
3814 * win/configure.in: Add resource compiler fix from
3815 8.3.3 to fix compiling with mingw.
3817 2001-06-22 Mo DeJong <mdejong@redhat.com>
3819 * win/configure: Regen.
3820 * win/tcl.m4: Fix silly typo in last checkin.
3822 2001-06-22 Mo DeJong <mdejong@redhat.com>
3824 * unix/Makefile.in: Set CFLAGS to @CFLAGS@ and @CFLAGS_DEFAULT@.
3825 Set LDFLAGS to @LDFLAGS@ and @LDFLAGS_DEFAULT@. Add LDFLAGS_DEBUG
3826 and LDFLAGS_OPTIMIZE to match the way CFLAGS_DEFAULT works. Use
3827 new LDFLAGS variable in the Makefile instead of @LDFLAGS@.
3828 * unix/configure: Regen.
3829 * unix/configure.in: Don't set CFLAGS to CFLAGS_DEFAULT, instead
3830 subst CFLAGS_DEFAULT into the Makefile. Add AC_SUBST for CFLAGS_DEBUG,
3831 CFLAGS_OPTIMIZE, LDFLAGS_DEFAULT, LDFLAGS_DEBUG, and LDFLAGS_OPTIMIZE.
3832 Remove unused LD_FLAGS subst.
3833 * unix/tcl.m4: Update from Tcl.
3834 * win/Makefile.in: Set CFLAGS to @CFLAGS@ and @CFLAGS_DEFAULT@.
3835 Set LDFLAGS to @LDFLAGS@ and @LDFLAGS_DEFAULT@.
3836 * win/configure: Regen.
3837 * win/configure.in: Don't set CFLAGS or LDFLAGS, instead subst
3838 CFLAGS_DEFAULT and LDFLAGS_DEFAULT into the Makefile.
3839 * win/tcl.m4: Update from Tcl.
3841 2001-06-22 Mo DeJong <mdejong@redhat.com>
3844 * win/tcl.m4: Update From Tcl.
3846 2001-06-21 eric melski <ericm@interwoven.com>
3848 * doc/colors.n: Corrected bogus documentation with respect to
3849 several shades of blue, all of which were listed as RGB 0 0 0.
3852 2001-06-14 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3854 * library/demos/floor.tcl, library/demos/filebox.tcl,
3855 * library/demos/clrpick.tcl, library/demos/vscale.tcl,
3856 * library/demos/twind.tcl, library/demos/ruler.tcl,
3857 * library/demos/plot.tcl, library/demos/items.tcl,
3858 * library/demos/hscale.tcl, library/demos/ctext.tcl,
3859 * library/demos/cscroll.tcl, library/demos/arrow.tcl,
3860 * library/xmfbox.tcl, library/msgbox.tcl,
3861 * library/clrpick.tcl, library/bgerror.tcl: Braced expressions.
3863 2001-06-06 Mo DeJong <mdejong@redhat.com>
3865 * win/configure: Regen.
3866 * win/configure.in: Handle the --prefix option correctly
3867 it should default to /usr/local like the unix version.
3869 2001-06-03 Jeff Hobbs <jeffh@ActiveState.com>
3872 * doc/clipboard.n: added SEE ALSOs to cross-reference selection
3873 and clipboard, with extra note for clipboard command in selection
3874 docs. [Patch #422256]
3876 * unix/tkUnixFont.c: Corrected support for iso10646 (X11 Unicode)
3877 fonts on Unix. This adds a ucs-2be (UCS-2 Big Endian) encoding in
3878 Tk on Unix that is used for those fonts (X11 requires
3879 big-endianness). (welch) [Patch #406411; Bug #220890 #220899]
3880 This differs from the 8.3.3 patch by not adding ucs-2be in the
3881 preferred encodingList (seems works fine without).
3882 Added alias for jisx0201* fonts to jis0201 encoding. [Bug #414033]
3884 2001-05-30 Jeff Hobbs <jeffh@ActiveState.com>
3886 * win/tkWinKey.c (TkpSetKeycodeAndState): removed old debug info
3888 2001-05-29 Jeff Hobbs <jeffh@ActiveState.com>
3890 * win/tkWinX.c: moved the initialization of tkPlatformId from
3891 TkWinXInit to TkWinGetPlatformId because static builds could call
3892 it before it was initialized. [Bug #427278]
3894 2001-05-28 Peter Spjuth <peter.spjuth@space.se>
3896 * generic/tkFrame.c:
3897 * generic/tkWindow.c:
3898 * tests/frame.test: Upgraded frame to use the newer TK_OPTION
3899 style when processing configuration options. Some cleanup of
3900 bad comments and bad code. [part of patch #420861]
3902 2001-05-23 Mo DeJong <mdejong@redhat.com>
3907 * win/tcl.m4: Sync from Tcl sources.
3909 2001-05-21 Jeff Hobbs <jeffh@ActiveState.com>
3911 * unix/tcl.m4: sync'ed up wih Tcl tcl.m4. [Bug #419812]
3913 * doc/TkInitStubs.3:
3915 * generic/tkStubLib.c: CONST'ified Tk_InitStubs to match CONST
3916 changes to Tcl_PkgRequireEx.
3918 2001-05-21 Todd M. Helfter <tmh@purdue.edu>
3921 * generic/tkMenubutton.c:
3922 * generic/tkMenubutton.h:
3923 * mac/tkMacMenubutton.c:
3924 * tests/menubut.test:
3925 * unix/tkUnixMenubu.c: Implementation of TIP #11, the addition of
3926 a -compound option to the menubutton allowing text and an image to
3927 be displayed at the same time. This behavior is identical to the
3928 behavior of the button widget.
3930 2001-05-16 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3932 * doc/console.n: Added - was erroneously placed in Tcl before...
3934 2001-04-25 Mo DeJong <mdejong@redhat.com>
3936 * unix/configure: Regen.
3937 * unix/tcl.m4: Update from Tcl.
3938 * win/configure: Regen.
3939 * win/tcl.m4: Update from Tcl.
3941 2001-04-25 Mo DeJong <mdejong@redhat.com>
3943 * unix/configure: Regen.
3944 * unix/configure.in: Use $@ in MAKE_LIB and MAKE_STUB_LIB
3945 commands instead of using a delayed subst variable. Replace
3946 instances of STUB_LIB_FILE with TK_STUB_LIB_FILE.
3948 2001-04-25 Mo DeJong <mdejong@redhat.com>
3950 * unix/Makefile.in: Use TCL_STUB_LIB_FILE instead of STUB_LIB_FILE.
3951 * unix/configure: Regen.
3952 * unix/configure.in: Don't subst STUB_LIB_FILE, use TCL_STUB_LIB_FILE
3955 2001-04-12 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3957 * generic/tkImage.c (Tk_ImageObjCmd,DeleteImage): Better detection
3958 of deletion when world is falling apart. [Bug #220819]
3960 2001-04-04 Jeff Hobbs <jeffh@ActiveState.com>
3962 * win/tkWinMenu.c (TkWinHandleMenuEvent): corrected reseting of
3963 service mode to only occur when it was set. [Bug #220948]
3965 2001-04-03 Jeff Hobbs <jeffh@ActiveState.com>
3967 * tests/winClipboard.test: improved results for understanding when
3970 * tests/winDialog.test: string totitle'd some results that
3971 expected [pwd] to return a capital drive letter.
3973 * tests/cursor.test: changed tests to use 'heart' cursor because
3974 'arrow' on windows has a pre-skewed use count.
3976 * win/tkWinDialog.c (GetFileNameA): initialize multi to 0.
3978 2001-04-02 Jeff Hobbs <jeffh@ActiveState.com>
3981 * win/tcl.m4 (SHLIB_LD): added -incremental:no. [Bug #219381]
3983 * generic/tkMenu.c (TkInvokeMenu): checked for menu deletion
3984 before calling associated menu entry command. [Bug #220821]
3986 * doc/image.n: added warning about names chosen for images.
3988 * generic/tkImgPhoto.c (ImgPhotoCmd): corrected the src and dest
3989 values for $imageName put when -format and -to are used.
3992 * tests/listbox.test: added test listbox-27.1, delete during
3994 * generic/tkListbox.c (DestroyListbox, ListboxEventProc):
3995 corrected listbox to make proper use of Tcl_EventuallyFree and
3996 protect against unusual listbox deletion.
3998 * tests/entry.test: added tests entry-20.*, delete during widget
4000 * generic/tkEntry.c (DestroyEntry, EntryEventProc): fixed the
4001 entry widget to survive deletion while processing scrollbar
4002 updates and validation.
4004 * tests/canvas.test: test of canvas delete during event
4005 * generic/tkCanvas.c (DestroyCanvas, CanvasEventProc): fixed the
4006 canvas to survive deletion during event processing. [Bug #228024]
4008 2001-04-01 Jeff Hobbs <jeffh@ActiveState.com>
4011 * mac/README: updated patchlevel to 8.4a3 and corrected links and
4015 * unix/configure.in (TK_PATCH_LEVEL):
4018 * win/configure.in (TK_PATCH_LEVEL):
4019 * win/configure: updated patchlevel to 8.4a3
4021 2001-03-30 Jeff Hobbs <jeffh@ActiveState.com>
4023 * tests/safe.test: added note about correcting failures in
4025 * library/tk.tcl: moved package require msgcat inside if case to
4026 not be used in safe interps.
4030 * win/tcl.m4: added imm32.lib to LIBS_GUI for Tk IME support.
4033 * win/tkWinX.c: added support for changing IME on the fly in
4034 Windows (2000). (lam) [Patch #402993]
4036 * tests/bind.test (bind-22.18):
4037 * generic/tkBind.c (NameToWindow): handled the error case where a
4038 valid-looking but invalid identifier could be passed in certain
4039 event generate options causing a crash. [Bug #411307]
4041 * win/tkWinWm.c (UpdateWrapper): ensured that the passed in winPtr
4042 had an existent window to operate on. [Bug #409172]
4044 * win/Makefile.in (install-*): improved install-* targets to use
4045 their base build dependency.
4047 * generic/tkImage.c (Tk_ImageObjCmd, EventuallyDeleteImage):
4048 added casts to allow compiling on Windows with debbuging.
4050 2001-03-29 Jeff Hobbs <jeffh@ActiveState.com>
4052 * library/msgs/de.msg: fixed translations. [Patch #403525]
4054 * doc/canvas.n: Noted ability to specify coords as a list in the
4055 docs. (techentin) [Patch #403660]
4057 * tests/canvas.test: added test case to check obj conversion
4058 * generic/tkObj.c (UpdateStringOfMM, SetMMFromAny): better
4059 obj-aware screen distances. (pgbaum, hobbs) [Patch #403327]
4061 * library/bgerror.tcl (bgerror): allow focus into details window
4062 for Windows C&P to work. [Bug #220929]
4064 * library/tk.tcl: put a catch around adding <hpBackTab> to the
4065 <<PrevWindow>> virtual event as it doesn't seem to work on all HP
4066 systems. [Bug #411669]
4068 * library/tkfbox.tcl: fixed selecting directories and single files
4069 with spaces using tk_getOpenFile -multiple 1. [Bug #411640]
4071 * win/tkWinDialog.c (GetFileNameA): added support for -multiple to
4072 ascii-based tk_getOpenFile (Win9*). (haneef) [Patch #403047]
4073 (GetFileNameW): increased number of files that could be returned
4074 by tk_getOpenFile -multiple. [Patch #412042]
4076 2001-03-29 Mo DeJong <mdejong@redhat.com>
4078 * library/entry.tcl (tkEntryMouseSelect):
4079 * library/text.tcl (tkTextSelectTo): When
4080 the mouse is dragged with the button down,
4081 move the insertion cursor to the current
4083 * tests/event.test: Add a series of tests
4084 for event generation. Add tests for selection,
4085 check the position of the insertion cursor.
4087 2001-03-28 Jeff Hobbs <jeffh@gimlet.activestate.com>
4090 * unix/tcl.m4: corrected IRIX-5.x config to not use -n32.
4091 (english) [Patch 403626]
4093 2001-03-28 Don Porter <dgp@users.sourceforge.net>
4095 * tests/focus.test (focus-6.1):
4096 * tests/macEmbed.test (unixEmbed-5.1):
4097 * tests/macMenu.test (macMenu-21.3):
4098 * tests/menu.test (menu-27.1):
4099 * tests/unixEmbed.test (unixEmbed-8.2):
4100 * tests/unixWm.test (unixWm-50.4): Replaced all [load {} tk]
4101 in Tk test suite with [load {} Tk]. [Bug 220940, Patch 411952]
4103 2001-03-12 Don Porter <dgp@users.sourceforge.net>
4105 BRANCH dgp-privates-into-namespace:
4107 * unix/mkLinks: Added documentation for [tk_menuSetFocus].
4109 2001-03-12 Don Porter <dgp@users.sourceforge.net>
4111 BRANCH dgp-privates-into-namespace:
4114 * unix/mkLinks: Added documentation for commands and variables
4117 2001-03-08 Don Porter <dgp@users.sourceforge.net>
4119 BRANCH dgp-privates-into-namespace:
4120 * generic/tkTextDisp.c:
4121 * library/unsupported.tcl:
4122 * tests/textDisp.test: Restored the global variables tk_textRedraw
4123 and tk_textRelayout. Since they match tk_*, they should remain
4124 publicly available until at least Tk 9.
4126 2001-03-01 Don Porter <dgp@users.sourceforge.net>
4128 BRANCH dgp-privates-into-namespace:
4129 * library/unsupported.tcl: New file for Tk's unsupported
4130 interfaces. Contains [tk::unsupported::ExposePrivateCommand]
4131 and [tk::unsupported::ExposePrivateVariable] that restore the
4132 availability of an old public name of one of Tk's private
4133 commands and variables, respectively, for those applications
4134 and extensions that depend on the old names against advice.
4136 2001-02-28 Don Porter <dgp@users.sourceforge.net>
4138 BRANCH dgp-privates-into-namespace: Feature branch to move all
4139 of Tk's private commands and variable into the ::tk namespace
4142 * doc/tkvars.n: Documented private variable tkPriv renamed tk::Priv.
4146 * generic/tkTextDisp.c:
4147 * library/bgerror.tcl:
4148 * library/button.tcl:
4149 * library/choosedir.tcl:
4150 * library/clrpick.tcl:
4151 * library/comdlg.tcl:
4152 * library/console.tcl:
4153 * library/dialog.tcl:
4154 * library/entry.tcl:
4155 * library/focus.tcl:
4156 * library/listbox.tcl:
4158 * library/msgbox.tcl:
4159 * library/optMenu.tcl:
4160 * library/palette.tcl:
4161 * library/scale.tcl:
4162 * library/scrlbar.tcl:
4163 * library/spinbox.tcl:
4165 * library/tearoff.tcl:
4168 * library/tkfbox.tcl:
4169 * library/xmfbox.tcl:
4171 * tests/clrpick.test:
4172 * tests/filebox.test:
4173 * tests/macMenu.test:
4175 * tests/menuDraw.test:
4176 * tests/msgbox.test:
4178 * tests/textDisp.test:
4179 * tests/unixMenu.test:
4180 * tests/winMenu.test:
4181 * tests/xmfbox.test:
4182 * unix/tkUnixDialog.c: All Tk commands matching ::tk[A-Z]* and
4183 all Tk private variables in the global namespace were renamed to
4184 live in the namespace ::tk or one of its children.
4186 2001-02-13 Eric Melski <ericm@interwoven.com>
4188 * doc/photo.n: [Bug 132213] Added clarification on interpretation
4189 of ranges for "photoName data -from" subcommand.
4191 2001-02-12 D. Richard Hipp <drh@hwaci.com>
4193 TIP #21: Asymmetric padding in the pack and grid geometry managers.
4194 With this changes, you can now say "-padx {10 20}" to put 10 pixels
4195 of padding on the left and 20 on the right. Similar rules apply
4196 for vertical padding. See the revised documentation for details.
4198 2001-01-02 Andreas Kupries <a.kupries@westend.com>
4200 * Everything below belongs together and implements TIP #8
4203 * win/tkWinWm.c (line 56f): Added icon structures.
4204 * win/tkWinWm.c (struct WmInfo, line 242): Added reference to
4205 optional icon for titlebar.
4206 * win/tkWinWm.c (struct ThreadSpecificData, line 335): Added
4207 reference to optional default icon for toplevel windows.
4208 * win/tkWinWm.c (line 387 ... 1169): All the new functions required
4209 to deal with icon specifications, 'InitWm' changed.
4210 * win/tkWinWm.c (TkWmNewWindow, UpdateWrapper, TkWmDeadWindow, Tk_WmCmd):
4211 Added initialization and handling of the new fields.
4212 * doc/wm.n: Documentation updated to explain the newly available
4215 2000-12-13 jeff hobbs <jhobbs@interwoven.com>
4217 * generic/tkObj.c (SetMMFromAny): Added ability to recognize
4218 double type object to speed up canvas coord calculations.
4221 2000-12-12 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4223 * doc/entry.n: Improved documentation of interplay between the
4224 -state and -textvariable options.
4226 2000-11-29 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4228 * tests/image.test (image-1.10): Improved this test, which
4229 previously only worked if the command failed to delete the root
4230 window, and caused *major* trouble otherwise...
4231 * generic/tkImage.c (EventuallyDeleteImage): Created this function
4232 so that images that get deleted during the creation of an image
4233 won't cause a nasty core dump. Properly fixes bug #120819.
4235 2000-11-28 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4238 * generic/tkImage.c (Tk_ImageObjCmd): Backed out previous change.
4239 Bug #120819 is back again in force. Left the test in there
4242 2000-11-23 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4245 * tests/image.test (image-1.10):
4246 * generic/tkImage.c (Tk_ImageObjCmd): Prohibited image names that
4247 start with "." since they can cause some really obscure
4248 crashes. Fixes Bug #120819.
4250 2000-11-21 Eric Melski <ericm@ajubasolutions.com>
4252 Overall change: Implemented TIP 5, which exports
4253 TkClassProcs/TkSetClassProcs as Tk_ClassProcs/Tk_SetClassProcs,
4254 adding a size field to Tk_ClassProcs to allow for future
4255 expansion, and renaming the geometryProc to worldChangedProc,
4256 which is more in keeping with the actual use of the callback.
4258 * unix/mkLinks: Added link for Tk_SetClassProcs.
4260 * doc/SetClassProcs.3: Documentation for
4261 Tk_ClassProcs/Tk_SetClassProcs.
4263 * generic/tkCanvas.c:
4264 * generic/tkEntry.c:
4265 * generic/tkFrame.c:
4266 * generic/tkListbox.c:
4268 * generic/tkMessage.c:
4269 * generic/tkScale.c:
4270 * generic/tkText.c: Updated to use Tk_ClassProcs/Tk_SetClassProcs
4271 instead of TkClassProcs/TkSetClassProcs.
4273 * generic/tkMenubutton.c:
4274 * generic/tkScrollbar.c:
4275 * generic/tkButton.c: Updated to use Tk_SetClassProcs instead of
4278 * generic/tkMenubutton.h:
4279 * generic/tkScrollbar.h:
4280 * generic/tkButton.h:
4281 * win/tkWinButton.c:
4282 * win/tkWinScrlbr.c:
4283 * mac/tkMacButton.c:
4284 * mac/tkMacMenubutton.c:
4285 * mac/tkMacScrlbr.c:
4286 * unix/tkUnixButton.c:
4287 * unix/tkUnixMenubu.c:
4288 * unix/tkUnixScrlbr.c: Updated to use Tk_ClassProcs instead of
4291 * generic/tkDecls.h:
4292 * generic/tkStubInit.c:
4293 * generic/tkIntDecls.h: Regenned from tk.decls, tkInt.decls.
4295 * generic/tk.h: Added declaration of Tk_ClassProcs, with size
4296 field. Added typedef's for Tk_ClassCreateProc,
4297 Tk_ClassWorldChangedProc, Tk_ClassModalProc. Added definition of
4298 Tk_GetClassProc macro, shorthand for extracting a member of the
4299 Tk_ClassProcs structure.
4301 * generic/tkInt.h: Removed declaration of TkClassProcs,
4302 TkClassGeometryProc, etc.
4304 * generic/tkBind.c (Tk_BindEvent): Updated to use Tk_GetClassProc
4305 macro to extract modalProc; added check that the modalProc is non-NULL.
4307 * generic/tkFont.c (RecomputeWidgets): Updated to use
4308 Tk_GetClassProc macro to extract worldChangedProc; added comment
4309 about the choice of a recursive versus iterative algorithm for
4310 propagating world changed messages.
4312 * generic/tkWindow.c (Tk_MakeWindowExist): Updated to use
4313 Tk_GetClassProc macro to extract createProc from Tk_ClassProcs.
4315 * generic/tk.decls: Added declaration for Tk_SetClassProcs.
4317 * generic/tkInt.decls: Commented out declaration for
4318 TkSetClassProcs, which is made public by this change. The entry
4319 is left in place, but commented, so that future developers will
4320 know not to reuse it's stub number.
4322 2000-11-21 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4324 * doc/ConfigWidg.3: Added deprecation note from Bug #120944 - use
4325 Tk_SetOption() instead.
4327 * generic/tkImgPhoto.c (TkPhotoGetValidRegion): Applied patch to
4328 create this function and add it to tkInt stubs. Should now be
4329 possible to write an extension that accesses the transparency data
4330 in a photo image. Bug #120930
4332 2000-11-03 Jeff Hobbs <hobbs@ajubasolutions.com>
4336 * generic/tkWindow.c (Initialize): added call to Tcl_SetMainLoop.
4337 This only has effect when tclsh is run (not wish), and then Tk is
4338 loaded in interactively.
4340 2000-11-02 Jeff Hobbs <hobbs@ajubasolutions.com>
4342 * win/tkWinButton.c:
4343 * win/tkWinDialog.c:
4344 * win/tkWinScrlbr.c:
4345 * win/tkWinWm.c: fixed up code for Win64 support. This mostly
4346 remains in _WIN64 #ifdef's, until updated compilers are standard.
4349 * win/makefile.vc: updated for Win64 compile support
4352 * win/configure: checked in configure scripts so people doing
4353 CVS checkouts aren't required to have autoconf. Changes to
4354 configure.in in the future will require the corresponding
4355 configure script to also be re-autoconf'ed and checked in.
4357 * doc/event.n: added note that key events require window focus.
4359 2000-11-01 Jeff Hobbs <hobbs@ajubasolutions.com>
4361 * win/tkWinDialog.c (GetFileNameW, GetFileNameA,
4362 Tk_ChooseDirectoryObjCmd): created
4363 work-around for change in NT5.0/98 that caused no initialdir
4364 setting to open the browser up in the user's documents dir.
4366 * tests/color.test: marked color-2.6 nonPortable as we can't
4367 reliably assume what 'red' maps to.
4369 2000-11-01 Eric Melski <ericm@ajubasolutions.com>
4371 * tests/winDialog.test: Corrected expected results for bad option
4372 tests (5.2, 5.5) to include -multiple option.
4374 * win/tkWinDialog.c: Added branch for 0 return from
4375 CommDlgExtendedError() switches; this was formerly treated as an
4376 error, but it actually is not, since it just means the user hit
4377 cancel or closed the dialog. (GetFileNameW): Added better smarts
4378 such that -multiple is not considered a valid option for
4380 Removed CommDlgExtendedError() checks for color and choosedir
4381 dialogs, and removed all except the explicit invalid filename
4382 checks for the file dialogs.
4384 2000-10-30 David Gravereaux <davygrvy@ajubasolutions.com>
4390 * win/rc/tk_base.rc (new):
4391 * win/rc/wish.rc: Added logic to derive filenames better in the
4392 resource scripts based on compile options along with better
4393 support for building a static wish shell with cursor resources.
4395 2000-10-27 Jeff Hobbs <hobbs@ajubasolutions.com>
4397 * unix/tcl.m4: added support for AIX-5.
4400 * doc/tk.n: updated to reflect default on status of useinputmethods.
4401 * library/tk.tcl: tk useinputmethods is set to 1 by default. This
4402 enables Kanji and dead-char input by default. Intro'd in
4403 1999-12-16 with default off to avoid some problems with older X
4404 servers that would slow down widget creation over time.
4406 * win/Makefile.in (test, winhelp, tktest): corrected the
4407 TCL_LIBRARY path specification.
4409 2000-10-18 Eric Melski <ericm@ajubasolutions.com>
4411 * win/tkWinDraw.c (RenderObject): Applied patch from [Bug: 6368],
4412 which corrects rendering of 1-pixel wide stippled lines on Windows.
4414 * generic/tkCanvLine.c (DisplayLine): Applied patch from
4415 [Bug: 6368], corrects bugs relating to use of active- and
4416 disabledwidth values for displaying lines (disabledwidth was never
4417 used, and activewidth/disablewidths would only possibly be used
4418 when greater than default width, rather than when simply not equal
4421 * library/tkfbox.tcl (OkCmd): Applied patch from [Bug: 6365],
4422 which adds safety for directory names containing spaces or which
4425 * win/tkWinDialog.c (GetFileNameW, GetFileNameA,
4426 Tk_ChooseColorObjCmd, Tk_ChooseDirectoryObjCmd): Added error
4427 checking for the return value from the common dialog functions, so
4428 that the commands will not silently fail if the common dialog
4429 returns an error. [Bug: 6369].
4431 2000-10-10 Eric Melski <ericm@ajubasolutions.com>
4433 * generic/tkConfig.c (Tk_InitOptions): Added
4434 Tcl_IncrRefCount/Tcl_DecrRefCount calls on valuePtr, to prevent
4435 memory leaks when the value object comes from the option
4436 database. [Bug: 6275].
4438 2000-10-06 Jeff Hobbs <hobbs@ajubasolutions.com>
4440 * win/Makefile.in (cat32.${OBJEXT}): add win/ subdirectory to
4441 cat32 target to correctly find the source file.
4443 2000-10-05 Eric Melski <ericm@ajubasolutions.com>
4445 * generic/tkCmds.c (Tk_WinfoObjCmd): Added check for
4446 TK_ANONYMOUS_WINDOW flag in the [winfo children] subcommand; if
4447 set, the window will not be printed in the list of children.
4449 * doc/CrtWindow.3: Added entry for Tk_CreateAnonymousWindow.
4451 * generic/tkWindow.c
4452 (Tk_CreateAnonymousWindow): New API for creating anonymous
4453 windows. These windows are manipulable from C, but not from Tcl,
4454 because they have no pathname associated with them. They are used
4455 initially by widgets that do rubber-band resizing (panedwindow,
4456 multi-column listbox, etc.), and may be useful for other widgets
4457 as well (dropbox, combobox).
4458 (Tk_DestroyWindow): Added check for TK_ANONYMOUS_WINDOW flag when
4459 determining whether to generate a DestroyNotify event.
4461 * generic/tkStubInit.c:
4462 * generic/tkDecls.h: Regen'd from tk.decls.
4464 * generic/tk.decls: Added Tk_CreateAnonymousWindow declaration.
4466 * generic/tk.h: Added TK_ANONYMOUS_WINDOW flag for Tk_Window's.
4468 2000-10-04 Eric Melski <ericm@ajubasolutions.com>
4470 * doc/MaintGeom.3: Noted that Tk_MaintainGeometry handles direct
4471 descendants properly.
4473 * generic/tkGeometry.c (Tk_MaintainGeometry): Added a check for
4474 the case in which the slave window is a direct descendant of the
4475 master window. In this case, we need not set up the additional
4476 infrastructure normally provide by Tk_MaintainGeometry, because we
4477 can rely on the parent/child relationship to handle it for us
4478 implicitly. In this case, Tk_MaintainGeometry just calls directly
4479 to Tk_MoveResizeWindow. This allows geometry managers to simply
4480 always use Tk_MaintainGeometry to maintain geometry for slaves,
4481 and avoid doing the direct descendant check themselves.
4482 (Tk_UnmaintainGeometry): Added a matching check for the direct
4483 descendant case; in this case, Tk_UnmaintainGeometry simply
4484 returns immediately.
4486 2000-10-01 Eric Melski <ericm@ajubasolutions.com>
4488 * generic/tkButton.c (ConfigureButton): Added tests for -compound
4489 option, so that when there is a textvariable and an image, and
4490 -compound is not none, the button will display both the
4491 textvariable and the image.
4493 * doc/SetOptions.3: Added note that restoreProc and freeProc may
4496 * generic/tkConfig.c (Tk_RestoreSavedOptions): For custom options,
4497 added test that the restoreProc is not NULL, to allow for custom
4498 options that don't care about supporting Tk_RestoreSavedOptions.
4500 2000-09-29 D. Richard Hipp <drh@hwaci.com>
4502 * generic/tkBitmap.c: Changes to prevent a BadMatch error from the
4503 Xserver when the same bitmap is used on two or more screens of the
4506 * tests/menu.test: Print a warning if the TK_ALT_DISPLAY environment
4507 variable is not configured so as to test for the bug fix above.
4509 * library/tk.tcl (::tk::SetGrabFocus): "Catch" the grab in case
4510 another application already holds the grab and the "grab" command
4513 2000-09-29 Jeff Hobbs <hobbs@scriptics.com>
4515 * win/Makefile.in: commented use of TESTFLAGS
4516 * unix/Makefile.in: added TESTFLAGS to test and testlang targets to
4517 conform with Windows makefile and TEA style.
4519 2000-09-29 Eric Melski <ericm@ajubasolutions.com>
4521 * generic/tkTest.c: Fixed tests to use updated API.
4525 * generic/tkConfig.c: Changed interface for Tk_CustomOptionSetProc
4526 and Tk_CustomOptionGetProc; these now take a pointer to the start
4527 of the widget record, and an integer offset to the slot for the
4528 option value, instead of just a pointer to the slot. This allows
4529 more sophisticated options to do interesting things based on other
4530 data in the widget record.
4532 2000-09-17 Eric Melski <ericm@ajubasolutions.com>
4534 * generic/tk.h: Added declaration of Tk_ObjCustomOption structure,
4535 used for TK_OPTION_CUSTOM, and typedef's of the functions
4536 Tk_CustomOptionSetProc, Tk_CustomOptionGetProc,
4537 Tk_CustomOptionRestoreProc, and Tk_CustomOptionFreeProc, used for
4540 * doc/SetOptions.3: Added documentation of TK_OPTION_CUSTOM, and
4541 section "CUSTOM OPTION TYPES" explaining how to create and use
4544 * tests/config.test: Added tests for custom option type.
4546 * generic/tkTest.c: Added test support for TK_OPTION_CUSTOM to
4547 TestobjconfigObjCmd. Added CustomOption* functions to implement a
4550 * generic/tkConfig.c: Added new option type TK_OPTION_CUSTOM,
4551 which allows the definition of custom option types by creating
4552 parsing, printing, freeing, and restoring procedures for a custom
4553 option. This is needed by the text and canvas widgets if they are
4554 to be fully objectified.
4556 2000-09-07 Jeff Hobbs <hobbs@scriptics.com>
4560 * doc/loadTk.n: minor doc cleanup
4562 2000-09-06 Eric Melski <ericm@ajubasolutions.com>
4564 * doc/HWNDToWindow.3:
4565 * doc/GetHWND.3: Changed synopsis to indicate the tkPlatDecls.h
4566 should be included, not tk.h.
4568 * generic/tkPlatDecls.h: Removed #include <windows.h> for Windows,
4569 a better solution for now is to update the docs and have extension
4570 authors #include <tkPlatDecls.h>.
4572 * generic/tk.h: Removed '#include "tkPlatDecls.h"', as the
4573 incorrect inclusion order between windows.h/tkPlatDecls.h causes
4574 build conflicts on Windows.
4576 * generic/tkPlatDecls.h: Added #include <windows.h> for Windows,
4577 so that HWND, etc., are defined properly.
4579 2000-09-06 Jeff Hobbs <hobbs@scriptics.com>
4581 * doc/canvas.n: fixed doc bug (ellson). [Bug: 6218]
4585 * unix/configure.in:
4587 * win/configure.in: updated to patchlevel 8.4a2
4589 * generic/tkMessage.c (MessageWidgetObjCmd): initialized result to
4590 avoid pedantic warning.
4592 * generic/tkGrab.c (Tk_GrabObjCmd): changed len arg from size_t to
4593 int to fix pedantic warning.
4595 2000-09-01 Eric Melski <ericm@ajubasolutions.com>
4597 * win/makefile.vc (install-libraries):
4598 * win/Makefile.in (install-libraries):
4599 * unix/Makefile.in (install-libraries): Added tkPlatDecls.h to
4600 list of header files to install.
4602 * generic/tk.h: Added #include "tkPlatDecls.h", which declares the
4603 platform specific component of the public Tk stubs API's.
4605 2000-08-29 Eric Melski <ericm@ajubasolutions.com>
4607 * win/tkWinMenu.c (DrawWindowsSystemBitmap): Use scratchDC
4608 for determining the source's logical coordinates. Patch from
4609 [Bug: 6134 (Markus Oberhumer)].
4611 * win/tkWinMenu.c (SetDefaults): Compute the indicatorDimensions[]
4612 under Windows NT/2000 in the same way as under Windows 95/98.
4613 Patch from [Bug: 6134 (Markus Oberhumer)].
4615 * win/tkWinFont.c (GetScreenFont): Added a memset() to
4616 pacify memory checkers. Patch from [Bug: 6134 (Markus Oberhumer)].
4618 * library/tkfbox.tcl (::tk::dialog::file::Update): Corrected
4619 handling of multi-pattern filters (eg, "* *.*"), which was broken
4620 by the getOpenFile performance patches applied earlier.
4622 2000-08-24 Eric Melski <ericm@ajubasolutions.com>
4634 * doc/checkbutton.n:
4635 * doc/radiobutton.n:
4639 * doc/text.n: Fixed Standard Options section to make best use of
4640 new tab settings in man.macros.
4642 2000-08-24 Mo DeJong <mdejong@redhat.com>
4644 * unix/README: Update to account for removal of --enable-gcc.
4645 * unix/configure.in:
4646 * unix/tcl.m4 (SC_ENABLE_GCC): Remove --enable-gcc option.
4648 * win/tcl.m4 (SC_ENABLE_GCC): Remove --enable-gcc option.
4649 Remove quick hack that provided cross compile support for
4652 2000-08-23 Jeff Hobbs <hobbs@scriptics.com>
4654 * generic/tkButton.c (ButtonTextVarProc): reversed change below,
4657 2000-08-22 Jeff Hobbs <hobbs@scriptics.com>
4659 * generic/tkButton.c (ButtonTextVarProc): changed order of
4660 incr/decr of new value object, in case they are equal.
4662 2000-08-18 Eric Melski <ericm@ajubasolutions.com>
4664 * generic/tkImgPhoto.c (ImgPhotoGet): Removed redundant call to
4665 DitherInstance; this call was formerly being made from
4666 ImgPhotoGet->ImgPhotoConfigureInstance->DitherInstance, and
4667 ImgPhotoGet->DitherInstance. The second call was removed.
4669 2000-08-10 Jeff Hobbs <hobbs@scriptics.com>
4671 * doc/SetOptions.3: added missing ')'.
4673 2000-08-09 Eric Melski <ericm@ajubasolutions.com>
4675 * doc/SetOptions.3: Updated documentation to reflect support for
4676 TK_OPTION_NULL_OK for TK_OPTION_DOUBLE and TK_OPTION_PIXELS.
4678 * generic/tkConfig.c: Added for TK_OPTION_NULL_OK support for
4679 TK_OPTION_DOUBLE and TK_OPTION_PIXELS.
4681 * doc/place.n: Updated, reformatted manual entry.
4683 * tests/place.test: Added many tests.
4685 * generic/tkPlace.c (Tk_PlaceObjCmd): Updated to use Tk
4686 widget-option management facilities to manage place options (-x,
4687 -y, etc.), which simplifies the placer code. Added support for
4688 [place configure pathName] and [place configure pathName -option],
4689 similar to the behavior of the configure subcommand supported by
4692 2000-08-08 Eric Melski <ericm@ajubasolutions.com>
4694 * tests/place.test: Extended test suite to test error returns from
4697 * generic/tkInt.h: Replaced Tk_PlaceCmd prototype with
4698 Tk_PlaceObjCmd prototype.
4700 * generic/tkWindow.c: Updated [place] command entry to use new
4703 * generic/tkPlace.c (Tk_PlaceObjCmd): Tcl_Obj'ified [place] command.
4705 2000-08-07 Eric Melski <ericm@ajubasolutions.com>
4707 * generic/tkWindow.c: Updated [selection] command entry to use
4708 new Tcl_Obj interface.
4710 * generic/tkInt.h: Replaced Tk_SelectionCmd prototype with
4711 Tk_SelectionObjCmd prototype.
4713 * tests/select.test: Updated test suite to recognize standardized
4716 * generic/tkSelect.c (Tk_SelectionObjCmd): Tcl_Obj'ified
4717 [selection] command.
4719 2000-08-07 Jeff Hobbs <hobbs@scriptics.com>
4721 * doc/cursors.n: changed .SS to more compatible macros.
4723 2000-08-05 Jeff Hobbs <hobbs@scriptics.com>
4725 * library/safetk.tcl: rationalized the setting of tk_library when
4726 initialized Tk in a safe interpreter.
4728 2000-08-03 Eric Melski <ericm@ajubasolutions.com>
4730 * generic/tkWindow.c: Updated "grab" command entry to use
4731 Tcl_Obj'ified command.
4733 * generic/tkInt.h: Replaced Tk_GrabCmd prototype with
4734 Tk_GrabObjCmd prototype.
4736 * tests/grab.test: Initial suite of tests for [grab] command.
4738 * generic/tkGrab.c (Tk_GrabObjCmd): Tcl_Obj'ified [grab] command.
4740 * generic/tkInt.h: Removed Tk_AfterCmd function prototype; the
4741 function does not exist (since 4.0p3). Cleaned up some line
4744 * generic/tk.h: Removed "#define Tk_AfterCmd Tcl_AfterCmd";
4745 nothing in the core uses Tk_AfterCmd, and Tcl_AfterCmd doesn't exist
4748 * generic/tkInt.h: Replace Tk_BindCmd prototype with
4749 Tk_BindObjCmd prototype.
4751 * generic/tkWindow.c: Updated "bind" command entry to use
4752 Tcl_Obj'ified command.
4754 * generic/tkCmds.c (Tk_BindObjCmd): Tcl_Obj'ified [bind] command.
4756 * tests/bind.test: Tweaked expected error messages for [bindtags]
4757 to comply with updated error messages.
4759 * generic/tkMenu.c (CloneMenu): Replaced calls to Tk_BindtagsCmd
4760 with equivalent calls to Tk_BindtagsObjCmd.
4762 * generic/tkInt.h: Replace Tk_BindtagsCmd prototype with
4763 Tk_BindtagsObjCmd prototype.
4765 * generic/tkWindow.c: Updated "bindtags" command entry to use
4766 Tcl_Obj'ified command.
4768 * generic/tkCmds.c (Tk_BindtagsObjCmd): Tcl_Obj'ified [bindtags]
4771 2000-08-02 Eric Melski <ericm@ajubasolutions.com>
4773 * generic/tkCmds.c (Tk_TkwaitObjCmd): Tcl_Obj'ified [tkwait] command.
4775 * generic/tkWindow.c: Updated "tkwait" command entry to use
4776 Tcl_Obj'ified command.
4778 * generic/tkInt.h: Replace Tk_TkwaitCmd prototype with
4779 Tk_TkwaitObjCmd prototype.
4781 * generic/tkGrid.c (Tk_GridCmd): Split [grid] subcommands into
4782 separate functions instead of inlining them all in Tk_GridCmd.
4784 2000-08-01 Eric Melski <ericm@ajubasolutions.com>
4786 * generic/tkInt.h: Replaced prototype for Tk_MessageCmd with
4787 prototype for Tk_MessageObjCmd.
4789 * generic/tkWindow.c: Marked message command as using the new
4790 MessageObjCmd instead of the old MessageCmd.
4792 * tests/message.test: Added tests for the message widget.
4794 * generic/tkMessage.c: Obj'ified the message widget.
4796 * generic/tkInt.h: Removed prototype for Tk_ClipboardCmd, added
4797 prototype for Tk_ClipboardObjCmd.
4799 * generic/tkWindow.c: Updated function pointers for clipboard
4800 command to use Tcl_Obj version.
4802 * tests/clipboard.test: Updated tests to expect standard error
4805 * generic/tkClipboard.c (Tk_ClipboardObjCmd): Obj'ified
4806 Tk_ClipboardCmd -> Tk_ClipboardObjCmd.
4808 2000-07-28 Eric Melski <ericm@ajubasolutions.com>
4810 * unix/tkUnixButton.c (TkpDisplayButton): Added bits to change
4811 the indicator color when radio-/check-buttons are disabled. This
4812 reduces the visual incongruity when a group of these controls are
4815 * win/tkWinMenu.c (ReconfigureWindowsMenu): Added MF_GRAYED bit
4816 for disabled menu entries, to ensure that those which are drawn by
4817 the system are shown grayed (such as entries on menubars) [Bug: 4372].
4819 * doc/label.n: Added -disabledforeground to list of options [Bug:
4822 * mac/tkMacDefault.h:
4823 * unix/tkUnixDefault.h: Added default values for listbox
4824 disabledforeground and state.
4826 * win/tkWinDefault.h: Changed default listbox background color to
4827 white and listbox selection borderwidth to 0, in keeping with the
4828 "Microsoft Windows User Experience"; added default values for
4829 listbox disabledforeground and listbox state.
4831 * doc/listbox.n: Added documentation for -state option.
4833 * generic/tkListbox.c: Added support for -state to listbox. [RFE:
4836 * tests/listbox.test: Tests for listbox disabled state.
4838 2000-07-27 Mo DeJong <mdejong@redhat.com>
4840 * win/configure.in: TCL_STUB_LIB_FLAG and
4841 TK_STUB_LIB_FLAG should not include ${TCL_DBGX}
4842 in win/tkConfig.sh, fix that.
4844 2000-07-25 Joe English <jenglish@flightlab.com>
4845 * doc: CanvPsY.3, ConfigWidg.3, CrtImgType.3, CrtItemType.3,
4846 FontId.3, GetFont.3, canvas.n, font.n, options.n, text.n:
4847 Documentation fix: Replaced references to XFontStruct *
4848 and Tk_FontStruct with Tk_Font.
4850 2000-07-24 Eric Melski <ericm@ajubasolutions.com>
4852 * tests/text.test: Added tests for -regexp -nocase searches with
4853 backslash character classes.
4855 * generic/tkText.c (TextSearchCmd): Text search did not work
4856 properly when -regexp and -nocase were used, in combination with
4857 backslash character classes represented by capital letters (ie,
4858 \W, \M); altered implementation of -regexp -nocase searches to use
4859 new regexp interfaces to fix this problem. [Bug: 5988].
4861 2000-07-21 Eric Melski <ericm@ajubasolutions.com>
4863 * tests/text.test: Added tests for searching when text is elided.
4865 * generic/tkText.c (TextSearchCmd): Text search was not returning
4866 the correct index when the search covered (but did not search)
4867 elided characters; corrected this by adjusting the match index by
4868 the number of elided characters preceeding the start of the match,
4869 just as is done with embedded windows, etc. [Bug: 5470].
4871 2000-07-21 Mo DeJong <mdejong@redhat.com>
4873 * win/configure.in: Add TK_STUB_LIB_FLAG and
4874 TK_BUILD_STUB_LIB_SPEC. These are needed to build a stub enabled
4877 2000-07-20 Eric Melski <ericm@ajubasolutions.com>
4879 * unix/tkUnixDraw.c (TkScrollWindow): Replaced a use of a trinary
4880 operator with an if/else, to avoid build problems on some
4881 platforms [Bug: 5819].
4883 * win/makefile.vc: Applied patch from Don Porter to enhance nmake
4884 support on NT/Alpha [RFE: 5939].
4886 2000-07-19 Eric Melski <ericm@ajubasolutions.com>
4888 * library/text.tcl: Enhanced <Tab> binding to behave like normal
4889 <Tab> bindings when the text widget is disabled (ie, it advances
4890 focus to the next widget).
4892 * generic/tkText.c (TextSearchCmd): Added a test for a NULL
4893 segment pointer when doing backwards searches for "" on an empty
4894 text widget. [Bug: 6007].
4896 2000-07-18 Mo DeJong <mdejong@redhat.com>
4898 * unix/aclocal.m4: Use tcl.m4.
4900 * unix/configure.in: Properly quote LOCALES variable. Properly quote
4901 argument to m4 macro.
4903 * unix/tcl.m4: Add updated file from tcl.
4905 * win/tcl.m4: Updated file from tcl.
4907 2000-07-18 Eric Melski <ericm@ajubasolutions.com>
4909 * library/tkfbox.tcl: Fixed keyboard navigation in the iconlist.
4911 * unix/configure.in (MAKE_LIB): Corrected definition of MAKE_LIB
4912 for shared builds, with patch from Mike Hopkirk.
4914 2000-07-18 Mo DeJong <mdejong@redhat.com>
4916 * win/Makefile.in: Fix TCL_GENERIC_DIR variable
4917 so that it uses the TK_SRC_DIR in the same way
4918 as the unix version.
4920 2000-07-17 David Gravereaux <davygrvy@ajubasolutions.com>
4922 * generic/tkConsole.c: Added comments for a Win2K OS bug with
4923 GetStdHandle(STD_OUTPUT_HANDLE). No change was done to the code
4924 as the resulting behaviour of ShouldUseConsoleChannel() was
4925 correct, anyways. [BUG: 5971]
4927 2000-07-17 Eric Melski <ericm@scriptics.com>
4929 * generic/tkStubImg.c (Tk_InitImageArgs): Applied patch from [Bug:
4930 5990], from Anselm Lingnau, which correctly sets the value of
4931 useNewImage to 0 when the new image system is not to be used,
4932 instead of leaving it at -1, which causes the check to be
4933 performed more times than is really necessary.
4935 * library/bgerror.tcl: Fixed a typo in one of the bgerror dialog
4938 * library/msgs/it.msg: Italian message catalog, from Paolo
4939 Brutti. [RFE: 6012].
4941 2000-07-07 Eric Melski <ericm@ajubasolutions.com>
4943 * library/msgs/el.msg: Greek message catalog, from George Petasis.
4945 2000-07-07 Mo DeJong <mdejong@redhat.com>
4947 * win/configure.in: Fix subst of TK_SHARED_BUILD
4948 variable in tkConfig.sh.in. Fix definition of
4949 TK_SRC_DIR variable so that it matches the
4952 2000-07-05 Mo DeJong <mdejong@redhat.com>
4954 * generic/tkFileFilter.c (AddClause): Cast to match function prototype.
4955 * win/stubs.c (_XInitImageFuncPtrs): Add return value for function.
4956 * win/tkWinButton.c (buttonStyles, ButtonBindProc, ComputeStyle):
4957 Remove unused declarations.
4958 * win/tkWinColor.c (GetColorByName, GetColorByValue): Remove unused
4959 function declarations.
4960 * win/tkWinDialog.c (TrySetDirectory): Remove unused function
4962 * win/tkWinEmbed.c (TkWinEmbeddedEventProc): Cast to match function
4964 * win/tkWinMenu.c (winMenuMutex, MenuExitProc): Remove unused
4966 * win/tkWinWindow.c (StackWindow): Remove unused declaration.
4967 * win/tkWinWm.c (ConfigureEvent): Remove unused declaration.
4968 * win/tkWinX.c (winXMutex): Remove unused declaration.
4969 * xlib/ximage.c (XCreateBitmapFromData): Cast to match function
4972 2000-07-05 Eric Melski <ericm@ajubasolutions.com>
4974 * tests/imgPhoto.test: Added test for GIF writing code [Bug: 5823].
4976 * generic/tkImgGIF.c: Applied patch from Jan Nijtmans to fix a
4977 problem with the GIF writing code [Bug: 5823].
4979 * generic/tkCursor.c: Added initialization for nextPtr field of
4980 TkCursor, patch from Nijtmans/Howlett.
4982 2000-07-05 Eric Melski <ericm@ajubasolutions.com>
4984 * library/msgs/nl.msg: Dutch message catalog for dialogs, from Jan
4987 2000-06-30 Eric Melski <ericm@scriptics.com>
4990 * doc/colors.n: Added extra .CE/.CS pairs to break up the large
4991 text block, so that the generated Windows help file could
4992 accomodate the manual entry. [Bug: 5862]
4994 * tests/filebox.test: Adjusted tests to accomodate -multiple.
4996 * library/xmfbox.tcl: Adjusted arguments list construction such
4997 that -multiple is not presented as an option for tk_getSaveFile.
4999 * library/tk.tcl: Added test for safe interpreter status before
5000 attempting to load message catalogs (which is impossible in a
5001 standard safe interpreter). This means that SafeTk will not have
5002 localized dialogs, unless a means is found for loading the message
5005 2000-06-29 Eric Melski <ericm@scriptics.com>
5007 * library/msgs/de.msg: German message catalog.
5009 * library/msgs/en.msg: English message catalog.
5011 * library/msgs/es.msg: Spanish message catalog.
5013 * library/msgs/fr.msg: French message catalog.
5016 * unix/configure.in:
5018 * library/clrpick.tcl:
5019 * library/choosedir.tcl:
5020 * library/console.tcl:
5021 * library/msgbox.tcl:
5022 * library/tkfbox.tcl:
5023 * library/xmfbox.tcl:
5024 * library/bgerror.tcl: Applied patches from Laurent Duperval to
5025 provide localization of Tk dialogs. [RFE: 2671].
5027 2000-06-27 Eric Melski <ericm@scriptics.com>
5029 * generic/tkMenu.c (DeleteMenuCloneEntries): Applied fix from
5030 [Bug: 5275], which corrected a segfault-causing indexing problem
5031 when deleting entries from torn-off menus.
5033 2000-06-22 Eric Melski <ericm@ajubasolutions.com>
5035 * doc/getOpenFile.n: Updated with information about -multiple.
5037 * library/choosedir.tcl: Tweaked to handle modified tkIconList API's.
5039 * library/tkfbox.tcl: Preliminary implementation of multiple
5040 selection; based on patch from [RFE: 604]. Some of the tkIconList
5041 functions changed to support this and to make the dialog faster.
5043 * library/xmfbox.tcl: Added support for multiple selection, from
5044 patch in [RFE: 4999].
5046 2000-06-21 Eric Melski <ericm@scriptics.com>
5048 * library/text.tcl: Corrected behavior of text widget with respect
5049 to this sequence of events: click, shift-click. Previously, the
5050 shift-click just moved the cursor and anchor; now, the shift-click
5051 will select the text between the click and the shift-click, which
5052 is the behavior most users expect. [Bug: 5929].
5054 2000-06-19 Eric Melski <ericm@scriptics.com>
5056 * library/bgerror.tcl: Added auto-truncation for long error
5057 messages (more than 30 characters wide, or more than 4 lines
5058 long), so that the dialog remains a manageable size. [RFE: 5782]
5060 2000-06-15 Eric Melski <ericm@scriptics.com>
5062 * win/tkWinDialog.c: Patched to support tk_getOpenFile
5063 -multiple. [RFE: 604].
5065 2000-06-13 Eric Melski <ericm@scriptics.com>
5069 * win/Makefile.in: Applied patch from [RFE: 5844], to provide
5070 support for the mingw compile environment for Windows.
5072 2000-06-06 Jeff Hobbs <hobbs@scriptics.com>
5076 2000-06-03 Jeff Hobbs <hobbs@scriptics.com>
5078 * doc/CrtCmHdlr.3: new doc for ClientMessage handler procs
5079 * generic/tk.h: added typdef for Tk_ClientMessageProc
5080 * generic/tkStubInit.c:
5081 * generic/tkDecls.h:
5082 * generic/tk.decls: Added Tk_CreateClientMessageHandler and
5083 Tk_DeleteClientMessageHandler declarations.
5084 * generic/tkEvent.c (Tk_HandleEvent): Added
5085 Tk_CreateClientMessageHandler and Tk_DeleteClientMessageHandler to
5086 allow adding event handlers that invoke for ClientMessage events.
5087 This is necessary to support unix dnd protocols.
5089 2000-06-02 Jeff Hobbs <hobbs@scriptics.com>
5091 * canvas.test: added test for 5783.
5092 * generic/tkCanvPoly.c (DisplayPolygon): added checks for the
5093 polygon fillGC not being empty to prevent segfault. [Bug: 5783]
5095 2000-05-31 Eric Melski <ericm@scriptics.com>
5097 * library/bgerror.tcl: Improved bgerror based on work by Donal
5098 K. Fellows; no longer dependant on tk_dialog; features a
5099 Windows-esque "Details" button, and a customizable extra function
5100 button that allows the user to (for example) save the stack trace
5103 2000-05-30 Eric Melski <ericm@scriptics.com>
5105 * generic/tkImgGIF.c: Changed defines for GIF87a/GIF89a to be
5106 static char arrays with integer initialization, to address EBCIDIC
5107 vs. ASCII encoding issues and to handle compilers that don't deal
5108 with "\xAB" syntax for specifying hex values in strings.
5110 2000-05-28 Jeff Hobbs <hobbs@scriptics.com>
5112 * doc/spinbox.n: (new file) docs for spinbox widget
5113 * generic/tkInt.h: added Tk_SpinboxObjCmd declaration
5114 * generic/tkEntry.c: added 'spinbox' widget - an extension of the
5116 * generic/tkWindow.c: added 'spinbox' to core Tk commands
5117 * library/spinbox.tcl: (new file) binding and helper procs for spinbox
5118 * library/tk.tcl: added spinbox.tcl to list of files to source
5119 * tests/entry.test: updated changed error messages
5120 * tests/spinbox.test: (new file) test suite for spinbox
5122 * generic/tkPlace.c (Tk_PlaceCmd): reworked place master/slave
5123 table init'n to prevent seg fault when using place on multiple
5126 * generic/tk.h: added comments ot Tk_FakeWin structure
5128 2000-05-26 Eric Melski <ericm@scriptics.com>
5130 * generic/tkOption.c (Tk_GetOption): Extended Tk_GetOption to
5131 support a new syntax for option names in option tables. If the
5132 option name has an embedded ".", it indicates that the name field
5133 contains both an option name and an overriding widget class, in
5134 the form "class.option". The lookup for the option value will be
5135 performed as though the widget class is that specified, rather
5136 than the actual widget class.
5137 (SetupStacks): Replaced several lines of array element copying
5138 with a for loop for conciseness.
5140 2000-05-25 Eric Melski <ericm@scriptics.com>
5142 * library/button.tcl: Tweaks for -overrelief handling on Windows.
5144 * doc/radiobutton.n: Added documentation for -overrelief option.
5146 * doc/checkbutton.n: Added documentation for -overrelief option.
5148 * doc/label.n: Added documentation for -state option.
5150 * generic/tkButton.c: Added -overrelief option for checkbuttons,
5153 * library/button.tcl (tkButtonDown, macintosh version): Added
5154 protection against querying the -repeatdelay option from a widget
5155 that doesn't support it (ie, checkbuttons, radiobuttons, etc).
5156 Other platforms use a different binding script for checkbuttons
5157 and radiobuttons, so they don't have this issue.
5158 (tkCheckRadioEnter, windows version): Added code to handle
5159 -overrelief for check/radiobuttons on windows.
5161 2000-05-22 Eric Melski <ericm@scriptics.com>
5163 * generic/tkButton.c: Added -activeforeground, -activebackground
5164 for labels, for the -state option.
5166 * doc/label.n: Added documentation for -state option,
5167 -activeforeground, -activebackground.
5169 2000-05-22 Jeff Hobbs <hobbs@scriptics.com>
5171 * win/Makefile.in (install-libraries): corrected to install X
5178 * doc/photo.n: doc fix-ups [Bug: 5396]
5180 2000-05-17 Jeff Hobbs <hobbs@scriptics.com>
5184 * generic/tkCmds.c (Tk_BellObjCmd): added -nice option to
5185 optionally avoid resetting screen saver [Bug: 4279]
5187 2000-05-15 Jeff Hobbs <hobbs@scriptics.com>
5189 * win/tkWinWm.c (Tk_WmCmd): changed wm deiconify from using idle
5190 callback to calling restack and focus code immediately.
5192 2000-05-17 Eric Melski <ericm@scriptics.com>
5194 Overall change: Added "-readonlybackground" option for entries,
5195 to enable a visual change when state goes to readonly.
5197 * mac/tkMacDefault.h (DEF_ENTRY_READONLY_BG_COLOR,
5198 DEF_ENTRY_READONLY_BG_COLOR):
5199 * win/tkWinDefault.h (DEF_ENTRY_READONLY_BG_COLOR,
5200 DEF_ENTRY_READONLY_BG_COLOR):
5201 * unix/tkUnixDefault.h (DEF_ENTRY_READONLY_BG_COLOR,
5202 DEF_ENTRY_READONLY_BG_COLOR): Added default values for entry
5203 -readonlybackground option.
5205 * generic/tkEntry.c: Added -readonlybackground option, cleaned up
5206 excessive use of graphics contexts.
5208 * tests/entry.test: Added configuration test for
5209 -readonlybackground option.
5211 * doc/entry.n: Added documentation for -readonlybackground option.
5213 Overall change: changed implementation of "link" relief for
5214 buttons. Instead of a new relief style (-relief link), there is a
5215 new option, -overrelief, which if set is used when the mouse is
5218 * doc/SetOptions.3: Added information about TK_OPTION_NULL_OK with
5221 * win/tkWinButton.c: Removed bits about TK_RELIEF_LINK.
5223 * tests/button.test: Added tests for -overrelief; removed tests
5226 * mac/tkMacButton.c: Removed bits about TK_RELIEF_LINK.
5228 * generic/tkOldConfig.c: Removed bits about TK_RELIEF_LINK.
5230 * generic/tkConfig.c: Removed bits about TK_RELIEF_LINK; added
5231 support for TK_OPTION_NULL_OK for TK_OPTION_RELIEF.
5233 * library/button.tcl: Added binding support for -overrelief.
5235 * generic/tk3d.c (Tk_GetRelief): Added branch for TK_RELIEF_NULL.
5237 * generic/tkButton.c: Added -overrelief option; removed
5238 Enter/Leave EventProc masks and handlers.
5240 * generic/tk.h: Added TK_RELIEF_NULL definition, removed
5243 * mac/tkMacDefault.h (DEF_BUTTON_OVER_RELIEF):
5244 * win/tkWinDefault.h (DEF_BUTTON_OVER_RELIEF):
5245 * unix/tkUnixDefault.h (DEF_BUTTON_OVER_RELIEF): Added default
5246 value for the -overrelief option.
5248 2000-05-16 Eric Melski <ericm@scriptics.com>
5250 * win/tkWinMenu.c (ReconfigureWindowsMenu): Added code to add the
5251 MF_SEPARATOR bit for SEPARATOR_ENTRY menu items. This causes
5252 separator entries on the system menu to be drawn correctly [Bug: 5451].
5254 2000-05-15 Eric Melski <ericm@scriptics.com>
5256 * doc/image.n: Added documentation for [image inuse] command.
5258 * tests/image.test: Added tests for [image inuse] command.
5260 * generic/tkImage.c (Tk_ImageObjCmd): Added [image inuse] command,
5261 which provides a means for programmers to determine if a given
5262 image is in use by any widgets. [RFE: 3327].
5264 2000-05-14 Eric Melski <ericm@scriptics.com>
5266 * doc/clipboard.n: Added documentation for "clipboard get".
5268 * generic/tkClipboard.c (Tk_ClipboardCmd): Added "clipboard get"
5269 subcommand [RFE: 4628].
5271 * tests/clipboard.test: Updated to use "clipboard get" instead of
5272 "selection get -s CLIPBOARD".
5274 * library/entry.tcl: Adjusted Button-1 binding to set focus to the
5275 entry when it is readonly or normal.
5277 * doc/entry.n: Added documentation for readonly state,
5278 -disabledforeground, -disabledbackground.
5280 * tests/entry.test: Added tests for readonly state.
5282 * generic/tkEntry.c: Added support for "readonly" state, and
5283 redefined "disabled" state. A disabled entry will display its
5284 text in a dimmed color and possibly with a different background,
5285 and will be completely unusable (no selection, no editing). A
5286 readonly entry will look like a normal entry, but it will not be
5287 editable; selection is still allowed. [RFE: 4239]. To support the
5288 new disabled state properly, "-disabledforeground" and
5289 "-disabledbackground" options were added.
5290 *** THIS IS A BACKWARDS INCOMPATIBLE BEHAVIOR CHANGE ***
5292 * win/tkWinDefault.h:
5293 * mac/tkMacDefault.h:
5294 * unix/tkUnixDefault.h: Added DEF_ENTRY_DISABLED_FG,
5295 DEF_ENTRY_DISABLED_BG_COLOR, DEF_ENTRY_DISABLED_BG_MONO.
5297 2000-05-12 Eric Melski <ericm@scriptics.com>
5299 * unix/tkUnixButton.c (TkpDisplayButton, TkpComputeButtonGeometry):
5300 * mac/tkMacButton.c (TkpDisplayButton, TkpComputeButtonGeometry):
5301 * win/tkWinButton.c (TkpDisplayButton, TkpComputeButtonGeometry):
5302 Added code for drawing compound buttons.
5304 * tests/button.test: Added configuration tests for -repeatdelay,
5305 -repeatinterval, -compound.
5307 * library/button.tcl: Added support for -repeatedelay,
5308 -repeatinterval options.
5310 * generic/tkOldConfig.c: Changed handling of link relief so that
5311 proper error messages are used.
5313 * generic/tkButton.h: Added -compound, -repeatdelay,
5314 -repeatinterval options.
5316 * generic/tkButton.c: Added event watchers for enter/leave events,
5317 for link relief support.
5319 * generic/tk3d.c: Changed handling of link relief so that proper
5320 error messages are used.
5322 * generic/tk.h: Changed values of
5323 TK_OPTION_LINK_OK/TK_CONFIG_LINK_OK for link relief support.
5325 2000-05-12 Jeff Hobbs <hobbs@scriptics.com>
5327 * win/tkWinFont.c (LoadFontRanges): improved support for all chars
5328 in 0-255 range for bitmap ANSI fonts. May be improved to handle
5329 bitmap non-ANSI fonts in the future. [Bug: 2172]
5331 * win/tkWinWm.c (RaiseWinWhenIdle): added TK_DONT_DESTROY_WINDOW
5332 to flag check to prevent timing related core dump. [Bug: 5438]
5334 2000-05-11 Jeff Hobbs <hobbs@scriptics.com>
5336 * win/tkWinTest.c (TestclipboardObjCmd): ensured CloseClipboard
5337 would always get called for each OpenClipboard.
5339 * tests/focus.test (focusSetupAlt): removed wm withdraw from proc
5340 as it would cause a hang for tkwait visibility
5344 * generic/tkColor.c:
5345 * generic/tkCursor.c: corrected handling of 3DBorder, Cursor and
5346 Color objects on multiple screens. [Bug: 5454]
5348 2000-05-09 Eric Melski <ericm@scriptics.com>
5350 * doc/button.n: Added documentation for link relief.
5352 * tests/button.test: Added tests for link relief for buttons.
5354 * generic/tk.h (TK_CONFIG_LINK_OK): Added definition of
5355 TK_RELIEF_LINK, TK_OPTION_LINK_OK and TK_CONFIG_LINK_OK. [RFE: 4348]
5357 * generic/tk3d.c: Added support for link relief. [RFE: 4348]
5359 * mac/tkMacButton.c (TkpDisplayButton):
5360 * unix/tkUnixButton.c (TkpDisplayButton): Added support for link
5363 * generic/tkOldConfig.c (Tk_ConfigureWidget):
5364 * generic/tkConfig.c (DoObjConfig): Added understanding of link
5365 relief, which is allowed only for widgets that have
5366 TK_OPTION_LINK_OK or TK_CONFIG_LINK_OK set for the "-relief"
5369 * generic/tkButton.c: Added TK_OPTION_LINK_OK to "-relief" option
5370 for buttons. [RFE: 4348]
5372 * win/tkWinWm.c (EX_TRANSIENT_STYLE): Removed WS_EX_TOOLWINDOW
5373 style bit, so that transient windows have full-size titlebars
5374 (like the tk_getOpenFile dialog).
5376 * win/tkWinMenu.c (GetMenuSeparatorGeometry): Tweaked height
5377 requested for separator bars to be (linespace - (2*descent))
5378 instead of just (linespace); this makes the separator occupy a
5379 more correct amount of vertical space. [Bug: 5303].
5381 2000-05-09 Jeff Hobbs <hobbs@scriptics.com>
5383 * library/focus.tcl: fixed calling of takeFocus proc [Bug: 5372]
5385 2000-05-02 Jeff Hobbs <hobbs@scriptics.com>
5392 * unix/configure.in:
5397 * win/makefile.vc: updated patchlevel to 8.4a1
5399 * unix/Makefile.in: added tk.spec to dist target
5401 2000-04-27 Eric Melski <ericm@scriptics.com>
5403 * doc/Tk_Init.3: Added Tk_SafeInit information [Bug: 1884].
5405 * doc/keysyms.n: Man page enumerating keysyms [RFE: 1645].
5407 * doc/colors.n: Man page enumerating valid color names [RFE: 1645].
5409 * doc/cursors.n: Man page enumerating valid cursor values [RFE: 1645].
5411 * library/msgbox.tcl: Corrected Unix tk_messageBox implementation
5412 to make the first button the default when no default is specified
5415 * doc/messageBox.n: Updated documentation with regards to
5416 selection of default button when none is specified (now it will
5417 use the first button as the default in that case) [Bug: 2218].
5419 2000-04-26 Jeff Hobbs <hobbs@scriptics.com>
5427 * win/README: Updating URLs to reference dev.scriptics.com
5429 2000-04-25 Jeff Hobbs <hobbs@scriptics.com>
5432 * win/Makefile.in: makefile cleanup
5434 2000-04-25 Eric Melski <ericm@scriptics.com>
5436 * generic/tkMain.c: Fixed function header comment for Tk_MainEx.
5439 * doc/GetScroll.3: Added information about Tk_GetScrollInfoObj
5442 2000-04-24 Eric Melski <ericm@scriptics.com>
5445 * doc/Grab.3: Man page for Tk_Grab and Tk_Ungrab [Bug: 1868, 1889]
5448 * doc/MainWin.3: Added entry for Tk_GetNumMainWindows [Bug: 1865].
5451 * doc/GetHINSTANCE.3: Man page for Tk_GetHINSTANCE [Bug: 1862].
5453 2000-04-24 Jeff Hobbs <hobbs@scriptics.com>
5455 * generic/tkImage.c (Tk_PostscriptImage): added check to create
5456 necessary prolog for photos
5457 * generic/tkCanvPs.c: added Tk_PostscriptPhoto that outputs PS for
5459 * generic/tkImgPhoto.c: new func ImgPhotoPostscript and added that
5460 in as ps proc in tkPhotoImageType.
5461 * generic/tkStubInit.c:
5462 * generic/tkDecls.h:
5463 * generic/tk.decls: added Tk_PostscriptPhoto
5465 * generic/tkConfig.c (DoObjConfig): removed direct setting of
5468 * mac/tkMacWm.c (Tk_WmCmd): initialized gotToplevel in
5469 colormapwindows case (bug found by Reasoning, Inc's automated code
5472 2000-04-24 Eric Melski <ericm@scriptics.com>
5475 * doc/GetHWND.3: Man page for Tk_GetHWND [Bug: 1863].
5478 * doc/HWNDToWindow.3: Man page for Tk_HWNDToWindow [Bug: 1869].
5481 * doc/AddOption.3: Man page for Tk_AddOption [Bug: 1854]
5483 2000-04-22 Jim Ingham <jingham@cygnus.com>
5485 * mac/tkMacDialog.c (Tk_MacGetOpenFile): Add empty bodies for the
5486 "-initialfile" and "-defaultextension" options.
5488 * mac/tkMacDialog.c (NavServicesGetFile): Only cons the result up
5489 into a list if multiple is true.
5491 * mac/tkMacMenus.c (SourceDialog): Use the "tk_getOpenFile"
5492 instead of hand-coding the dialog with StandardGetFile. This way
5493 we get the Navigation dialogs for free.
5495 * doc/getOpenFile.n: Document the -multiple and -message flags
5496 which are only implemented on the Mac. Also note that the -title
5497 works on the Mac with Nav Services installed.
5499 2000-04-19 Eric Melski <ericm@scriptics.com>
5501 * doc/WinViewable.3:
5502 * unix/mkLinks: Removed docs for Tk_IsViewable.
5504 * win/tkWinDialog.c: Removed calls to Tk_IsViewable.
5507 * generic/tkStubInit.c:
5508 * generic/tkDecls.h:
5510 * generic/tk.decls: Removed Tk_IsViewable function (it was not
5513 2000-04-19 Jeff Hobbs <hobbs@scriptics.com>
5515 * win/aclocal.m4: made SC_PROG_TCLSH search specifically for
5516 tclsh*.exe type files to find an executable.
5518 * win/Makefile.in: fixed up cleanup, winhelp, cat32 targets
5520 * library/console.tcl: made console use systemfixed font on Win
5522 * generic/tkEntry.c: removed unnecessary ENTRY_VALIDATE #define
5524 2000-04-19 Eric Melski <ericm@scriptics.com>
5526 * generic/tkRectOval.c (ConfigureRectOval): Added checks for valid
5527 outline settings before creating of outline GC; this means that it
5528 is really possible now to have an oval or rectangle with no
5529 outline. [Bug: 5029].
5531 2000-04-19 Jeff Hobbs <hobbs@scriptics.com>
5533 * library/choosedir.tcl (::tk::dialog::file::chooseDir::Config):
5534 * library/tkfbox.tcl (::tk::dialog::file::Config): removed the
5535 extraneous glob on -initialdir after file isdir already returned 1
5536 and moved cd trick into this case as the else already uses [pwd].
5539 * win/winMain.c: moved extern call out of WinMain func
5543 * unix/configure.in:
5545 * win/configure.in: bumped to version 8.3.1
5547 * library/msgbox.tcl (tkMessageBox): changed to use grid in some
5548 places, realign icon to anchor nw.
5550 * mac/tkMacScale.c: reverted tkMacScale.c to 1.5 equivalent (it
5551 was accidentally bumped forward).
5553 2000-04-18 Eric Melski <ericm@scriptics.com>
5555 * win/tkWinPointer.c: Changed Mod2Mask in TkWinGetModifierState to
5556 ALT_MASK, to fix some event problems [Bugs: 1160, 5088].
5558 * win/tkWinX.c: Changed Mod2Mask in GetState to ALT_MASK, to fix
5559 some event problems [Bugs: 1160, 5088].
5561 * generic/tkInt.h: Moved definition of ALT_MASK and META_MASK here
5562 so that it would be accessible from other modules than tkBind.c.
5564 * generic/tkBind.c: Added code in BindEvent to check for ALT_MASK
5565 and META_MASK in the event state field, as this field may not be
5566 set up with the correct display modifier mask bits if the XEvent
5567 structure was created by [event generate] or by the Windows X
5568 emulation. [Bugs: 1160, 5088].
5570 2000-04-18 Scott Redman <redman@HILO>
5574 * win/wish.ico: Modified copyright dates in Windows resource
5575 files. Updated the icon for wish.exe.
5577 2000-04-17 Eric Melski <ericm@scriptics.com>
5579 * win/tkWinDialog.c: Added checks for visibility of parent window
5580 before creating MessageBox and ChooseColor dialogs; this prevents
5581 the application from locking when the parent is withdrawn and the
5582 message box is created. In these cases, the window will be
5583 created without a parent.
5585 * unix/mkLinks: Added WinViewable.3.
5587 * tests/msgbox.test: Added tests for patch from [Bug: 4997].
5589 * library/msgbox.tcl:
5590 * library/dialog.tcl: Applied patch from [Bug: 4997]; detaches
5591 dialog window from parent if parent is not viewable.
5593 * library/bgerror.tcl: Removed workaround from [Bug: 4370]; this
5594 is superceeded by patches to dialog.tcl.
5596 * generic/tkCmds.c: Changed WinfoObjCmd to use Tk_IsViewable
5597 function to determine visibility of windows instead of inlining
5600 * generic/tkStubInit.c:
5601 * generic/tkDecls.h:
5602 * generic/tk.decls: Added Tk_IsViewable declaration.
5604 2000-04-17 Eric Melski <ericm@scriptics.com>
5606 * library/text.tcl: Tweaked double-/triple-click selection;
5607 previously, anchor and insert marks were placed in unexpected
5608 locations following a double or triple click. Now they are placed
5609 logically. Also tweaked the extension of selection via
5610 shift-double-clicks so that it no longer selects the contiguous
5611 whitespace on the side of the selection opposite the
5612 double-click. [RFE: 4253].
5614 * doc/menu.n: Added note regarding rendering of
5615 checkbuttons/radiobuttons in menubars on different platforms --
5616 some systems do not draw indicators for check/radiobuttons in
5619 * library/menu.tcl: Corrected behavior of
5620 checkbuttons/commands/radiobuttons in menubars [Bug: 630].
5622 * tests/grid.test: Added test for [grid propagate . 0] to not toggle.
5624 * generic/tkGrid.c: Fixed bogus logic in [grid propagate] that
5625 caused [grid propagate . 0] to act as a toggle instead of an
5626 absolute set. [Bug: 2286].
5628 2000-04-16 Jeff Hobbs <hobbs@scriptics.com>
5630 * win/tkWinColor.c (FindSystemColor): correct calculation of
5631 colors when shifting value. [Bug: 4919]
5633 2000-04-16 Jim Ingham <jingham@cygnus.com>
5635 * mac/tkMacPort.h: protect against strncasecmp already defined -
5636 it is in the Pro5 version of MSL.
5638 * mac/tkMacWindowMgr.c (GenerateKeyEvent): Check for a null tkWin.
5639 If the hidden window we use for double-buffering controls manages
5640 to percolate to the top (should never happen, but...) this will
5641 keep us from crashing.
5643 * mac/tkMacButton.c (InitSampleControls): Hide the
5644 double-buffering window BEHIND the first "." window you can find.
5645 This will keep it from ever being the front window, and thus a
5646 black hole for events. * mac/tkMacButton.c (ButtonEventProc):
5647 Disable the controls when the window is in the background. This
5648 is required by the MacOS HIG. This doesn't always get called when
5649 it should, it still needs more work.
5651 * mac/tkMacDialog.c: Pretty substantial rewrite to include
5652 Navigation Services support for systems which have it.
5654 2000-04-14 Eric Melski <ericm@scriptics.com>
5656 * win/tkWinKey.c: Added check for ASCII delete character in
5657 KeycodeToKeysym, to fix [Bug: 5090]. See comment in code for more
5660 * generic/ks_names.h: Added Scroll_Lock and Sys_Req definitions.
5662 * win/tkWinKey.c: Changed implementation of KeycodeToKeysym,
5663 et. al., to use a keycode table for lookups; this will result in
5664 faster keycode -> keysym translations for non-ASCII keys like
5667 2000-04-14 Jeff Hobbs <hobbs@scriptics.com>
5669 * win/tkWinWm.c (WmProc): added check in WM_MOUSEACTIVATE so we
5670 correctly activate native menus when clicking in when we didn't
5671 have focus [Bug: 2272]
5673 * generic/tkCanvas.c (CanvasEventProc:2451): corrected cast
5675 * generic/tkEntry.c (Tk_EntryObjCmd): adjusted finishing error
5676 cases and changed TK_CONFIG_NULL_OK to TK_OPTION_NULL_OK
5679 * generic/tkScale.c:
5680 * generic/tkScale.h:
5681 * unix/tkUnixScale.c:
5682 * mac/tkMacScale.c: moved (PixelToValue|ValueToPixel|SetScaleValue)
5683 to tkScale.c. Caused an associated variable to be immediately set
5686 * library/scale.tcl (tkScaleActivate): reduced number of scale
5687 redisplays by checking current value of state before setting it
5690 * tests/winDialog.test: tk_chooseDirectory seems to get a noop
5691 from GetOpenFileName in the static build, hanging some tests.
5692 The tests were fixed to timeout (noop cause unknown).
5694 * unix/aclocal.m4 (SC_ENABLE_THREADS): enhanced the detection of
5695 pthread_mutex_init [Bug: 4359] and (SC_CONFIG_CFLAGS) added
5696 --enable-64bit-vis switch for Sparc VIS compilation [Bug: 4995]
5698 2000-04-13 Eric Melski <ericm@scriptics.com>
5700 * win/tkWinKey.c: Added smarts to check whether the left or right
5701 Control, Shift, or Alt key was pressed. [Bug: 870].
5703 * win/tkWinMenu.c: Corrected code that created separator items on
5704 menus; originally, it requested that the system be responsible for
5705 drawing those items, so it would ignore configuration items like
5706 the widget background. Now, we draw the separators ourselves (as
5707 we do with every other kind of menu item already). [Bug: 1166].
5710 * unix/tkUnix3d.c: Applied patch from [RFE: 2501]: adds more
5711 sophisticated smarts to TkpGetShadows, so that the highlight of a
5712 very bright color is actually distinguishable from the color, and
5713 the shadow of a very dark color is similarly distinguishable from
5716 * generic/tkCanvas.c: Applied patch from [Bug: 4202]; adds a check
5717 for NULL tkwin in Tk_CanvasEventuallyRedraw.
5719 2000-04-12 Jeff Hobbs <hobbs@scriptics.com>
5721 * test/winClipboard.test:
5723 * win/tkWinClipboard.c (UpdateClipboard):
5724 * win/tkWinX.c (GenerateXEvent): added updatingClipboard tsd and
5725 TkWinUpdatingClipboard accessor function to allow us to flag
5726 ourselves when we are the ones updating the clipboard. This
5727 corrected inability to create our own clipboard types within a Tk
5728 application. [Bug: 2338 4318]
5729 * win/tkWinTest.c (TestclipboardCmd): improved TestclipboardCmd
5730 with better error handling and obj'ification
5732 2000-04-11 Eric Melski <ericm@scriptics.com>
5734 * msgcat.n: Added docs for new behavior from patch in [Bug: 4158].
5736 * msgcat.test: Added tests for new behavior from patch in [Bug:
5739 * msgcat.tcl: Applied patch from [Bug: 4158], which enables
5740 msgcat::mc to search the entire namespace ancestry chain for
5741 message translations (ie, first it checks the current namespace,
5742 then the parent, then the parent's parent, etc). Also allows the
5743 specification of additional args for msgcat::mc; if extra args are
5744 given, the [format] command is used to substitute the additional
5745 args in the translated message.
5747 * library/bgerror.tcl: Moved check for withdrawn state after check
5748 for tkerror; this was causing problems when tkerror was used.
5750 2000-04-10 Eric Melski <ericm@scriptics.com>
5752 * library/bgerror.tcl: Added check for withdrawn state of . and
5753 unsetting of transient bit for .bgerrorDialog if . is not
5754 viewable; this protects against the application hanging on systems
5755 like Windows, where transient windows are withdrawn with their
5756 parents. [Bug: 4370].
5758 * tests/event.test: Added test for [event generate $widget
5759 <Alt-z>] [Bug: 4611].
5761 * tests/choosedir.test: Changed "namespace import ::tcltest" to
5762 "namespace import -force ::tcltest".
5766 * mac/tkMacKeyboard.c: Changed InitKeymapInfo to
5767 TkpInitKeymapInfo. [Bug: 4611].
5769 * generic/tkStubInit.c:
5770 * generic/tkIntDecls.h: Re-gen'd from tkInt.decls.
5772 * generic/tkInt.decls: Added TkpInitKeymapInfo to list of function
5775 * generic/tkBind.c (HandleEventGenerate): Added code to initialize
5776 keymap info if necessary, and to correctly set modifier bits in
5777 XEvent structure create to handle [event generate] calls.
5778 Previously, the alt/meta bits were not set correctly, so [event
5779 generate $widget <Alt-z>] would always fail. [Bug: 4611]
5781 2000-04-07 Jeff Hobbs <hobbs@scriptics.com>
5783 * generic/tkGrid.c (InitMasterData): fixed uninit'd data in
5784 GridMaster struct [Bug: 4387]
5786 * library/safetk.tcl (disallowTk): made disallowTk work in the
5789 * library/comdlg.tcl (tkFocusGroup_In): fixed key navigation
5790 problems in dialogs under CDE [Bug: 2960]
5792 * tests/winDialog.test: removed knownBug constraint from 5.16
5794 * win/tkWinFont.c (GetScreenFont): corrected adjustment against
5795 LC_FACESIZE limitation for NT [Bug: 4931]
5797 * win/makefile.vc (TKTEST_OBJS):
5798 * win/Makefile.in (TKTEST_OBJS): moved tkWinTest.c from normal
5799 objs to TKTEST_OBJS where it belonged.
5801 2000-04-03 Jeff Hobbs <hobbs@scriptics.com>
5803 * generic/tkTest.c: fixed incorrect platform inclusion for
5804 TkplatformtestInit (it would never get called).
5806 * unix/Makefile.in (MAN_INSTALL_DIR): patch to accept --mandir
5807 correctly [Bug: 4085]
5809 * library/clrpick.tcl (tkColorDialog_Config): error now thrown
5810 when -initialcolor "" specified. [Bug: 4198]
5812 2000-03-31 Jeff Hobbs <hobbs@scriptics.com>
5814 * doc/DrawFocHlt.3: doc name correction
5816 * generic/tkEntry.c: set TK_OPTION_NULL_OK bit on -invcmd option
5817 and removed #ifdef ENTRY_VALIDATE expressions
5819 * library/menu.tcl (tkMenuInvoke): corrected naming of tearoffs
5822 * library/tkfbox.tcl (tkIconList_Goto): caused browsecmd to be
5823 called in tkIconList_Select. This causes the entry to be set
5824 properly when using the type-in-name-in-listbox bindings.
5826 * win/tkWinDialog.c: added unicode-aware open/save file dialogs
5828 * win/tkWinFont.c (TkpFontPkgInit): move private ref to platformId
5829 to TkWinGetPlatformId
5831 * win/tkWinMenu.c (SetDefaults): moved private use of versionInfo
5832 to TkWinGetPlatformId and removed all code for
5833 (versionInfo.dwMajorVersion < 4) (== Win32s)
5836 * win/tkWin32Dll.c: moved TkWinGetPlatformId to tkWinX.c
5837 * win/tkWinInit.c: added TkWinXInit to TkpInit to ensure that its
5838 called for static Windows shells. [Bug: 3647]
5842 * win/tkWinDraw.c (SetUpGraphicsPort):
5843 * win/tkWinScrlbr.c (UpdateScrollbar): removed use of tkpIsWin32s
5845 * win/tkWinInt.h (TkWinDCState struct): added bkmode value
5846 * win/tkWinDraw.c (TkWinGetDrawableDC, et al): added support for
5847 properly transparent dashed lines on Windows. [Bug: 4617]
5849 2000-03-30 Eric Melski <ericm@scriptics.com>
5851 * generic/tkImgGIF.c: Fixed some ANSI specific bits to avoid
5852 compile problems with non-ANSI compilers (ie, replace const with
5853 CONST, etc). [Bug: 4223].
5855 * unix/configure.in: Applied patch from [Bug: 4237]; ensures that
5856 srcdir is fully qualified.
5858 * unix/Makefile.in: Applied patch from [Bug: 4237]; if tcltest was
5859 not compiled, make test/tktest failed. Now it has a rule to build
5860 tcltest if it has not been built.
5862 2000-03-28 Eric Melski <ericm@scriptics.com>
5864 * library/tkfbox.tcl: Moved an overlooked tkFDialog* function in
5865 ::tk::dialog::file namespace.
5867 * tests/unixWm.test: Added tests for memory leak conditions in
5870 * tests/canvas.test: Added test for bad configuration options on
5871 empty and non-empty canvas.
5873 * generic/tkCanvas.c: Removed bad code in CANV_CONFIGURE block of
5874 CanvasWidgetCmd; this was causing non-empty canvases to improperly
5875 handle bad configuration options [Bug: 4456].
5877 2000-03-27 Eric Melski <ericm@scriptics.com>
5879 * unix/tkUnixWm.c: Applied patch from [Bug: 4405]; fixes memory
5880 leak in Unix wm command.
5882 2000-03-24 Eric Melski <ericm@scriptics.com>
5884 * tests/filebox.test:
5885 * tests/choosedir.test: Updated tests.
5887 * library/xmfbox.tcl: Updated to stash data array in
5888 ::tk::dialog::file namespace instead of in global namespace.
5890 * library/tkfbox.tcl: Extended some functions to support creation
5891 of a choosedir dialog, to allow greater code reuse between the two
5892 dialogs. Moved tkFDialog* functions into a namespace
5893 (::tk::dialog::file). Because these are private Tk functions (and
5894 should thus not be used directly by users), this should not impact
5895 anybody (the tk_getOpenFile and tk_getSaveFile commands still
5896 exist at the global scope).
5899 * library/tclIndex: Updated function names for tkFDialog*
5900 functions and choosedir functions.
5902 * library/choosedir.tcl: New and improved implementation of
5903 tk_chooseDirectory dialog. Based on tk_getOpenFile dialog.
5905 2000-03-23 Eric Melski <ericm@scriptics.com>
5907 * generic/tkWindow.c:
5908 * generic/tkInt.h: Updated Tcl_OptionCmd -> Tcl_OptionObjCmd
5910 * generic/tkOption.c: Tcl_Obj'ectified the "option" command.
5912 2000-03-22 Eric Melski <ericm@scriptics.com>
5914 * library/listbox.tcl (tkListboxCancel): Added a check for empty
5915 string value for tkPriv(listboxPrev). Without this check, it's
5916 possible to get a stack trace under certain conditions. [Bug: 4373].
5918 2000-03-15 Sven Delmas <sven@scriptics.com>
5920 * win/tkWinDialog.c: Changed the behavior for the
5921 tk_chooseDirectory dialog under Windows. Instead of trying to
5922 return the currently selected listbox entry (which didn't work in
5923 case the user selected the initial directory anyway), we now
5924 return the value shown in the entry. This seems to be in
5925 accordance with the expected behavior for this dialog.
5927 2000-03-14 Eric Melski <ericm@scriptics.com>
5929 * tests/choosedir.test: Marked test 3.1 and 3.2 as bad until the
5930 issue with those tests on IRIX can be determined.
5932 2000-03-10 Eric Melski <ericm@scriptics.com>
5934 * library/menu.tcl: Applied patch from [Bug: 4155]; protects
5935 against grabs on non-viewable windows.
5937 2000-03-08 Eric Melski <ericm@scriptics.com>
5939 * tests/choosedir.test: Modified test 3.1 (-mustexist works) to be
5940 more careful about cleaning up its potentially troublesome after
5943 2000-03-07 Eric Melski <ericm@scriptics.com>
5945 * tests/button.test:
5946 * generic/tkButton.c: Added -disabledforeground/-state to labels.
5948 2000-03-07 Jeff Hobbs <hobbs@scriptics.com>
5951 * generic/tkEntry.c (EntrySetValue): malloc the value when
5952 validating because validation could cause the pointer to become
5953 invalid. Also fixed configure to not trigger focus-based
5954 validation. Improved use of Tcl_WrongNumArgs. [Bug: 4320]
5956 2000-03-06 Eric Melski <ericm@scriptics.com>
5958 * library/menu.tcl: Added a check in tkMenuFirstEntry that changes
5959 menu behavior to only auto-post an immediate child cascade if we
5960 are currently on a menubar menu. This prevents massive
5961 auto-cascading in cases where the first entry of the cascade is
5962 itself a cascade, and the first entry of that cascade is a
5963 cascade, and the first entry of that cascade is a cascade
5966 * generic/tkOldConfig.c: Added check for NULL tkwin value in
5967 Tk_ConfigureWidget [Bug: 4079]
5969 * generic/tkWindow.c: Added check for NULL tkwin value in
5970 Tk_NameToWindow [Bug: 4079]
5972 2000-03-02 Jeff Hobbs <hobbs@scriptics.com>
5975 * xlib/xcolors.c (XParseColor FindColor):
5976 * win/tkWinColor.c (XAllocColor): Fixed bit fiddling for colors to
5977 return "correct" values for color mapping. [Bug: 4282]
5979 * unix/Makefile.in (SCRIPT_INSTALL_DIR): removed extraneous '/'
5980 * unix/aclocal.m4: corrected TCL_NEEDS_EXP_FILE to be 1 for AIX
5982 * win/tkWinInt.h: change extern to EXTERN for TkWinChildProc
5983 declaration with extra #defs. [Bug: 4240]
5985 * library/focus.tcl: fixed tkFocusOK to protect $w in
5986 uplevel with list. [Bug: 4208]
5988 * doc/CrtItemType.3: fixed docs for Tk_CreateItemType to reflect
5989 changes made in 8.3.0 (but old style would still work as well).
5992 * tests/config.test: extra test to check object cleanup when
5993 destroying the widget
5994 * generic/tkListbox.c (DestroyListbox): fixed crash in
5995 DestroyListbox due to null tkwin. [Bug: 4207]
5997 * tests/entry.test: added test suite for entry validation
5998 * doc/entry.n: improved docs discussing caveats and gotchas when
5999 mixing textvar with widget validation
6000 * generic/tkEntry.c (EntryValidateChange): improved handling of
6001 validation with relation to -textvariable. Previously, it would
6002 turn off whenever the textvar was set. Now it will it will turn
6003 off only when the textvar is set and validation returns 0. Added
6004 %V (type of validation occuring) to %-subs to help work with
6005 trickier validation.
6007 2000-03-01 Eric Melski <ericm@scriptics.com>
6009 * tests/clrpick.test:
6010 * library/clrpick.tcl: Added code to make color chooser dialog
6011 inherit screen setting from parent (bug #2334)
6013 2000-02-25 Jeff Hobbs <hobbs@scriptics.com>
6015 * win/tkWinWm.c (RaiseWinWhenIdle): Checked for the possibility
6016 that the window could be destroyed (can occur with
6017 wm deiconify .toplevel; destroy .toplevel).
6019 2000-02-25 Eric Melski <ericm@scriptics.com>
6021 * generic/tkImgGIF.c: Applied "spirit of" the patch in 1605 (the
6022 submitted patch was more complicated than necessary and did not
6023 extend to writing GIF's, only reading), to allow reading/writing
6024 of GIF files on EBCDIC and other non-ASCII based systems.
6026 2000-02-14 Eric Melski <ericm@scriptics.com>
6028 * unix/tk.spec: RPM specification for producing a binary Tk RPM
6031 * unix/Makefile.in: Added rpm target to generate Tk
6034 2000-02-10 Jeff Hobbs <hobbs@scriptics.com>
6038 * changes: updated for 8.3.0 release
6040 * generic/tkImgGIF.c (FileReadGIF): added cast for trashBuffer
6042 * generic/tkIntXlibDecls.h:
6043 * generic/tkInt.decls: declared some Xlib emulation calls for
6046 * generic/tkFrame.c (TkInstallFrameMenu): added extra panic to
6047 inform user of bad call when framePtr is NULL [Bug: 2530]
6049 * generic/tkMenu.c (DestroyMenuInstance): Placed checks around
6050 menu name objects before trying to incr the ref. [Bug: 3402]
6052 * generic/tkTest.c: removed USE_OLD_IMAGE def for Mac
6054 * library/listbox.tcl:
6055 * library/text.tcl: added support for <4> and <5> for mousewheel
6056 style scrolling on Unix for mice that map to these buttons.
6058 * tests/scrollbar.test: fixed check of testmetrics command to
6059 allow unix tests to run (testmetrics is mac/pc only)
6061 * unix/tkUnixWm.c (Tk_CoordsToWindow): qualified delete of error
6062 handler as the goto label is reached from above and below.
6064 * unix/configure.in:
6065 * unix/aclocal.m4: cleaned up macros to coincide with tcl.m4,
6066 added -export-dynamic to LDFLAGS for FreeBSD-3+ [Bug: 2998]
6069 * unix/Makefile.in (dist): removed porting.notes and porting.old
6070 from distribution and CVS. The information was very outdated. Now
6071 refer to http://dev.scriptics.com/services/support/platforms.html
6073 * xlib/xgc.c: #def'd out XDrawSegments for the Mac, and added
6074 some extra include info for the Mac
6076 2000-02-09 Jim Ingham <jingham@cygnus.com>
6078 * mac/tkMacButton.c: Stop removing the appearance window from the
6079 Window List. It is not clear why Ray did this, and it causes the
6080 Appearance manager to crash at random times.
6082 * mac/tkMacWM.c: Add support in unsupported1 style for the Appearance
6083 specification of window styles, including floating window support.
6084 * mac/tkMacWindowMgr.c: Operate on the front non-floating window,
6085 unless the mouse is directly over the floating window. Also,
6086 keystrokes go to the front non-floating window.
6087 * mac/tkMacAppInit.c: Initialize floating window support.
6088 * mac/tkMacScrlbr.c:
6089 * mac/tkMacmenu.c: Fixes for floating windows - operate on the
6090 FrontNonFloatingWindow.
6091 * mac/tkMacLibrary.r: Fix typo in File info string.
6092 * mac/tkMacApplication.r: Fix typo in file info string. Add
6093 Finder balloon help for no apparent reason.
6095 * mac/tkMacSubwindows.c: Change panic in tkMacGetDrawablePort to
6096 Debugger. This is only a temporary fix. The panic is only
6097 triggered when a safeTk interpreter is torn down, and ignoring it
6098 does no harm. I haven't figured out how to avoid it yet, however.
6099 Also use the Appearance MoveWindowStructure call when available.
6102 * MW_TkOldImageHeader.h: Handle #defining USE_OLD_IMAGE for tkImgPPM.c.
6103 * MW_TkTestHeader.h:
6104 * MW_TkTestHeader.pch:
6105 * MW_TkHeader.h: Add separate prefix files for test & release
6106 versions of Tk, so we can just have separate targets w/o having to
6109 * tclets.r: The D&D Tclets icon in rez form so we can have a
6112 The above are curtesy of Daniel Steffen (steffen@math.mq.edu.au)
6114 * tkMacAppearanceStubs.c: Stubs of the Mac Appearance calls I use
6115 so I can link the static 68K Shell without putting ifdef's all
6118 2000-02-08 Jeff Hobbs <hobbs@scriptics.com>
6122 * generic/tkInt.decls:
6123 * generic/tkIntDecls.h:
6124 * generic/tkStubInit.c:
6125 * mac/tkMacKeyboard.c:
6127 * win/tkWinKey.c: Fix for keyboard handling of "dead" keys and
6128 caps lock from Peter Spjuth. [Bug: 4105 3359 2493]
6129 Split functions into platform specific files:
6130 Static functions GetKeySym(), SetKeycodeAndState() and InitKeymapInfo()
6131 from tkBind.c moved into platform files tkWinKey.c tkUnixKey.c and
6132 tkMacKeyboard.c. GetKeySym() and SetKeycodeAndState() renamed to
6133 Tkp* and made public (as private functions) in tkInt.decls.
6135 Step 2, fixes in tkWinKey.c
6136 New static function: KeycodeToKeysym(), based on XKeycodeToKeysym()
6137 but with different arguments, and a lot of improvements.
6138 TkpGetString() changed to use KeycodeToKeysym() + other fixes.
6139 TkpGetKeySym() changed to use KeycodeToKeysym() + other fixes.
6140 InitKeymapInfo() changed to use KeycodeToKeysym().
6141 TkpSetKeycodeAndState() rewritten, mostly by copying code from
6143 XKeycodeToKeysym() rewritten. Preferably it should be removed.
6145 EXPLANATION: The main problem is ToAscii() which has a lot of side
6146 effects, and also that XKeycodeToKeysym() is not provided enough
6147 input to do a proper job. The changes' main goal is to avoid
6148 calling ToAscii() if not necessary, and to provide it with as
6149 correct information as possible when called. Also some attempts
6150 to clean up what ToAscii() did are done. See the code for details.
6152 BUGS FIXED: Typing shifted (and AltGr) dead keys did not work.
6153 Keyboard lock lamps did not work on Win98.
6154 Events regarding AltGr-keys behaved badly.
6155 Example: On a Swedish keyboard, $ is typed with AltGr-4.
6156 That keyboard event would get the keysym '4' not 'dollar'.
6157 Also, doing [event generete . <Key-dollar>] would send keysym '4'.
6158 Translation to ascii in TkpGetString did not handle return and
6159 tab correctly. I.e. [event generate . <Key-Return>] gave wrong %A
6161 * generic/tkDecls.h:
6163 * generic/tk.h: moved new public functions created in dash patch
6164 to the stubs interface [Bug: 4062]
6168 * doc/CrtPhImgFmt.3:
6170 * generic/tkImgGIF.c:
6171 * generic/tkImgPhoto.c:
6172 * generic/tkStubImg.c (new file):
6176 * win/makefile.vc: improved support for moving from the old style
6177 image C API to the new obj'ified one with new Tk_InitImageArgs
6178 command and stub'ing of image code. See docs for how to make the
6179 transition. [Bug: 4060]
6181 * library/tk.tcl: wrapped check for tcl_platform(os) around info
6182 exists because it won't in safe interpreters
6184 * win/tkWinFont.c: corrected symbol font use to only work on 8-bit
6185 characters [Bug: 2406]
6187 * unix/aclocal.m4: changed all -fpic to -fPIC
6190 * unix/configure.in:
6192 * generic/tk.h (TK_RELEASE_SERIAL): Moved to 8.3.0 patchlevel
6194 2000-02-07 Eric Melski <ericm@scriptics.com>
6196 * library/tkfbox.tcl: Applied patch from bug #4117,
6197 tk_getOpenFile/getSaveFile doesn't do the right thing when user
6198 types a directory name in the entry and a default extension is
6201 2000-02-05 Jeff Hobbs <hobbs@scriptics.com>
6203 * unix/tkUnixScale.c (TkpDestroyScale): changed ckfree to
6204 Tcl_EventuallyFree to behave with Tcl_Preserve in TkpDisplayScale
6205 (prevents possible segfault).
6207 2000-02-03 Eric Melski <ericm@scriptics.com>
6209 * tests/canvText.test: test for fix for bug #2525.
6211 * generic/tkFont.c (Tk_ComputeTextLayout): Was erroneously setting
6212 the width of newline-only text display chunks to some arbitrary
6213 huge number, instead of 0; this was interfering with things like
6214 the canvas find enclosed feature. (bug #2525).
6217 * generic/tkText.c (DumpLine/DumpSegment): Changed DumpSegment to
6218 take a TkTextIndex instead of two integer offsets, so that it
6219 could use TkTextPrintIndex to format the offsets into an index,
6220 which makes it UTF smart (bug #2582).
6222 2000-02-01 Eric Melski <ericm@scriptics.com>
6226 * library/choosedir.tcl: Moved choosedir functions into the
6227 ::tk::dialog::chooseDir namespace instead of a toplevel
6228 ::tkChooseDirectory namespace. Additional cleanup on the
6231 2000-02-01 Jeff Hobbs <hobbs@scriptics.com>
6233 * doc/text.n: clarified docs on what happens during a search with
6234 -count when images/windows are embedded
6236 * win/Makefile.in (install-*): reduced verbosity of install
6238 * win/tkWinPixmap.c (XGetGeometry): added support for windows in
6239 XGetGeometry [Bug: 4069]
6241 * win/tkWinFont.c (GetScreenFont): fixed possible mem overrun with
6242 long font names [Bug: 4108]
6244 * win/tkWinDialog.c: added EnableWindow calls to dialogs to
6245 correct for possible loss of control in parent Tk toplevel
6248 * generic/tkRectOval.c (ConfigureRectOval):
6249 * generic/tkCanvLine.c (ConfigureLine):
6250 * generic/tkCanvPoly.c (ConfigurePoly):
6251 * generic/tkCanvArc.c (Configure/DisplayArc): fixed handling for
6252 negative dash values [Bug: 4104]
6254 * generic/tkScale.c (TkRoundToResolution): fixed incorrect
6255 assumption that (N+1)*delta = N*delta + delta with floating point
6256 math [Bug: 3689, 4099]
6257 (DestroyScale) Fixed check for cancelling TkpDisplayScale (was
6258 REDRAW_ALL, is now REDRAW_PENDING)
6260 * tests/listbox.test: corrected test case for listbox itemconfigure
6262 * unix/aclocal.m4: added *BSD ELF recognition for
6263 SHARED_LIB_SUFFIX determination (from Tcl's tcl.m4)
6265 2000-01-27 Eric Melski <ericm@scriptics.com>
6267 * generic/tkImgPhoto.c: Removed unneccesary object translation in
6268 MatchStringFormat (bug #4103).
6270 2000-01-27 Eric Melski <ericm@scriptics.com>
6272 * generic/tkImgGIF.c: Additional code cleanup (now we only have
6275 2000-01-26 Eric Melski <ericm@scriptics.com>
6277 * doc/getOpenFile.n:
6278 * doc/chooseDirectory.n: Man page/cross links for
6279 tk_chooseDirectory (bug #1786).
6282 * library/tclIndex: Added hooks for tk_chooseDirectory. (bug #1786)
6284 * library/choosedir.tcl: tk_chooseDirectory implementation for
6285 Unix/Mac (bug #1786).
6287 * generic/tkImgPhoto.c: Added some comments regarding slow
6288 processing of transparent images.
6290 * generic/tkImgGIF.c: Improved GIF decoder for ~60% speed
6291 increase. Added some comments on how to further improve the
6292 implementation, time permitting.
6294 * doc/photo.n: Added a description of what the -data string can
6295 contain (base64 or binary data).
6297 * generic/tkImgPhoto.c: Fixed bug with use of binary data for
6298 "-data" option to "image create" command.
6300 2000-01-21 Eric Melski <ericm@scriptics.com>
6302 * library/tkfbox.tcl: Fixed bug relating to incorrect parent
6303 values for error message boxes displayed by the file dialog (bug
6307 * generic/tkText.c: Fixed bug relating to regexp searching for
6308 empty lines; previously, the starting line was ignored. (bug #1643).
6310 2000-01-20 Jeff Hobbs <hobbs@scriptics.com>
6312 * library/text.tcl: fixed double-click selection behavior where
6313 there were embedded windows/widgets in the same line. [Bug: 3989]
6315 * win/tkWinWm.c (TkWmProtocolEventProc): cached atom name as the
6316 window could get destroyed during eval [Bug: 2513]
6318 * generic/tkCanvLine.c (LineCoords): fixed segfault when too few
6319 coords were passed to a line with certain options set (it should
6320 always have thrown an error anyway). [Bug: 4042]
6323 * generic/tkText.c: fixed missing " in error case and missing
6324 'dump' in subcommand listing [Bug: 4036]
6326 * generic/tkListbox.c: adjusted use of basic string concatenation
6327 in (non-K&R behavior) [Bug: 4027]
6328 Swapped bg/fg class for -select(bg|fg) for listbox and their
6332 * doc/WindowId.3: added docs for Tk_IsContainer and Tk_IsEmbedded
6334 * doc/text.n: clarified mark gravity definition and usage of
6335 ``word'' in binding definitions. [Bug: 2004 2277 1388]
6337 * generic/tkInt.h: moved new TkDisplay useInputMethods structure
6338 element to end to not disturb position of previous elements in
6339 the structure (as compared to Tk <=8.2).
6341 2000-01-20 Eric Melski <ericm@scriptics.com>
6343 * tests/grid.test: Added a test for the consecutive ^ and multiple
6344 widget case (bug #1386).
6346 * generic/tkGrid.c: Fixed interpretation of consecutive ^
6347 characters in grid command. Previously, ^ ^ was interpreted as
6348 meaning that there must be a 2-column widget above to extend,
6349 neglecting the case where there was actually 2 1-column widgets
6350 above. Now, ^ ^ is interpreted as a possible width; the gridder
6351 will consume as many ^'s as there are columns in the widget, and
6352 leave the rest for the extension of other widgets. (bug #1386).
6354 2000-01-19 Eric Melski <ericm@scriptics.com>
6356 * library/tk.tcl: Created a virtual event <<PrevWindow>> for
6357 reverse tab traversals, with one default binding <Shift-Tab>, and
6358 OS specific bindings for Linux, HP-UX, and IRIX. (bug #3163)
6360 2000-01-13 Jeff Hobbs <hobbs@scriptics.com>
6362 * changes: updated changes file to reflect 8.3b2 mods
6365 * unix/configure.in:
6366 * win/configure.in: updated to patchlevel 8.3b2
6368 * win/tkWinWm.c: added visibility event handler to make sure
6369 that transient window wrappers would be updated when the master
6370 was initially mapped.
6372 2000-01-12 Jeff Hobbs <hobbs@scriptics.com>
6374 * tests/text.test: changed test to reflect change of -hidden
6375 to -elide in search options.
6377 * win/tkWinScrlbr.c: added check for valid hwnd in ModalLoopProc
6378 to avoid crash when building statically
6381 * generic/tkBind.c: prevented core with event -warp on Windows
6382 when window wasn't mapped [Bug: 4004] and added docs stating
6383 the requirement for mapped windows.
6385 * generic/tkCanvas.c: fixed mem leak with TagSearchExprInit
6388 * generic/tkStubInit.c:
6389 * generic/tkDecls.h: remove non-existent
6390 Tk_(Get|Create)CanvasVisitor prototypes
6393 * generic/tkEntry.c: fixed cursor to not blink when widget was
6394 disabled [Bug: 1807]
6396 * generic/tkRectOval.c: added note about change to bloat for
6397 RectOval bounds calculation for WIN32 only
6399 * library/dialog.tcl: improved handling of $default arg to allow
6400 for name of given button, as well as bounds checking
6404 * tests/unixWm.test:
6406 * unix/tkUnixWm.c: fixed possible X error being raised [Bug: 3377]
6407 * win/tkWinWm.c: wm deiconify in zoom state [Bug: 2077],
6408 fixed possible flashing of unmapped toplevel in deiconify [Bug: 3338]
6409 and fixed mapping of transient window [Bug: 572]
6410 Also, for all wm's, extended 'wm state' command to allow setting
6411 of the state, and added official support of 'zoomed' state on Win.
6413 * unix/aclocal.m4: strtod bug on Tru64 [Bug: 3378]
6415 * unix/Makefile.in: added tests to prevent unnecessary chmod +x
6416 in source dirs while installing [Bug: 3367]
6418 * unix/configure.in: properly sub'ed in TK_SHARED_BUILD [Bug: 3385]
6420 2000-01-05 Jeff Hobbs <hobbs@scriptics.com>
6425 * generic/tkTextBTree.c:
6426 * generic/tkTextDisp.c:
6427 * generic/tkTextTag.c: removed the -state option for text tags,
6428 and reoriented it around -elide, as -state disabled was never
6429 implemented, and -state hidden is better as -elide.
6431 * mac/tkMacClipboard.c: fixed i18n problems with clipboard [Bug: 3544]
6433 * library/entry.tcl:
6434 * library/focus.tcl:
6435 * library/listbox.tcl:
6436 * library/scale.tcl:
6437 * library/scrlbar.tcl:
6438 * library/tearoff.tcl:
6440 * library/tkfbox.tcl:
6441 * library/xmfbox.tcl: fixed unprotected arg parsing through eval/after
6444 * unix/Makefile.in: added unix/aclocal.m4 to distribution [Bug: 3938]
6445 * unix/aclocal.m4: changed NetBSD SHLIB_CFLAGS from -fpic to -fPIC
6447 * win/tkWinImage.c: added static declaration to function
6449 1999-12-22 Jeff Hobbs <hobbs@scriptics.com>
6451 * changes: updated changes file
6453 * generic/tkScale.c:
6454 * generic/tkScale.h:
6456 * unix/tkUnixScale.c: fixed potential segv from patch in 3897
6458 * tests/unixWm.test: nonPOrtable -> nonPortable
6460 1999-12-21 Jeff Hobbs <hobbs@scriptics.com>
6463 * unix/configure.in:
6466 * README: updated for patch level 8.3b1
6468 * unix/tkUnixWm.c: fixed panic in Tk_CoordsToWindow to print error
6469 and continue instead (for Tix) [Bug: 716 et al]
6472 * generic/tkScale.c:
6473 * generic/tkScale.h: fixed possible core when freeing options
6474 (cursor) associated with scale widget [Bug: 3897]
6476 * doc/MeasureChar.3: fixed docs for Tk_MeasureChars to reflect code
6477 * doc/listbox.n: fixed formatting problem
6479 * generic/tk3d.c: added extra calculations to ensure that thin
6480 frames get refreshed too [Bug: 3596]
6482 * unix/tkUnixMenu.c:
6483 * unix/tkUnixFont.c:
6484 * generic/tkCanvText.c:
6485 * generic/tkEntry.c:
6487 * generic/tkImgPPM.c: removed extranneous vars that were set but
6490 * mac/tclMacHLEvents.c: fixed applescript for I18N [Bug: 3644]
6492 * unix/aclocal.m4: removed -O flag for AIX when using the IBM
6493 compiler (several versions have a bug that crops up in the text
6494 widget). [Bug: 2316]
6496 * unix/Makefile.in: removed extra slash in SCRIPT_INSTALL_DIR
6499 * library/listbox.tcl: added extra checks for existence of
6500 tkPriv(listboxSelection) before it was used. [Bug: 3892]
6502 1999-12-16 Jeff Hobbs <hobbs@scriptics.com>
6505 * win/tkWinCursor.c: added support for Windows cursors to
6506 TkGetCursorByName (.ani, .cur) using -cursor @<filename>
6507 (Ascher) [Bug: 1350]
6509 * win/tkWinWm.c: fixed 'wm deiconify' to update position of the
6510 toplevel if event is waiting before mapping. (Mao) [Bug: 3687]
6511 This removes the need for 'update idle' before 'wm deiconify' on
6514 * doc/listbox.n: added doc for <<ListboxSelect>> [Bug: 3500]
6516 * doc/getOpenFile.n: removed note that -initialfile didn't work
6518 * library/tkfbox.tcl: updated tk_get*File to better match the
6519 Windows file box it emulates, give proper support to -initialfile,
6520 and fixes lack of global tkPriv call. [Bug: 3735 3882]
6522 * doc/tk.n: added doc for 'tk useinputmethods ...'
6526 * generic/tkEvent.c:
6527 * generic/tkWindow.c:
6528 * generic/tkInt.h: add 'tk useinputmethods ?-display win? ?bool?'
6529 call to provide support for disabling/enabling the use of XIM on
6530 X. This was previously all done at compile time, and always on.
6531 Now it is turned off by default, even when available, and the user
6532 must turn it on to use XIM (per display).
6534 * generic/tkCanvUtil.c: fixed bug in Tk_CanvasPsOutline that freed
6537 * generic/tkFont.c: added "bitstream cyberbit" (popular Windows
6538 CJK font) to list of font fallbacks. (kenny) [Bug: 2407]
6540 * mac/tkMacMenu.c: finished bug 3075 by changing the char values of
6541 what was checked (verified correctness on Mac).
6543 1999-12-13 Jeff Hobbs <hobbs@scriptics.com>
6545 * doc/canvas.n: added docs for items added by dash patch (-*dash*,
6546 -state, -active*, -disabled*, -offset, essentially rewrote the
6547 man patch for completely updated 8.3 canvas widget.
6548 * doc/entry.n: added docs for entry widget validation
6549 * doc/event.n: added docs for -warp
6550 * doc/text.n: doc'ed new -state value 'hidden'
6551 * doc/GetDash.3: (new file) man page explaining Tk_GetDash
6552 * generic/tkStubInit.c:
6553 * generic/tkDecls.h:
6554 * generic/tkIntXlibDecls.h:
6555 * generic/tkInt.decls: added XSetDashes and XWarpPointer
6556 * generic/tk.decls: added Tk_CreateSmoothMethod, and reserved
6558 * generic/tk.h: added Tk_SmoothMethod struct,
6559 state item to canvas record, #defines for item state,
6560 support for using old char*-based canvas item C creation
6561 procedures with -DUSE_OLD_CANVAS,
6562 Tk_Dash, Tk_TSOffset (-offsets) & Tk_Outline structs and #defs,
6563 decls for dash, outline and postscript routines
6564 * generic/tkBind.c: added support for Quadruple clicks, and added
6565 the -warp option to 'event' with pointer warping routines
6567 * generic/tkRectOval.c:
6568 * generic/tkCanvArc.c:
6569 * generic/tkCanvBmap.c:
6570 * generic/tkCanvImg.c:
6571 * generic/tkCanvLine.c:
6572 * generic/tkCanvPoly.c:
6573 * generic/tkCanvPs.c:
6574 * generic/tkCanvText.c:
6575 * generic/tkCanvUtil.c:
6576 * generic/tkCanvWind.c:
6577 * generic/tkCanvas.c:
6578 * generic/tkCanvas.h: Canvas and items received overhaul to with
6579 the addition of the dash patch (Nijtmans, et al) This includes
6580 objectification of the 'canvas' command, as well as support for
6581 (where appropriate) dashes in items, extended stipple support,
6582 state for all items, and postscript generation of images and
6583 windows. See the new canvas man page for related docs.
6584 * generic/tkEntry.c: added entry widget validation, see entry.n
6585 * generic/tkEvent.c: on simulated events, ButtonPress should
6586 be matched with ButtonRelease to be correct
6587 * generic/tkFont.c: corrected possible null reference
6588 * generic/tkFrame.c: made frame a Tcl_Obj based command
6589 * generic/tkGet.c: added TkGetDoublePixels
6590 * generic/tkImage.c: bug fixes from Img patch and new
6591 Tk_PostscriptImage and Tk_SetTSOrigin functions
6592 * generic/tkImgBmap.c: new ImgBmapPostscript function
6593 * generic/tkImgPhoto.c: new Tk_CreatePhotoOption, Tk_DitherPhoto
6594 * generic/tkInt.h: declarations for some new functions
6595 * generic/tkMessage.c: reworked relief drawing
6596 * generic/tkOldConfig.c: added TK_CONFIG_OBJS so old style
6597 ConfigureWidget calls can pass in Tcl_Obj arrays
6598 * generic/tkScrollbar.c:
6599 * generic/tkScrollbar.h: made -orient use an option table
6601 * generic/tkText.h: made -wrap and -state use option tables
6602 * generic/tkTextBTree.c:
6603 * generic/tkTextDisp.c:
6604 * generic/tkTextImage.c:
6605 * generic/tkTextMark.c:
6606 * generic/tkTextTag.c:
6607 * generic/tkTextWind.c: added support for -elide and -state hidden
6608 * generic/tkTrig.c: changed TkMakeBezierCurve to support returning
6609 the upper limit of points needed for spline
6610 * generic/tkUtil.c: new option table parsing routines
6611 * generic/tkWindow.c: init'ing of warp stuff, mouseButtonState
6613 related bug ids for the fixes:
6614 [Bug: 648 1541 1540 1779 2168 2311 2297 2340 2348 2578 3386]
6617 * tests/canvImg.test:
6618 * tests/canvPsArc.tcl:
6619 * tests/canvPsImg.tcl: (new file)
6620 * tests/canvRect.test:
6621 * tests/canvText.test:
6622 * tests/canvas.test:
6628 * tests/imgPhoto.test:
6631 * tests/scrollbar.test:
6632 * tests/select.test:
6634 * tests/textDisp.test:
6635 * tests/textTag.test:
6636 * tests/unixFont.test:
6637 * tests/unixWm.test:
6638 * tests/visual_bb.test:
6639 * tests/winClipboard.test: tests for the dash patch changes
6641 * unix/mkLinks: added GetDash.3 into the mkLink step
6643 * mac/tkMacDraw.c: mac still needs pointer warping routine
6644 * mac/tkMacXStubs.c:
6646 * win/tkWinPointer.c: added support for pointer warping and
6647 platform specific support for dash patch items
6649 1999-12-12 Jeff Hobbs <hobbs@scriptics.com>
6651 * generic/tkText.c: fixed bug in TextSearchCmd for multibyte chars
6652 (Darley) [Bug: 3839]
6654 * unix/aclocal.m4: added warning when configuring with
6655 --enable-threads that Tk may have problems
6657 1999-12-09 Jeff Hobbs <hobbs@scriptics.com>
6659 * generic/tkImgGIF.c: updated casting
6661 * win/makefile.vc: removed 16bit stuff, simplified makefile.
6663 1999-12-06 Scott Redman <redman@scriptics.com>
6665 * generic/tkMain.c: need to include tclInt.h for new hook
6666 functions that are internal-use-only.
6668 1999-12-06 Jeff Hobbs <hobbs@scriptics.com>
6670 * library/comdlg.tcl: removed tclVerifyInteger and tclSortNoCase,
6671 they weren't used, and were not actually correct
6675 * mac/tkMacWindowMgr.c: fixed greyed out menu items, handling of
6676 ... elipsis, font mapping problem, and enabled generated menu
6679 1999-12-02 Jeff Hobbs <hobbs@scriptics.com>
6682 * generic/tkWindow.c:
6683 * generic/tkCmds.c: converted Tk_DestroyCmd, Tk_LowerCmd and
6684 Tk_RaiseCmd to their ObjCmd equivalent.
6686 * library/msgbox.tcl: added color icons for tk_messageBox on Unix
6687 and Mac when tk_strictMotif isn't set. (Hipp)
6688 * library/tk.tcl: added window bounds checking to ::tk::PlaceWindow
6690 * tests/imgPPM.test: fixed test 2.2 to use -format ppm (since
6691 we know have GIF write capability)
6693 1999-12-01 Scott Redman <redman@scriptics.com>
6695 * generic/tkMain.c :
6697 * win/winMain.c: Added added hooks into the main() code for
6698 supporting TclPro and other "big" shells more easily without
6699 requiring a copy of the main() code.
6701 1999-11-29 Jeff Hobbs <hobbs@scriptics.com>
6703 * generic/tkImgGIF.c: added GIF writing that uses miGIF RLE
6704 [Bug: 2039, new patch]
6706 * library/entry.tcl: fixed up tkEntrySeeInsert (Nemthi)
6708 * generic/tkListbox.c: fixed 'get' of listbox to return a string
6709 when only one item is requested.
6711 * tests/clrpick.test:
6712 * tests/filebox.test: minor whitespace cleanup
6714 * library/tk.tcl: fixed missing $w in ::tk::PlaceWindow
6716 1999-11-24 Jeff Hobbs <hobbs@scriptics.com>
6718 * library/clrpick.tcl:
6719 * library/msgbox.tcl:
6721 * library/tkfbox.tcl:
6722 * library/xmfbox.tcl: fixed dialogs to center over -parent,
6723 added utility functions ::tk::PlaceWindow, ::tk::SetFocusGrab,
6724 ::tk::RestoreFocusGrab to tk.tcl to help
6726 1999-11-23 Eric Melski <ericm@scriptics.com>
6728 * tests/listbox.test: Added a test to check that the topIndex is
6729 update when items are removed from the listvar variable.
6731 * generic/tkListbox.c: Added a check the updates the topIndex when
6732 items are removed from the listvar variable.
6734 * tests/listbox.test: Added a test to check that the vertical
6735 scrollbar is updated when the listvar changes.
6737 * generic/tkListbox.c (ListboxListVarProc): added a check that
6738 sets the UPDATE_V_SCROLLBAR flag if the length of the listvar has
6741 1999-11-23 Jeff Hobbs <hobbs@scriptics.com>
6744 * generic/tkConfig.c: added support for TK_OPTION_DONT_SET_DEFAULT
6745 as equiv for TK_CONFIG_DONT_SET_DEFAULT
6746 * generic/tkListbox.c: added TK_OPTION_DONT_SET_DEFAULT to the
6749 1999-11-19 Jeff Hobbs <hobbs@scriptics.com>
6751 * generic/tkColor.c:
6752 * generic/tkColor.h: fixed Tk_NameOfColor to work correctly,
6753 with minor change to TkColor struct.
6755 * generic/tkConsole.c: added static declaration to
6756 ConsoleDeleteProc function (proto already had it)
6758 * win/tkWinInt.h: removed TkFontAttributes typedef (was
6759 redundant with tkFont.h).
6760 * win/tkWinPort.h: put #ifndef __GNUC__ around redefinition
6761 of str[n]casecmp, as cygwin uses the originals.
6762 * win/tkWinX.c: changed GetCurrentTime to GetTickCount (the
6763 former is deprecated). [Bug: 2053]
6765 1999-11-19 Eric Melski <ericm@scriptics.com>
6767 * tests/listbox.test: Added tests for itemcget and itemconfigure.
6769 * doc/listbox.n: Added documentation for -listvar option and for
6770 itemconfigure and itemcget commands.
6772 * generic/tkListbox.c: Added support for itemconfigure/itemcget
6773 listbox subcommands (addresses rfe #936)
6775 1999-11-17 Eric Melski <ericm@scriptics.com>
6777 * tests/listbox.test: Updated tests for new error messages.
6779 * generic/tkListbox.c: Improved error messages for bad -listvar's.
6781 * tests/listbox.test: Added tests for bad -listvar's.
6783 * generic/tkListbox.c: Added handlers for bad -listvar's (ie, bad
6786 * tests/listbox.test: Added tests for ListboxUpdateHScrollbar.
6788 * generic/tkListbox.c: Changed some old static buffers to base
6789 size on TCL_DOUBLLE_SPACE instead of (completely) hardcoding the size.
6791 * tests/listbox.test: New tests for -listvar functionality, and an
6792 odd extra case that wasn't covered before.
6794 * generic/tkListbox.c: Tests exposed some bugs, now fixed.
6796 1999-11-16 Eric Melski <ericm@scriptics.com>
6798 * tests/listbox.test: Fixed tests to comply with new objectified
6799 error messages. No -listvar specific tests yet.
6801 * win/tkWinDefault.h:
6802 * unix/tkUnixDefault.h:
6803 * mac/tkMacDefault.h: Added default value for -listvar option.
6805 * generic/tkWindow.c: Changed "listbox" mapping from old-school to
6806 new-school objectified command.
6808 * generic/tkListbox.c: Objectified listbox; added support for
6809 -listvar option. Converted internal structure to use a Tcl list
6810 object to store the data.
6812 * generic/tkInt.h: Changed reference to Tk_ListboxCmd to
6815 1999-11-09 Jeff Hobbs <hobbs@scriptics.com>
6817 * generic/tkGrid.c: changed Tcl_Alloc to ckalloc
6819 * generic/tkEntry.c: fixed C expr error in destroy of entry
6820 that could lead to 'malformed bucket chain' error
6822 * win/winMain.c: corrected winMain to not do a DebugBreak when
6823 returning an error message from the top level
6825 1999-10-30 Jeff Hobbs <hobbs@scriptics.com>
6827 * win/tkWinKey.c: fixed XKeysymToKeycode to handle mapping of
6828 symbolic keysyms (Left, Home, ...) with event generate
6830 * library/entry.tcl: change tkEntrySeeInsert to avoid the use
6831 of a while loop that could eat CPU tremendously. Behavior of
6832 moving the cursor at the right edge changes slightly (previously
6833 it tried to keep the cursor at the right edge, now it moves the
6834 cursor to a "central right" location - better IMHO).
6836 1999-10-28 Jeff Hobbs <hobbs@scriptics.com>
6839 * doc/CrtPhImgFmt.3:
6844 * generic/tkImage.c:
6845 * generic/tkImgBmap.c:
6846 * generic/tkImgGIF.c:
6847 * generic/tkImgPPM.c:
6848 * generic/tkImgPhoto.c:
6851 * generic/tkWindow.c:
6852 * tests/imgPhoto.test: added Img patch (Nijtmans) with docs,
6853 headers #def'd with USE_OLD_IMAGE. Upgrades image stuff to
6854 Tcl_Obj API, adds alpha channel (images are now 32 bpp)
6856 * makefile.vc: changed 'c:/program files' to c:/progra~1
6858 1999-10-19 Jeff Hobbs <hobbs@scriptics.com>
6860 * library/scrlbar.tcl: changed tkScrollButtonUp to check for
6861 existence of tkPriv(relief) in order to avoid spurious release
6864 * unix/Makefile.in: added ChangeLog to dist archive
6866 1999-09-24 Jeff Hobbs <hobbs@scriptics.com>
6872 * library/tk.tcl: up'd to 8.3a1
6874 * unix/Makefile.in: changed 'mkdir' to 'mkdir -p'
6876 * library/dialog.tcl: changed {Times 18} to {Times 12} for
6879 1999-09-16 Jeff Hobbs <hobbs@scriptics.com>
6881 * generic/tkFont.c: fixed processing of font options and error
6882 returned [Bug: 2075]
6884 * win/tkWinWm.c: fixed bug in 'wm deiconify' that raised the
6885 wrong toplevel, and changed it to not set focus on overridden
6888 1999-09-15 Jeff Hobbs <hobbs@scriptics.com>
6890 * unix/aclocal.m4: added fix for FreeBSD-[1-2] recognition [Bug: 2070]
6891 and fix to AIX-* to get ldAix right [Bug: 2624], fixed AIX
6892 version check (readjust from 8-21 fix) and several other config
6894 * mac/tkMacMenubutton.c:
6895 * unix/tkUnixMenubu.c: fixed permanently stippled menubutton image
6896 * win/tkWinButton.c: fixed possible pointer smash [Bug: 2733]
6898 1999-09-14 Jeff Hobbs <hobbs@scriptics.com>
6900 * win/tkWinMenu.c: fix for stack overrun in GetTextFace [Bug: 909]
6902 1999-09-01 Jeff Hobbs <hobbs@scriptics.com>
6905 * unix/tkUnixDraw.c: fixed header style for TkpDrawHighlightBorder
6906 * generic/tkCanvas.c: fixed GC error (bg <> fg) in tkCanvas.c
6907 (from code added to support TkpDrawHighlightBorder) [Bug: 2676]
6908 * unix/aclocal.m4: added -bnoentry to the AIX-* flags
6909 * library/msgbox.tcl: changed the behavior of tk_messageBox on
6910 Unix to be more Windows like in handling of <Return> and the
6912 * library/button.tcl:
6913 * library/clrpick.tcl:
6914 * library/comdlg.tcl:
6915 * library/console.tcl:
6916 * library/dialog.tcl:
6917 * library/entry.tcl:
6918 * library/focus.tcl:
6919 * library/listbox.tcl:
6921 * library/msgbox.tcl:
6922 * library/palette.tcl:
6923 * library/safetk.tcl:
6924 * library/scale.tcl:
6925 * library/scrlbar.tcl:
6926 * library/tearoff.tcl:
6929 * library/tkfbox.tcl:
6930 * library/xmfbox.tcl: updated commands to use [string] ops
6931 instead of expr equality operators
6933 1999-08-21 Jeff Hobbs <hobbs@scriptics.com>
6935 * unix/aclocal.m4: Changed AIX-4.[2-9] check to AIX-4.[1-9]
6938 1999-08-20 Jeff Hobbs <hobbs@scriptics.com>
6940 * generic/tkCursor.c: fixed bug in GetCursorFromObj that caused
6945 1999-08-13 Jim Ingham <jingham@cygnus.com>
6947 * mac/tkMacMenu.c: Tk_DrawChars ends up setting the menu background
6948 wrong. There is no clean way to stop it, so I use lower level routines
6949 here to draw the text.
6950 * mac/tkMacProjects.sea.hqx: Rearrange the projects so that the build
6951 directory is separate from the sources. Much more convenient!
6953 1999-08-10 Jeff Hobbs <hobbs@scriptics.com>
6955 * win/tkWinWm.c: changed "wm deiconify" on Windows to raise and
6956 force the focus on the deiconified window (behavioral change from
6957 8.1 to comply better with Windows style) [Bug: 1609]
6958 * doc/wm.n: clarified behavior of "wm deiconify".
6959 * generic/tkInt.decls: added TkSetFocusWin
6960 * generic/tkFocus.c: changed static SetFocus to TkSetFocusWin
6962 * library/clrpick.tcl:
6963 * library/console.tcl:
6964 * library/tk.tcl: fixed code where abbreviations where used
6965 in calling widget methods (confuses iWidgets) [Bug: 2422]
6967 1999-08-09 Jeff Hobbs <hobbs@scriptics.com>
6969 * library/button.tcl: cleaned up programming (config -> configure)
6970 and fixed Windows relief bug [Bug: 664]
6971 * library/entry.tcl: changed Entry C/C/P to not use global data
6972 (now uses tkPriv(data)) [Bug: 1475]
6973 * library/listbox.tcl: fixed extended mode script error [Bug: 866]
6974 * doc/options.n: clarified that -troughcolor doesn't work on Windows
6975 * doc/wm.n: fixed wm positionfrom docs [Bug: 2284]
6977 1999-08-01 Jeff Hobbs <hobbs@scriptics.com>
6979 * mac/tkMacPort.h: wrapped panic in #ifndef panic to avoid
6980 compiler errors when used with stubs-#defines, from Vince Darley.
6983 1999-07-31 Scott Redman <redman@scriptics.com>
6985 * xlib/X11/Xlib.h: Remove XFillRectangle since it is now in the
6988 1999-07-30 Jeff Hobbs <hobbs@scriptics.com>
6990 * generic/tkInt.decls: Added stub entry for XFillRectangle [Bug: 2446]
6992 1999-07-30 <redman@scriptics.com>
6994 * win/makefile.vc: Corrected building threaded tktest.exe on
6995 Windows. Needed to link in .obj files from Tcl, needs to change
6996 later so that code is in Tk and doesn't require a Tcl build.
6997 Also added runtest target.
6999 1999-07-29 <redman@scriptics.com>
7001 * generic/tkConsole.c: Allow tcl to open CON and NUL, even for std
7002 channels. Checking for bad/unusable std channels was moved to Tk
7003 since its only purpose was to check whether to use the Tk Console
7004 Window for the std channels. [Bug: 2393 2392 2209 2458]
7006 * win/Makefile.in: Corrected building threaded tktest.exe on
7007 Windows. Needed to link in .obj files from Tcl, needs to change
7008 later so that code is in Tk and doesn't require a Tcl build.
7010 1999-07-22 <redman@scriptics.com>
7012 * Changed version to 8.2b2
7014 * win/tkWinPort.h: Block out include of sys/stat.h in order to
7015 build extensions with MetroWerks compiler for Win32. [Bug: 2385]
7017 * unix/Makefile.in: Need to make install-sh executable before
7018 calling (with chmod +x). [Bug: 2413]
7020 * library/menu.tcl: Applied patch from Jeff Hobbs to fix typo.
7023 1999-07-21 <redman@scriptics.com>
7025 * unix/Makefile.in: Add Windows configure script to distribution.
7027 1999-07-16 <redman@scriptics.com>
7030 * win/Makefile.in: Copy the prolog.ps from the generic directory
7031 for install-libraries.
7033 * unix/aclocal.m4: Check for Alpha/Linux to set the IEEE flag to
7034 the compiler to be -mieee. Patch from Don Porter.
7036 1999-07-08 <stanton@scriptics.com>
7038 * tests/unixSelect.test: Fixed broken test.
7040 * win/makefile.vc: Added special case target to ensure that
7041 tkStubLib.obj is built with -DSTATIC_BUILD.
7043 * win/tkWinX.c (TkWinChildProc): Changed to pass
7044 WM_WINDOWPOSCHANGED through to DefWindowProc to make OpenGL
7045 sub-windows happy. This allows Windows to generate the WM_SIZE
7046 and WM_MOVE messages.
7048 1999-07-08 <redman@scriptics.com>
7050 * unix/configure.in: Fix Tk stub lib file names and flags.
7052 1999-06-30 <redman@scriptics.com>
7054 * generic/tkGrid.c: removed deprecated functions (applied patch
7055 from Jan Nijtmans). [Bug: 2080]
7057 * generic/tkImgGIF.c:
7058 * generic/tkImgPPM.c:
7059 * generic/tkImgPhoto.c: Applied patch to allow Img extension to
7060 work with 8.2, from Jan Nijtmans. [Bug: 2068]
7062 * win/tkWinWm.c: Applied patch from Don Porter to prevent the
7063 windows code from calling the Tcl functions when the stub table
7064 has not been initialized in TkWinWmCleanup. [Bug: 2269]
7066 1999-06-16 <wart@scriptics.com>
7068 * unix/configure.in:
7070 * unix/aclocal.m4: Numerous build changes to make Tk conform to
7071 the proposed TEA spec
7073 * tkConsole.c: changed some variable types from (int) to (size_t)
7074 to prevent compiler warnings. Cast return value from strlen()
7075 to (int) in one place for the same reason.
7077 1999-06-03 <stanton@scriptics.com>
7079 * unix/tkUnixSelect.c:
7080 * tests/unixSelect.test:
7081 * generic/tkSelect.c: Fixed selection code to handle Unicode data
7082 in COMPOUND_TEXT and STRING selections. [Bug: 1791]
7084 1999-06-02 <stanton@scriptics.com>
7086 * generic/tkIntXlibDecls.h:
7087 * xlib/X11/Xlib.h: Added Mac specific defines to help with
7090 * generic/tkFont.c: lint
7092 1999-06-01 <stanton@scriptics.com>
7094 * unix/tkUnixSelect.c: Improved I18N selection support.
7095 COMPOUND_TEXT is converted to/from iso2022, and STRING is
7096 converted to/from iso8859-1. There are still a few loose ends to
7097 tie up before this is completely done.
7099 * unix/tkUnixFont.c: Eliminated redundant case folding code.
7101 * generic/tkFont.c: Eliminated use of isupper/tolower in favor of
7104 1999-05-24 <stanton@scriptics.com>
7106 * generic/tkStubLib.c:
7107 * generic/tkStubInit.c:
7108 * generic/tkIntXlibDecls.h:
7109 * generic/tkIntPlatDecls.h:
7110 * generic/tkIntDecls.h:
7111 * generic/tkInt.decls:
7112 * generic/tkConsole.c: Various changes to try to get the Mac
7115 1999-05-21 <stanton@scriptics.com>
7117 * win/tkWinClipboard.c: Fixed clipboard code to handle lack of
7118 CF_LOCALE information (e.g. from command.com).
7120 1999-05-20 <redman@scriptics.com>
7122 * library/console.tcl: Changed copyright string to read 1999
7123 Scriptics Corp. in wish console about box.
7125 1999-05-19 <redman@scriptics.com>
7127 * generic/tk.h: Add extern "C" block around entire header file for
7128 C++ compilers to fix linkage issues. Submitted by Don Porter and
7131 1999-05-18 <stanton@scriptics.com>
7133 * tests/winClipboard.test:
7134 * win/tkWinClipboard.c: Fixed clipboard code so it handles Unicode
7135 data properly on Windows NT and 95. [Bug: 1791]
7137 1999-05-07 <stanton@scriptics.com>
7139 * library/menu.tcl: Fixed bug where tk_popup fails when called too
7140 quickly. [Bug: 2009]
7142 1999-04-30 <stanton@scriptics.com>
7144 * Changed version number to 8.1.1.
7146 1999-04-30 <stanton@scriptics.com>
7148 * Merged changes from 8.1.0 branch:
7150 * generic/tkDecls.h:
7151 * generic/tkIntDecls.h:
7152 * generic/tkIntPlatDecls.h:
7153 * generic/tkIntXlibDecls.h:
7154 * generic/tkPlatDecls.h:
7155 * generic/tkStubInit.c: Changed to avoid the need for forward
7156 declarations in stub initializers. Added extern "C" blocks around
7157 stub table pointer declarations so the stubs can be used from C++
7160 * generic/tkInt.decls: Added TkClipBox, XDrawSegments, and
7161 XForceScreenSaver to stubs.
7163 * generic/tkStubLib.c: Reordered declarations to avoid
7164 circularities and forward references.
7166 * generic/tkStubInit.c: Added includes for Mac.
7168 * generic/tkMenubutton.c: lint
7170 * generic/tkEntry.c: Fixed bad option table entry.
7172 * generic/tkImgBmap.c:
7173 * generic/tkImgPPM.c:
7174 * generic/tkImgPhoto.c: Set the -translation and -encoding options
7175 to binary for image files. (reported by Marco Gazzetta)
7177 1999-04-23 <stanton@scriptics.com>
7179 * generic/tkInt.decls: Added TkClipBox, XDrawSegments, and
7180 XForceScreenSaver to stubs.
7182 * generic/tkStubLib.c: Reordered declarations to avoid
7183 circularities and forward references.
7185 * generic/tkStubInit.c: Added includes for Mac.
7187 * generic/tkMenubutton.c: lint
7189 * generic/tkEntry.c: Fixed bad option table entry.
7191 1999-04-22 <redman@scriptics.com>
7193 * generic/tkImgBmap.c:
7194 * generic/tkImgPPM.c:
7195 * generic/tkImgPhoto.c: Set the -translation and -encoding options
7196 to binary for image files. (reported by Marco Gazzetta)
7198 1999-04-20 <redman@scriptics.com>
7200 * xlib/X11/Xlib.h: changed definition of Status type to use a
7201 typedef instead of a #define to avoid conflicting with the cygwin
7202 win32 headers [Bug 1804]
7204 1999-04-15 <stanton@scriptics.com>
7206 * Merged 8.1 branch into the main trunk
7208 1999-04-09 <redman@scriptics.com>
7210 * generic/tkWindow.c: Fixed deadlock situation when the Initialize()
7211 function returns without releasing the mutex. Found while testing
7212 Bug 1700, during safe.test (tk).
7214 1999-04-06 <stanton@scriptics.com>
7216 * generic/tkMain.c (Tk_MainEx): Changed to reset result before
7217 calling Tcl_EvalFile. The ensures that error messages will be
7220 * tests/winfo.test: Enabled tests that previously failed.
7222 1999-04-05 <stanton@scriptics.com>
7224 * library/bgerror.tcl:
7225 * library/button.tcl:
7226 * library/clrpick.tcl:
7227 * library/console.tcl:
7228 * library/dialog.tcl:
7229 * library/entry.tcl:
7230 * library/focus.tcl:
7231 * library/listbox.tcl:
7233 * library/msgbox.tcl:
7234 * library/palette.tcl:
7235 * library/scale.tcl:
7236 * library/scrlbar.tcl:
7237 * library/tearoff.tcl:
7239 * library/tk.tcl: Lots of minor performance improvements
7240 contributed by Jeffrey Hobbs. [Bug: 1118]
7242 * win/tkWinWm.c (Tk_WmCmd): Fixed bad code in tracing
7243 suboption. [Bug: 1519]
7245 * library/tkfbox.tcl: Change to restore button text after an
7246 action to avoid the sticky "Open" button in a save dialog.
7249 * library/entry.tcl: Fixed so selection is returned using the
7250 -show character during cut and paste operations. [Bug: 1687]
7252 1999-04-5 <redman@scriptics.com>
7254 * generic/tkInt.decls:
7255 * generic/tkIntXlibDecls.h:
7256 * generic/tkStubInit.c:
7259 * xlib/X11/Xutil.h: Added more X functions to the Win & Mac stubs
7262 1999-04-05 <stanton@scriptics.com>
7264 * unix/configure.in:
7265 * generic/tkCanvPs.c: Added configure test for pw_gecos field in
7266 pwd to support OS/390. [Bug: 1724]
7268 1999-04-02 <stanton@scriptics.com>
7271 * generic/tkText.c: Fixed handling of Unicode in text searches.
7272 The -count option was returning byte counts instead of character
7273 counts. [Bug: 1056, 1148, 1666]
7275 1999-04-01 <redman@scriptics.com>
7279 * generic/tkStubInit.c:
7280 * generic/tkWindow.c:
7282 * win/makefile.vc: Tk now uses its own stub library to store
7283 pointers to its own stubs table.
7285 * doc/dde.n: (removed)
7288 * tests/winSend.test:
7289 * generic/tkPlatDecls.h:
7290 * win/tkWinSend.c: Removed the DDE-based send and dde commands,
7291 they were causing Tk to lock up when any window on the system was
7292 not processing its message queue (more importantly, windows in Tcl
7293 and Tk). The send command needs to be rewritten to prevent the
7294 deadlock situation (soon). The dde command is being pushed into
7295 its own package and will provide almost all of the capabilities
7296 that send did before (using a "dde eval" command), not yet
7299 1999-03-31 <redman@scriptics.com>
7301 * win/tkWinSend.c: Modified dde/send code to work properly on
7302 Win95/Win98. String lengths are not returned properly by DDE, so
7303 NULL terminate all strings going in and ignore the string length
7304 coming back out. Do not destroy handles until all necessary work
7305 on those handles (and child handles) is done.
7307 1999-03-30 <stanton@scriptics.com>
7309 * generic/tkWindow.c (Tk_DestroyWindow): Image handlers are now
7310 finalized before the font subsystem since complex image handlers
7311 may contain references to fonts (e.g. Tix compound images).
7314 1999-03-29 <stanton@scriptics.com>
7316 * doc/MeasureChar.3:
7319 * generic/tkCanvText.c:
7320 * generic/tkEntry.c:
7322 * generic/tkListbox.c:
7323 * generic/tkMessage.c:
7325 * unix/tkUnixButton.c:
7326 * unix/tkUnixFont.c:
7327 * unix/tkUnixMenu.c:
7329 * win/tkWinMenu.c: Standardized text layout and font interfaces
7330 so they are consistent with respect to byte versus character
7331 oriented indices. The layout functions all manipulate character
7332 oriented values while the lower level measurement functions all
7333 operate on byte oriented values. This distinction was not clear
7334 and so the functions were being used improperly in a number of
7335 places. [Bug: 1053, 747, 749, 1646]
7337 * generic/tk.decls: Eliminated uses of C++ STL types string and
7338 list from declarations.
7340 * generic/tkFont.c: Changes to named fonts were not being
7341 propagated in some cases. [Bug: 1144]
7344 * generic/tkInt.decls: Added XParseColor to xlib stub
7348 * generic/tkBitmap.c (BitmapInit): Eliminated use of Tk_Uid's in
7349 bitmaps. Added a few CONST declarations.
7351 1999-03-29 <redman@scriptics.com>
7353 * unix/configure.in:
7356 * generic/tkDecls.h:
7357 * generic/tkIntDecls.h:
7358 * generic/tkIntPlatDecls.h:
7359 * generic/tkPlatDecls.h:
7360 * generic/tkIntXlibDecls.h: Removed stub functions. Always use the
7361 Tcl stubs when building with --enable-shared.
7364 1999-03-26 <redman@scriptics.com>
7366 * generic/tkTextIndex.c:
7367 * tests/testIndex.test: Avoid looking past the beginning of the
7368 array storing data for the text widget (.t index end-2c). Added
7369 test case to check for the bug. [Bug 991]
7371 * generic/tkConsole.c: Copy static strings into a Tcl_DString
7372 before passing to Tcl_Eval, in case the compiler puts static
7373 strings into read-only memory.
7375 1999-03-26 <suresh@scriptics.com>
7377 * unix/configure.in:
7378 --nameble-shared is now the default and builds Tk as a shared
7379 library; specify --disable-shared to build a static Tk library
7382 1999-03-26 <surles@scriptics.com>
7384 * library/menu.tcl: Fixed bug reported by Bryan Oakley in the
7385 menubutton bindings. There was a false assumption that there was
7386 always a menu attached to the button. [Bug 1116]
7388 1999-03-26 <redman@scriptics.com>
7390 * unix/configure.in: Removed --enable-tcl-stub. Linking Tk to Tcl
7391 stubs is causing too many problems when linking executables like wish.
7392 Until the Tk is a fully loadable extension, linking against the Tcl
7393 stubs is not supported in Tk.
7395 1999-03-19 <redman@scriptics.com>
7397 * generic/tkBitmap.c:
7398 * generic/tkCursor.c:
7399 * generic/tkGC.c: When creating hash tables that key off of XID
7400 handles, make sure to pass TCL_ONE_WORD_KEYS. XIDs are guaranteed
7401 to be 32bit numbers, although on some 64bit systems (including 64bit
7402 Solaris 7) they are packed into a 64bit value where the upper 32bits
7403 are zero. The normal method of sizeof(XID)/sizeof(int) causes the
7404 hash table code to assume that the XID is a pointer to an array of
7405 two ints, which it is not. Tk now supports 64bit Solaris 7.
7407 1999-03-17 <stanton@scriptics.com>
7410 * generic/tk.h: Changed to use TCL_BETA_RELEASE macro, and fixed
7411 so this works in rc files.
7416 * unix/configure.in:
7418 * README: Updated version to 8.1b3.
7420 1999-03-14 <stanton@GASPODE>
7422 * unix/configure.in: Added missing stub related definitions.
7424 * unix/Makefile.in: Install tkDecls.h in addition to tk.h.
7426 * generic/tkStubLib.c: Added flags to ensure we are using Tcl
7429 1999-03-11 <stanton@GASPODE>
7431 * generic/tkInt.decls: Added reserved slot for XSetDashes for use
7434 1999-03-10 <redman@scriptics.com>
7441 * mac/tkMacXStubs.c:
7442 * mac/tkMacAppInit.c:
7443 * mac/tkMacCursor.c:
7452 * generic/tkInt.decls:
7453 * generic/tkDecls.h:
7454 * generic/tkPlatDecls.h:
7455 * generic/tkIntDecls.h:
7456 * generic/tkIntPlatDecls.h:
7457 * generic/tkIntXlibDecls.h:
7458 * generic/tkStubs.c:
7459 * generic/tkPlatStubs.c:
7460 * generic/tkIntStubs.c:
7461 * generic/tkIntPlatStubs.c:
7462 * generic/tkIntXlibStubs.c:
7463 * generic/tkStubInit.c:
7464 * generic/tkStubLib.c:
7467 * generic/tkConfig.c:
7468 * generic/tkConsole.c:
7469 * generic/tkCursor.c:
7471 * generic/tkImgPhoto.c:
7474 * generic/tkPointer.c:
7475 * generic/tkTextDisp.c:
7476 * generic/tkWindow.c:
7478 * unix/tkUnixPort.h:
7480 * unix/configure.in:
7481 * unix/tkConfig.sh.in:
7484 * unix/tkUnixDraw.c:
7485 * unix/tkUnixFont.c:
7486 * unix/tkUnixMenubu.c: Stubs implementation for 8.1. Tk_Main() is
7487 replaced with a macro which calls Tk_MainEx(). Tk can link to the Tcl
7488 stubs library, wish links directly to Tcl and Tk. Use
7489 --enable-tcl-stubs to link Tk to the Tcl stubs library (Unix), on
7490 by default on Windows. Exported all public functions through the
7491 stubs mechanism (see the *.decls files) and many of the internal
7492 functions. Most of the changes dealt with shifting around the
7493 function declarations in the header files. Mac code may not
7494 compile, but it shouldn't take much work to fix this.
7496 * mac/tkMacMenu.c: Added dummy TkpMenuThreadInit for Mac to be
7497 consistent with Unix and Windows versions.
7499 1999-03-08 <lfb@scriptics.com>
7501 * win/tkWinWm.c: Toplevel class no longer shared between
7504 * win/tkWinX.c: Multiple threads no longer share the same
7505 TkDisplay structure. Required because TkDisplay stores much
7506 thread-specific data for a given thread.
7508 * win/tkWinSend.c: Moved application instance handle out
7509 out thread-local storage. DDE was failing to initialize
7510 when the instance handles were different between threads.
7512 * win/makefile.vc: Added THREADDEFINES for building with
7517 * unix/tkUnixMenu.c: Added TkpMenuThreadInit for initializing
7518 thread-specific Menu state.
7520 1999-03-01 <redman@scriptics.com>
7523 * win/tkWinPointer.c:
7524 * win/tkWinInt.h: Fix "focus -force" for Windows. The Win32 API
7525 function SetForegroundWindow() does not work unless the window
7526 handle is a toplevel window (a Windows toplevel). The handle
7527 being passed was a Tk toplevel, which is a child of the Windows
7530 1999-02-26 <redman@scriptics.com>
7532 * win/cat.c: Remove this file, use the one in the Tcl source directory.
7534 * win/makefile.vc: Remove the wishc.exe from the default targets. Add
7535 a separate console-wish target to build it. The need for a
7536 console-wish will go away soon, so we don't want to encourage its
7539 1999-02-25 <redman@scriptics.com>
7541 * win/tkWinWm.c: Properly initialize the tsdPtr->firstWindow field.
7543 * win/cat.c: Code for cat32.exe, copied from the Tcl sources. Required
7544 in order to run the test suite from the makefile
7546 * win/winMain.c: Add main() for a console-based wishc.exe, which meant
7547 adding code to disable the call to Tk_ConsoleInit().
7549 * generic/tkConsole.c: Check the standard handles before creating the
7550 new standard channels. This allows a windows app that has stdin,
7551 stdout, or stderr to correctly connect to them.
7553 * generic/tkMain.c: Add a proper check for the interactive mode, since
7554 the standard channels may actually be connected in windows mode or
7555 even in the console-based wish.
7557 * win/makefile.vc: Add targets for wishc.exe (console-based wish) and
7558 cat32.exe (for testing). Fix the test suite target so it can be run
7559 from the makefile (which can happen since the standard handles have
7562 1999-02-12 <lfb@scriptics.com>
7564 * generic/tkMenuButton.h:
7565 * generic/tkMenuButton.c:
7566 * mac/tkMacMenubutton.c:
7567 * mac/tkMacDefault.h
7568 * unix/tkUnixMenubu.c: Eliminated Tk_Uids used by -state option.
7569 * unix/tkUnixDefault.h
7570 * win/tkWinDefault.h
7574 * generic/tkScale.h:
7575 * generic/tkScale.c:
7576 * generic/tkWindow.c:
7577 * unix/tkUnixScale.c:
7578 * unix/tkUnixDefault.h:
7579 * unix/tkWinDefault.h:
7580 * mac/tkMacDefault.h: Objectified scale widget.
7582 * win/tkWinX.c: Removed Thread-specific data from process
7583 initialization code that was stopping the Tk Dll from
7586 1999-02-11 <stanton@GASPODE>
7590 * unix/configure.in:
7593 * win/makefile.vc: Updated version to 8.1b2.
7595 * unix/tkUnixSend.c: Fixed one more Tcl_*ObjVar instance.
7597 1999-02-04 <stanton@GASPODE>
7599 * Various cleanup related to the Tcl_Eval and Tcl_ObjSetVar
7602 INTEGRATED PATCHES FROM 8.0.5b2:
7604 * win/tkWinMenu.c (TkpDestroyMenu): Changed so modalMenuPtr is
7605 cleared when it is being destroyed.
7607 * generic/tkImgPhoto.c: Changed so color tables are freed
7608 immediately instead of being delayed. This ensures that color
7609 tables are properly disposed at process exit.
7611 * library/prolog.ps: Changed string that determines font height to
7612 include European character with an umlaut.
7614 * generic/tkImgBmap.c (ImgBmapConfigureInstance): If an image
7615 mask changed but ended up with the same XID, the GC failed to be
7616 updated and so the new mask was not used. [Bug: 970]
7618 * generic/tkFocus.c (SetFocus): Changed so focus window is always
7619 set if -force is specified. This fixes the problem on Windows
7620 where Tk does not activate the window if it already has focus.
7622 * generic/tkConsole.c: Fixed so errors in console eval are
7623 reported properly. Eliminated duplicate result messages. [Bug: 973]
7625 * win/tkWinWm.c: Changed so windows that aren't resizable don't
7626 have resize handles and the zoom box is disabled.
7629 * win/tkWinPointer.c: Changed to cancel the mouse timer when a
7630 user initiated move/resize loop begins.
7632 * unix/configure.in: TK_LD_SEARCH_FLAGS was set incorrectly if
7633 SHLIB_LD_LIBS='${LIBS}', and shared linking is performed through
7634 the C compiler. Systems affected are Linux, MP-RAS and NEXTSTEP,
7635 but also with gcc on many more systems. [Bug: 908]
7637 * win/makefile.vc: First stab at install target. Fixed quoting so
7638 paths with spaces work.
7641 * tests/unixWm.test: Better cleanup of temporary files.
7643 * mac/tkMacAppInit.c:
7645 * generic/tkAppInit.c:
7646 * win/winMain.c: Changed some EXTERN declarations to extern
7647 since they are not defining exported interfaces. This avoids
7648 generating useless declspec() attributes and makes the windows
7651 * library/menu.tcl (tkMenuFind): Changed so keyboard shortcuts
7652 will only be found in the current toplevel. Previously, they
7653 might be found in menus attached to other toplevels that might not
7654 even be mapped. [Bug: 924]
7656 * generic/tkCanvLine.c: Changed to treat zero width lines like
7657 they have width 1 for purposes of selection. [Bug: 925]
7659 * win/tkWinFont.c (Tk_MeasureChars): Added a workaround for a bug
7660 in GetTextExtentExPoint on Win NT 4.0/Japanese. [Bug: 1006]
7662 * unix/tkUnixSend.c (Tk_SetAppName): Fixed uninitialized memory
7663 access bug. [Bug: 919]
7665 1999-1-28 <stanton@GASPODE>
7667 * generic/tkGrid.c: Fixed bug in "grid forget" that failed to cancel
7668 pending idle handlers, resulting in a crash in a few odd cases.
7670 1999-01-06 <lfb@JUSTICE>
7672 * generic/tk.h, generic/tkGet.c, generic/tkConfig.c,
7673 * generic/tkOldConfig.c, generic/tkEntry.c, generic/tkMenubutton.c,
7674 * generic/tkMenubutton.h, generic/tkScale.c, generic/tkScale.h,
7675 * generic/tkTextDisplay.c, generic/tkText.c, unix/tkUnixMenubu.c,
7676 * unix/tkUnixScale.c, mac/tkMacMenu.c, mac/tkMacMenubutton.c,
7678 Removed global Tk_Uids dealing with "-state" configuration option
7679 and added new TK_CONFIG_STATE configSpec that doesn't use
7682 1998-12-11 === Tk 8.1b1 Release ===
7684 1998-12-11 <stanton@GASPODE>
7686 * generic/tkMain.c (Tk_Main): Fixed improper command line encoding
7689 1998-12-08 <stanton@GASPODE>
7691 * win/tkWinClipboard.c (TkSelGetSelection, TkWinClipboardRender):
7692 Changed to handle multibyte characters properly. [Bug: 935]
7694 1998-12-07 <stanton@GASPODE>
7696 * library/xmfbox.tcl (tkMotifFDialog_Create): In the cached case,
7697 the data array was not being initialized with the correct set of
7700 1998-12-4 <welch@SAGE>
7702 * Changed patchLevel to 8.1b1
7704 * generic/tkMenu.c (ConfigureMenuCloneEntries): The -menu configuration
7705 option was being incorrectly specified as just "menu".
7707 1998-11-30 <stanton@GASPODE>
7709 * generic/tkButton.c (ConfigureButton): The error result was
7710 getting lost when restoring configuration options. [Bug: 619]
7712 1998-11-25 <stanton@GASPODE>
7714 * unix/tkUnixFont.c (GetFontAttributes): Initialize an unspecified
7715 family to an empty string.
7716 (FontMapLoadPage): if the font included characters below 32, the
7717 index computation was incorrect because the range was shifted up
7719 (CreateClosestFont): check for empty locale as well as NULL.
7721 * generic/tkFont.c (TkFontParseXLFD): initialize charset to
7722 iso8859-1 if no charset is specified.
7724 * mac/tkMacHLEvents.c (OdocHandler): added conversion from
7725 external string to UTF [Bug: 869]
7727 * integrated tk8.0.4 changes.
7729 * generic/tkBind.c: fixed deletion order bug where a crash would
7730 result if a binding deleted "."
7732 * generic/tkMenu.c (MenuWidgetObjCmd): disabled menu entries were
7733 getting reenabled whenever the mouse passed over the entry [Bug: 860]
7735 * unix/tkUnixMenu.c (TkpComputeStandardMenuGeometry): hidemargin
7736 option was not honored properly in menus [Bug: 859]
7738 1998-11-24 <stanton@GASPODE>
7740 * tkMacMenu.c, tkUnixMenu.c, tkWinMenu.c, tkMenuDraw.c, tkMenu.h,
7741 * tkMenu.c: Backed out the previous fix for bug 620 and
7742 eliminated a bunch of code that created unnecessary objects.
7743 Changed back to using internal types instead of objects for many
7744 configuration options. There are many more fixes like this that
7745 could be made, but some require a little restructuring of the
7746 code. In any case the leaks are fixed and there is a lot less
7747 allocation happening. [Bug: 620]
7749 1998-11-19 <stanton@GASPODE>
7751 * tkMenu.c (DestroyMenuEntry): fixed memory leaks [Bug: 620]
7753 * tkWinX.c (GetTranslatedKey): fixed bad code merge
7755 * tkWinWm.c, tkWinMenu.c: fixed titles and menus so they properly
7756 display Unicode [Bug: 819]