1 2002-12-27 David Gravereaux <davygrvy@pobox.com>
3 * generic/tkText.h: ANSI unfriendly typedef for TkTextBTree
4 repaired for C++ compilers.
6 2002-12-27 Joe English <jenglish@users.sourceforge.net>
8 * unix/tkUnixWm.c (WaitForEvent): process Map and Unmap events
9 as well as Configure events during WaitFor{Configure|Map}Notify.
10 Fixes [Bug 578569] (WaitForMapNotify could process Map and Unmap
11 events out of order, making Tk think a window was unmapped when
14 2002-12-18 Todd M. Helfter <tmh@purdue.edu>
16 * doc/label.n: Fixed documentation of the -compound option to
17 the label widget. The option was simply missing from the
20 2002-12-17 Donal K. Fellows <fellowsd@cs.man.ac.uk>
22 * doc/photo.n: Fixed documentation of the put subcommand to no
23 longer talk about files and to mention that you can use colour
24 names for working with solid colours. [Bug 640026]
26 2002-12-13 Don Porter <dgp@users.sf.net>
28 * generic/tkMain.c (Tk_Main): Call on Tcl*StartupScript*() routines
29 to store the startup script, if any. [Bug 616245].
31 2002-12-10 David Gravereaux <davygrvy@pobox.com>
33 * win/makefile.vc: tclThreadTest.obj not required to link
34 tktest.exe [Bug 651396]
36 2002-12-08 Jeff Hobbs <jeffh@ActiveState.com>
38 * generic/tkEntry.c (ConfigureEntry): keep a flag to indicate when
39 a var is traced to prevent double-traces caused by configuring the
40 widget in traces with validation on. (dejong)
42 2002-12-07 Jeff Hobbs <jeffh@ActiveState.com>
44 * generic/tkInt.decls: add TkWinSetHINSTANCE decl
45 * generic/tkIntPlatDecls.h: regen
46 * generic/tkStubInit.c: regen
47 * win/tkWinInit.c (TkpInit): While init and cleanup aren't correct
48 * win/tkWinX.c (TkWinXInit): in DllMain, we had to specify the
49 * win/tkWin32Dll.c (DllMain): true HINSTANCE or the resources of a
50 dynamic Tk weren't being loaded correctly. Created a new function
51 TkWinSetHINSTANCE for this purpose.
53 2002-12-06 Jeff Hobbs <jeffh@ActiveState.com>
55 * win/tkWinX.c (TkWinXInit): Move cleanup into an exit handler
56 * win/tkWin32Dll.c (DllMain): to ensure that it will be called
57 * win/tkWinWm.c (TkWinWmCleanup): without having to unload the dll.
58 Also reset the static int initialized on cleanup to allow reinit.
60 2002-12-01 Mo DeJong <mdejong@users.sourceforge.net>
62 * tests/event.test (_keypress, _text_ind_to_x_y): Force focus to
63 widget in _keypress method to avoid problems with window managers
64 that use focus follows mouse. [Bug 526209]
66 2002-12-01 Mo DeJong <mdejong@users.sourceforge.net>
68 * tests/wm.test: Add wm-transient-6.3 to check that a transient
69 remains withdrawn when it is first withdrawn and then turned into
72 * win/tkWinWm.c: Replace WM_TRANSIENT_WITHDRAWN with WM_WITHDRAWN
73 and set this flag whenever a window is explicitly withdrawn. This
74 fixes the test case added above. [Bug 644356]
76 2002-11-22 Jeff Hobbs <jeffh@ActiveState.com>
78 * tests/textDisp.test:
79 * generic/tkTextDisp.c (TkTextSeeCmd): handle see for unmapped
80 text displays. [Bug #641778]
82 2002-11-19 Jim Ingham <jingham@apple.com>
84 * macosx/tkMacOSXScrlbr.c (TkpDisplayScrollbar): If the
85 scrollbar width is set to 12 or less (but 12 is what you
86 should use) use the small metric scrollbar.
88 (UpdateControlValues): Fix thinko in setting off AUTO_ADJUST for
89 the place geometry manager.
91 2002-11-19 Jeff Hobbs <jeffh@ActiveState.com>
93 * unix/Makefile.in: add macosx/*.tcl (buildTkConfig.tcl in
94 particular) to the dist target.
96 2002-11-14 Mo DeJong <mdejong@users.sourceforge.net>
98 * generic/tkWindow.c (Tk_DestroyWindow, DeleteWindowsExitProc):
99 Add TkHalfdeadWindow type and halfdeadWindowList to keep track of
100 windows that were only partially deallocated before a call to
101 exit. Finish cleaning up these windows in DeleteWindowsExitProc.
102 Keep track of cleanup status in Tk_DestroyWindow so that a window
103 with a Destroy binding which calls exit will get fully destroyed.
104 * tests/window.test: Add Tk_DestroyWindow tests for an assortment
105 of half dead window cases. [Bug 630533]
107 2002-11-10 Daniel Steffen <das@users.sourceforge.net>
109 * macosx/Wish.pbproj/project.pbxproj: fixed erroneous
110 removal of libtkstub before Wish was built.
112 2002-11-07 Mo DeJong <mdejong@users.sourceforge.net>
114 * tests/unixWm.test: Add short delay to test unixWm-51.7
115 to account for raise/lower changes in TIP 107. This allows
116 the test case to pass under Window Maker on Linux.
118 2002-11-07 Peter Spjuth <peter.spjuth@space.se>
121 * generic/tkPlace.c: place info did not return all settings,
122 and didn't make sure the result was a proper list.
123 Put '-in' first in result to be more consistent with how
124 grid/pack info behaves. [Bug #635025][Bug #532022]
126 2002-11-07 Daniel Steffen <das@users.sourceforge.net>
128 * unix/Makefile.in: added macosx/README to dist target.
129 * macosx/Wish.pbproj/project.pbxproj: fix to 'wish' script
130 to allow it to work when not installed into '/'.
132 2002-11-06 Mo DeJong <mdejong@users.sourceforge.net>
134 * unix/configure: Regen.
135 * unix/tcl.m4: Update from Tcl.
136 * win/configure: Regen.
137 * win/configure.in: Check that AR, RANLIB, and RC
138 are found on the path when building with gcc.
140 2002-11-04 Daniel Steffen <das@users.sourceforge.net>
142 * macosx/Wish.pbproj/project.pbxproj: added Wish linker flag
143 -headerpad_max_install_names to allow use of 'install_name_tool'.
144 fixed tkConfig.sh generation and redo_prebinding in the case where
145 Tk is not installed alongside Tcl.
147 2002-11-03 David Gravereaux <davygrvy@pobox.com>
149 * win/winMain.c (Tcl_AppInit): Calls Registry_Init() and
150 Dde_Init() when STATIC_BUILD and TCL_USE_STATIC_PACKAGES macros
153 * win/makefile.vc: linkexten option now sets the
154 TCL_USE_STATIC_PACKAGES macro which also adds the registry and
155 dde static lib files to the link of the shell. [Patch 479697]
157 * win/rules.vc: Matches the one from Tcl.
159 * win/buildall.vc.bat: More useful commentary.
161 2002-11-01 Andreas Kupries <andreask@activestate.com>
163 * win/makefile.vc (TCLREGLIBNAME): Updated to registry 1.1.
165 2002-10-29 Daniel Steffen <das@users.sourceforge.net>
167 * macosx/README: added info on new package searching in
168 Frameworks directories.
170 2002-10-22 Jeff Hobbs <jeffh@ActiveState.com>
172 *** 8.4.1 TAGGED FOR RELEASE ***
174 * changes: updated for 8.4.1 release
176 2002-10-21 Daniel Steffen <das@users.sourceforge.net>
178 * macosx/README: revised according to Jim's suggestions
179 * macosx/tkMacOSXAppInit.c: use standard PATH_MAX from <limits.h>
181 2002-10-18 Jeff Hobbs <jeffh@ActiveState.com>
183 * win/winMain.c (WinMain, main): remove obsolete SetMessageQueue call
185 * win/configure: Regen.
186 * win/tcl.m4 (SC_CONFIG_CFLAGS): Check for bug in Cygwin version
187 of windres and work around that case by passing a POSIX path
188 instead of a Windows native path. One can't always pass a POSIX
189 path because the mingw native toolchain accepts only Windows
190 native paths. (dejong)
192 * win/tkWinPort.h: define OPEN_MAX only if not defined.
193 [Patch #625472] (howell)
195 2002-10-18 Daniel Steffen <das@users.sourceforge.net>
197 * mac/tkMacAppInit.c: removed tcltest dependency.
198 [Bug #592639] (porter)
200 2002-10-17 Jeff Hobbs <jeffh@ActiveState.com>
202 * tests/imgPhoto.test:
203 * generic/tkImgPhoto.c (ImgPhotoConfigureMaster): fix arg handling
204 for missing -format or -data options. [Bug #624974]
206 * tests/text.test: properly return the number of
207 * unix/tkUnixFont.c (ControlUtfProc): bytes consumed. [Bug #624732]
209 2002-10-17 Daniel Steffen <das@users.sourceforge.net>
211 * macosx/README: info specific to building and running
212 TclTk on Mac OS X, answers to tcl-mac list FAQs.
213 * macosx/Makefile: permission fix after embedded install.
214 * macosx/Wish.pbproj/project.pbxproj: after install, fix
215 permissions of uninstalled products.
217 2002-10-17 Daniel Steffen <das@users.sourceforge.net>
219 * macosx/Wish.pbproj/project.pbxproj: added TEXT document
220 type to plist so that files can be dragged onto Wish Shell.
222 * macosx/tkMacOSXInt.h:
223 * macosx/tkMacOSXInit.c:
224 * macosx/tkMacOSXFont.c: added private proc
225 TkMacOSXUseAntialiasedText() to enable/disable quickdraw
226 text antialiasing where available, default is enabled.
227 Added a linked boolean ::tk::mac::antialiasedtext with
228 write trace to allow control of antialiasing from tcl.
230 2002-10-16 Vince Darley <vincentdarley@users.sourceforge.net>
232 * macosx/tkMacOSXMenu.c: fix to accelerators shown in menus
233 with non-alphanumeric keys.
234 * macosx/tkMacOSXKeyEvent.c:
235 * macosx/tkMacOSXKeyboard.c: applied first patch from [Patch
236 #622582] to fix some of [Bug #616988]. Further work is needed
237 in this area, but this will let foreign keyboards at least work
240 2002-10-15 Jeff Hobbs <jeffh@ActiveState.com>
243 * unix/tcl.m4: add AIX-5 ppc build support. Remove unused
247 * win/tcl.m4: Add --enable-shared=mem support.
249 2002-10-10 Peter Spjuth <peter.spjuth@space.se>
252 * generic/tkGrid.c: The grid size was not updated properly
253 when removing a widget from a grid. [Bug #621241] (forssen)
255 2002-10-10 Jeff Hobbs <jeffh@ActiveState.com>
257 * tests/canvPs.test: tests for canvas embedded window ps generation
258 * generic/tkCanvWind.c (CanvasPsWindow): removed dead code loop.
259 * generic/tkCanvas.h: moved TkColormapData struct to tkCanvPs.c
260 * generic/tkCanvPs.c (TkImageGetColor): corrected bogus use of
261 TkColormapData on Windows (Windows now requires RGB pixel data
263 * win/tkWinImage.c (XGetImage, XGetImageZPixmap): added support
264 for generating ps for embedded widgets on canvases on Windows,
265 tested for 8, 16, 24 and 32-bit depths (XGetImageZPixmap not used).
267 * library/tk.tcl: simplified the adding of extra <ISO_Left_Tab>
268 and <hpBackTab> events to <<PrevWindow>>.
270 2002-10-09 Jeff Hobbs <jeffh@ActiveState.com>
272 * unix/README: doc'ed --enable-symbols options.
273 * unix/Makefile.in: comment docs
274 * unix/configure: regen
275 * unix/tcl.m4: replaced SC_ENABLE_MEMDEBUG with a more intelligent
276 SC_ENABLE_SYMBOLS that takes yes|no|mem|all as options now.
278 2002-10-09 Don Porter <dgp@users.sf.net>
280 * generic/tk.h: Added reminder comment to edit
281 macosx/Wish.pbproj/project.pbxproj when version number changes.
283 2002-10-09 Daniel Steffen <das@users.sourceforge.net>
285 * macosx/Makefile: don't remove tclsh after building embedded.
287 * macosx/Wish.pbproj/project.pbxproj: bumped version to 8.4.1;
288 added missing library/mkpsenc.tcl to framework.
290 2002-10-09 Daniel Steffen <das@users.sourceforge.net>
292 * generic/tkInt.decls(tkIntXlib): added XQueryTree declaration for
293 mac & aqua, since it's now called from ParentXId via Tk_HandleEvent.
294 * generic/tkIntXlibDecls.h:
295 * generic/tkStubInit.c: regen.
296 * mac/tkMacXStubs.c: added XQueryTree stub
298 * mac/tkMacEmbed.c (TkpUseWindow): check that container window
299 has -container option set (sync with other platforms).
305 * mac/tkMacWm.c: CONSTification.
307 * mac/tkMacProjects.sea.hqx: added tkStyle.c and tkUndo.c to
310 2002-10-09 Donal K. Fellows <fellowsd@cs.man.ac.uk>
312 * generic/tkImgPhoto.c (ImgPhotoSetSize): Only error-out if we
313 fail to allocate a non-empty buffer; getting a NULL when we
314 allocate an empty buffer is no problem since nothing will look at
315 the value anyway. [Bug 619544]
316 Also tidied up file to take into account the fact that we're using
317 32 bits per pixel in the master to accommodate the alpha channel
320 2002-10-08 Jeff Hobbs <jeffh@ActiveState.com>
322 * tests/winButton.test: add option clear to top to prevent option
323 leakage from other tests causing problems. [Bug #582382]
325 * generic/tkPanedWindow.c (Tk_PanedWindowObjCmd): leave the
326 DestroyPanedWindow proc to free the pwPtr, add a Preserve
327 reference to the pwPtr->tkwin.
328 (DestroyPanedWindow): Release the pwPtr->tkwin.
330 * generic/tkFocus.c (TkFocusFilterEvent): Ignore event if we are
331 focusing into a dead window. [Bug #588831] (griffin)
333 2002-10-02 Jim Ingham <jingham@apple.com>
335 * macosx/tkMacOSXScrlbr.c (TkpDisplayScrollbar): Put the Tk scrollbar
336 pointer into the control reference data for the Mac scrollbar, so we
337 can get it out again in the ScrollbarActionProc.
339 2002-10-02 Jeff Hobbs <jeffh@ActiveState.com>
341 * generic/tkText.c (TextBlinkProc): don't blink the cursor unless
342 it is visible. [Bug #616791] [Patch #614474] (bonfield)
344 * tests/entry.test: added entry-20.7
345 * generic/tkEntry.c (EntryTextVarProc): check if the entry is
346 being deleted before handling an associated textvariable.
347 [Bug #607390 #617446]
349 2002-10-01 Donal K. Fellows <fellowsd@cs.man.ac.uk>
351 * tests/unixSelect.test (unixSelect-1.1[89]): Altered these tests
352 to work around [Bug #616923]
353 * unix/tkUnixSelect.c (SelRcvIncrProc,TkSelPropProc): It turns out
354 a much simpler and more robust solution is possible if we leverage
355 Tcl's encoding engine by using the same code path as for the
356 normal string selection. It might be a bit slower, but it should
357 be a lot more correct. [Bug #614650]
359 2002-09-30 Jeff Hobbs <jeffh@ActiveState.com>
361 * tests/panedwindow.test: added panedwindow-28.[12]
362 * generic/tkPanedWindow.c (PanedWindowCmdDeletedProc):
363 (Tk_PanedWindowObjCmd): when destroying the panedwindow, destroy
364 the proxy before the parent to avoid dependency conflicts.
367 2002-09-30 Donal K. Fellows <fellowsd@cs.man.ac.uk>
369 * tests/unixSelect.test: Test for various things that can fail to
371 * unix/tkUnixSelect.c (TkSelPropProc,SelRcvIncrProc): Incremental
372 transfers of UTF8_STRING selections should now work; Tk will now
373 tag them with the right size and only transfer complete UTF8
374 characters. Previously, things only worked when the transfer
375 could only happen in one go, and even then not always. [Bug 614650]
377 * doc/bind.n: Doc-fix to mention that %A substitutes UNICODE
378 characters rather than ASCII ones. Tk's done this ever since 8.1
379 in any case; after all, it is the right thing to do.
381 2002-09-27 Don Porter <dgp@users.sf.net>
383 * README: Bumped to version 8.4.1 to avoid confusion
384 * generic/tk.h: of CVS snapshots with release 8.4.0.
390 * unix/configure: autoconf
393 2002-09-26 Jeff Hobbs <jeffh@ActiveState.com>
395 * unix/configure: regen.
396 * unix/tcl.m4: improve AIX-4/5 64bit compilation support.
398 * unix/Makefile.in: add macosx subdir to dist target.
399 Do not generate .Z, only .gz and .zip in alldist target.
401 2002-09-18 Mumit Khan <khan@nanotech.wisc.edu>
403 Added basic Cygwin support.
405 * win/tcl.m4 (SC_PATH_TCLCONFIG): Support one-tree build.
406 (SC_PATH_TKCONFIG): Likewise.
407 (SC_PROG_TCLSH): Likewise.
408 (SC_CONFIG_CFLAGS): Assume real Cygwin port and remove -mno-cygwin
409 flags. Add -mwin32 to extra_cflags and extra_ldflags.
410 Remove ``-e _WinMain@16'' from LDFLAGS_WINDOW.
411 * win/configure: Regenerate.
413 * win/tkWinPort.h (tchar.h): Do not include on Cygwin.
414 (_T): Define for Cygwin.
415 * win/winMain.c (main): Conditionally define.
417 2002-09-26 Daniel Steffen <das@users.sourceforge.net>
419 * macosx/Makefile: preserve environment value of INSTALL_ROOT.
420 When embedding only use deployment build. Force relink before
421 embedded build to ensure new linker flags are picked up.
423 * macosx/buildTkConfig.tcl (new):
424 * macosx/Wish.pbproj/project.pbxproj: synthesize tkConfig.sh
425 based on tclConfig.sh in Tcl.framework and tkConfig.sh.in.
426 Add symbolic links to debug lib, stub libs and tkConfig.sh
427 in framework toplevel. Made tkIntXlibDecls.h a public header
428 since Headers/X11/Xlib.h includes it. Install wish8.4 script
429 that runs "Wish Shell.app" and corresponding wish link.
430 Use tcl headers from built Tcl.framework instead of from tcl
433 * macosx/tkMacOSXPort.h: added missing standard unix includes
434 and defines, similarly to tkUnixPort.h.
435 * macosx/tkMacOSXNotify.c: removed dependency on internal tcl
439 * unix/install-sh: copied support for 'install-strip' target
440 over from tcl/unix/{Makefile.in,install-sh}
442 2002-09-22 Jim Ingham <jingham@apple.com>
444 * macosx/tkMacOSXScrlbr.c (UpdateControlValue): HiliteControl
445 doesn't give the proper "nothing to scroll" look on Mac OS X.
446 You have to set the min value greater than the max value to
449 2002-09-15 Mo DeJong <mdejong@users.sourceforge.net>
451 * unix/configure: Regen.
452 * unix/tcl.m4: Update from Tcl.
453 * unix/tkUnixEvent.c (TkpCloseDisplay): Use PEEK_XCLOSEIM
454 to examine the input context queue before invoking
455 XCloseIM. Generate an assert if there is an input
456 context that has not been freed.
459 2002-09-13 Andreas Kupries <andreas_kupries@users.sourceforge.net>
461 * generic/tk.h: Moved RC_INVOKED down so that tcl.h is still
462 included when running the resource compiler. <tcl.h> excludes the
463 unnecessary parts on its own. This reenables the Windows build. It
464 failed because the non-inclusion of tcl.h caused the resource
465 compiler to miss some vital macro definitions (TCL_FINAL_RELEASE,
468 2002-09-12 Daniel Steffen <das@users.sourceforge.net>
471 * mac/tkMacApplication.r:
472 * mac/tkMacLibrary.r:
473 * mac/tkMacResource.r:
474 * macosx/tkAboutDlg.r:
475 * macosx/tkMacOSXApplication.r:
476 * macosx/tkMacOSXLibrary.r:
477 * macosx/tkMacOSXResource.r: unified use of the two equivalent
478 resource compiler header inclusion defines RC_INVOKED and
479 RESOURCE_INCLUDED, now use RC_INVOKED throughout.
481 * macosx/tkMacOSXAppInit.c: improved detection of Wish startup
482 by the finder (by checking if stdin is /dev/null), in which
483 case we want to bring up the Tk console window.
485 * macosx/tkMacOSXHLEvents.c: added 'rapp' apple event handler.
487 2002-09-12 Daniel Steffen <das@users.sourceforge.net>
489 * macosx/Wish.pbproj/project.pbxproj: reference & install
490 tk/generic/prolog.ps instead of tk/library/prolog.ps.
492 2002-09-10 Daniel Steffen <das@users.sourceforge.net>
494 * macosx/Wish.pbproj/project.pbxproj: added backwards
495 compatibility for OSX 10.1 ProjectBuilder 2.0.
497 2002-09-10 Daniel Steffen <das@users.sourceforge.net>
499 * unix/Makefile.in: added DYLIB_INSTALL_DIR variable for Darwin
500 and set it to default value ${LIB_RUNTIME_DIR}
501 * unix/tcl.m4 (Darwin): use DYLIB_INSTALL_DIR instead of
502 LIB_RUNTIME_DIR in the -install_name argument to ld.
503 * unix/configure: regen.
505 * macosx/Wish.pbproj/project.pbxproj:
506 * macosx/Makefile: added support for building Tcl as an embedded
507 framework, i.e. using an dyld install_name containing
508 @executable_path/../Frameworks via the new DYLIB_INSTALL_DIR
509 unix/Makefile variable.
511 2002-09-10 Jeff Hobbs <jeffh@ActiveState.com>
513 *** 8.4.0 TAGGED FOR RELEASE ***
515 2002-09-09 Jeff Hobbs <jeffh@ActiveState.com>
517 * macosx/tkMacOSXNotify.c (Tk_MacOSXSetupTkNotifier): corrected
518 Mac Jaguar event loop issue.
520 * library/tk.tcl: use command instead of control on Aqua bindings.
521 Force dialogs to appear below fixed native Mac menubar.
522 * macosx/tkMacOSXKeyEvent.c:
523 * macosx/tkMacOSXKeyboard.c: Keypress/release events for pure
524 modifier keys were not being passed to Tk.
525 Deadkey presses were inserting null characters into text windows.
526 Now they do nothing. (Still not ideal, but better than before!)
527 * macosx/tkMacOSXMenu.c: Allow more than 200 menus to exist -
529 * macosx/tkMacOSXMouseEvent.c: Bad interactions between floating
530 windows and ordinary ones. Ensure that local<->global coordinate
531 transformations are wrt to the correct window.
532 * macosx/tkMacOSXWm.c: Better error msg for 'wm attributes'.
533 Remove crash in 'wm transient'.
534 Add 'noActivates' and 'noUpdates' flags to unsupported command.
535 [Patch #606658] (darley)
537 * library/xmfbox.tcl (::tk::MotifFDialog_ActivateSEnt): corrected
538 msgcat code with XPG specifier. [Patch #606719] (miller)
540 2002-09-06 Don Porter <dgp@users.sf.net>
542 * tests/unixWm.test (unixWm-50.3): Constrained test that hangs
545 2002-09-05 Daniel Steffen <das@users.sourceforge.net>
547 * macosx/Wish.pbproj/project.pbxproj: added overlooked missing
548 TK_PATCH_LEVEL version bump to 8.4.0.
550 2002-09-04 Andreas Kupries <andreas_kupries@users.sourceforge.net>
552 * win/Makefile.in (install-libraries): Added code section to
553 install the message catalogs. Copied same section from
554 unix/Makefile.in and adapted it to the slightly different
557 2002-09-03 Jeff Hobbs <jeffh@ActiveState.com>
559 * library/button.tcl: further restrict buttons to not resetting
560 the "original" relief if it has changed in the interim. This
561 prevents code that simulated overrelief buttons from not working
562 in 8.4. [Bug #604270]
564 2002-09-03 Daniel Steffen <das@users.sourceforge.net>
566 * macosx/Wish.pbproj/project.pbxproj: Bumped version number to
567 8.4.0 and updated copyright info.
569 2002-09-03 Vince Darley <vincentdarley@users.sourceforge.net>
571 * macosx/tkMacOSXWm.c: fix to 'wm attributes' error-handling bug.
573 2002-09-03 Don Porter <dgp@users.sf.net>
575 * changes: Updated for 8.4.0 release
577 2002-09-02 Jeff Hobbs <jeffh@ActiveState.com>
579 * tests/cursor.test: reverted 2002-08-31 change for OS X to use
580 'heart' cursor because 'arrow' on windows has a pre-skewed use
583 * tests/button.test: added button-14.1
584 * win/tkWinButton.c (TkpComputeButtonGeometry): correct Win button
585 sizing to be equal for one-line buttons with -height of 0 or 1, as
586 well as -height 0 buttons with empty text and no image, which
587 should be the same as single-line text buttons. [Bug #565485]
589 * library/button.tcl (::tk::ButtonLeave): correctly restore state
590 of button to normal for unix bindings. [Bug #597920]
592 * doc/tk.n: added tk windowingsystem docs.
595 * unix/tkUnixWm.c: remove possible 2-second delay in 'raise'.
596 [Patch #601518] (english) TIP #107
598 * unix/tcl.m4: add support for 64-bit builds on HP-11 with gcc.
599 * unix/configure.in: make sure to substitute LD_LIBRARY_PATH_VAR.
600 * unix/configure: regend
602 * README: Bumped version number to 8.4.0
611 * generic/tkWindow.c: made 'tk' available in safe interpreters,
612 but only the caret and windowingsystem subcommands may be called.
613 * tests/safe.test (safe-1.2): noted that tk is now available in
614 safe interps, but not the appname/scaling subcommands.
616 * tests/tk.test (tk-1.2): noted new tk windowingsystem subcommand
618 2002-08-31 Daniel Steffen <das@users.sourceforge.net>
620 * unix/tcl.m4: update from Tcl
622 * unix/Makefile.in: import of TK_SHLIB_LD_EXTRAS for Tk library
623 specific linker settings. Added use of new LD_LIBRARY_PATH_VAR.
625 * unix/configure: regen
627 2002-08-31 Daniel Steffen <das@users.sourceforge.net>
629 *** macosx-8-4-branch merged into the mainline [tcl patch #602770] ***
632 * generic/tkInt.decls: added new "aqua" specific entries to the
633 stubs tables. Changed all "unix" entries to "x11" to allow us to
634 distinguish and build both "aqua" on MacOSX and "x11" on MacOSX.
636 * generic/tk.h: added a #ifnded RESOURCE_INCLUDED so that tk.h can
637 be passed to the resource compiler.
639 * generic/tkCmds.c (Tk_TkObjCmd): added [tk windowingsystem]
640 subcommand: returns "x11" when running on X11, "win32" on Windows,
641 "classic" on MacOS9 and "aqua" on MacOSX Aqua (i.e. Carbon)
643 * generic/tkFont.c (TkFontGetFirstTextLayout): new private function
644 returning the first chunk of a Tk_TextLayout, i.e. until the first
645 font change on the first line (or the whole first line if there is
646 no such font change).
648 * generic/tkMain.c: made Tcl_ThreadDataKey static
650 * library/demos/puzzle.tcl: fixed button metrics for aqua
652 * tests/cursor.test: check for presence of arrow cursor instead of
655 * xlib/xcolors.c: changed xColors static initialization to more
658 * macosx/Wish.pbproj/jingham.pbxuser (new):
659 * macosx/Wish.pbproj/project.pbxproj (new): project for Apple's
662 * macosx/Makefile (new): simple makefile for building the project
663 from the command line via the ProjectBuilder tool 'pbxbuild'.
665 * macosx/tkMacOSXAppInit.c (new): macosx specific AppInit looking
666 for a AppMain.tcl file in its bundled Resources/Scripts folder. If
667 present, argv[1] is set to that file and the Scripts folder is
668 added to the auto_path. This allows tk apps to embed scripts within
669 their bundle directory structure.
671 * macosx/tkMacOSXInit.c (new): macosx adapted version of
672 tkUnixInit.c: we initialize & cache the Carbon native encoding
673 (e.g. 'macRoman') and try to find the tk script library files
674 inside Tk packaged as a framework.
676 * macosx/tkMacOSXNotify.c (new): new macosx specific merged
677 Carbon/select-based notifier.
679 * macosx/tkMacOSXEvent.c (new):
680 * macosx/tkMacOSXEvent.h (new):
681 * macosx/tkMacOSXKeyEvent.c (new):
682 * macosx/tkMacOSXMouseEvent.c (new):
683 * macosx/tkMacOSXWindowEvent.c (new): new macosx specific event
684 handling functionality.
686 * macosx/tkMacOSX.h (new):
687 * macosx/tkMacOSXBitmap.c (new):
688 * macosx/tkMacOSXButton.c (new):
689 * macosx/tkMacOSXClipboard.c (new):
690 * macosx/tkMacOSXColor.c (new):
691 * macosx/tkMacOSXConfig.c (new):
692 * macosx/tkMacOSXCursor.c (new):
693 * macosx/tkMacOSXDefault.h (new):
694 * macosx/tkMacOSXDialog.c (new):
695 * macosx/tkMacOSXDraw.c (new):
696 * macosx/tkMacOSXEmbed.c (new):
697 * macosx/tkMacOSXFont.c (new):
698 * macosx/tkMacOSXHLEvents.c (new):
699 * macosx/tkMacOSXInt.h (new):
700 * macosx/tkMacOSXKeyboard.c (new):
701 * macosx/tkMacOSXMenu.c (new):
702 * macosx/tkMacOSXMenubutton.c (new):
703 * macosx/tkMacOSXMenus.c (new):
704 * macosx/tkMacOSXPort.h (new):
705 * macosx/tkMacOSXRegion.c (new):
706 * macosx/tkMacOSXScale.c (new):
707 * macosx/tkMacOSXScrlbr.c (new):
708 * macosx/tkMacOSXSubwindows.c (new):
709 * macosx/tkMacOSXTest.c (new):
710 * macosx/tkMacOSXUtil.c (new):
711 * macosx/tkMacOSXUtil.h (new):
712 * macosx/tkMacOSXWm.c (new):
713 * macosx/tkMacOSXWm.h (new):
714 * macosx/tkMacOSXXStubs.c (new): macosx ports of classic mac Tk
715 implementation in tk/mac.
717 * macosx/tkMacOSXSend.c (new): only send to local interp
718 implemented currently.
720 * macosx/tkMacOSXDebug.h (new):
721 * macosx/tkMacOSXDebug.c (new): new macosx specific functions for
722 debugging MacOS events, regions, etc.
724 * macosx/tkAboutDlg.r (new):
725 * macosx/tkMacOSXApplication.r (new):
726 * macosx/tkMacOSXCursors.r (new):
727 * macosx/tkMacOSXLibrary.r (new):
728 * macosx/tkMacOSXMenu.r (new):
729 * macosx/tkMacOSXResource.r (new):
730 * macosx/tkMacOSXXCursors.r (new):
731 * macosx/tclets.r (new): sources for Rez resource compiler.
733 * macosx/Wish.icns (new): Wish application icon.
740 * generic/tkPointer.c:
742 * generic/tkSelect.c:
743 * generic/tkStubLib.c:
746 * generic/tkWindow.c:
751 * xlib/X11/Xutil.h: added #includes and #ifdefs for macosx
753 * library/bgerror.tcl:
754 * library/button.tcl:
755 * library/console.tcl:
756 * library/dialog.tcl:
758 * library/listbox.tcl:
760 * library/msgbox.tcl:
761 * library/scrlbar.tcl:
762 * library/spinbox.tcl:
765 * library/demos/menu.tcl:
766 * library/demos/menubu.tcl:
767 * library/demos/widget: check [tk windowingsystem] instead of
768 and/or in addition to $tcl_platform(platform).
772 * mac/tkMacWm.c: added missing CONSTification
774 * generic/tkIntDecls.h:
775 * generic/tkIntPlatDecls.h:
776 * generic/tkIntXlibDecls.h:
777 * generic/tkPlatDecls.h:
778 * generic/tkStubInit.c: regen
780 2002-08-27 D. Richard Hipp <drh@hwaci.com>
782 * doc/checkbutton.n: [Bug 582457] Fix the -offrelief option so
783 * doc/radiobutton.n: that when -offrelief is flat and -relief is
784 * mac/tkMacButton.c: sunken and -overrelief is raised, buttons
785 * unix/tkUnixButton.c: work look toolbar buttons under Windows.
786 * win/tkWinButton.c: See also: TIP #82.
788 2002-08-26 Don Porter <dgp@users.sf.net>
790 * win/Makefile.in: Removed dependence on the (parts of) the
791 * win/winMain.c: tcltest executable on Windows. It was not
792 used, and the dependency complicated the Makefile. [Bug 592638].
794 2002-08-20 Don Porter <dgp@users.sf.net>
796 * README: Bumped version number to 8.4b3 to distinguish
797 * generic/tk.h: HEAD from the 8.4b2 release.
802 * unix/configure: autoconf
805 * generic/tk.h: Added compile-time check that the tcl.h header file
806 #included by Tk 8.4 is one from Tcl 8.4. This is needed to be sure
807 that new #defines like CONST84 are available. [Bug 597432].
809 2002-08-16 Jeff Hobbs <jeffh@ActiveState.com>
811 * unix/Makefile.in (install-binaries): simplified pkgIndex.tcl
812 file created on installation.
813 * win/Makefile.in (install-binaries): corrected and simplified
814 creation of pkgIndex.tcl file on installation.
816 2002-08-14 Vince Darley <vincentdarley@users.sourceforge.net>
819 * win/makefile.vc: broken compilation and link from changes
821 * win/tkWinTest.c: CONST problem resolved.
823 2002-08-13 Jeff Hobbs <jeffh@ActiveState.com>
825 * library/button.tcl: change the bindings to use Priv($w,relief)
826 instead of just Priv(relief). This ensures that neighboring
827 buttons don't confuse (over)relief settings.
829 2002-08-13 Reinhard Max <max@suse.de>
831 * unix/tkUnixSend.c (Tk_SetAppName): Fixed a compiler warning.
833 2002-08-12 Donal K. Fellows <fellowsd@cs.man.ac.uk>
835 * library/demos/image2.tcl: Tweaked the behaviour of the directory
836 box on resize, as resizing of the overall window tends to be
837 common given the sample images.
839 2002-08-08 Mo DeJong <mdejong@users.sourceforge.net>
841 * unix/tkUnixWm.c (WmTransientCmd): Apply fix for
842 wm transient assertion error that was applied
843 to tkWinWm.c for Tk Bug #592201.
845 2002-08-08 Mo DeJong <mdejong@users.sourceforge.net>
847 * tests/wm.test: Add deleteWindows at start of
848 new transient tests so they do not fail if the
849 toplevels already exist.
850 * unix/tkUnixWm.c: Revert patch for Tk Bug #592201
851 which incorrectly removed numTransients member.
853 2002-08-08 Joe English <jenglish@users.sourceforge.net>
857 * tests/wm.test: Fix for Tk Bug #592201 "wm transient fails with
858 two masters"; fixes panic after a transient window is reassigned
859 to new master and either master is subsequently destroyed.
861 2002-08-08 Don Porter <dgp@users.sf.net>
863 * tests/unixWm.test: Corrected packaging of unixWm-50.3 so that
864 [setupbg] and [cleanupbg] always balance, no matter what tests
867 2002-08-08 Reinhard Max <max@suse.de>
869 * unix/Makefile.in: Fixed typos in DISTNAME, and ZIPNAME.
871 2002-08-08 Jeff Hobbs <jeffh@ActiveState.com>
873 *** 8.4b2 TAGGED FOR RELEASE ***
875 * generic/tkButton.c (TkButtonWorldChanged): added GCFont handling
876 to the disabledGc of buttons when compound != none. The drawing
877 appears to be incorrect across platforms still. [Bug #477740]
879 * generic/tkImgGIF.c (FileReadGIF): fixed -from handling for gifs
880 [Bug #467524] (obermeier)
882 2002-08-07 Jeff Hobbs <jeffh@ActiveState.com>
884 * generic/tkCanvUtil.c (TkSmoothParseProc): recognize the built-in
885 bezier method by name. [Bug #578654]
886 * doc/canvas.n: update to note that -smooth really doesn't take
887 or return just booleans.
889 * win/tkWinMenu.c (TkpSetWindowMenuBar): fixed logic bug in when
890 to idle call ReconfigureWindowsMenu.
892 * doc/GetBitmap.3: removed doc refs to deprecated
893 Tk_GetBitmapFromData. [Bug #590379]
895 * generic/tkPanedWindow.c (Tk_PanedWindowObjCmd):
896 * library/panedwindow.tcl: changed class from PanedWindow to
897 Panedwindow to not conflict with existing bwidgets, but also to be
898 more regular with other names used in the core.
900 * tests/panedwindow.test: added -text foobar to some test buttons
901 to enable correct testing of panedwindow across platforms.
904 * win/tkWinDialog.c: enabled use of the updated native Windows
905 directory browser (tk_chooseDirectory). This does require
906 shell32.dll v4.71 or greater. [Patch #468139]
909 * win/tcl.m4: added shell32 to libs for updated native Windows
910 tk_chooseDirectory dialog.
912 2002-08-06 Donal K. Fellows <fellowsd@cs.man.ac.uk>
914 * generic/tkPanedWindow.c (RESIZE_PENDING): Separated out flag for
915 indicating that a resize needs to be issued.
916 (PanedWindowReqProc): Do the old behaviour when the panedwindow is
917 not mapped; easiest way of making the test suite pass while still
918 preserving improved behaviour in the face of children whose size
919 is not known immediately.
921 2002-08-06 Don Porter <dgp@users.sf.net>
923 * tests/defs.tcl: removed file. No longer needed now that Tk is
924 using the tcltest package to do its testing.
926 2002-08-05 Don Porter <dgp@users.sf.net>
928 * win/tkWinFont.c: Additional changes to fix CONST warnings on
929 * win/tkWinWM.c: Windows due to latest patch. Tks Vince Darley.
931 * doc/3DBorder.3: Applied companion patch for Tcl Patch 585105,
932 * doc/BindTable.3: updating Tk to use Tcl 8.4's fully CONST-ified
933 * doc/ConfigWidg.3: interface, and fully CONSTifying Tk at the
934 * doc/CrtImgType.3: same time.
936 * doc/DeleteImg.3: This patch includes purging Tk of its last
937 * doc/FindPhoto.3: direct access to interp->result. [Bug 589853]
939 * doc/GetBitmap.3: The substantial changes include copying
940 * doc/GetCapStyl.3: event sequence strings into Tcl_DStrings
941 * doc/GetClrmap.3: in tkBind.c, and copying [text] indices into
942 * doc/GetColor.3: Tcl_DStrings because parsing them involved
943 * doc/GetCursor.3: overwriting them. If this causes performance
944 * doc/GetFont.3: trouble, that can be resolved by further
945 * doc/GetImage.3: converting them to Tcl_Obj's.
947 * doc/GetJustify.3: The #defines USE_NON_CONST and USE_COMPAT_CONST
948 * doc/GetOption.3: have the same effect for Tk as they do for Tcl.
949 * doc/GetRelief.3: (They actually change tcl.h)
961 * generic/tkBitmap.c:
962 * generic/tkButton.c:
963 * generic/tkCanvArc.c:
964 * generic/tkCanvBmap.c:
965 * generic/tkCanvImg.c:
966 * generic/tkCanvLine.c:
967 * generic/tkCanvPoly.c:
968 * generic/tkCanvPs.c:
969 * generic/tkCanvText.c:
970 * generic/tkCanvUtil.c:
971 * generic/tkCanvWind.c:
972 * generic/tkCanvas.c:
973 * generic/tkCanvas.h:
974 * generic/tkClipboard.c:
977 * generic/tkConfig.c:
978 * generic/tkConsole.c:
979 * generic/tkCursor.c:
987 * generic/tkImgBmap.c:
988 * generic/tkImgPhoto.c:
989 * generic/tkInt.decls:
991 * generic/tkIntDecls.h:
992 * generic/tkIntPlatDecls.h:
993 * generic/tkListbox.c:
995 * generic/tkMenubutton.c:
996 * generic/tkMessage.c:
997 * generic/tkOldConfig.c:
998 * generic/tkOption.c:
999 * generic/tkRectOval.c:
1000 * generic/tkScale.c:
1001 * generic/tkScrollbar.c:
1002 * generic/tkSelect.c:
1003 * generic/tkStyle.c:
1007 * generic/tkTextBTree.c:
1008 * generic/tkTextDisp.c:
1009 * generic/tkTextImage.c:
1010 * generic/tkTextIndex.c:
1011 * generic/tkTextMark.c:
1012 * generic/tkTextTag.c:
1013 * generic/tkTextWind.c:
1015 * generic/tkVisual.c:
1016 * generic/tkWindow.c:
1017 * mac/tkMacConfig.c:
1018 * mac/tkMacCursor.c:
1021 * unix/tkUnixConfig.c:
1022 * unix/tkUnixCursor.c:
1023 * unix/tkUnixEmbed.c:
1024 * unix/tkUnixFont.c:
1025 * unix/tkUnixSelect.c:
1026 * unix/tkUnixSend.c:
1028 * win/tkWinConfig.c:
1029 * win/tkWinCursor.c:
1034 2002-08-02 Donal K. Fellows <fellowsd@cs.man.ac.uk>
1036 * generic/tkPanedWindow.c (DestroyPanedWindow): Idle calls need to
1037 be deleted on destruction of the window, or things can *really* go
1040 2002-07-31 Donal K. Fellows <fellowsd@cs.man.ac.uk>
1042 * generic/tkPanedWindow.c (PanedWindowReqProc): Postpone pane
1043 arrangement until idle, as is done in other window managers, to
1044 fix problems with size calculations when the children don't
1045 already know their sizes anyway.
1047 * unix/configure: Regen.
1048 * unix/tcl.m4: Update from Tcl.
1050 2002-07-29 Mo DeJong <mdejong@users.sourceforge.net>
1052 * unix/configure: Regen.
1053 * unix/configure.in: Remove code that was setting
1054 CC_SEARCH_FLAGS and LD_SEARCH_FLAGS to try to
1055 account for cc vs ld linking. Tcl now handles this.
1056 * unix/tcl.m4: Update from Tcl.
1058 2002-07-27 Mo DeJong <mdejong@users.sourceforge.net>
1060 * unix/Makefile.in: Add MAJOR_VERSION, MINOR_VERSION,
1061 PATCH_LEVEL, INSTALL_LIBRARY, STUB_LIB_FILE, and LIB_FILE
1062 to support changes in tcl.m4 related to library builds.
1063 Use MAKE_LIB macro to avoid dealing with RANLIB issues.
1064 Rename TK_CC_SEARCH_FLAGS to CC_SEARCH_FLAGS and
1065 rename TK_LD_SEARCH_FLAGS to LD_SEARCH_FLAGS.
1066 Use new INSTALL_LIB and INSTALL_STUB_LIB substs to
1067 deal with ranlib issues when install libraries.
1068 * unix/configure: Regen.
1069 * unix/configure.in: Remove AC_PROG_RANLIB since
1070 this is done by tcl.m4 now. Define CC_SEARCH_FLAGS
1071 instead of TK_CC_SEARCH_FLAGS and so on.
1072 Use MAKE_LIB and MAKE_STUB_LIB from tcl.m4.
1073 Remove AC_SUBST calls that are no done in tcl.m4.
1074 * unix/tcl.m4: Update from Tcl.
1075 * unix/tkConfig.sh.in: Subst CC_SEARCH_FLAGS and
1078 2002-07-25 Peter Spjuth <peter.spjuth@space.se>
1081 * generic/tkWindow.c:
1087 * tests/unixWm.test: Objectifed wm. [Patch #564521]
1088 Note: At this point the Mac file is completely untested
1089 and may not even compile.
1091 2002-07-25 Jeff Hobbs <jeffh@ActiveState.com>
1093 * tests/spinbox.test: added spinbox-22.[1-3]
1094 * generic/tkEntry.c (ConfigureEntry): made the textvariable value
1095 take precedence over changed -from/-to values, unless it must be
1096 constrained. [Bug #559078]
1098 * library/spinbox.tcl (MouseSelect): when not in the entry, just
1099 return instead of invoking - ButtonUp handles invoking already.
1102 * library/tk.tcl (RestoreFocusGrab): handle the case where the
1103 FocusGrab info is not set. [Bug #553283]
1105 2002-07-24 Jeff Hobbs <jeffh@ActiveState.com>
1107 * tests/canvas.test: added canvas-14.[1-6]
1108 * generic/tkCanvas.c (CanvasWidgetCmd): corrected handling of
1109 'scan' subcommand args. Also removed early return cases to goto
1110 done instead where the canvasPtr would be Tcl_Release'd. This may
1111 solve other problems with unreleased canvasPtr's. [Bug #581560]
1113 * win/tkWinButton.c (TkpDisplayButton): corrected display of focus
1114 ring around the actual text when the button is a compound button.
1117 * unix/README: Corrected notes about running user interactive Tk
1118 tests. [Bug #462320]
1120 * generic/tkText.c (TextEditUndo): set isDirtyIncrement to -1 when
1121 reverting to note proper "dirtiness". [Bug #580362] (callewaert)
1123 * generic/tkEntry.c (DisplayEntry): correct cursor position before
1124 calling Tk_SetCaretPos. (yamamoto)
1126 2002-07-23 Mo DeJong <mdejong@users.sourceforge.net>
1128 * unix/configure: Regen.
1129 * unix/tcl.m4: Update from Tcl.
1131 2002-07-22 Mo DeJong <mdejong@users.sourceforge.net>
1133 * library/choosedir.tcl (tk::dialog::file::chooseDir):
1134 * library/clrpick.tcl (tk::dialog::file::chooseDir):
1135 * library/msgbox.tcl (tk::MessageBox):
1136 * library/tkfbox.tcl (tk::dialog::file):
1137 * library/xmfbox.tcl (tk::MotifFDialog):
1138 Revert [Tk patch 568278]. The transient window workaround
1139 is no longer needed since the fix for [Tk bug 570764]
1140 solved the problem for withdrawn transients.
1142 2002-07-19 Mo DeJong <mdejong@users.sourceforge.net>
1145 * unix/configure.in:
1147 * win/configure.in: Add AC_PREREQ(2.13) in an attempt
1148 to make it more clear that the configure scripts
1149 must be generated with autoconf version 2.13.
1152 2002-07-19 D. Richard Hipp <drh@hwaci.com>
1154 * library/mkpsec.tcl: Fix a bug that was causing postscript generation
1155 to fail under Win2K.
1157 2002-07-18 Reinhard Max <max@suse.de>
1159 * unix/tkUnixSend.c: Using Tcl_GetTime instead of TclpGetTime.
1161 2002-07-17 Reinhard Max <max@suse.de>
1163 * library/unsupported.tcl: Extended ExposePrivateVariable, and
1164 ExposePrivateCommand to accept patterns as well.
1166 2002-07-17 Don Porter <dgp@users.sf.net>
1168 * generic/tkFont.c: Corrected reversed logic in assert -> panic
1169 conversion. [Bug 582799]
1171 2002-07-16 Mo DeJong <mdejong@users.sourceforge.net>
1173 * generic/tkFont.c (TkFontPkgFree): Call panic instead
1174 of assert since assert is not used in the rest of Tk.
1177 2002-07-16 Mo DeJong <mdejong@users.sourceforge.net>
1180 * win/Makefile.in: Add a more descriptive warning
1181 in the event `make genstubs` needs to be rerun.
1183 2002-07-16 Vince Darley <vincentdarley@users.sourceforge.net>
1186 * doc/wm.n: fix for part of [Bug 581627], and made iconbitmap
1187 code on Windows more flexible about reading in icons [Bug
1190 2002-07-15 David Gravereaux <davygrvy@pobox.com>
1192 * win/makefile.bc (new): re-add of the borland makefile. Submitted
1193 by Helmut Giese <hgiese@ratiosoft.com>. This needs testing, still.
1195 2002-07-15 Don Porter <dgp@users.sf.net>
1197 * Fixes for [Bug 581627, 581795].
1198 * generic/tkTest.c: Test commands not supported on non-Unix
1199 platforms should not be defined there in the first place.
1200 * tests/constraints.tcl: Fixed "secureserver" constraint.
1201 * tests/unixWm.test: Some tests needed "unix" constraint.
1202 * win/tkWinWm.c: Typo in error message.
1204 2002-07-14 Don Porter <dgp@users.sf.net>
1206 * tests/event.test: Fixes to enable testing of only userInteraction
1207 * tests/visual_bb.test: tests.
1209 * README: Bumped HEAD to version 8.4b2 in order to
1210 * generic/tk.h: distinguish it from the 8.4b1 release.
1211 * unix/configure*: Also extended LOCALES to cover all message
1212 * unix/tk.spec: catalogs.
1215 * tests/focustTcl.test: Conversion bug: Corrected backwards logic.
1216 * tests/imgPhoto.test: Conversion bug: overwrote unix/README.
1218 * tests/all.tcl: Completed conversion of Tk test suite
1219 * tests/constraints.tcl: to use tcltest.
1220 * tests/[b-v]*.test:
1223 2002-07-12 Don Porter <dgp@users.sf.net>
1225 * tests/constraints.tcl: Converted more files to tcltest and
1226 * tests/[g-x]*.test: factored out common code.
1228 2002-07-11 Don Porter <dgp@users.sf.net>
1230 * tests/canvPsImg.tcl: Converted several files in the
1231 * tests/constraints.tcl (new file): Tk test suite for testing by
1232 * tests/[r-x]*.test: tcltest 2.1.
1235 2002-07-11 Jeff Hobbs <jeffh@ActiveState.com>
1237 * win/tkWinDialog.c (Tk_ChooseDirectoryObjCmd): initialize
1238 utfTitle to NULL, add a few more notes about limitations of
1239 possible new Tk_ChooseDirectoryObjCmd function.
1241 2002-07-11 Donal K. Fellows <fellowsd@cs.man.ac.uk>
1243 * tests/imgPhoto.test (imgPhoto-15.1): Added test of mem-alloc
1244 failure, but this is non-portable.
1245 * generic/tkImgPhoto.c (ImgPhotoSetSize): Allowed this function to
1246 fail when it can't allocate enough memory. Note that not all the
1247 places that call it can fail nicely without API changes; some
1248 still panic but at least some of the potential failures are now
1251 * tests/visual_bb.test (lpr): Stopped this from relying on
1252 external files; direct piping is much more flexible for this
1255 2002-07-09 Don Porter <dgp@users.sf.net>
1257 * generic/tkTest.c: Removed unused dependence on TclThread_Init()
1258 * tests/defs.tcl: and [testthread]. [Bug 578165, Tcl Bug 531413]
1260 2002-07-08 David Gravereaux <davygrvy@pobox.com>
1262 * unix/Makefile.in: Added missing win/lamp.bmp to the dist
1265 2002-07-05 Jeff Hobbs <jeffh@ActiveState.com>
1267 *** 8.4b1 TAGGED FOR RELEASE ***
1269 2002-07-04 Donal K. Fellows <fellowsd@cs.man.ac.uk>
1271 * library/bgerror.tcl (bgerror): Stopped the bgerror dialog from
1272 getting wider than the screen; in theory really long messages
1273 could make it become taller than the screen now, but that's much
1274 less likely to happen. Also trimmed a little bit of internal
1275 space so that the icon-message gap is the same as the icon-frame
1276 and message-frame gaps.
1278 2002-07-01 Don Porter <dgp@users.sf.net>
1281 * unix/tcl.m4: Updated to latest tcl.m4 from Tcl.
1283 2002-06-28 Donal K. Fellows <fellowsd@cs.man.ac.uk>
1285 * library/msgbox.tcl (MessageBox): Force all non-button widgets to
1286 have the same background as the containing toplevel. [Bug #552515]
1288 2002-06-27 Andreas Kupries <andreas_kupries@users.sourceforge.net>
1290 * win/Makefile.in (install-binaries): Fix of troubled Makefile
1291 quoting introduced by [Patch 521356] causing the installed to
1294 2002-06-25 Don Porter <dgp@users.sf.net>
1296 * unix/tkUnixFont.c: (Tk_DrawChars) silence compiler warning.
1298 2002-06-26 David Gravereaux <davygrvy@pobox.com>
1300 * generic/tkStyle.c: <eol> of the committing cvs client didn't
1301 match the <eol> of the file itself. Windows users where getting
1302 \r\r\n. Problem fixed.
1304 2002-06-26 Anton Kovalenko <a_kovalenko@users.sourceforge.net>
1306 * generic/tkFont.c (TkTextLayoutToPostscript): fixed potential
1307 buffer overflow which could be intentionally triggered from
1308 within safe interpreter -- malicious applet could modify
1311 2002-06-26 Anton Kovalenko <a_kovalenko@users.sourceforge.net>
1313 * tests/font.test (font-32.1): updated this test
1314 to expect the new behavior of canvas postscript.
1316 2002-06-25 Don Porter <dgp@users.sf.net>
1318 * unix/Makefile.in: Expanded install-binaries target to create
1319 * win/Makefile.in: and install a pkgIndex.tcl file to enable
1320 Tk as a loadable package [Patch 521356]
1322 2002-06-25 Anton Kovalenko <a_kovalenko@users.sourceforge.net>
1324 * library/mkpsenc.tcl: (added) utilities to generate
1325 Postscript prolog for current system encoding.
1326 * generic/tkCanvPs.c (TkCanvPostscriptCmd): now
1327 uses mkpsenc.tcl to generate Postscript prolog.
1328 * generic/tkFont.c (TkTextLayoutToPostscript): modified
1329 according to patch #546910. Now outputs system-encoded
1330 characters (for unibyte) or Adobe glyph names (for
1331 multibyte or outside-locale).
1332 * tests/canvText.test (canvText-17.1): updated this test
1333 to expect the new behavior of canvas postscript.
1335 2002-06-25 Reinhard Max <max@suse.de>
1337 * unix/tcl.m4: New macro SC_CONFIG_MANPAGES.
1338 * unix/configure.in: Added support for symlinks and compression
1339 * unix/Makefile.in: when installing the manpages. [Patch 518052]
1340 Default is still hardlinks and no compression.
1342 * unix/mkLinks: generated
1345 * unix/README: Added documentation for the new features.
1347 * unix/configure: Replaced ${exec_prefix}/lib
1348 * unix/tcl.m4 (SC_PATH_TCLCONFIG): by ${libdir}.
1350 2002-06-24 Mo DeJong <mdejong@users.sourceforge.net>
1352 * tests/winWm.test: Verify that both an unmapped
1353 and already mapped toplevel are raised and receive
1354 the focus when deiconified.
1355 * tests/wm.test: Add wm deiconify tests. Check that
1356 a toplevel that has never been mapped is not mapped
1357 by the deiconify command since it should be done
1358 at idle by MapFrame.
1359 * win/tkWinWm.c (Tk_WmCmd): Check the WM_NEVER_MAPPED
1360 flag while processing the wm deiconify command.
1361 The WM_UPDATE_PENDING flag should never be set when
1362 WM_NEVER_MAPPED is set, but double check so that
1363 the implementation is more explicit and matches
1364 the comment just above.
1365 Return without invoking TkWmRestackToplevel or
1366 TkSetFocusWin on a toplevel that has never been
1367 mapped. This fixes a bug where a toplevel is mapped
1368 with the wrong size and is then resized by the
1369 idle call to MapFrame. [Tk bug 233150]
1371 2002-06-23 Jeff Hobbs <jeffh@ActiveState.com>
1373 * win/tkWinWm.c (UpdateGeometryInfo): remove the check for a null
1374 wrapper introduced in r1.41 on 2002-06-15 because it prevented
1375 geometry setting from taking effect if the window was not on the
1376 screen. Another check may go in it's place as IsIconic and
1377 IsZoomed should not be passed NULL.
1379 2002-06-22 Mo DeJong <mdejong@users.sourceforge.net>
1381 * tests/wm.test: Remove invalid minsize test. Add update
1382 calls to wm transient tests so that idle handlers get
1383 run. This is needed to get the tests to pass under Win32.
1384 * unix/tkUnixWm.c (WmWaitMapProc): Move the special
1385 transient withdrawn check into the if body to
1386 make it easier to set a breakpoint on this test
1387 inside a debugger. No functional changes.
1388 * win/tkWinWm.c (WmWaitVisibilityOrMapProc): Ditto.
1390 2002-06-22 Jeff Hobbs <jeffh@ActiveState.com>
1392 * doc/wm.n: TIP #95 Windows implementation and
1393 * mac/tkMacWm.c (Tk_WmCmd): docs with mac and unix stubs.
1394 * unix/tkUnixWm.c (Tk_WmCmd):
1395 * win/tkWinWm.c (Tk_WmCmd):
1396 * tests/unixWm.test:
1397 * tests/winWm.test: more wm attr tests will be needed.
1399 * generic/tkGrid.c (GridReqProc): check that gridPtr is not NULL
1400 (may be when embedded). [Bug #548791] (halliday)
1402 * generic/tkFont.c (TkFontPkgFree): changed panic on freeing fonts
1403 to an assert, and wrapped panic in #ifdef PURIFY. [Bug #568701]
1405 * library/menu.tcl: corrected menus from being posted offscreen
1406 on Windows. [Bug #464451] (darley)
1408 * library/console.tcl: corrected the defaultPrompt substitution
1409 [Bug #553207] and made Tab a default expansion key (like Escape).
1411 * win/tkWinEmbed.c (EmbedWindowDeleted): added a check for a null
1412 containerPtr. The core of this bug is likely elsewhere. [Bug #476176]
1414 * doc/text.n: TIP #93 implementation that
1415 * generic/tkText.c (TextWidgetCmd): enhances the text get and
1416 * generic/tkTextIndex.c (TkTextGetIndex): delete methods to accept
1417 * tests/text.test: multiple range pairs.
1418 This handles the delete case in an atomic, fixed-index fashion.
1420 2002-06-21 Mo DeJong <mdejong@users.sourceforge.net>
1422 * tests/wm.test: Add tests to make sure a withdrawn
1423 transient does not get remapped by state changes
1425 * unix/tkUnixWm.c (Tk_WmCmd, WmWaitMapProc):
1426 * win/tkWinWm.c (Tk_WmCmd, WmWaitVisibilityOrMapProc):
1427 Add a WM_TRANSIENT_WITHDRAWN flag that gets set by the
1428 withdraw, deiconify, or state wm subcommands. Check
1429 this flag before mapping a transient when processing
1430 a MapNotify event. [Tk bug 570764]
1432 2002-06-21 Donal K. Fellows <fellowsd@cs.man.ac.uk>
1434 * unix/tk.spec (version), README, win/configure.in, unix/configure.in:
1435 * generic/tk.h (TK_RELEASE_*, TK_PATCH_LEVEL): Bumped to beta1.
1437 2002-06-21 Jeff Hobbs <jeffh@ActiveState.com>
1439 * doc/text.n: TIP #104 implementation which generalizes the
1440 * generic/tkText.c: undo/redo stack to not be tied solely to the
1441 * generic/tkText.h: text widget. The APIs are still private.
1442 * generic/tkUndo.c: This also adds a stack limiting ability and
1443 * generic/tkUndo.h: a -maxundo option to the text widget (in
1444 * library/text.tcl: addition to the options from TIP #26) should
1445 * mac/tkMacDefault.h: users want to limit the undo/redo stack
1446 * tests/text.test: (should not be necessary in most cases).
1447 * unix/Makefile.in: [Patch #554763] (callewart)
1448 * unix/tkUnixDefault.h:
1451 * win/tkWinDefault.h:
1453 2002-06-21 Don Porter <dgp@users.sf.net>
1455 * unix/Makefile.in: Removed unnecessary dependence of tktest
1456 * unix/tkAppInit.c: executable on the tcltest executable on
1457 Unix. If there are similar dependencies on other platforms, they
1458 can probably be removed as well. [Bug 572134].
1460 2002-06-20 Jeff Hobbs <jeffh@ActiveState.com>
1463 * generic/tkListbox.c (DisplayListbox):
1464 * mac/tkMacDefault.h: TIP #94 implementation adding -activestyle
1465 * tests/listbox.test: option to the listbox. This adds the ability
1466 * unix/tkUnixDefault.h: to have listboxes look native on Windows, and
1467 * win/tkWinDefault.h: "nicer" elsewhere using the 'dotbox' style.
1469 2002-06-20 Peter Spjuth <peter.spjuth@space.se>
1471 * generic/tkGrid.c: Corrected the test for grid propagate change.
1474 2002-06-19 Jeff Hobbs <jeffh@ActiveState.com>
1476 * tests/panedwindow.test:
1477 * generic/tkPanedWindow.c: ensure that sash index is lower bounds
1478 checked. [Bug #548727]
1480 2002-06-19 Mo DeJong <mdejong@users.sourceforge.net>
1482 * generic/tkClipboard.c (TkClipCleanup): Add code
1483 to set dispPtr->clipWindow to NULL, this was
1484 accidently removed by last commit. Fixes
1485 a crash while running the tests under win32.
1487 2002-06-19 Mo DeJong <mdejong@users.sourceforge.net>
1489 * generic/tkBind.c (TkBindDeadWindow):
1490 Handle case where Tk_DestroyWindow is invoked
1491 on clipboard and send windows.
1492 * generic/tkClipboard.c (TkClipCleanup):
1493 Invoke Tk_DestroyWindow to cleanup the
1494 dispPtr->clipWindow. Call Tcl_Preserve
1495 and Tcl_Release on the window to avoid an
1496 invalid memory ref on shutdown.
1497 * generic/tkEvent.c (Tk_HandleEvent):
1498 Panic if XCreateIC is invoked twice for
1499 the same window. This should never happen,
1500 the check were just added to make sure it
1501 does not since this could lead to crashes
1503 * generic/tkFocus.c (TkFocusDeadWindow):
1504 Handle case where Tk_DestroyWindow is invoked
1505 on clipboard and send windows.
1506 * generic/tkOption.c (TkOptionDeadWindow): Ditto.
1507 * generic/tkWindow.c (TkCloseDisplay): Move
1508 deletion of dispPtr->winTable after TkpCloseDisplay
1509 call since Tk_DestroyWindow uses it and could
1510 be called by TkpCloseDisplay for clipboard/send windows.
1511 Also invoke ckfree for the dispPtr instead of
1512 doing it in TkpCloseDisplay.
1513 (Tk_DestroyWindow): Check for a null winPtr->mainPtr
1514 before doing certain cleanup tasks so the we can
1515 invoke Tk_DestroyWindow on clipboard and send windows.
1516 We need to do this so that XDestroyIC will get invoked
1517 for the input contexts of each window.
1518 * mac/tkMacXStubs.c (TkpCloseDisplay): Don't free
1519 the displayPtr since this is now done in TkCloseDisplay.
1520 * unix/tkUnixEvent.c (TkpCloseDisplay, OpenIM): Remove
1521 conditional compilation around calls to XCloseIM
1522 since I am confident that the crashes related to
1523 input contexts has been fixed. Don't free
1524 the displayPtr since this is now done in TkCloseDisplay.
1525 * unix/tkUnixSend.c (TkSendCleanup): Invoke the
1526 Tk_DestroyWindow method to cleanup the special
1527 send window. This will call XDestroyIC and thereby
1528 avoid a crash in XCloseIM. The send window needs
1529 to be Tcl_Preserve and Tcl_Release to avoid an
1530 invalid memory ref on shutdown.
1531 * win/tkWinX.c (TkpCloseDisplay): Don't free
1532 the displayPtr since this is now done in TkCloseDisplay.
1535 2002-06-19 Donal K. Fellows <fellowsd@cs.man.ac.uk>
1537 * generic/tkStyle.c: TIP#48 style engine.
1538 See http://purl.org/tcl/tip/48.html for details.
1540 * generic/tkConfig.c (GetOptionFromObj): Split to allow for access
1541 to option tables via name as well as via object.
1542 (TkGetOptionSpec): Semi-public interface to GetOption functionality.
1543 (DoObjConfig, Tk_RestoreSavedOptions, FreeResources)
1544 (GetObjectForOption): Basic style support for configure.
1546 * generic/tkWindow.c (TkCreateMainWindow, Tk_DestroyWindow): Added
1547 calls to set up and tear down the style subsystem.
1549 * generic/tk.decls, generic/tk.h: Many declarations forming TIP#48
1552 * generic/tkInt.decls (TkStylePkgInit,TkStylePkgFree):
1553 * generic/tkInt.h (TkGetOptionSpec): Supporting declarations.
1555 * unix/Makefile.in, win/Makefile.in, win/makefile.vc: Added
1556 tkStyle.c to list of generic source files.
1558 2002-06-18 Donal K. Fellows <fellowsd@cs.man.ac.uk>
1560 * tests/defs.tcl (makeFile): Defined the return value of this
1561 procedure to be the filename of the created file, as in the real
1564 2002-06-17 Mo DeJong <mdejong@users.sourceforge.net>
1566 * generic/tkImage.c (Tk_ImageObjCmd, DeleteImage): Call
1567 Tcl_Preserve and Tcl_Release for the masterPtr->winPtr
1568 window to avoid accessing memory that had already
1569 been deallocated in DeleteImage.
1571 2002-06-17 David Gravereaux <davygrvy@pobox.com>
1573 Trims to support the removal of RESOURCE_INCLUDED from rc
1574 scripts from Tcl's accepted FR #565088.
1576 * generic/tk.h: Changed RESOURCE_INCLUDED to be RC_INVOKED
1577 as the RC tool defines this already by default.
1580 * win/rc/wish.rc: removed the #define RESOURCE_INCLUDED lines.
1582 2002-06-17 Jeff Hobbs <jeffh@ActiveState.com>
1584 * unix/Makefile.in (dist): correct installation of
1585 wish.exe.manifest to DISTDIR target directory.
1587 * generic/tkCmds.c (Tk_TkObjCmd):
1588 * generic/tkInt.h (struct TkCaret):
1589 * mac/tkMacXStubs.c (Tk_SetCaretPos):
1590 * unix/tkUnixKey.c (TkpGetString, Tk_SetCaretPos):
1591 * win/tkWinX.c (Tk_SetCaretPos):
1592 * tests/tk.test: Added 'tk caret' implementation of TIP#96
1593 * doc/SetCaret.3 (new): which adds a TkCaret structure element to
1594 * doc/tk.n: TkDisplay for maintaining state.
1596 * unix/tkUnixSend.c (TkSendCleanup): special cleanup of
1597 inputContext to avoid bug in XCloseIM. (dejong)
1599 2002-06-17 Don Porter <dgp@users.sf.net>
1601 * library/msgs/en_gb.msg: Added catalog for UK English.
1602 Currently includes only Color -> Colour translation.
1604 2002-06-17 D. Richard Hipp <drh@hwaci.com>
1606 * doc/checkbutton.n:
1607 * doc/radiobutton.n:
1608 * generic/tkButton.c:
1609 * generic/tkButton.h:
1610 * mac/tkMacButton.c:
1611 * tests/button.test:
1612 * unix/tkUnixButton.c:
1613 * win/tkWinButton.c: Implementation of TIP#82 - Added the
1614 -offrelief option to checkbutton and radiobutton.
1616 2002-06-14 Mo DeJong <mdejong@users.sourceforge.net>
1618 * generic/tkWindow.c (Tk_DestroyWindow): Set the pathName
1619 component of a window to NULL after its memory has been
1620 deallocated to avoid a possible illegal memory access
1621 as a result of a call to Tk_PathName() on a Tk_Window
1622 structure of a window that has already been destroyed.
1625 2002-06-14 Mo DeJong <mdejong@users.sourceforge.net>
1627 * generic/tkOption.c (Tk_GetOption): Allocate
1628 memory with ckalloc not malloc. This keeps
1629 Tk from erroring out when built with
1632 2002-06-14 Jeff Hobbs <jeffh@ActiveState.com>
1634 * generic/tkBind.c (HandleEventGenerate):
1635 * generic/tkInt.h: changed warpInProgress boolean from int to a
1636 bit in the flags variable (TK_DISPLAY_IN_WARP)
1638 * generic/tkCmds.c (Tk_TkObjCmd):
1639 * unix/tkUnixKey.c (TkpGetString):
1640 * generic/tkEvent.c (Tk_HandleEvent):
1641 * generic/tkInt.h: changed useInputMethods boolean from int to a
1642 bit in the flags variable (TK_DISPLAY_USE_IM)
1645 * generic/tkCmds.c (Tk_WmObjCmd):
1646 * unix/tkUnixWm.c (Tk_WmCmd):
1647 * win/tkWinWm.c (Tk_WmCmd): changed wmTracing from being an int to
1648 just a bit in the flags variable (TK_DISPLAY_WM_TRACING)
1650 * generic/tkEvent.c (Tk_HandleEvent):
1651 * unix/tkUnixEvent.c (OpenIM):
1652 * unix/tkUnixKey.c (TkpGetString):
1653 * generic/tkInt.h: added TK_DISPLAY_XIM_SPOT flag bit for TkDisplay
1654 and used this to allow a runtime check to see if over-the-spot XIM
1655 is possible. If not it will try and fallback to the old-style
1656 input context, which handles things like dead keys input.
1658 * generic/tk.decls: added TIP #84 implementation that adds a
1659 * generic/tkDecls.h: Tk_CollapseMotionEvents API which controls Tk's
1660 * generic/tkEvent.c: collapsing of incoming motion events on its
1661 * generic/tkInt.h: windows. The default remains to do collapsing.
1662 * generic/tkStubInit.c: Added a flags parameter to the internal display
1663 * generic/tkWindow.c: structure to support this and be used in the
1664 * doc/QWinEvent.3: future for other bits. [Tk patch 564642]
1666 * unix/mkLinks: updated from current docs
1668 2002-06-14 Mo DeJong <mdejong@users.sourceforge.net>
1670 * generic/tkEvent.c (TkXErrorHandler): Declare static
1671 function to avoid compiler error with VC++.
1672 * generic/tkBind.c (ExpandPercents): Cast argument to
1673 Tk_GetAtomName in order to avoid compiler warning.
1675 2002-06-14 Joe English <jenglish@users.sf.net>
1680 * generic/tkCanvWind.c:
1682 * generic/tkEvent.c:
1683 * generic/tkFocus.c:
1686 * generic/tkImage.c:
1688 * generic/tkPlace.c:
1689 * generic/tkPointer.c:
1690 * generic/tkTextWind.c:
1691 * generic/tkWindow.c:
1692 * mac/tkMacSubwindows.c:
1693 * mac/tkMacWindowMgr.c
1696 * unix/tkUnixEmbed.c:
1698 * win/tkWinScrlbr.c:
1699 * win/tkWinWindow.c:
1700 * win/tkWinWm.c: Implementation of TIP #47 by Neil McKay
1701 "Modifying Tk to Allow Writing X Window managers".
1702 Add CirculateRequest, Create, MapRequest, ResizeRequest,
1703 and ConfigureRequest event types;
1704 Split TK_TOPLEVEL flag into TK_TOPLEVEL, TK_HAS_WRAPPER,
1705 TK_WIN_MANAGED, and TK_TOP_HIERARCHY. [Tk patch 572978]
1707 2002-06-14 Andreas Kupries <andreas_kupries@users.sourceforge.net>
1709 * unix/tkAppInit.c: Removed now unneeded and erroneous reference
1710 to 'matherr'. See Tcl ChangeLog entry 2002-05-31 Don Porter.
1712 2002-06-14 David Gravereaux <davygrvy@pobox.com>
1714 * win/rules.vc: The test for compiler optimizations was in error.
1715 Thanks goes to Roy Terry <royterry@earthlink.net> for his
1716 assistance with this.
1718 2002-06-14 Donal K. Fellows <fellowsd@cs.man.ac.uk>
1720 Implement TIP 98 [Tk patch 566765]
1722 * doc/FindPhoto.3, generic/tk.h, generic/tk.decls:
1723 * generic/tkImgPhoto.c: Changed *_Old to *_NoComposite and
1724 USE_OLD_PHOTO_PUT_BLOCK to USE_COMPOSITELESS_PHOTO_PUT_BLOCK
1725 following a suggestion from Don Porter.
1727 * tests/imgPhoto.test: Added tests of -compositingrule
1729 * doc/photo.n: Added documentation for "-compositingrule".
1730 * generic/tkImgPhoto.c (ImgPhotoCmd, ParseSubcommandOptions): New
1731 "-compositingrule" option for [$photo copy] subcommand, using
1732 OPT_COMPOSITE flag and compositingRule field in SubcommandOptions
1735 * doc/FindPhoto.3: Documented the extra argument for the
1736 compositing rule and the action to take if anyone wants to
1737 maintain total backward-compatability.
1739 * generic/tk.h (TK_PHOTO_COMPOSITE_*): Defined values for use as
1741 (USE_OLD_PHOTO_PUT_BLOCK): Added a way for users to select the old
1742 interface to Tk_PhotoPutBlock to provide an easier upgrade path.
1744 * generic/tk.decls: Alter Tk_PhotoPut*Block to Tk_PhotoPut*Block_Old
1745 and introduce new slots for the old name of function with an extra
1746 argument at the end for the compositing rule.
1748 * generic/tkImgPhoto.c (ImgPhotoCmd): Updated "transparency set"
1749 subcommand to use TkSubtractRegion().
1751 * win/tkWinRegion.c (TkSubtractRegion):
1752 * mac/tkMacRegion.c (TkSubtractRegion):
1753 * generic/tkInt.decls (TkSubtractRegion):
1754 * unix/tkUnixPort.h (TkSubtractRegion): Added function to perform
1755 the set-difference operation on regions; it seems all platforms
1756 can support it, and it makes removing rectangular bits from
1757 regions much easier.
1759 * generic/tkImgPPM.c (FileReadPPM): Reading a PPM/PGM always uses
1760 the SET compositing rule because it is faster and the format does
1761 not have any transparency information.
1763 * generic/tkImgGIF.c (FileReadGIF): Reading a GIF always uses the
1764 SET compositing rule because GIF files model transparency as a
1765 single special colour.
1767 * generic/tkImgPhoto.c (Tk_PhotoPutBlock, Tk_PhotoPutZoomedBlock):
1768 Added a compositing rule to allow better control over what happens
1769 to transparent pixels when inserting data into a photo image.
1771 2002-06-13 Mo DeJong <mdejong@users.sourceforge.net>
1773 * tests/winfo.test: Add basic tests for winfo ismapped.
1775 2002-06-13 Mo DeJong <mdejong@users.sourceforge.net>
1777 * tests/unixWm.test:
1778 * tests/wm.test: Move wm minsize and wm maxsize
1779 usage tests into the cross platform wm tests.
1781 2002-06-13 Don Porter <dgp@users.sf.net>
1783 * tests/cursor.test: corrected error after cursor-2.2.
1784 * tests/defs.tcl: Added enhancements to Tk's fake version of
1785 tcltest required by recent cursor.test changes.
1787 2002-06-13 Donal K. Fellows <fellowsd@cs.man.ac.uk>
1789 * tests/cursor.test (cursor-2.[34]): Tests added to ensure that
1790 cursor specs really are well-behaved lists. Also some general
1792 * win/tkWinCursor.c (TkGetCursorByName): Undone Jeff's back-off
1793 and fixed things so that they should work now. Cursor specs are
1794 lists first and foremost.
1796 2002-06-12 Mo DeJong <mdejong@users.sourceforge.net>
1798 * changes: Clearly label wm transient changes as
1799 a POTENTIAL INCOMPATIBILITY.
1800 * doc/wm.n: Remove "some window managers will" text
1801 and explicitly state what behavior a transient
1802 window will display. Also mention that it is an
1803 error to make a window a transient of itself.
1805 2002-06-12 Mo DeJong <mdejong@users.sourceforge.net>
1807 * library/choosedir.tcl (tk::dialog::file::chooseDir):
1808 * library/clrpick.tcl (tk::dialog::file::chooseDir):
1809 * library/msgbox.tcl (tk::MessageBox):
1810 * library/tkfbox.tcl (tk::dialog::file):
1811 * library/xmfbox.tcl (tk::MotifFDialog): Remove the
1812 transient property on dialogs after they have been
1813 dismissed to insulate them from further state changes
1814 in the master. This keeps a withdrawn dialog from
1815 being mapped when the master is deiconified. [Tk patch 568278]
1817 2002-06-12 Jeff Hobbs <jeffh@ActiveState.com>
1819 * win/tkWinCursor.c (TkGetCursorByName): reverted fix from
1820 2002-06-06 because it broke the ability to use built-in cursors
1823 2002-06-12 Mo DeJong <mdejong@users.sourceforge.net>
1825 * library/choosedir.tcl (tk::dialog::file::chooseDir):
1826 * library/clrpick.tcl (tk::dialog::color):
1827 * library/dialog.tcl (tk_dialog):
1828 * library/msgbox.tcl (tk::MessageBox):
1829 * library/tkfbox.tcl (tk::dialog::file):
1830 * library/xmfbox.tcl (tk::MotifFDialog_Create):
1831 Only make the dialog window a transient if
1832 the master is visible. This check already
1833 appeared in some of the dialogs. This patch
1834 just copies the check into those that were
1835 lacking. [Tk patch 568253]
1837 2002-06-12 Mo DeJong <mdejong@users.sourceforge.net>
1839 * changes: Add note about new transient behavior.
1840 * tests/unixWm.test: Check that the WM_TRANSIENT_FOR
1841 property for a transient window is being cleared
1842 when the master is destroyed.
1843 * tests/wm.test: Source defs.tcl instead of using
1844 tcltest to match the rest of Tk's test files.
1845 Add new tests that ensure that a transient's state
1846 mirrors the state of the master.
1847 * unix/tkUnixWm.c (WmInfo, TkWmNewWindow, TkWmMapWindow)
1848 (TkWmDeadWindow, Tk_WmCmd, WmWaitMapProc): Add numTransients
1849 member to WmInfo structure. Keep state of master and
1850 transient in sync using a callback that tracks MapNotify
1851 and UnmapNotify events. When the master is mapped, map
1852 the transient. When the master is unmapped or iconified,
1853 withdraw the transient.
1854 * win/tkWinWm.c (TkWmMapWindow, TkpWmSetState)
1855 (TkWmDeadWindow, Tk_WmCmd, WmWaitVisibilityOrMapProc):
1856 Keep state of master and transient in sync using a
1857 callback that tracks MapNotify and UnmapNotify events.
1858 Move masterPtr check from TkpWmSetState into TkWmMapWindow
1859 to deal with WM_NEVER_MAPPED transients. Cleanup
1860 numTransients and the callback in TkWmDeadWindow.
1861 Cleanup numTransients and the callback only after
1862 deleting a master in wm transient command to avoid
1863 deleting the callback when an error is raised.
1864 Add support for MapNotify and UnmapNotify events
1865 to the master callback. [Tk patch 561708]
1867 2002-06-11 Joe English <jenglish@users.sf.net>
1869 * library/menu.tcl: fix for bug report #530212 "Bad Window Path
1872 2002-06-10 David Gravereaux <davygrvy@pobox.com>
1874 * win/makefile.vc: Fixed a win98 issue where the /exclude option
1875 for xcopy is unsupported.
1876 Reported by Roy Terry <royterry@earthlink.net>.
1878 2002-06-10 Anton Kovalenko <a_kovalenko@users.sourceforge.net>
1880 * library/tk.tcl: added utility functions to get "-underline" and
1881 "-text" for labels and buttons from translatable string containing
1882 "magic ampersand" [patch #566605]
1883 * library/clrpick.tcl:
1884 * library/msgbox.tcl:
1885 * library/tkfbox.tcl:
1886 * library/xmfbox.tcl: some places where msgcat is used to get
1887 translated label are modified to handle labels with magic ampersand.
1888 * library/msgs/ru.msg: russian translations added
1889 * library/msgs/cs.msg:
1890 * library/msgs/de.msg:
1891 * library/msgs/el.msg:
1892 * library/msgs/es.msg:
1893 * library/msgs/fr.msg:
1894 * library/msgs/it.msg:
1895 * library/msgs/nl.msg: all translation files now have labels with
1896 'magic ampersand' where appropriate. In el.msg some ampersands are
1897 missing, as I don't know which underline positions seems natural
1900 2002-06-09 Mo DeJong <mdejong@users.sourceforge.net>
1902 * library/bgerror.tcl (tk::dialog::error::bgerror):
1903 Don't set the bgerror dialog as a transient of
1904 itself since this operation is ill defined.
1906 2002-06-06 Donal K. Fellows <fellowsd@cs.man.ac.uk>
1908 * win/tkWinCursor.c (TkGetCursorByName): Fixed so that the reading
1909 of cursors from a file with a cursor spec was built using [list]
1910 works when the file has a space in instead of requiring fiddling
1913 2002-06-06 Anton Kovalenko <a_kovalenko@users.sourceforge.net>
1915 * library/msgbox.tcl (MessageBox): Add -default normal
1916 when creating non-default buttons for message box.
1917 They already get -default normal when they're
1918 unfocused, and dialog window size used to change suddenly
1921 2002-06-05 Anton Kovalenko <a_kovalenko@users.sourceforge.net>
1923 * unix/tkUnixFont.c (Tk_DrawChars): Don't assume that
1924 one char is always one byte, and that required
1925 subfont for the last character in any string is
1926 the same as for the previous character
1927 [Bug #559435] [Patch #559437]
1929 2002-05-27 Mo DeJong <mdejong@users.sourceforge.net>
1931 * changes: Document [wm transient .t .t] error.
1932 * tests/wm.test: Check that setting a window
1933 as a transient of itself raises an error. Check
1934 that passing a non-toplevel window to the wm
1935 transient command uses the enclosing toplevel.
1936 * unix/tkUnixWm.c (Tk_WmCmd): Raise an error
1937 if the user tries to make a toplevel a
1938 transient of itself.
1939 * win/tkWinWm.c (Tk_WmCmd): Raise an error
1940 if the user tries to make a toplevel a
1941 transient of itself. Test for other error
1942 before checking for the transient self error.
1944 2002-05-27 Mo DeJong <mdejong@users.sourceforge.net>
1946 * unix/tkUnixWm.c (WmInfo, TkWmCleanup, TkWmNewWindow)
1947 (TkWmMapWindow, TkWmDeadWindow, Tk_WmCmd): Replace
1948 WmInfo's master and masterWindowName members with
1949 a masterPtr member. This implementation is much
1950 simpler and mirrors the Win32 implementation. This
1951 change makes it easy to check the flags of the
1952 master window. No user visible changes.
1954 2002-05-27 Mo DeJong <mdejong@users.sourceforge.net>
1956 * generic/tkInt.decls: Add unix decl for TkpWmSetState.
1957 * generic/tkIntPlatDecls.h: Regen.
1958 * generic/tkStubInit.c: Regen.
1959 * tests/wm.test: Test state changes between iconic,
1960 normal, and withdrawn both before and after initial
1962 * unix/tkUnixWm.c (Tk_WmCmd, TkpWmSetState): Move
1963 state change code into TkpWmSetState to more closely
1964 match the Win32 implementation. No user visible changes.
1966 2002-05-27 Mo DeJong <mdejong@users.sourceforge.net>
1968 * tests/embed.test: Added cross platform embed tests.
1969 Check that window passed to -use has the -container
1971 * tests/wm.test: Remove useless catch call. Deiconify
1972 . just in case, stackorder tests will not pass unless
1973 it is in the normal state. Add -container flag to
1974 embedded stackorder test.
1975 * unix/tkUnixEmbed.c (TkpUseWindow):
1976 * win/tkWinEmbed.c (TkpUseWindow): Lookup Tk window
1977 based on the id passed in as the value for -use.
1978 Generate an error if the Tk window did not have
1979 the -container option set.
1981 2002-05-26 Peter Spjuth <peter.spjuth@space.se>
1983 * generic/tkButton.c (ConfigureButton): When creating
1984 a radiobutton with -value "" it was not drawn properly
1985 if the -variable was created by the radiobutton.
1988 2002-05-26 Peter Spjuth <peter.spjuth@space.se>
1990 * generic/tkCanvText.c (ComputeTextBbox): Negative
1991 coordinates were rounded badly causing a 1 pixel
1992 displacement. [Bug #556526]
1994 2002-05-24 Mo DeJong <mdejong@users.sourceforge.net>
1996 * mac/tkMacWm.c (Tk_WmCmd):
1997 * tests/unixWm.test: Move wm transient checks over
1998 to wm.test so they will be run on all systems.
1999 * tests/wm.test: Add tests to check for error when
2000 an iconwindow is passed to the wm transient command.
2001 * unix/tkUnixWm.c (Tk_WmCmd):
2002 * win/tkWinWm.c (Tk_WmCmd): Raise an error if one
2003 of the windows passed to the wm transient command
2004 is an iconwindow for another toplevel.
2006 2002-05-23 Mo DeJong <mdejong@users.sourceforge.net>
2008 * mac/tkMacWm.c (TkWmStackorderToplevelWrapperMap):
2009 * tests/wm.test: Add embedded Window test case for
2010 the stackorder command.
2011 * unix/tkUnixWm.c (TkWmStackorderToplevelWrapperMap):
2012 * win/tkWinWm.c (TkWmStackorderToplevelWrapperMap):
2013 Ignore embedded windows during wm stackorder command.
2015 2002-05-21 Mo DeJong <mdejong@users.sourceforge.net>
2017 * unix/configure: Regen.
2018 * unix/configure.in: Invoke SC_ENABLE_SHARED before
2019 calling SC_CONFIG_CFLAGS so that the SHARED_BUILD
2020 variable can be checked inside SC_CONFIG_CFLAGS.
2021 * unix/tcl.m4: Update from Tcl.
2023 2002-05-20 Don Porter <dgp@users.sourceforge.net>
2025 * library/tk.tcl: A little namespace cleanup on Daniel Steffen's
2026 latest revisions to avoid defining new global commands.
2028 2002-05-20 Daniel Steffen <das@users.sourceforge.net>
2031 * mac/tkMacTclCode.r: include msgcat package in resources
2032 as bgerror depends on it. Restores ability of mac static
2033 build to run standalone (except for encoding file issues).
2036 * library/console.tcl:
2037 * library/tk.tcl: fix tk.tcl not sourcing library files
2038 that define bindings at startup on mac. (independent of
2039 tk library files being in resources or on auto_path)
2041 2002-05-08 Don Porter <dgp@users.sourceforge.net>
2043 * library/bgerror.tcl:
2044 * library/tclIndex: Cleaned up namespace usage of the bgerror
2045 dialog. Completes soft dependence on msgcat. [FR 539309]
2047 2002-05-07 David Gravereaux <davygrvy@pobox.com>
2048 * win/makefile.vc: Problem with TCLDIR macro not accepting
2049 forward slash path seperators resolved. Added the same logic
2050 to INSTALLDIR, too. [Bug #553208]
2052 2002-04-26 Jeff Hobbs <jeffh@ActiveState.com>
2055 * unix/tcl.m4: change HP-11 SHLIB_LD_LIBS from "" to ${LIBS} so
2056 that the .sl knows its dependent libs.
2058 2002-04-24 Daniel Steffen <das@users.sourceforge.net>
2060 * mac/tkMacTclCode.r:
2061 * mac/tkMacResource.r: added check of
2062 TCLTK_NO_LIBRARY_TEXT_RESOURCES #define to allow disabling the
2063 inclusion of the tk library code in the resource fork of Tk
2064 executables and shared libraries.
2065 Moved tk library code inclusion to separate file like in tcl.
2066 Added 'panedwindow' resource.
2068 2002-04-22 Jeff Hobbs <jeffh@ActiveState.com>
2070 * library/button.tcl (ButtonLeave): corrected the 3
2071 implementations of ButtonLeave to check for Priv(relief) existing
2072 before trying to use it. [Patch #541849]
2074 * generic/tkTextDisp.c (DisplayLineBackground):
2075 * unix/tkUnix3d.c (Tk_3DHorizontalBevel):
2076 * unix/tkUnixFont.c (Tk_DrawChars): applied fixes to not overrun
2077 the X window 16-bit size limit. [Patch #541999] (bonfield)
2079 2002-04-22 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2081 * generic/tkTextDisp.c (GetXView, GetYView): Comparison with
2082 previous values of scrollbar range are now done in a way that is
2083 sensitive to the bizarreness of floating-point on architectures
2084 where IEEE-FP is not used on the processor. Also increased the
2085 size of the temporary buffer to take account of the fact that
2086 TCL_DOUBLE_SPACE is meant to only imply enough space to take a
2087 printed double and trailing '\0', and no more. [Bug #223739]
2088 (FP_EQUAL_SCALE): New macro to help compare floating-point numbers
2089 for equality in a sane way, used in GetXView and GetYView.
2091 2002-04-12 Jeff Hobbs <jeffh@ActiveState.com>
2093 * generic/tkWindow.c (TkCloseDisplay): Added to centralize where a
2094 display was closed. This handles freeing memory associated with a
2095 display and closing it.
2096 (DeleteWindowsExitProc): actually close displays. This would also
2097 ideally be done in Tk_DestroyWindow when the last window on the
2098 display has been closed, but that still has unresolved order of
2100 (Tk_DestroyWindow): added TkFocusFree call.
2102 * generic/tkStubInit.c:
2103 * generic/tkIntPlatDecls.h:
2104 * generic/tkIntDecls.h:
2105 * generic/tkInt.decls: added TkFocusFree, TkClipCleanup and
2106 TkGCCleanup generic private procs, and TkWmCleanup, TkSendCleanup
2107 and TkFreeXId unix private procs.
2110 * unix/tkUnixXId.c (TkFreeXId): frees XID resources.
2111 Made idCleanupScheduled a Tcl_TimerToken (was int) in TkDisplay
2112 structure to allow us to delete the timer scheduled for it.
2114 * unix/tkUnixWm.c (TkWmStackorderToplevel): ensure children
2116 (ConfigureEvent, ComputeReparentGeometry): Add extra wm tracing info
2117 (TkWmRestackToplevel): initialize changes to 0 to prevent UMR.
2118 Use WaitForConfigureNotify on all windows. This part still
2119 requires fixing as it is the root of the 2 second raise delay on
2120 some window managers (those that use extra wrapper windows of
2123 * unix/tkUnixSend.c (TkSendCleanup): free send-related resources
2125 * unix/tkUnixEvent.c (TkpCloseDisplay): call TkSendCleanup and
2128 * unix/tkUnixSelect.c (SelRcvIncrProc): added missing Tcl_Release
2131 * generic/tkGet.c (FreeUidThreadExitProc): free thread-specific
2132 resources on thread exit
2134 * generic/tkFocus.c (TkFocusFree): frees TkMainInfo data
2135 * generic/tkClipboard.c (TkClipCleanup): frees TkDisplay data
2136 * generic/tkGC.c (TkGCCleanup): frees TkDisplay data
2138 * unix/tkUnixFont.c (FontPkgCleanup): cleanup thread specific font
2139 resources on thread exit.
2141 * mac/tkMacXStubs.c (TkpOpenDisplay): memset the initial display
2144 * generic/tkOption.c (OptionThreadExitProc): freed tsd option
2145 stacks on thread exit.
2146 (Tk_GetOption): free mem used to get Tk_Uid
2148 * generic/tkMenu.c (ConfigureMenu): freed saved options in all
2151 * win/tkWinInt.h: declaration for TkWinGetUnicodeEncoding
2152 * win/tkWinDialog.c (GetFileNameW): use TkWinGetUnicodeEncoding
2153 * win/tkWinInit.c (TkpDisplayWarning): use TkWinGetUnicodeEncoding
2154 * win/tkWinFont.c: use TkWinGetUnicodeEncoding instead of static
2157 * win/tkWinX.c (Tk_SetCaretPos): remove WM_IME_STARTCOMPOSITION
2158 and place the IME position within Tk_SetCaretPos. Cache results in
2159 Tk_SetCaretPos to reduce unnecessary repositioning. Also call
2160 DestroyCaret if we receive WM_KILLFOCUS.
2161 (TkpOpenDisplay): ZeroMemory the initial display structures.
2162 (TkWinGetUnicodeEncoding): Added so that Windows only needs to
2163 cache this value one, and then free it in TkWinXCleanup.
2164 (HandleIMEComposition): add support for Win98 and ATOK13
2167 * generic/tkConsole.c (ConsoleCmd): correct return that should
2168 have just set result code.
2170 * generic/tkImgPhoto.c: Added PhotoFormatThreadExitProc to clean
2171 up on thread exit. (Tk_PhotoPutBlock) slight code updates
2173 * generic/tkPanedWindow.c (DestroyPanedWindow, ConfigureSlaves):
2174 fix mem leaks in not freeing slave info
2177 * win/tcl.m4: Enabled COFF as well as CV style debug info with
2178 --enable-symbols to allow Dr. Watson users to see function info.
2179 More info on debugging levels can be obtained at:
2180 http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
2182 2002-04-10 Mo DeJong <mdejong@users.sourceforge.net>
2188 * win/tkWinWm.c: Update wm stackorder usage message
2189 to make it clear that either 1 or 3 arguments are
2190 required. [Bug 540013]
2192 2002-04-08 Daniel Steffen <das@users.sourceforge.net>
2194 * mac/tkMacProjects.sea.hqx: added tkPanedWindow.c to projects
2195 * mac/tkMacAppInit.c: fixes to MSL stdin/stdout hookup to the
2196 TkConsole when using shared MSL libraries; fix for crashing
2197 bug on exit: writing to stdin/sterr when console has already
2198 been destroyed. (both fixes need support in MSL, see
2199 'CW Pro6 changes' in tcl/mac/tcltkMacBuildSupport.sea.hqx)
2200 * mac/tkMacDialog.c: fixes to Navigation Services Dialog filter.
2201 * mac/tkMacDraw.c: add panic for overwide TkImages that would
2202 crash Tk on mac otherwise.
2204 2002-04-05 Jeff Hobbs <jeffh@ActiveState.com>
2206 * mac/tkMacXStubs.c: added Tk_SetCaretPos stub (does nothing).
2207 * win/tkWinX.c: added Tk_SetCaretPos code to position IME windows
2208 correctly when WM_IME_STARTCOMPOSITION is received.
2209 * unix/tkUnixKey.c: added Tk_SetCaretPos and code for setting
2210 XIM caret in TkpGetString.
2212 * generic/tkStubInit.c:
2213 * generic/tkDecls.h:
2214 * generic/tk.decls: added Tk_SetCaretPos declaration. This command
2215 allows users to indicate the cursor position and is used by XIM
2216 (Unix) or IME (Windows) to place the caret box correctly. It is
2217 also part of correct Accessibility style on Windows to make the
2218 magnifier jump to the focus point.
2220 * win/tkWinButton.c (TkpDisplayButton):
2221 * generic/tkTextMark.c (TkTextInsertDisplayProc):
2222 * generic/tkCanvText.c (DisplayCanvText):
2223 * generic/tkEntry.c (DisplayEntry): added Tk_SetCaretPos calls
2225 * generic/tkInt.h: added TK_XIM_SPOT #define (default 1).
2226 Added XFontSet attribute to TkDisplay when TK_XIM_SPOT is true.
2227 * generic/tkEvent.c (Tk_HandleEvent): made sure inputContexts are
2228 not getting created on DestroyNotify events (for dead windows).
2229 Added over-the-spot support if TK_XIM_SPOT is defined (default).
2230 The is the nicer XIM behavior, but uses a bit more memory.
2232 * unix/tkUnixEvent.c:
2233 * generic/tkWindow.c: moved OpenIM over to tkUnixEvent.c.
2234 Removed setting inputContext to null in Tk_MakeWindowExist as it
2237 * unix/tkUnixWm.c (CreateWrapper): Removed redundat setting of
2238 inputContext to null.
2240 * win/Makefile.in: changed gdb and shell targets to properly build
2241 all binaries before running (otherwise an error often occured).
2243 2002-03-28 David Gravereaux <davygrvy@pobox.com>
2245 * win/.cvsignore (new):
2246 * win/lamp.bmp (new):
2248 * win/nmakehlp.c (new):
2249 * win/rules.vc: Brought the makefile up-to-date with Tcl's one.
2250 This now has support for Win9x issues and the winhelp target now
2251 exists. Color scheme can be changed. I'm just imparting a first
2252 suggestion using orange :) I'll have to think about the install
2253 portion of the helpfile as I'll need to do some tricks to insert
2254 tk's contents file into Tcl's using some special winhlp32.exe
2255 switches. [Bug 533862 527941]
2257 * win/makefile.vc: Tk helpfile is now installing itself into Tcl's
2258 contents file as part of the install target and rebuilding the
2259 contents table as desired. [Bug 527941]
2261 * doc/console.n: Changed topic from "Tcl Built-In Commands" to
2262 "Tk Built-In Commands"
2264 * win/buildall.vc.bat: Update to match Tcl.
2266 2002-03-26 Andreas Kupries <andreask_kupries@users.sourceforge.net>
2268 * unix/tkUnixFont.c: Added inclusion of <arpa/inet.h>. This fixes
2269 a GCC/HPUX problem with missing a "htons". See also
2270 "tclUnixPort.h" for equivalent code.
2272 2002-03-21 David Gravereaux <davygrvy@pobox.com>
2274 * win/makefile.vc: Changed optimize flag to -0ti instead of -02.
2277 2002-03-20 Don Porter <dgp@users.sourceforge.net>
2279 * generic/tkButton.c (ButtonTextVarProc,ButtonVarProc):
2280 * generic/tkCmds.c (WaitVariableProc):
2281 * generic/tkEntry.c (EntryTextVarProc):
2282 * generic/tkListbox.c (ListboxListVarProc):
2283 * generic/tkMenu.c (MenuVarProc):
2284 * generic/tkMenubutton.c (MenuButtonTextVarProc):
2285 * generic/tkMessage.c (MessageTextVarProc):
2286 * generic/tkScale.c (ScaleVarProc): Updates to handle change in
2287 type of part2 argument of Tcl_VarTraceProc typedef. [TIP 27]
2290 2002-03-19 Jeff Hobbs <jeffh@ActiveState.com>
2292 * generic/tkOldConfig.c (Tk_ConfigureValue): prevent leaving
2293 interp->result as NULL.
2295 2002-03-07 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2297 * library/text.tcl (TextPasteSelection): Renaming of TextPaste to
2298 prevent confusion with tk_textPaste. Stopped code from inserting
2299 selections twice, which seems to have happened with TIP#26, and
2300 reorganized code to reduce amount of stuff protected by catch
2301 which is tricky to maintain.
2302 (tk_textPaste): Reduce amount of code protected by catch.
2304 2002-03-06 Mo DeJong <mdejong@users.sourceforge.net>
2306 * win/tkWinX.c: Define _WIN32_IE as 0x0300
2307 before including commctrl.h so that we can
2308 access the InitCommonControlsEx API when
2309 building Tk with mingw.
2311 2002-03-06 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2313 * README, generic/tk.h, unix/configure.in, unix/tk.spec:
2314 * win/configure.in: Bumped patchlevel; this might need to change
2315 in the future, but it will help us distinguish between the CVS
2316 version and the most recent released version.
2318 2002-03-05 Jeff Hobbs <jeffh@ActiveState.com>
2320 *** 8.4a4 TAGGED FOR RELEASE ***
2322 * unix/README: updated --* options docs.
2324 * unix/tk.spec: fixed URL refs to use www.tcl.tk or SF.
2326 2002-03-04 Jeff Hobbs <jeffh@ActiveState.com>
2331 * win/README: updated to use www.tcl.tk URL.
2333 2002-03-03 Jeff Hobbs <jeffh@ActiveState.com>
2335 * library/entry.tcl: added catch around Triple-1 binding use of
2338 2002-02-28 Don Porter <dgp@users.sourceforge.net>
2340 * library/console.tcl (ConsoleBind): Corrected console <<Paste>>
2341 binding on Unix platforms.
2343 2002-02-26 Jeff Hobbs <jeffh@ActiveState.com>
2345 * unix/configure: Regen.
2346 * unix/tcl.m4: Update from Tcl.
2348 * generic/tkWindow.c (Tk_MainWindow, Tk_GetNumMainWindows):
2349 protect against being called before Tcl stubs are init'ed.
2350 [Bug #220916] (porter)
2352 2002-02-25 Jeff Hobbs <jeffh@ActiveState.com>
2354 * generic/tkText.c (ConfigureText): reenable the blinking cursor
2355 on state change where necessary. [Bug #503772]
2357 * tests/listbox.test:
2358 * generic/tkListbox.c: corrected error handling when setting to an
2359 invalid listvar value. [Bug #503613]
2361 * library/scale.tcl: mirror B2 bindings to B3 on Windows to better
2362 accomodate two button mice. [Patch #493145]
2364 * library/panedwindow.tcl: improved proxy sash handling. (boudaillier)
2366 2002-02-25 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2368 * tests/filebox.test: Reorganised and fixed so that tests are
2369 executed fewer times (!) and the automatic extension adding
2370 behaviour of tk_getSaveFile is tested.
2372 2002-02-23 Mo DeJong <mdejong@users.sourceforge.net>
2374 * unix/configure: Regen.
2375 * unix/tcl.m4: Update from Tcl.
2377 2002-02-22 Jeff Hobbs <jeffh@ActiveState.com>
2379 * generic/tkPanedWindow.c (PanedWindowWidgetObjCmd): fixed returns
2380 that should have been breaks instead. Corrected .pw configure
2381 handling for insufficient args. [Patch #521436] (boudaillier)
2383 * mac/tkMacDefault.h:
2384 * unix/tkUnixDefault.h:
2385 * win/tkWinDefault.h: changed panedwindow default relief to flat,
2386 a more natural outer relief.
2388 * library/panedwindow.tcl (ReleaseSash): changed to not pass x and
2389 y args at all (they aren't used).
2390 Added proc comments. Made configuring sash cursor more efficient.
2391 Added Cursor timer that restores the default cursor when pointer
2392 is no longer over the sash. This is necessary because Leave
2393 events won't be seen when moving into a paned child.
2395 2002-02-22 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2397 * library/demos/widget: New section "Paned Windows"
2398 * library/demos/paned2.tcl, library/demos/paned1.tcl: New files.
2400 * library/panedwindow.tcl (ReleaseSash): Added missing arguments.
2401 * library/tk.tcl: Bindings for paned window were not being loaded
2404 * unix/tkUnixMenu.c (GetMenuLabelGeometry,DrawMenuEntryLabel):
2405 Stop meaningless GCC warnings.
2407 2002-02-21 Jeff Hobbs <jeffh@ActiveState.com>
2409 * doc/panedwindow.n (new):
2410 * generic/tkPanedWindow.c (new):
2412 * generic/tkWindow.c:
2413 * library/panedwindow.tcl (new):
2414 * mac/tkMacDefault.h:
2415 * tests/panedwindow.test (new):
2417 * unix/tkUnixDefault.h:
2420 * win/tkWinDefault.h: added implementation of TIP #41, panedwindow
2421 widget. [Patch #512503] (melski)
2423 * generic/tkOption.c (ReadOptionFile): fixed Tcl_Seek casting to
2424 remove warnings (we expect no option files with be > 2GB).
2426 * unix/configure: regenerated
2427 * unix/tcl.m4: updated to sync with Tcl's tcl.m4
2428 Added --enable-64bit support for AIX-4 using IBM's xlc (-q64 flag).
2430 2002-02-19 Don Porter <dgp@users.sourceforge.net>
2432 * changes: First draft of updated changes for 8.4a4 release.
2434 2002-02-19 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2436 * generic/tkImgPhoto.c (MatchFileFormat): Tcl_Seek takes
2437 Tcl_WideInt offset (three places.)
2438 * generic/tkImgPPM.c (FileReadPPM): Tcl_Seek takes Tcl_WideInt offset.
2439 * generic/tkFrame.c (ConfigureFrame): Stop GCC warning.
2441 * generic/tkImgGIF.c: Made file meet the formatting rules from the
2442 Tcl Engineering Manual better; mostly differences in whitespace.
2444 2002-02-18 Jeff Hobbs <jeffh@ActiveState.com>
2446 * unix/configure: regen'd
2448 * unix/configure.in: added macros and calls to SC_TCL_EARLY_FLAGS
2449 and SC_TCL_64BIT_FLAGS, part of TIP #72.
2451 2002-02-14 Mo DeJong <mdejong@users.sourceforge.net>
2453 * library/entry.tcl:
2454 * library/text.tcl: Adjust <Double-1> and <Triple-1> bindings
2455 so that no anchor point is set and the insertion cursor is
2456 set to the last character in the selection. [Bug 220943]
2457 * tests/event.test: Add test cases for double click and
2458 drag as well as triple click and drag in the text and
2461 2002-02-14 Mo DeJong <mdejong@users.sourceforge.net>
2463 * tests/event.test (_text_ind_to_x_y, _get_selection): Fix
2464 incorrect use of results from bbox invocation so that
2465 y center point for a give index is calculated correctly.
2466 Add new method to return the selection and use it in
2467 test cases. Always lappend to the result list to avoid
2468 case where initial result includes a space.
2470 2002-02-07 Don Porter <dgp@users.sourceforge.net>
2474 * mac/tkMacKeyboard.c:
2475 * win/tkWinDialog.c:
2476 * win/tkWinTest.c: modified some callers of Tcl routines that
2477 were restored to return (char *) pointing into Tcl_DStrings.
2479 2002-02-03 eric melski <ericm@interwoven.com>
2481 * generic/tkImage.c (Tk_ImageObjCmd): Clean up bogus for loop in
2482 [image inuse] subcommand [Bug #485803].
2484 2002-02-01 Jeff Hobbs <jeffh@ActiveState.com>
2486 * generic/tkCmds.c (Tk_TkObjCmd): don't use 'bool' as an arg as it
2487 conflicts with the C99 spec. [Bug #511956] (ingham)
2489 2002-02-01 David Gravereaux <davygrvy@pobox.com>
2491 * win/makefile.vc: unset macro located in the tktest target
2492 caused a failure to build. [Bug 511652]
2494 2002-01-30 Don Porter <dgp@users.sourceforge.net>
2496 * win/stubs.c (XSetCommand): Overlooked CONSTification.
2498 2002-02-01 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2500 * doc/photo.n: Documented transparency subcommand.
2501 * tests/imgPhoto.test (imgPhoto-4.40...imgPhoto-4.68): Tests for
2502 the transparency subcommand.
2503 * generic/tkImgPhoto.c (ImgPhotoCmd): Added transparency
2504 subcommand (see TIP #14.)
2506 2002-01-31 Todd Helfter <tmh@users.sourceforge.net>
2507 * generic/tkMenu.c (ConfigureMenuCloneEntries)
2508 * tests/menu.test (menu3.68)
2509 Correct and test for logic error when cloning menus. [Bug #508988]
2511 2002-01-30 Don Porter <dgp@users.sourceforge.net>
2513 * generic/tk.decls: The POTENTIAL INCOMPATIBILITY in the changing
2514 interface of Tk_ParseArgv can now be removed by the -DUSE_NON_CONST
2516 * generic/tkDecls.h: make genstubs
2518 2002-01-29 Andreas Kupries <andreas_kupries@users.sourceforge.net>
2520 * win/tkWinInit.c (TkpGetAppName): TIP 27 fixup. The code now does
2521 not write into the CONST path returned by "argv0" and
2522 Tcl_SplitPath anymore.
2524 2002-01-28 Mo DeJong <mdejong@users.sourceforge.net>
2526 * unix/configure: Regen.
2527 * unix/configure.in: Don't set TCL_LIB_SPEC and
2528 TCL_STUB_LIB_SPEC variables since this breaks
2529 the AIX build. This was used in the past to
2530 support linking with Tcl from the build dir
2531 or the install dir, but it is no longer needed.
2533 2002-01-28 Mo DeJong <mdejong@users.sourceforge.net>
2535 * unix/Makefile.in: Remove commented out vars.
2536 * unix/configure: Regen.
2537 * unix/configure.in: Don't subst vars that are already
2538 taken care of in SC_LOAD_TCLCONFIG.
2539 * unix/tcl.m4: Update from Tcl.
2540 * win/configure: Regen.
2541 * win/tcl.m4: Update from Tcl.
2543 2001-01-27 Daniel Steffen <das@users.sourceforge.net>
2545 * generic/tkFileFilter.c:
2547 * mac/tkMacKeyboard.c:
2548 * mac/tkMacMenus.c: TIP 27 CONSTification induced changes
2550 2002-01-25 Don Porter <dgp@users.sourceforge.net>
2552 * All changes below are Patch 505159
2559 * generic/tk.decls (Tk_AddOption,Tk_CanvasGetCoord,Tk_GetPixels)
2560 (Tk_GetScreenMM,Tk_NameToWindow,Tk_ParseArgv):
2561 * generic/tkArgv.c (Tk_ParseArgv):
2562 * generic/tkCanvLine.c (ParseArrowShape):
2563 * generic/tkCanvUtil.c (Tk_CanvasGetCoord,Tk_CanvasTagsParseProc)
2564 (Tk_CanvasTagsPrintProc,Tk_GetDash):
2565 * generic/tkCanvas.c (ConfigureCanvas):
2566 * generic/tkGet.c (Tk_GetPixels,Tk_GetScreenMM):
2567 * generic/tkImgPhoto.c (ImgPhotoCmd):
2568 * generic/tkMain.c (Tk_MainEx):
2569 * generic/tkOldConfig.c (FormatConfigInfo):
2570 * generic/tkOption.c (Tk_AddOption):
2571 * generic/tkText.c (TextWidgetCmd,TkTextGetTabs,DumpSegment):
2572 * generic/tkText.h (TkTextCreateTag):
2573 * generic/tkTextTag.c (TkTextCreateTag):
2574 * generic/tkWindow.c (Tk_NameToWindow,Initialize):
2575 * mac/tkMacCursor.c (FindCursorByName,TkGetCursorByName):
2576 * mac/tkMacWm.c (Tk_WmCmd):
2577 * unix/tkUnixCursor.c (TkGetCursorByName):
2578 * unix/tkUnixSend.c (ValidateName):
2579 * unix/tkUnixWm.c (Tk_WmCmd):
2580 * win/tkWinCursor.c (TkGetCursorByName):
2581 * win/tkWinWm.c (Tk_WmCmd): Updated callers of Tcl_SplitList and
2583 * generic/tkDecls.h: make genstubs
2584 ***POTENTIAL INCOMPATIBILITY***
2585 Includes a source incompatibility in the argv argument of Tcl_ParseArgv.
2587 * generic/tkBind.c (DeleteVirtualEvent):
2588 * generic/tkCanvas.c (ScrollFractions, CanvasWidgetCmd)
2589 (CanvasUpdateScrollbars):
2590 * generic/tkTestTag.c (TkTextTagCmd): Updated callers of
2591 Tcl_GetStringResult. Rewrote PrintScrollFractions to
2592 ScrollFractions to stop scribbling directly on interp->result.
2594 * generic/tkInt.decls (TkGetDefaultScreenName, TkpDisplayWarning)
2596 * generic/tkCanvPs.c (Tk_PostscriptColor, Tk_PostscriptFont):
2597 * generic/tkEntry.c (EntrySetValue, EntryValidateChange)
2598 (ExpandPercents, EntryValueChanged, Tk_EntryObjCmd, DestroyEntry)
2599 (ConfigureEntry, EntryComputeGeometry, InsertChars, DeleteChars)
2600 (EntryFetchSelection, EntryTextVarProc, Tk_SpinBoxObjCmd)
2601 (SpinboxWidgetObjCmd):
2602 * generic/tkMain.c (Prompt):
2603 * generic/tkMenu.c (MenuVarProc):
2604 * generic/tkMenubutton.c (ConfigureMenuButton, MenuButtonTextVarProc):
2605 * generic/tkMessage.c (ConfigureMessage, MessageTextVarProc):
2606 * generic/tkWindow.c (GetScreen, Initialize):
2607 * mac/tkMacInit.c (TkpInit, TkpDisplayWarning):
2608 * mac/tkMacXStubs.c (TkGetDefaultScreenName, TkpOpenDisplay):
2609 * unix/tkUnix.c (TkGetDefaultScreenName):
2610 * unix/tkUnixEvent.c (TkpOpenDisplay):
2611 * unix/tkUnixInit.c (TkpGetAppName, TkpDisplayWarning):
2612 * unix/tkUnixSend.c (SendEventProc):
2613 * win/tkWinInit.c (TkpGetAppName, TkpDisplayWarning):
2614 * win/tkWinX.c (TkGetDefaultScreenName,TkpOpenDisplay): Updated
2615 callers of Tcl_GetVar, Tcl_GetVar2
2616 * generic/tkIntDecls.h: make genstubs
2618 * generic/tkCanvPs.c (TkCanvPostscriptCmd):
2619 * generic/tkImgBmap.c (TkGetBitmapData):
2620 * generic/tkOption.c (ReadOptionFile):
2621 * mac/tkMacInit.c (TkpInit, TkpGetAppName):
2622 * win/tkWinInit.c (TkpGetAppName): Updated callers of
2623 Tcl_SplitPath, Tcl_JoinPath, and Tcl_TranslateFileName.
2625 2002-01-18 Mo DeJong <mdejong@users.sourceforge.net>
2627 * tests/wm.test: Rewrite stackorder tests that
2628 deal with toplevels that have the overrideredirect
2629 flag set. [Tk bug 492259]
2631 2002-01-18 Don Porter <dgp@users.sourceforge.net>
2633 * win/tkWinDialog.c: Overlooked Tcl_GetIndexFromObj callers.
2635 2001-01-18 Daniel Steffen <das@users.sourceforge.net>
2637 * mac/tkMacDialog.c:
2638 * mac/tkMacSend.c: TIP 27 CONSTification broke the mac
2639 build in a few places.
2641 2002-01-16 Jeff Hobbs <jeffh@ActiveState.com>
2643 * generic/tkListbox.c (ChangeListboxOffset): improved tracking
2644 when scrolling on x axis with entry/text. [Bug #225025] (voskuil)
2646 2002-01-16 Don Porter <dgp@users.sourceforge.net>
2648 * generic/tk3d.c (Tk_GetReliefFromObj):
2649 * generic/tkBind.c (Tk_EventObjCmd, HandleEventGenerate):
2650 * generic/tkButton.c (ButtonWidgetObjCmd):
2651 * generic/tkCanvas.c (CanvasWidgetCmd, FindItems):
2652 * generic/tkClipboard.c (Tk_ClipboardObjCmd):
2653 * generic/tkCmds.c (Tk_BellObjCmd, Tk_TkObjCmd, Tk_TkwaitObjCmd)
2654 (Tk_UpdateObjCmd, Tk_WinfoObjCmd, Tk_WmObjCmd):
2655 * generic/tkConfig.c (DoObjConfig):
2656 * generic/tkEntry.c (EntryWidgetObjCmd, SpinboxWidgetObjCmd):
2657 * generic/tkFocus.c (Tk_FocusObjCmd):
2658 * generic/tkFont.c (Tk_FocusObjCmd, ConfigAttributesObj):
2659 * generic/tkFrame.c (Tk_FrameObjCmd):
2660 * generic/tkGet.c (Tk_GetAnchorFromObj, Tk_GetJustifyFromObj):
2661 * generic/tkGrab.c (Tk_GrabObjCmd):
2662 * generic/tkGrid.c (Tk_GridObjCmd, GridRowColumnConfigureCommand)
2663 (GridSlavesCommand, ConfigureSlaves):
2664 * generic/tkImage.c (Tk_ImageObjCmd):
2665 * generic/tkImgBmap.c (ImgBmapCmd):
2666 * generic/tkImgGIF.c (FileReadGIF):
2667 * generic/tkImgPhoto.c (ImgPhotoCmd):
2668 * generic/tkListbox.c (ListboxWidgetObjCmd, ListboxSelectionSubCmd)
2670 * generic/tkMenu.c (MenuWidgetObjCmd, MenuAddOrInsert, MenuCmd)
2671 (ConfigureMenu, CloneMenu):
2672 * generic/tkMenubutton.c (MenuButtonWidgetObjCmd):
2673 * generic/tkMessage.c (MessageWidgetObjCmd):
2674 * generic/tkOption.c (Tk_OptionObjCmd):
2675 * generic/tkPack.c (Tk_PackObjCmd, ConfigureSlaves):
2676 * generic/tkPlace.c (Tk_PlaceObjCmd):
2677 * generic/tkScale.c (ScaleWidgetObjCmd):
2678 * generic/tkSelect.c (Tk_SelectionObjCmd):
2679 * generic/tkSquare.c (SquareWidgetObjCmd):
2680 * generic/tkTest.c (TestobjconfigObjCmd, TrivialConfigObjCmd)
2681 (TestfontObjCmd): Updates to handle change in type of tablePtr
2682 argument of Tcl_GetIndexFromObj(Struct) from (char **) to
2683 (CONST char **). [TIP 27] [Patch 504705]
2685 * generic/tkCanvText.c (GetSelText):
2686 * generic/tkEntry.c (Entry{FetchSelection,Setvalue},ExpandPercents):
2687 * generic/tkSelect.c (HandleTclCommand):
2688 * generic/tkText.c (TextSearchCmd):
2689 * generic/tkTextIndex.c (TkTextMakeByteIndex, TkTextIndexBackChars):
2690 * mac/tkMacFont.c (Tk_MeasureChars, BreakLine):
2691 * unix/tkUnixMenu.c (DrawMenuUnderline):
2692 * win/tkWinMenu.c (GetEntryText, DrawMenuUnderline): Updated
2693 callers of Tcl_Utf* and Tcl_Regexp* APIs to reflect TIP 27 API
2694 changes (see Tcl Patch 471509). [Patch 471513]
2696 2002-01-16 Mo DeJong <mdejong@users.sourceforge.net>
2698 * unix/configure: Regen.
2699 * unix/tcl.m4: Update from Tcl.
2700 * win/configure: Regen.
2701 * win/tcl.m4: Update from Tcl.
2703 2002-01-04 Don Porter <dgp@users.sourceforge.net>
2705 * generic/tkMain.c (Tk_MainEx): Updated callers of CONSTified
2706 Tcl interfaces Tcl_EvalFile and TclGetStartupScriptFileName.
2708 * generic/tkConsole.c (ConsoleOutputProc, TkConsolePrint):
2709 * generic/tkInt.h (TkConsolePrint):
2710 * mac/tkMacAppInit.c (TkConsolePrint): Updated Tk's console to
2711 CONSTified channel driver interface. [Tcl Patch 503565, Tk Patch
2714 2002-01-11 Mo DeJong <mdejong@users.sourceforge.net>
2716 Use ${libdir} instead of ${exec_prefix}/lib. [Tcl bug 489370]
2718 * unix/configure: Regen.
2719 * unix/configure.in: Define and use libdir.
2720 * win/configure: Regen.
2721 * win/configure.in: Define libdir.
2723 2002-01-11 Mo DeJong <mdejong@users.sourceforge.net>
2725 * unix/Makefile.in: Burn Tcl and Tk build
2726 directories into tktest executable to avoid crashes
2727 caused by ld loading a previously installed version
2728 of the tcl or tk shared libraries. Remove setting
2729 of LD_LIBRARY_PATH, LIBPATH, and SHLIB_PATH
2730 before running tktest since it should no
2733 2002-01-11 Mo DeJong <mdejong@users.sourceforge.net>
2735 Enable use of Tcl stubs when building Tk as
2736 a shared library. This should fix the build
2737 under AIX. [Bugs 220858, 220955, 220921]
2739 * unix/Makefile.in: Add TCL_STUB_LIB_SPEC and
2740 TCL_STUB_LIB_FLAG variables.
2741 * unix/configure: Regen.
2742 * unix/configure.in: Pass TCL_STUB_LIB_SPEC into
2743 Makefile and use it when linking the tk shared library.
2744 Define USE_TCL_STUBS when building shared. Subst
2745 TCL_STUB_LIB_SPEC and TCL_STUB_LIB_FLAG.
2747 2002-01-08 D. Richard Hipp <drh@hwaci.com>
2749 * win/tkWinMenu.c: Fix the following bug: If you select an entry
2750 on a cascade menu then the next time the parent menu is posted, the
2751 cascade entry was active. Also, if you traverse to a disabled entry
2752 using keystrokes and press ENTER on the disabled entry, then that
2753 entry appears active the next time the menu is posted. The same
2754 patch fixes both problems.
2756 2002-01-04 Don Porter <dgp@users.sourceforge.net>
2758 * generic/tkBind.c (TkBindFree):
2759 * generic/tkGrid.c (ResolveConstraints,CheckSlotData,DestroyGrid):
2760 * generic/tkSelect.c (Tk_DeleteSelHandler,TkSelDeadWindow): Replaced
2761 Tcl_Free calls with ckfree so that memory debugging is fully supported.
2763 2001-12-28 Jeff Hobbs <jeffh@ActiveState.com>
2765 * test/winButton.test:
2766 * win/tkWinButton.c: added updated patch #463234 which returns the
2767 default sizing behavior (not so native), but enables native L&F
2768 with negative sizing (-11 for example).
2770 * library/text.tcl (tk::TextButton1): made text receive focus even
2771 in disabled state for Windows to show selection and allow
2772 mouse-wheel scrolling.
2774 * win/tkWinInit.c (TkpDisplayWarning): added Tcl_DStringFree's
2777 * win/tkWinX.c: added TkWinProcs that represent a function table
2778 to switch between unicode and ansi procs on Windows. This is
2779 analogous to the TclWinProcs. Using Tcl_WinUtfToTChar, we can
2780 easily take advantage of using unicode functions where available
2781 without having to switch on the platform id each time.
2783 * win/tkWinWm.c (InitWindowClass): corrected init routines to
2784 allow unicode in window titles on Windows (for Win2K/XP).
2785 (TkWmStackorderToplevel): Corrected casts to enable debug compile
2787 * win/configure: regen'ed
2788 * win/tcl.m4: added shell32.lib to link libs, as these are
2789 necessary for new directory chooser (when enabled).
2791 * win/tkWinDialog.c (Tk_MessageBoxObjCmd): use MessageBoxW for
2792 proper display of unicode errors.
2793 Added patch which uses new OLE based directory chooser. This
2794 still has some issues, so is disabled by default. [Patch #468139]
2795 (ColorDlgHookProc) Corrected ability to use unicode chars in
2796 tk_chooseColor -title.
2798 2001-12-27 Jeff Hobbs <jeffh@ActiveState.com>
2800 * win/tkWinInit.c (TkpDisplayWarning): Use MessageBoxW in case the
2801 error displayed has unicode chars. [Bug #485986]
2803 2001-12-27 Daniel Steffen <das@users.sourceforge.net>
2806 * mac/tkMacResource.r: synced up tkInit features to unix/win:
2807 use existing tkInit proc if defined. Added spinbox.tcl resource.
2808 Used TclGetEnv() instead of Tcl_GetVar2(interp, env)
2809 * mac/tkMacApplication.r:
2810 * mac/tkMacLibrary.r: minor version resources cleanup
2812 2001-12-27 Jeff Hobbs <jeffh@ActiveState.com>
2814 * generic/tkButton.c (ButtonTextVarProc): guard against being
2815 called while the *button/label is being deleted. [Bug #490051]
2817 * library/entry.tcl:
2818 * library/spinbox.tcl:
2819 * library/text.tcl: added extra checks against bug #220269 and
2820 made spinbox reuse more of the entry procedure code.
2822 2001-12-20 Mo DeJong <mdejong@users.sourceforge.net>
2824 * unix/configure: Regen.
2825 * unix/tcl.m4: Update from Tcl.
2827 2001-12-19 Mo DeJong <mdejong@users.sourceforge.net>
2829 * unix/configure: Regen.
2830 * unix/tcl.m4: Update from Tcl.
2832 2001-12-18 Mo DeJong <mdejong@users.sourceforge.net>
2834 * unix/configure: Regen.
2835 * unix/configure.in: Move EXP file changes over from
2836 Tcl configure script to fix AIX build with gcc. [Bug 220955]
2838 2001-12-18 Mo DeJong <mdejong@users.sourceforge.net>
2841 * win/Makefile.in: Use $(MAKE) instead of make
2842 in the tcltest rule.
2844 2001-12-18 Don Porter <dgp@users.sourceforge.net>
2846 * tests/event.test (event-click-drag-1.2): Corrected test that
2847 failed on Solaris/CDE due to text scrolling. [Bug 413735]
2849 2001-12-18 Jeff Hobbs <jeffh@ActiveState.com>
2851 * library/spinbox.tcl (ButtonDown): added catch to ignore
2852 possible error in after cancel when Priv(afterId) isn't defined.
2854 * doc/spinbox.n: corrected spin(up|down) -> button(up|down)
2856 2001-12-14 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2858 * doc/getOpenFile.n: Documented change.
2859 * library/tkfbox.tcl (SetFilter): Added code to guess the correct
2860 default extension from whatever value was selected in the
2861 filetypes option menu. Adapted from code by Chris Nelson
2862 submitted in Patch #492220.
2864 2001-12-12 Jeff Hobbs <jeffh@ActiveState.com>
2866 * unix/tkUnixWm.c (TkWmStackorderToplevelWrapperMap): added static
2868 2001-12-05 Jeff Hobbs <jeffh@ActiveState.com>
2871 * generic/tkText.h: changed TkTextEditType enums to be prefaced
2872 with TK_EDIT_ to prevent name collision.
2874 2001-12-05 Daniel Steffen <das@users.sourceforge.net>
2876 * mac/tkMacWm.c: mac implementation of wm stackorder
2877 (patch 481148, TIP 74)
2879 2001-12-03 Mo DeJong <mdejong@users.sourceforge.net>
2881 Add TK patch 481148 to implement TIP 74, the
2882 wm stackorder command.
2884 * doc/winfo.n: Update documentation for the winfo
2885 children command to indicate that top-level windows
2886 are not returned in stacking order.
2887 * doc/wm.n: Add documentation for wm stackorder.
2888 * generic/tkInt.decls (TkWmStackorderToplevel):
2889 Add decl for new function.
2890 * generic/tkIntDecls.h: Regen.
2891 * generic/tkStubInit.c: Regen.
2892 * tests/unixWm.test: Add stackorder command to test
2893 for wm command usage message.
2894 * tests/wm.test: Add new set of tests for generic
2895 window manager methods.
2896 * unix/tkUnixWm.c (Tk_WmCmd, TkWmStackorderToplevelWrapperMap)
2897 (TkWmStackorderToplevel): Add unix implementation of
2898 new wm stackorder command.
2899 * win/tkWinWm.c (Tk_WmCmd, TkWmStackorderToplevelEnumProc)
2900 (TkWmStackorderToplevelWrapperMap, TkWmStackorderToplevel): Add
2901 windows implementation of new wm stackorder command.
2903 2001-12-03 David Gravereaux <davygrvy@pobox.com>
2905 * win/makefile.vc: install target changes by request from
2906 Ryan Casey <scfiead@hotmail.com>.
2908 2001-11-30 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2910 * library/demos/widget: Further overhauling; shrank fonts, made
2911 better use of fonts, added an icon, fixed the About box. Prompted
2912 by Bug #487442 from Vincent Wartelle.
2914 2001-11-29 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2916 * library/palette.tcl (tk_setPalette): Added heuristic to guess
2917 from the background whether to use black or white for the
2918 foreground when not told specifically. Suggested by Chris Nelson,
2919 this makes the command fit the documentation better!
2921 2001-11-27 David Gravereaux <davygrvy@pobox.com>
2923 * win/makefile.vc: Fixed CAT32 target. cat.c is located in the Tcl
2924 source, not the Tk source.
2926 2001-11-27 D. Richard Hipp <drh@hwaci.com>
2928 * library/menu.tcl: Do not allow keyboard traversal of torn-off
2929 menus to visit the (invisible) tearoff bar.
2931 2001-11-26 D. Richard Hipp <drh@hwaci.com>
2933 * win/tkWinMenu.c: disabled menu items show the activebackground
2934 color in their background. This change makes menu behavior
2935 consistent with what native windows does.
2937 2001-11-24 Mo DeJong <mdejong@users.sourceforge.net>
2939 * unix/Makefile.in: Add comments to better describe
2940 TCL_EXE and when it should be available. Add
2941 rule that prints message about running `make genstubs`
2942 when tkStubInit.c is out of date.
2943 * win/Makefile.in: Add TCL_TOOL_DIR and TCL_EXE
2944 variables to better match the Tcl Makefile. Add
2945 genstubs rule so tkSTubInit.c can be regenerated.
2947 2001-11-24 Mo DeJong <mdejong@users.sourceforge.net>
2949 * win/configure: Regen.
2950 * win/configure.in: Don't AC_SUBST CFLAGS_DEBUG, CFLAGS_OPTIMIZE,
2951 or CFLAGS_WARNING since it is now done in SC_CONFIG_CFLAGS.
2952 * win/tcl.m4 (SC_CONFIG_CFLAGS): AC_SUBST DL_LIBS, CFLAGS_DEBUG,
2953 CFLAGS_OPTIMIZE, and CFLAGS_WARNING.
2955 2001-11-23 Daniel Steffen <das@users.sourceforge.net>
2957 Up-port to 8.4 of mac code changes for 8.3.3 & various new
2958 changes for 8.4, some already backported to 8.3.4 (patch #435660)
2960 * library/tk.tcl: added <Key-F1> binding for <<Undo>> on the mac (TIP26)
2962 * library/button.tcl: fixed undefined $Priv(repeated) error for button
2963 without -repeatdelay support
2965 * generic/tkConsole.c:
2966 * library/console.tcl:
2968 * mac/tkMacResource.r: corrected how mac deals with tcl library
2969 files present both in resources and in $tk_library directory.
2971 * generic/tkConsole.c: crashing bug fix when printing to console
2972 at program exit after the console has already been closed.
2973 Now setting gStdoutInterp=NULL in ConsoleClose().
2975 * mac/tkMacInit.c: correct use of Tcl_JoinPath in tk_library
2978 * mac/tkMacMenu.c: special MDEF_PROC_OFFSET only needed for
2979 exactly one specific version of the MWERKS 68k compiler .
2981 * mac/tkMacShLib.exp: removed file
2983 * unix/Makefile.in: removed reference to .exp files
2985 * mac/MWTkBuildLibHeader.h:
2986 * mac/MW_TkBuildLibHeader.pch:
2987 * mac/MW_TkHeaderCommon.h:
2988 * mac/MW_TkOldImgStaticHeader.h:
2989 * mac/MW_TkStaticHeader.h:
2990 * mac/MW_TkStaticHeader.pch: new precompiled header files
2992 * mac/MW_TkHeader.pch:
2993 * mac/MW_TkOldImgHeader.h:
2994 * mac/MW_TkTestHeader.pch: revised precompiled header handling: now
2995 include a common header file 'MW_TkHeaderCommon.h' from all .pch files,
2996 the .pch files themselves now only setup #defines (e.g. BUILD_tk,
2997 STATIC_BUILD, TCL_DEBUG, TCL_THREADS) like in makefiles on other
3002 * mac/tkMacInt.h: use of BUILD_tk and TCL_STORAGE_CLASS like on other
3003 platforms, standardize #include'd files to what's done on other
3004 platforms, removed use of #pragma export, changed extern to EXTERN
3005 where appropriate to enable DLL export via the TCL_STORAGE_CLASS
3008 * mac/tkMacAppearanceStubs.c: removed use of #pragma export
3010 * mac/widget.r: new resource file for 'Widget Demos'
3012 * mac/tkMacProjects.sea.hqx: updated mac build project files:
3013 build support for CodeWarrior Pro6, UnivIntf 3.4 & shared runtime
3014 libraries (see Tcl ChangeLog for details).
3015 changed weak linking so that CFM68k binaries now work on all OS
3016 versions from the free 7.5.5 onwards, with or without AppearanceMgr
3017 and/or NavigationMgr installed.
3018 added target to automatically build 'Widget Demos'
3019 included XML versions of the projects for CW Pro5 or Pro7 users.
3020 use compat/strtod.c instead of MSL's strtod()
3022 * generic/tkInt.decls:
3023 * generic/tkIntDecls.h:
3024 * generic/tkIntPlatDecls.h:
3025 * generic/tkStubInit.c:
3027 * mac/tkMacInt.h: MAC_TCL tk stub support was badly broken due to
3028 multiply defined (mac specific) names in tk.decls and tkInt.decls,
3029 removed the duplicates from the internal unsupported interfaces
3030 "interface tkInt" and "interface tkIntPlat"; moved declaration of
3031 TkpIsWindowFloating from tkMacInt.h to tkInt.decls: interface tkIntPlat.
3032 - these changes to the stub tables might require you to recompile your
3033 Tk extensions if they turn out to reference one of the removed routines
3034 in the wrong table (should be unlikely).
3036 * generic/tkMain.c: MAC_TCL: workaround for broken/non-standard isatty
3037 on MW Pro6, #include <unistd.h> instead of defining isatty
3039 * generic/tkPointer.c: MAC_TCL: #include tkMacInt.h
3041 * generic/tkStubLib.c: MAC_TCL: removed obsolete special casing of mac
3042 headers, standardize #include'd files to what's done on other platforms
3045 * mac/tkMacWindowMgr.c:
3046 * mac/tkMacScrlbr.c:
3050 * mac/tkMacDialog.c:
3051 * mac/tkMacButton.c: renamed obsolete apple API names to modern
3052 equivalents; UH3.4 support: added #include <ControlDefinitions.h>;
3053 fixed munged non-ASCII chars in sources due to bungled latin1<->mac
3054 roman encoding in CVS repository.
3056 * mac/tkMacDialog.c: added support for -filetypes option (fix for bug
3057 tcl #221636); added update event handling for background windows while
3058 in a NavigationMgr dialog; fixed nasty bug when calling CustomGetFile
3059 (missing addr operator) (fix for bug tk #220911 & tcl #219367); renamed
3060 routines conflicting with standard MoreFiles headers (see Tcl ChangeLog
3063 * mac/tkMacApplication.r:
3064 * mac/tkMacLibrary.r:
3065 * mac/tkMacResource.r: fixed obsolete copyrights/dates in version
3066 strings, updated version strings to standard usage, added support for
3067 '(Support Libraries)' subfolder for shared runtime libraries in
3068 unmerged binaries, commented out demo setting of "Tcl Environment
3069 Variables"; reorganized resources among these files to avoid
3070 multiple copies in applications and shared libraries, the script
3071 libraries/Xcursors etc are now no longer duplicated in Wish but are
3072 only included in the resources of Tk.shlb.
3075 * mac/tkMacMDEF.r: changes to support MW Pro 6 68k (vers 0x2400 only)
3076 compiler producing different offset to start of MDEF; fix to static 68k
3077 presence testing when calling the custom MDEF
3080 * mac/tkMacWindowMgr.c: added/fixed AppearanceMgr checks; override
3081 AppearanceMgr version detection on static 68k to ensure static 68k Wish
3082 runs on PPCs with recent AppearanceMgr
3084 * mac/tkMacButton.c: fixed misplaced/missing variable initialization.
3086 2001-11-20 Jeff Hobbs <jeffh@ActiveState.com>
3088 * generic/tkText.c (TextGetText): reworked to use DString for
3089 improved speed. (callewaert, darley)
3090 (DestroyText): plugged mem leak when not clearing stack (callewaert)
3091 (TextGetText): more efficient string size calculation (darley)
3093 2001-11-19 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3095 * library/demos/entry3.tcl: New demo showing off validation and
3098 * library/demos/widget: Some reorganization to make the code
3099 simpler, plus a new entry demo.
3101 2001-11-17 Jeff Hobbs <jeffh@ActiveState.com>
3103 * win/tkWinButton.c (TkpComputeButtonGeometry): corrected the
3104 default size of Windows buttons to conform to the Windows style.
3105 This changes the default size of buttons on Windows.
3106 [Patch #463234] (nelson)
3107 **** POTENTIAL VISUAL INCOMPATABILITY ****
3109 2001-11-16 Jeff Hobbs <jeffh@ActiveState.com>
3111 * library/menu.tcl: corrected menu traversal code on Unix to
3112 better handle entering cascades. [Patch #481219] (oleinick)
3114 2001-11-16 David Gravereaux <davygrvy@pobox.com>
3116 * win/makefile.vc: Install target repaired.
3118 2001-11-15 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3120 * library/demos/image2.tcl: Many improvements to this
3121 image-viewing demo; now uses labelframes and tk_chooseDirectory
3123 * library/palette.tcl (::tk::RecolorTree): Made this work better
3124 with CDE, which does some extremely annoying things with the
3125 option database that interact badly with Tk's way of handling
3128 * doc/text.n: Overhauled the documentation of undo to make it
3129 easier to understand.
3130 * library/tk.tcl (::tk::EventMotifBindings): Added Emacs-like undo
3131 binding, but not behaviour (we separate undo and redo.)
3132 * library/demos/text.tcl: Show off our undo capability!
3134 2001-11-12 David Gravereaux <davygrvy@pobox.com>
3137 * win/rmd.bat: Removed -kb CVS attribute and added changes
3138 from Llyod Lim for better stability. [Patch #456761]
3140 * win/rules.vc(new):
3141 * win/buildall.vc.bat(new):
3142 * win/makefile.vc: large rewrite following Tcl's makefile.vc as
3143 a guide and Patch #456761. Appears BugFree(tm).
3145 2001-11-12 Jeff Hobbs <jeffh@ActiveState.com>
3150 * generic/tkTextTag.c:
3153 * mac/tkMacDefault.h:
3155 * unix/tkUnixDefault.h:
3156 * win/tkWinDefault.h: added TIP #26 implementation of simple
3157 built-in undo/redo of text editing in the text widget.
3158 [Patch #458879] (callewaert)
3160 2001-11-12 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3162 * library/demos/menu.tcl: Show off -compound support in menus.
3164 * library/demos/radio.tcl: Added some code to both show off the
3165 extra capabilities of the buttons and also show what can be done
3166 with compound images on the sly.
3168 2001-11-10 Mo DeJong <mdejong@users.sourceforge.net>
3171 * win/Makefile.in: Add "make gdb" target. This target
3172 can run wish inside either gdb or insight.
3174 2001-11-09 Jeff Hobbs <jeffh@ActiveState.com>
3176 * library/clrpick.tcl: changed a few parameters so that the full
3177 0..255 range could be accessed via the mouse. [Bug #478498]
3180 * unix/tcl.m4: added -lc to AIX libs, fixed path to ldAix
3184 * win/makefile.vc: add comctl32.lib to build libs.
3185 * win/tkWinX.c (TkWinXInit): added InitCommonControlsEx call.
3188 * win/rc/wish.exe.manifest: added resources that specify using v6
3189 of the MS Common Controls library when available (WinXP+). This
3190 enables use of the themeable widgets (like scrollbars) to be used
3191 in Tk. [Patch #478933]
3193 2001-11-09 Mo DeJong <mdejong@users.sourceforge.net>
3196 * unix/tcl.m4: Update from Tcl.
3198 2001-11-08 Mo DeJong <mdejong@users.sourceforge.net>
3201 Avoid adding libc to the LIBS and WISH_LIBS
3202 variables since it is not needed when linking with CC.
3203 If required when linking with LD it should be done
3204 on a case by case basis in tcl.m4.
3206 2001-11-05 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3208 * library/demos/dialog2.tcl: Typo-fix.
3209 * library/demos/browse, library/demos/ixset, library/demos/rolodex:
3210 Installation does version number fixup, so we shouldn't. Thanks
3211 to wohnivec@iol.cz for pointing these (thankfully minor) problems
3214 2001-10-30 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3216 * library/demos/widget: Integrated labelframe item into the labels
3217 section and added a spinbox demo to the (retitled) entry section.
3219 * library/demos/labelframe.tcl: Adjusted so as to show off the
3220 labelframe widget to better effect and have a better description.
3222 * library/demos/spin.tcl: New demo to show off spinbox capabilities.
3224 * library/demos/rolodex: Changes up-ported from core-8-3-1-branch
3225 to make the script use more 8.*-isms, but not menus due to the way
3226 the context help system works.
3228 * library/demos/ixset: Changed to use the labelframe widget and
3229 the grid geometry manager.
3231 2001-10-29 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3233 * library/demos/browse: Changes up-ported from core-8-3-1-branch
3234 to make the script much more robust, particularly when neither the
3235 current version of wish or the script are on the path.
3237 * library/demos/hello: Added emacs trailing tag-line.
3239 * library/demos/tcolor: Changes up-ported from core-8-3-1-branch
3240 to make the script compliant with current good practise, as well
3241 as extensive use of the new labelframe widget.
3243 * library/demos/timer: Changes up-ported from core-8-3-1-branch to
3244 make the script look and work better.
3246 * library/demos/rmt: Changes up-ported from core-8-3-1-branch to
3247 use more 8.* features and make the demo script more generally
3250 2001-10-23 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3252 * generic/tkCursor.c (Tk_GetCursorFromData): Fixed uninit nextPtr
3253 field. [adapted from Patch 473875]
3254 (GetCursor): Removed double-assignment to nextPtr field.
3256 2001-10-19 Jeff Hobbs <jeffh@ActiveState.com>
3258 * library/console.tcl: removed transpose ability until the console
3259 can get a proper rewrite of tag handling.
3261 2001-10-18 Jeff Hobbs <jeffh@ActiveState.com>
3263 * tests/defs.tcl: removed threaded build warning under X.
3265 * library/console.tcl (ConsoleOutput): fixed undefined widget
3268 2001-10-16 Jeff Hobbs <jeffh@ActiveState.com>
3270 * library/xmfbox.tcl: fixed filtering in motif file dialog.
3271 [Patch #469670] (nelson)
3273 * generic/tkWindow.c (OpenIM): Added simple XIM patch to enable
3274 basic XIM input on Unix. [Patch #412727] (fabian)
3276 2001-10-15 Jeff Hobbs <jeffh@ActiveState.com>
3279 * unix/configure.in:
3282 * win/tkConfig.sh.in: reworked to be a little cleaner in
3283 comparison to each other, and to AC_SUBST even empty vars for
3286 2001-10-12 Todd M. Helfter <tmh@purdue.edu>
3292 * generic/tkMenubutton.c:
3293 * generic/tkMenubutton.h:
3294 * mac/tkMacDefault.h:
3296 * mac/tkMacMenubutton.c:
3298 * unix/tkUnixDefault.h:
3299 * unix/tkUnixMenu.c:
3301 * win/tkWinDefault.h:
3303 * win/tkWinWm.c: Implementation of TIP #63, the addition of
3304 a -compound option to menu entries allowing text and an image to
3305 be displayed at the same time.
3307 2001-10-09 Jeff Hobbs <jeffh@ActiveState.com>
3309 * library/console.tcl: added more smarts extracted from tkcon to
3310 the default console.
3312 2001-10-01 Jeff Hobbs <jeffh@ActiveState.com>
3314 * win/tkWinTest.c: better error reporting from testclipboard
3316 * win/tkWinDialog.c: minor cast changes to support Win64
3318 * win/tkWinWindow.c: made use of standard Tk_GetHWND instead of
3319 older, private TkWinGetHWND.
3321 * win/configure: regen'ed
3323 * win/makefile.vc: updated for Win64 SDK RC1 compilation support
3325 2001-09-30 Peter Spjuth <peter.spjuth@space.se>
3329 * tests/grid.test: Added -uniform option to grid's row/column-
3330 configure. [TIP 37] [Patch 459343]
3332 2001-09-26 Peter Spjuth <peter.spjuth@space.se>
3334 * win/tkWinFont.c (Tk_DrawChars): Added support for clipping text.
3339 * generic/tkFrame.c:
3341 * generic/tkWindow.c:
3342 * library/demos/radio.tcl:
3343 * library/demos/labelframe.tcl:
3344 * library/demos/widget:
3345 * mac/tkMacDefault.h:
3347 * unix/tkUnixDefault.h:
3348 * win/tkWinDefault.h: Added labelframe widget. Added -padx/y
3349 options to frame and toplevel.
3353 * tests/place.test: Used labelframe to test geometry manager changes.
3354 [TIP 18] [Patch 429164]
3356 2001-09-26 Peter Spjuth <peter.spjuth@space.se>
3362 * generic/tkDecls.h:
3363 * generic/tkGeometry.c:
3364 * generic/tkGrid.c (ArrangeGrid):
3366 * generic/tkPack.c (ArrangePacking):
3367 * generic/tkPlace.c (RecomputePlacement):
3368 * generic/tkStubInit.c:
3369 * generic/tkUtil.c (TkComputeAnchor):
3370 * generic/tkWindow.c (TkAllocWindow):
3371 * unix/mkLinks: Geometry manager changes to support TIP#18.
3372 Allows a widget to set different internal border widths on
3373 different sides, and to set a minimum requested size.
3374 POTENTIAL INCOMPATIBILITY. [Patch 429164]
3376 2001-09-25 Don Porter <dgp@users.sourceforge.net>
3379 * generic/tkInt.decls (TkpScanWindowId):
3380 * unix/tkUnixPort.h (Tkp{Print,Scan}WindowId):
3381 * unix/tkUnixXId.c (TkpScanWindowId):
3382 * win/tkWinWindow.c (TkpScanWindowId): Corrected definition of
3383 TkpScanWindowId to handle situation where types Window and int
3384 do not have the same number of bits. CONST-ified too.
3386 * generic/tkIntPlatDecls.h:
3387 * generic/tkStubInit.c: make genstubs
3389 2001-09-24 Don Porter <dgp@users.sourceforge.net>
3391 * generic/tkMain.c (StdinProc): Update to handle change in
3392 return type of Tcl_DStringAppend() from (char *) to (CONST char *).
3395 2001-09-23 Peter Spjuth <peter.spjuth@space.se>
3396 * generic/tkPack.c (ConfigureSlaves):
3398 * tests/grid.test: Pack accepted asymmetric values for -ipadx/y.
3399 Only -padx/y supports asymmetry. [Bug #462348]
3401 2001-09-21 Jeff Hobbs <jeffh@ActiveState.com>
3403 * win/tkWinWindow.c (TkpPrintWindowId, TkpScanWindowId): fixed to
3404 work on Win64 with 64bit XIDs.
3406 * generic/tkWindow.c (Tk_CreateAnonymousWindow):
3407 * generic/tkEntry.c (GetSpinboxElement): fixed unreachable returns.
3409 * win/tkWinX.c (TkGetServerInfo): added recognition of Win64.
3411 * xlib/X11/X.h: made XID __int64 type for Win64.
3413 * unix/tkUnixPort.h:
3414 * mac/tkMacPort.h: add (int*) cast to TkpScanWindowId.
3415 These may need to be changed to Window* (ulong).
3417 * generic/tkCmds.c (Tk_WinfoObjCmd):
3418 * generic/tkBind.c (NameToWindow):
3419 correct Window id's to be of type Window
3421 * generic/tkIntDecls.h:
3422 * generic/tkIntPlatDecls.h:
3423 * generic/tkInt.decls (TkpScanWindowId): changed decl to use
3424 Window* instead of int*.
3427 * generic/tkPack.c,tkWindow.c:
3428 * win/tkWinFont.c,tkWinMenu.c:
3429 * unix/tkUnixScale.c: minor cast fixes to prevent 64bit warnings.
3431 * tests/scrollbar.test (scrollbar-6.27): marked knownBug because
3432 it is skewed by bad dimensions returned by Windows.
3434 * tests/textDisp.test (textDisp-4.12): corrected test to work
3435 properly on Windows.
3437 * tests/id.test,macFont.test,macMenu.test,macscrollbar.test:
3438 * tests/send.test,winClipboard.test,winDialog.test,winFont.test:
3439 improved use of test constraints
3441 * win/tkWinWm.c (WinSetIcon): fixed SetClassLong for 64bit support.
3443 2001-09-20 Jeff Hobbs <jeffh@ActiveState.com>
3445 * unix/configure: regen'ed
3446 * unix/tcl.m4: added --enable-64bit support for HP-11 with the
3449 2001-09-17 Don Porter <dgp@users.sourceforge.net>
3451 * generic/tkGrid.c (ConfigureSlaves):
3452 * generic/tkPack.c (PackAfter): Corrected type definition of
3453 argument passed to Tcl_GetStringFromObj() from size_t to int.
3454 Incorrect type broke [pack] and [grid] on systems where
3455 sizeof(size_t) != sizeof(int). [Bugs 462375, 462342, 462338]
3457 2001-09-17 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3459 * library/choosedir.tcl (DblClick):
3460 * library/tkfbox.tcl (OkCmd, ListInvoke): Rewrote so as to avoid
3461 the highly confusing string "text" and to be consistent about what
3462 is and what is not a list. [Bug 459895, reported by fandom]
3464 2001-09-14 Andreas Kupries <andreas_kupries@users.sourceforge.net>
3466 * generic/tkImgGIF.c:
3467 * generic/tkImgPPM.c:
3468 * generic/tkImgPhoto.c:
3469 * generic/tkMenu.c: Applied patch [461578], provided by Vincent
3470 Darley. This fixes several memory leaks in the image code. They
3471 happen if there are errors during the initialization of the
3472 channel the image is supposed to be read from.
3474 2001-09-12 Mo DeJong <mdejong@users.sourceforge.net>
3477 * unix/tcl.m4: Update from Tcl.
3479 2001-09-12 D. Richard Hipp <drh@hwaci.com>
3481 * library/tkfbox.tcl: fixed error that appeared when you would
3482 click on the canvas while viewing an empty directory.
3484 2001-09-10 Mo DeJong <mdejong@users.sourceforge.net>
3487 * unix/tcl.m4: Update from Tcl.
3489 2001-09-09 Mo DeJong <mdejong@users.sourceforge.net>
3491 * win/Makefile.in: Fix Windows Makefile so that
3492 tcltest will automatically be compiled if the
3493 user tries to build tktest.
3495 2001-09-09 Mo DeJong <mdejong@users.sourceforge.net>
3497 * win/Makefile.in: Use TKTEST variable directly
3498 instead of depending on the tktest alias.
3500 2001-09-08 Mo DeJong <mdejong@users.sourceforge.net>
3504 Apply binary property (cvs admin -kb) to files and convert
3505 to CRLF linefeed format to fix the VC++ build. [Tcl Bug #219409]
3507 2001-08-29 Jeff Hobbs <jeffh@ActiveState.com>
3511 * tests/select.test: corrected to use testConfig constraints in
3512 the TK_ALT_DISPLAY case
3514 * tests/unixSend.test: removed test file completely identical to
3515 send.test. Removed platform specific named file in case somebody
3516 gets send working on Win/Mac in the future.
3518 * tests/config.test: added config-14.1 to test namespace import
3519 evaluation of widgets.
3520 * generic/tkButton.c (ButtonCreate):
3521 * generic/tkFrame.c (CreateFrame):
3522 * generic/tkMenubutton.c (Tk_MenubuttonObjCmd):
3523 * generic/tkPlace.c (Tk_PlaceObjCmd):
3524 * generic/tkScale.c (Tk_ScaleObjCmd):
3525 * generic/tkMessage.c (Tk_MessageObjCmd):
3526 * generic/tkEntry.c (Tk_EntryObjCmd, Tk_SpinboxObjCmd):
3527 * generic/tkSquare.c (SquareObjCmd): redid the handling of
3528 optionTables in widgets to allow them to be imported into other
3529 namespaces. [Bug #456632]
3531 2001-08-28 Jeff Hobbs <jeffh@ActiveState.com>
3533 * win/tkWinDialog.c (ChooseDirectoryHookProc): work-around for MS
3534 bug that caused crashing in tk_chooseDirectory on Win95.
3535 [Bug #224936] (baker)
3537 * unix/tkUnixWm.c (TkWmRestackToplevel): reworked how
3538 ConfigureNotify requests were handled in relation to the parent to
3539 avoid the problem with potential 'raise' delays on some wms.
3540 [Bug #220260] (baker) wms that were affected should notice the
3541 difference in tests unixWm-51.* not failing that failed before.
3543 2001-08-26 Don Porter <dgp@users.sourceforge.net>
3545 * library/text.tcl (<Shift-Up> binding): Corrected TIP 44 typo
3546 that broke binding. Thanks to "Michal" for the fix.
3549 2001-08-23 Jeff Hobbs <jeffh@ActiveState.com>
3552 * unix/tcl.m4: added QNX-6 build support. [Bug #219410] (loverso)
3554 * doc/CrtPhImgFmt.3: removed bogus note about including tkPhoto.h
3556 2001-08-22 Peter Spjuth <peter.spjuth@space.se>
3558 * generics/tkGrid.c (ConfigureSlaves):
3559 * tests/grid.test: Fixed a bug where adjacent 'x' and '^' where
3560 not handled properly. [Bug #452040]
3562 2001-08-22 Jeff Hobbs <jeffh@ActiveState.com>
3564 * generic/tkPack.c (TkParsePadAmount): added lint init for sepChar.
3566 * tests/dialog.test (HitReturn): fixed failing dialog-2.1 test
3567 because it wasn't always getting focus properly.
3569 2001-08-21 Jeff Hobbs <jeffh@ActiveState.com>
3571 * tests/unixFont.test (unixFont-2.[234]): fixed to be more
3572 sensitive on systems that have more installed fonts.
3574 * library/dialog.tcl (tk_dialog): changed dialog to show bar on
3575 Windows as well and added some y padding between the buttons and
3576 the bar. [Patch #442835] (harrismh)
3578 2001-08-20 Peter Spjuth <peter.spjuth@space.se>
3581 * generic/tkWindow.c:
3585 * tests/oldpack.test:
3586 * tests/pack.test: Objectified grid and pack commands.
3588 2001-08-20 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3590 * generic/tkObj.c (TkGetWindowFromObj): Rewrote window code to
3591 reuse a previously worked-out set of window information exactly
3592 when the reference window is the same and no window deletions have
3593 occurred since the object was allocated (display has same epoch
3594 counter.) Required changing the internal rep of the window quite
3595 a bit as now need to save three words-worth of information in the
3596 internal rep (this window, reference window, display epoch.)
3597 * generic/tkObj.c (SetWindowFromAny, DupWindowInternalRep)
3598 (FreeWindowInternalRep): Code to support new internal rep for
3600 * generic/tkInt.h: Added epoch counter to TkDisplay structure
3601 * generic/tkWindow.c (GetScreen, Tk_DestroyWindow): Epoch counter
3602 is incremented every time a window is deleted.
3604 2001-08-18 Peter Spjuth <peter.spjuth@space.se>
3608 * generic/tkGrid.c: Grid configure rejected initial "x" and "^".
3611 2001-08-17 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3613 * generic/tkObj.c (TkGetWindowFromObj): Was failing to reuse
3614 cached window objects, forcing a call to Tcl_GetStringFromObj and
3615 Tk_NameToWindow every time. This fault has been in there for
3616 nearly three years...
3618 2001-08-15 Don Porter <dgp@users.sourceforge.net>
3620 * changes: Labelled the TIP 44 changes as "POTENTIAL INCOMPATIBILITY".
3621 Although technically internal changes are not incompatible, they'll
3622 be perceived as such by those who get bitten, and this will help
3623 them find the cause of their trouble.
3625 2001-08-14 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3627 * generic/tk{Util,Font,Cursor,Color,Bitmap,3d}.c: Modified
3628 objtype declarations so that they can be picked up in tkObj.c and
3629 the names are now prefixed with "tk" too.
3630 * generic/tkObj.c (TkRegisterObjTypes):
3631 * generic/tkWindow.c (Initialize):
3632 * generic/tkInt.h: Added code to register Tk's object types with
3633 the Tcl runtime. [Tcl Bug 450545]
3635 2001-08-12 Mo DeJong <mdejong@redhat.com>
3637 * unix/configure: Regen.
3638 * unix/tcl.m4: Update from Tcl.
3640 2001-08-10 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3642 * library/demos/image2.tcl (loadDir): Converted non-portable
3643 [glob [file join $dirName *]] to [glob -directory $dirName *]
3644 which is both fully portable and more reliable when directory
3645 names contain glob-significant characters. [Bug 223313]
3647 2001-08-08 Don Porter <dgp@users.sourceforge.net>
3649 * tests/dialog.test: New file testing [tk_dialog].
3651 * library/dialog.tcl:
3652 * library/tkfbox.tcl: Corrections to problems introduced by
3653 the TIP 44 changes. [Bug 449261]
3658 * unix/configure.in:
3661 * win/configure.in: Bumped up patchlevel to 8.4a4 to distinguish
3662 CVS snapshots from the 8.4a3 release. This does not necessarily
3663 mean there will be an 8.4a4 release. [Bug 448938].
3665 2001-08-07 Jeff Hobbs <jeffh@ActiveState.com>
3667 * unix/Makefile.in (dist): added {unix,win}/tcl.m4 and
3668 library/msgs/*.msg to dist target. [Bug: #448802]
3670 2001-08-06 Jeff Hobbs <jeffh@ActiveState.com>
3675 * README: updated for 8.4a3 release
3677 * unix/configure: regenerated
3678 * unix/tcl.m4: added GNU (HURD) configuration target. (brinkmann)
3681 2001-08-06 Don Porter <dgp@users.sourceforge.net>
3683 * generic/tkConsole.c:
3684 * generic/tkWindow.c:
3685 * library/bgerror.tcl:
3686 * library/dialog.tcl:
3687 * library/msgbox.tcl:
3688 * library/unsupported.tcl:
3690 * mac/tkMacHLEvents.c:
3691 * mac/tkMacWm.c: TIP 44 changes specific to the Mac and
3692 Windows platforms that were overlooked before: tkOpenDocument,
3693 tkConsoleExit, tkConsoleOutput, unsupported1 out of namespace :: .
3694 Thanks to Vince Darley for prompting another look.
3696 2001-08-03 Jeff Hobbs <jeffh@ActiveState.com>
3698 * win/winMain.c (WishPanic): fixed CONST changes to go with
3699 CONST-ification in Tcl.
3701 * win/configure: regenerated
3702 * win/tcl.m4: fixed DLLSUFFIX definition to always be ${DBGX}.dll.
3703 This is necessary for TEA compliant builds that build shared
3704 against a static-built Tk.
3705 * win/Makefile.in ($(WISH)): added $(TK_STUB_LIB_FILE) to build
3706 target, otherwise it wouldn't get generated in a static build.
3708 2001-08-01 Don Porter <dgp@users.sourceforge.net>
3716 * library/bgerror.tcl:
3717 * library/button.tcl:
3718 * library/choosedir.tcl:
3719 * library/clrpick.tcl:
3720 * library/comdlg.tcl:
3721 * library/console.tcl:
3722 * library/dialog.tcl:
3723 * library/entry.tcl:
3724 * library/focus.tcl:
3725 * library/listbox.tcl:
3727 * library/msgbox.tcl:
3728 * library/optMenu.tcl:
3729 * library/palette.tcl:
3730 * library/scale.tcl:
3731 * library/scrlbar.tcl:
3732 * library/spinbox.tcl:
3734 * library/tearoff.tcl:
3737 * library/tkfbox.tcl:
3738 * library/unsupported.tcl:
3739 * library/xmfbox.tcl:
3741 * tests/clrpick.test:
3742 * tests/filebox.test:
3743 * tests/macMenu.test:
3745 * tests/menuDraw.test:
3746 * tests/msgbox.test:
3748 * tests/unixMenu.test:
3749 * tests/winMenu.test:
3750 * tests/xmfbox.test:
3752 * unix/tkUnixDialog.c: Merged changes from feature branch
3753 dgp-privates-into-namespace, implementing TIP 44. All
3754 Tk commands and variables matching tk[A-Z]* are now in the
3755 ::tk namespace. See "BRANCH: dgp-privates-into-namespace"
3756 entries below for details. [FR 220936]
3758 2001-07-24 Mo DeJong <mdejong@redhat.com>
3760 * generic/default.h: Include tkWinDefault.h
3761 when built with Cygwin or Mingw.
3763 2001-07-18 Don Porter <dgp@users.sourceforge.net>
3765 BRANCH dgp-privates-into-namespace:
3766 * doc/console.n: Updated names of private console commands.
3768 2001-07-16 Don Porter <dgp@users.sourceforge.net>
3770 BRANCH dgp-privates-into-namespace:
3771 * library/console.tcl:
3772 * library/unsupported.tcl: Renamed tk::histNum to tk::HistNum
3773 as directed by the Tcl Style Guide.
3775 2001-07-10 Mo DeJong <mdejong@redhat.com>
3777 * unix/Makefile.in: Add AR and STLIB_LD variables.
3779 * unix/configure.in: Use STLIB_LD when defining MAKE_LIB
3780 and MAKE_STUB_LIB. Subst STLIB_LD, RANLIB, and AR.
3781 * unix/tcl.m4: Update from Tcl.
3782 * win/configure: Regen.
3783 * win/tcl.m4: Update from Tcl.
3785 2001-07-06 Mo DeJong <mdejong@redhat.com>
3787 * win/configure: Regen.
3788 * win/tcl.m4: Update from Tcl.
3790 2001-07-05 Mo DeJong <mdejong@redhat.com>
3792 * win/Makefile.in: Subst DEPARG directly instead
3793 of relying on a variable. This will make Cygwin
3794 build faster since an extra exec will be avoided.
3795 * win/configure: Regen.
3796 * win/configure.in: Subst DEPARG.
3797 * win/tcl.m4: Update from Tcl.
3799 2001-07-04 Jeff Hobbs <jeffh@ActiveState.com>
3804 * win/README: updated READMEs with purls
3806 2001-07-03 Jeff Hobbs <jeffh@ActiveState.com>
3808 * tests/canvas.test:
3809 * generic/tkCanvPoly.c (PolygonToArea): Added patch that respects
3810 the polygon difference of including points in the polygon even
3811 when fill is empty. [Bug #226357]
3813 2001-07-03 Mo DeJong <mdejong@redhat.com>
3815 * win/Makefile.in: Remove PATHTYPE variable.
3816 * win/configure: Regen.
3817 * win/configure.in: Don't subst PATHTYPE.
3818 * win/tcl.m4: Update from Tcl.
3820 2001-07-03 Mo DeJong <mdejong@redhat.com>
3822 * win/Makefile.in: Don't use VPSEP, instead just use :
3824 * win/configure: Regen.
3825 * win/configure.in: Don't subst VPSEP.
3827 2001-07-03 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3829 * library/xmfbox.tcl (tkMotifFDialog_ActivateSEnt): Added missing
3830 backslash [Bug #438247]
3832 2001-07-02 Jeff Hobbs <jeffh@ActiveState.com>
3834 * generic/tkWindow.c (Tk_DestroyWindow): changed to use
3835 Tcl_EventuallyFree instead of ckfree so that widgets that have
3836 references to a tkwin can use them.
3838 * generic/tkCanvArc.c:
3839 * generic/tkCanvBmap.c:
3840 * generic/tkCanvLine.c:
3841 * generic/tkCanvPoly.c:
3842 * generic/tkCanvText.c:
3843 * generic/tkCanvWind.c:
3844 * generic/tkRectOval.c: corrected argument handling in
3845 Create<Item> functions that could lead to ABRs or FMRs and
3846 corrected names of argc/argv to objc/objv.
3848 * generic/tkImgGIF.c (Mgetc): corrected screwy use of ternary
3849 operator and possible FMR.
3851 * generic/tkEntry.c: corrected missing Tcl_Release that caused
3852 font not freed complaints when trying valid cleanup calls.
3853 * generic/tkListbox.c: made use of Tcl_Preserve/Tcl_Release to
3854 prevent FMR errors in Display functions.
3856 * unix/tkUnixScale.c (TkpDisplayScale): corrected FMR when scale
3857 was deleted while calling its command.
3859 * library/console.tcl:
3860 * library/entry.tcl:
3861 * library/spinbox.tcl:
3863 * library/tk.tcl: added private ::tk::GetSelection command to
3864 handle requesting selection. This is to support requesting
3865 UTF8_STRING before generic STRING on Unix. Changed Text, Spinbox,
3866 Entry and Console to use this command.
3868 * tests/select.test:
3869 * generic/tkSelect.c (Tk_CreateSelHandler, Tk_DeleteSelHandler):
3870 on Unix, a UTF8_STRING handler will be created when the user
3871 requests a STRING handler (in addition to the STRING handler).
3872 This provides implicit support for the new UTF8_STRING selection
3874 * unix/tkUnixSelect.c (TkSelEventProc, ConvertSelection): Added
3875 support for UTF8_STRING target. [RFE #418653, Patch #433283]
3877 * generic/tkInt.h: added utf8Atom to TkDisplay structure.
3879 * tests/listbox.test: changed 'darkblue' to 'white' in a test
3880 because it isn't a portable color name.
3882 * generic/tkEntry.c (DestroyEntry): used Tcl_EventuallyFree
3883 instead of ckfree for entryPtr to prevent FMRs. [Bug #413904]
3885 2001-06-26 Mo DeJong <mdejong@redhat.com>
3888 * win/Makefile.in: Add `make shell` target. This target
3889 will set the proper env vars before invoking wish
3890 from the build directory.
3892 2001-06-26 Mo DeJong <mdejong@redhat.com>
3895 * win/configure.in: Revert cross compiling change
3896 accidently added during last checkin.
3898 2001-06-26 Mo DeJong <mdejong@redhat.com>
3900 * unix/configure: Regen.
3901 * unix/configure.in: Fix last checkin by removing
3902 export since that only works in bash.
3903 * win/configure: Regen.
3904 * win/configure.in: Ditto.
3906 2001-06-26 Mo DeJong <mdejong@redhat.com>
3908 * unix/configure: Regen.
3909 * unix/configure.in: Set CFLAGS to "" if the user
3910 did not set CFLAGS in the env. This keeps AC_PROG_CC
3911 from adding "-g -O2" to the CFLAGS by default.
3912 * win/configure: Regen.
3913 * win/configure.in: Ditto.
3915 2001-06-22 Mo DeJong <mdejong@redhat.com>
3917 * win/configure: Regen.
3918 * win/configure.in: Use RC_DEFINE flag from tcl.m4.
3919 * win/tcl.m4: Update from Tcl.
3921 2001-06-22 Mo DeJong <mdejong@redhat.com>
3923 * win/configure: Regen.
3924 * win/tcl.m4: Update from Tcl.
3926 2001-06-22 Mo DeJong <mdejong@redhat.com>
3928 * win/configure: Regen.
3929 * win/tcl.m4 (SC_CONFIG_CFLAGS): Link to the
3930 imm32 library when building with mingw gcc.
3931 * win/tkWinX.c: Include the imm.h header
3932 to fix compiling with mingw gcc.
3934 2001-06-22 Mo DeJong <mdejong@redhat.com>
3936 * win/configure: Regen.
3937 * win/configure.in: Add resource compiler fix from
3938 8.3.3 to fix compiling with mingw.
3940 2001-06-22 Mo DeJong <mdejong@redhat.com>
3942 * win/configure: Regen.
3943 * win/tcl.m4: Fix silly typo in last checkin.
3945 2001-06-22 Mo DeJong <mdejong@redhat.com>
3947 * unix/Makefile.in: Set CFLAGS to @CFLAGS@ and @CFLAGS_DEFAULT@.
3948 Set LDFLAGS to @LDFLAGS@ and @LDFLAGS_DEFAULT@. Add LDFLAGS_DEBUG
3949 and LDFLAGS_OPTIMIZE to match the way CFLAGS_DEFAULT works. Use
3950 new LDFLAGS variable in the Makefile instead of @LDFLAGS@.
3951 * unix/configure: Regen.
3952 * unix/configure.in: Don't set CFLAGS to CFLAGS_DEFAULT, instead
3953 subst CFLAGS_DEFAULT into the Makefile. Add AC_SUBST for CFLAGS_DEBUG,
3954 CFLAGS_OPTIMIZE, LDFLAGS_DEFAULT, LDFLAGS_DEBUG, and LDFLAGS_OPTIMIZE.
3955 Remove unused LD_FLAGS subst.
3956 * unix/tcl.m4: Update from Tcl.
3957 * win/Makefile.in: Set CFLAGS to @CFLAGS@ and @CFLAGS_DEFAULT@.
3958 Set LDFLAGS to @LDFLAGS@ and @LDFLAGS_DEFAULT@.
3959 * win/configure: Regen.
3960 * win/configure.in: Don't set CFLAGS or LDFLAGS, instead subst
3961 CFLAGS_DEFAULT and LDFLAGS_DEFAULT into the Makefile.
3962 * win/tcl.m4: Update from Tcl.
3964 2001-06-22 Mo DeJong <mdejong@redhat.com>
3967 * win/tcl.m4: Update From Tcl.
3969 2001-06-21 eric melski <ericm@interwoven.com>
3971 * doc/colors.n: Corrected bogus documentation with respect to
3972 several shades of blue, all of which were listed as RGB 0 0 0.
3975 2001-06-14 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3977 * library/demos/floor.tcl, library/demos/filebox.tcl,
3978 * library/demos/clrpick.tcl, library/demos/vscale.tcl,
3979 * library/demos/twind.tcl, library/demos/ruler.tcl,
3980 * library/demos/plot.tcl, library/demos/items.tcl,
3981 * library/demos/hscale.tcl, library/demos/ctext.tcl,
3982 * library/demos/cscroll.tcl, library/demos/arrow.tcl,
3983 * library/xmfbox.tcl, library/msgbox.tcl,
3984 * library/clrpick.tcl, library/bgerror.tcl: Braced expressions.
3986 2001-06-06 Mo DeJong <mdejong@redhat.com>
3988 * win/configure: Regen.
3989 * win/configure.in: Handle the --prefix option correctly
3990 it should default to /usr/local like the unix version.
3992 2001-06-03 Jeff Hobbs <jeffh@ActiveState.com>
3995 * doc/clipboard.n: added SEE ALSOs to cross-reference selection
3996 and clipboard, with extra note for clipboard command in selection
3997 docs. [Patch #422256]
3999 * unix/tkUnixFont.c: Corrected support for iso10646 (X11 Unicode)
4000 fonts on Unix. This adds a ucs-2be (UCS-2 Big Endian) encoding in
4001 Tk on Unix that is used for those fonts (X11 requires
4002 big-endianness). (welch) [Patch #406411; Bug #220890 #220899]
4003 This differs from the 8.3.3 patch by not adding ucs-2be in the
4004 preferred encodingList (seems works fine without).
4005 Added alias for jisx0201* fonts to jis0201 encoding. [Bug #414033]
4007 2001-05-30 Jeff Hobbs <jeffh@ActiveState.com>
4009 * win/tkWinKey.c (TkpSetKeycodeAndState): removed old debug info
4011 2001-05-29 Jeff Hobbs <jeffh@ActiveState.com>
4013 * win/tkWinX.c: moved the initialization of tkPlatformId from
4014 TkWinXInit to TkWinGetPlatformId because static builds could call
4015 it before it was initialized. [Bug #427278]
4017 2001-05-28 Peter Spjuth <peter.spjuth@space.se>
4019 * generic/tkFrame.c:
4020 * generic/tkWindow.c:
4021 * tests/frame.test: Upgraded frame to use the newer TK_OPTION
4022 style when processing configuration options. Some cleanup of
4023 bad comments and bad code. [part of patch #420861]
4025 2001-05-23 Mo DeJong <mdejong@redhat.com>
4030 * win/tcl.m4: Sync from Tcl sources.
4032 2001-05-21 Jeff Hobbs <jeffh@ActiveState.com>
4034 * unix/tcl.m4: sync'ed up wih Tcl tcl.m4. [Bug #419812]
4036 * doc/TkInitStubs.3:
4038 * generic/tkStubLib.c: CONST'ified Tk_InitStubs to match CONST
4039 changes to Tcl_PkgRequireEx.
4041 2001-05-21 Todd M. Helfter <tmh@purdue.edu>
4044 * generic/tkMenubutton.c:
4045 * generic/tkMenubutton.h:
4046 * mac/tkMacMenubutton.c:
4047 * tests/menubut.test:
4048 * unix/tkUnixMenubu.c: Implementation of TIP #11, the addition of
4049 a -compound option to the menubutton allowing text and an image to
4050 be displayed at the same time. This behavior is identical to the
4051 behavior of the button widget.
4053 2001-05-16 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4055 * doc/console.n: Added - was erroneously placed in Tcl before...
4057 2001-04-25 Mo DeJong <mdejong@redhat.com>
4059 * unix/configure: Regen.
4060 * unix/tcl.m4: Update from Tcl.
4061 * win/configure: Regen.
4062 * win/tcl.m4: Update from Tcl.
4064 2001-04-25 Mo DeJong <mdejong@redhat.com>
4066 * unix/configure: Regen.
4067 * unix/configure.in: Use $@ in MAKE_LIB and MAKE_STUB_LIB
4068 commands instead of using a delayed subst variable. Replace
4069 instances of STUB_LIB_FILE with TK_STUB_LIB_FILE.
4071 2001-04-25 Mo DeJong <mdejong@redhat.com>
4073 * unix/Makefile.in: Use TCL_STUB_LIB_FILE instead of STUB_LIB_FILE.
4074 * unix/configure: Regen.
4075 * unix/configure.in: Don't subst STUB_LIB_FILE, use TCL_STUB_LIB_FILE
4078 2001-04-12 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4080 * generic/tkImage.c (Tk_ImageObjCmd,DeleteImage): Better detection
4081 of deletion when world is falling apart. [Bug #220819]
4083 2001-04-04 Jeff Hobbs <jeffh@ActiveState.com>
4085 * win/tkWinMenu.c (TkWinHandleMenuEvent): corrected reseting of
4086 service mode to only occur when it was set. [Bug #220948]
4088 2001-04-03 Jeff Hobbs <jeffh@ActiveState.com>
4090 * tests/winClipboard.test: improved results for understanding when
4093 * tests/winDialog.test: string totitle'd some results that
4094 expected [pwd] to return a capital drive letter.
4096 * tests/cursor.test: changed tests to use 'heart' cursor because
4097 'arrow' on windows has a pre-skewed use count.
4099 * win/tkWinDialog.c (GetFileNameA): initialize multi to 0.
4101 2001-04-02 Jeff Hobbs <jeffh@ActiveState.com>
4104 * win/tcl.m4 (SHLIB_LD): added -incremental:no. [Bug #219381]
4106 * generic/tkMenu.c (TkInvokeMenu): checked for menu deletion
4107 before calling associated menu entry command. [Bug #220821]
4109 * doc/image.n: added warning about names chosen for images.
4111 * generic/tkImgPhoto.c (ImgPhotoCmd): corrected the src and dest
4112 values for $imageName put when -format and -to are used.
4115 * tests/listbox.test: added test listbox-27.1, delete during
4117 * generic/tkListbox.c (DestroyListbox, ListboxEventProc):
4118 corrected listbox to make proper use of Tcl_EventuallyFree and
4119 protect against unusual listbox deletion.
4121 * tests/entry.test: added tests entry-20.*, delete during widget
4123 * generic/tkEntry.c (DestroyEntry, EntryEventProc): fixed the
4124 entry widget to survive deletion while processing scrollbar
4125 updates and validation.
4127 * tests/canvas.test: test of canvas delete during event
4128 * generic/tkCanvas.c (DestroyCanvas, CanvasEventProc): fixed the
4129 canvas to survive deletion during event processing. [Bug #228024]
4131 2001-04-01 Jeff Hobbs <jeffh@ActiveState.com>
4134 * mac/README: updated patchlevel to 8.4a3 and corrected links and
4138 * unix/configure.in (TK_PATCH_LEVEL):
4141 * win/configure.in (TK_PATCH_LEVEL):
4142 * win/configure: updated patchlevel to 8.4a3
4144 2001-03-30 Jeff Hobbs <jeffh@ActiveState.com>
4146 * tests/safe.test: added note about correcting failures in
4148 * library/tk.tcl: moved package require msgcat inside if case to
4149 not be used in safe interps.
4153 * win/tcl.m4: added imm32.lib to LIBS_GUI for Tk IME support.
4156 * win/tkWinX.c: added support for changing IME on the fly in
4157 Windows (2000). (lam) [Patch #402993]
4159 * tests/bind.test (bind-22.18):
4160 * generic/tkBind.c (NameToWindow): handled the error case where a
4161 valid-looking but invalid identifier could be passed in certain
4162 event generate options causing a crash. [Bug #411307]
4164 * win/tkWinWm.c (UpdateWrapper): ensured that the passed in winPtr
4165 had an existent window to operate on. [Bug #409172]
4167 * win/Makefile.in (install-*): improved install-* targets to use
4168 their base build dependency.
4170 * generic/tkImage.c (Tk_ImageObjCmd, EventuallyDeleteImage):
4171 added casts to allow compiling on Windows with debbuging.
4173 2001-03-29 Jeff Hobbs <jeffh@ActiveState.com>
4175 * library/msgs/de.msg: fixed translations. [Patch #403525]
4177 * doc/canvas.n: Noted ability to specify coords as a list in the
4178 docs. (techentin) [Patch #403660]
4180 * tests/canvas.test: added test case to check obj conversion
4181 * generic/tkObj.c (UpdateStringOfMM, SetMMFromAny): better
4182 obj-aware screen distances. (pgbaum, hobbs) [Patch #403327]
4184 * library/bgerror.tcl (bgerror): allow focus into details window
4185 for Windows C&P to work. [Bug #220929]
4187 * library/tk.tcl: put a catch around adding <hpBackTab> to the
4188 <<PrevWindow>> virtual event as it doesn't seem to work on all HP
4189 systems. [Bug #411669]
4191 * library/tkfbox.tcl: fixed selecting directories and single files
4192 with spaces using tk_getOpenFile -multiple 1. [Bug #411640]
4194 * win/tkWinDialog.c (GetFileNameA): added support for -multiple to
4195 ascii-based tk_getOpenFile (Win9*). (haneef) [Patch #403047]
4196 (GetFileNameW): increased number of files that could be returned
4197 by tk_getOpenFile -multiple. [Patch #412042]
4199 2001-03-29 Mo DeJong <mdejong@redhat.com>
4201 * library/entry.tcl (tkEntryMouseSelect):
4202 * library/text.tcl (tkTextSelectTo): When
4203 the mouse is dragged with the button down,
4204 move the insertion cursor to the current
4206 * tests/event.test: Add a series of tests
4207 for event generation. Add tests for selection,
4208 check the position of the insertion cursor.
4210 2001-03-28 Jeff Hobbs <jeffh@gimlet.activestate.com>
4213 * unix/tcl.m4: corrected IRIX-5.x config to not use -n32.
4214 (english) [Patch 403626]
4216 2001-03-28 Don Porter <dgp@users.sourceforge.net>
4218 * tests/focus.test (focus-6.1):
4219 * tests/macEmbed.test (unixEmbed-5.1):
4220 * tests/macMenu.test (macMenu-21.3):
4221 * tests/menu.test (menu-27.1):
4222 * tests/unixEmbed.test (unixEmbed-8.2):
4223 * tests/unixWm.test (unixWm-50.4): Replaced all [load {} tk]
4224 in Tk test suite with [load {} Tk]. [Bug 220940, Patch 411952]
4226 2001-03-12 Don Porter <dgp@users.sourceforge.net>
4228 BRANCH dgp-privates-into-namespace:
4230 * unix/mkLinks: Added documentation for [tk_menuSetFocus].
4232 2001-03-12 Don Porter <dgp@users.sourceforge.net>
4234 BRANCH dgp-privates-into-namespace:
4237 * unix/mkLinks: Added documentation for commands and variables
4240 2001-03-08 Don Porter <dgp@users.sourceforge.net>
4242 BRANCH dgp-privates-into-namespace:
4243 * generic/tkTextDisp.c:
4244 * library/unsupported.tcl:
4245 * tests/textDisp.test: Restored the global variables tk_textRedraw
4246 and tk_textRelayout. Since they match tk_*, they should remain
4247 publicly available until at least Tk 9.
4249 2001-03-01 Don Porter <dgp@users.sourceforge.net>
4251 BRANCH dgp-privates-into-namespace:
4252 * library/unsupported.tcl: New file for Tk's unsupported
4253 interfaces. Contains [tk::unsupported::ExposePrivateCommand]
4254 and [tk::unsupported::ExposePrivateVariable] that restore the
4255 availability of an old public name of one of Tk's private
4256 commands and variables, respectively, for those applications
4257 and extensions that depend on the old names against advice.
4259 2001-02-28 Don Porter <dgp@users.sourceforge.net>
4261 BRANCH dgp-privates-into-namespace: Feature branch to move all
4262 of Tk's private commands and variable into the ::tk namespace
4265 * doc/tkvars.n: Documented private variable tkPriv renamed tk::Priv.
4269 * generic/tkTextDisp.c:
4270 * library/bgerror.tcl:
4271 * library/button.tcl:
4272 * library/choosedir.tcl:
4273 * library/clrpick.tcl:
4274 * library/comdlg.tcl:
4275 * library/console.tcl:
4276 * library/dialog.tcl:
4277 * library/entry.tcl:
4278 * library/focus.tcl:
4279 * library/listbox.tcl:
4281 * library/msgbox.tcl:
4282 * library/optMenu.tcl:
4283 * library/palette.tcl:
4284 * library/scale.tcl:
4285 * library/scrlbar.tcl:
4286 * library/spinbox.tcl:
4288 * library/tearoff.tcl:
4291 * library/tkfbox.tcl:
4292 * library/xmfbox.tcl:
4294 * tests/clrpick.test:
4295 * tests/filebox.test:
4296 * tests/macMenu.test:
4298 * tests/menuDraw.test:
4299 * tests/msgbox.test:
4301 * tests/textDisp.test:
4302 * tests/unixMenu.test:
4303 * tests/winMenu.test:
4304 * tests/xmfbox.test:
4305 * unix/tkUnixDialog.c: All Tk commands matching ::tk[A-Z]* and
4306 all Tk private variables in the global namespace were renamed to
4307 live in the namespace ::tk or one of its children.
4309 2001-02-13 Eric Melski <ericm@interwoven.com>
4311 * doc/photo.n: [Bug 132213] Added clarification on interpretation
4312 of ranges for "photoName data -from" subcommand.
4314 2001-02-12 D. Richard Hipp <drh@hwaci.com>
4316 TIP #21: Asymmetric padding in the pack and grid geometry managers.
4317 With this changes, you can now say "-padx {10 20}" to put 10 pixels
4318 of padding on the left and 20 on the right. Similar rules apply
4319 for vertical padding. See the revised documentation for details.
4321 2001-01-02 Andreas Kupries <a.kupries@westend.com>
4323 Everything below belongs together and implements TIP#8 (SF patch#102833)
4325 * win/tkWinWm.c (line 56f): Added icon structures.
4326 * win/tkWinWm.c (struct WmInfo, line 242): Added reference to
4327 optional icon for titlebar.
4328 * win/tkWinWm.c (struct ThreadSpecificData, line 335): Added
4329 reference to optional default icon for toplevel windows.
4330 * win/tkWinWm.c (line 387 ... 1169): All the new functions required
4331 to deal with icon specifications, 'InitWm' changed.
4332 * win/tkWinWm.c (TkWmNewWindow, UpdateWrapper, TkWmDeadWindow, Tk_WmCmd):
4333 Added initialization and handling of the new fields.
4334 * doc/wm.n: Documentation updated to explain the newly available
4337 2000-12-13 jeff hobbs <jhobbs@interwoven.com>
4339 * generic/tkObj.c (SetMMFromAny): Added ability to recognize
4340 double type object to speed up canvas coord calculations.
4343 2000-12-12 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4345 * doc/entry.n: Improved documentation of interplay between the
4346 -state and -textvariable options.
4348 2000-11-29 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4350 * tests/image.test (image-1.10): Improved this test, which
4351 previously only worked if the command failed to delete the root
4352 window, and caused *major* trouble otherwise...
4353 * generic/tkImage.c (EventuallyDeleteImage): Created this function
4354 so that images that get deleted during the creation of an image
4355 won't cause a nasty core dump. Properly fixes bug #120819.
4357 2000-11-28 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4360 * generic/tkImage.c (Tk_ImageObjCmd): Backed out previous change.
4361 Bug #120819 is back again in force. Left the test in there
4364 2000-11-23 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4367 * tests/image.test (image-1.10):
4368 * generic/tkImage.c (Tk_ImageObjCmd): Prohibited image names that
4369 start with "." since they can cause some really obscure crashes.
4372 2000-11-21 Eric Melski <ericm@ajubasolutions.com>
4374 Overall change: Implemented TIP 5, which exports
4375 TkClassProcs/TkSetClassProcs as Tk_ClassProcs/Tk_SetClassProcs,
4376 adding a size field to Tk_ClassProcs to allow for future
4377 expansion, and renaming the geometryProc to worldChangedProc,
4378 which is more in keeping with the actual use of the callback.
4380 * unix/mkLinks: Added link for Tk_SetClassProcs.
4382 * doc/SetClassProcs.3: Documentation for
4383 Tk_ClassProcs/Tk_SetClassProcs.
4385 * generic/tkCanvas.c:
4386 * generic/tkEntry.c:
4387 * generic/tkFrame.c:
4388 * generic/tkListbox.c:
4390 * generic/tkMessage.c:
4391 * generic/tkScale.c:
4392 * generic/tkText.c: Updated to use Tk_ClassProcs/Tk_SetClassProcs
4393 instead of TkClassProcs/TkSetClassProcs.
4395 * generic/tkMenubutton.c:
4396 * generic/tkScrollbar.c:
4397 * generic/tkButton.c: Updated to use Tk_SetClassProcs instead of
4400 * generic/tkMenubutton.h:
4401 * generic/tkScrollbar.h:
4402 * generic/tkButton.h:
4403 * win/tkWinButton.c:
4404 * win/tkWinScrlbr.c:
4405 * mac/tkMacButton.c:
4406 * mac/tkMacMenubutton.c:
4407 * mac/tkMacScrlbr.c:
4408 * unix/tkUnixButton.c:
4409 * unix/tkUnixMenubu.c:
4410 * unix/tkUnixScrlbr.c: Updated to use Tk_ClassProcs instead of
4413 * generic/tkDecls.h:
4414 * generic/tkStubInit.c:
4415 * generic/tkIntDecls.h: Regenned from tk.decls, tkInt.decls.
4417 * generic/tk.h: Added declaration of Tk_ClassProcs, with size
4418 field. Added typedef's for Tk_ClassCreateProc,
4419 Tk_ClassWorldChangedProc, Tk_ClassModalProc. Added definition of
4420 Tk_GetClassProc macro, shorthand for extracting a member of the
4421 Tk_ClassProcs structure.
4423 * generic/tkInt.h: Removed declaration of TkClassProcs,
4424 TkClassGeometryProc, etc.
4426 * generic/tkBind.c (Tk_BindEvent): Updated to use Tk_GetClassProc
4427 macro to extract modalProc; added check that the modalProc is non-NULL.
4429 * generic/tkFont.c (RecomputeWidgets): Updated to use
4430 Tk_GetClassProc macro to extract worldChangedProc; added comment
4431 about the choice of a recursive versus iterative algorithm for
4432 propagating world changed messages.
4434 * generic/tkWindow.c (Tk_MakeWindowExist): Updated to use
4435 Tk_GetClassProc macro to extract createProc from Tk_ClassProcs.
4437 * generic/tk.decls: Added declaration for Tk_SetClassProcs.
4439 * generic/tkInt.decls: Commented out declaration for
4440 TkSetClassProcs, which is made public by this change. The entry
4441 is left in place, but commented, so that future developers will
4442 know not to reuse it's stub number.
4444 2000-11-21 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4446 * doc/ConfigWidg.3: Added deprecation note from Bug #120944 - use
4447 Tk_SetOption() instead.
4449 * generic/tkImgPhoto.c (TkPhotoGetValidRegion): Applied patch to
4450 create this function and add it to tkInt stubs. Should now be
4451 possible to write an extension that accesses the transparency data
4452 in a photo image. Bug #120930
4454 2000-11-03 Jeff Hobbs <hobbs@ajubasolutions.com>
4458 * generic/tkWindow.c (Initialize): added call to Tcl_SetMainLoop.
4459 This only has effect when tclsh is run (not wish), and then Tk is
4460 loaded in interactively.
4462 2000-11-02 Jeff Hobbs <hobbs@ajubasolutions.com>
4464 * win/tkWinButton.c:
4465 * win/tkWinDialog.c:
4466 * win/tkWinScrlbr.c:
4467 * win/tkWinWm.c: fixed up code for Win64 support. This mostly
4468 remains in _WIN64 #ifdef's, until updated compilers are standard.
4471 * win/makefile.vc: updated for Win64 compile support
4474 * win/configure: checked in configure scripts so people doing
4475 CVS checkouts aren't required to have autoconf. Changes to
4476 configure.in in the future will require the corresponding
4477 configure script to also be re-autoconf'ed and checked in.
4479 * doc/event.n: added note that key events require window focus.
4481 2000-11-01 Jeff Hobbs <hobbs@ajubasolutions.com>
4483 * win/tkWinDialog.c (GetFileNameW, GetFileNameA)
4484 (Tk_ChooseDirectoryObjCmd): created
4485 work-around for change in NT5.0/98 that caused no initialdir
4486 setting to open the browser up in the user's documents dir.
4488 * tests/color.test: marked color-2.6 nonPortable as we can't
4489 reliably assume what 'red' maps to.
4491 2000-11-01 Eric Melski <ericm@ajubasolutions.com>
4493 * tests/winDialog.test: Corrected expected results for bad option
4494 tests (5.2, 5.5) to include -multiple option.
4496 * win/tkWinDialog.c: Added branch for 0 return from
4497 CommDlgExtendedError() switches; this was formerly treated as an
4498 error, but it actually is not, since it just means the user hit
4499 cancel or closed the dialog. (GetFileNameW): Added better smarts
4500 such that -multiple is not considered a valid option for
4502 Removed CommDlgExtendedError() checks for color and choosedir
4503 dialogs, and removed all except the explicit invalid filename
4504 checks for the file dialogs.
4506 2000-10-30 David Gravereaux <davygrvy@ajubasolutions.com>
4512 * win/rc/tk_base.rc (new):
4513 * win/rc/wish.rc: Added logic to derive filenames better in the
4514 resource scripts based on compile options along with better
4515 support for building a static wish shell with cursor resources.
4517 2000-10-27 Jeff Hobbs <hobbs@ajubasolutions.com>
4519 * unix/tcl.m4: added support for AIX-5.
4522 * doc/tk.n: updated to reflect default on status of useinputmethods.
4523 * library/tk.tcl: tk useinputmethods is set to 1 by default. This
4524 enables Kanji and dead-char input by default. Intro'd in
4525 1999-12-16 with default off to avoid some problems with older X
4526 servers that would slow down widget creation over time.
4528 * win/Makefile.in (test, winhelp, tktest): corrected the
4529 TCL_LIBRARY path specification.
4531 2000-10-18 Eric Melski <ericm@ajubasolutions.com>
4533 * win/tkWinDraw.c (RenderObject): Applied patch from [Bug: 6368],
4534 which corrects rendering of 1-pixel wide stippled lines on Windows.
4536 * generic/tkCanvLine.c (DisplayLine): Applied patch from
4537 [Bug: 6368], corrects bugs relating to use of active- and
4538 disabledwidth values for displaying lines (disabledwidth was never
4539 used, and activewidth/disablewidths would only possibly be used
4540 when greater than default width, rather than when simply not equal
4543 * library/tkfbox.tcl (OkCmd): Applied patch from [Bug: 6365],
4544 which adds safety for directory names containing spaces or which
4547 * win/tkWinDialog.c (GetFileNameW, GetFileNameA)
4548 (Tk_ChooseColorObjCmd, Tk_ChooseDirectoryObjCmd): Added error
4549 checking for the return value from the common dialog functions, so
4550 that the commands will not silently fail if the common dialog
4551 returns an error. [Bug: 6369].
4553 2000-10-10 Eric Melski <ericm@ajubasolutions.com>
4555 * generic/tkConfig.c (Tk_InitOptions): Added
4556 Tcl_IncrRefCount/Tcl_DecrRefCount calls on valuePtr, to prevent
4557 memory leaks when the value object comes from the option
4558 database. [Bug: 6275].
4560 2000-10-06 Jeff Hobbs <hobbs@ajubasolutions.com>
4562 * win/Makefile.in (cat32.${OBJEXT}): add win/ subdirectory to
4563 cat32 target to correctly find the source file.
4565 2000-10-05 Eric Melski <ericm@ajubasolutions.com>
4567 * generic/tkCmds.c (Tk_WinfoObjCmd): Added check for
4568 TK_ANONYMOUS_WINDOW flag in the [winfo children] subcommand; if
4569 set, the window will not be printed in the list of children.
4571 * doc/CrtWindow.3: Added entry for Tk_CreateAnonymousWindow.
4573 * generic/tkWindow.c
4574 (Tk_CreateAnonymousWindow): New API for creating anonymous
4575 windows. These windows are manipulable from C, but not from Tcl,
4576 because they have no pathname associated with them. They are used
4577 initially by widgets that do rubber-band resizing (panedwindow,
4578 multi-column listbox, etc.), and may be useful for other widgets
4579 as well (dropbox, combobox).
4580 (Tk_DestroyWindow): Added check for TK_ANONYMOUS_WINDOW flag when
4581 determining whether to generate a DestroyNotify event.
4583 * generic/tkStubInit.c:
4584 * generic/tkDecls.h: Regen'd from tk.decls.
4586 * generic/tk.decls: Added Tk_CreateAnonymousWindow declaration.
4588 * generic/tk.h: Added TK_ANONYMOUS_WINDOW flag for Tk_Window's.
4590 2000-10-04 Eric Melski <ericm@ajubasolutions.com>
4592 * doc/MaintGeom.3: Noted that Tk_MaintainGeometry handles direct
4593 descendants properly.
4595 * generic/tkGeometry.c (Tk_MaintainGeometry): Added a check for
4596 the case in which the slave window is a direct descendant of the
4597 master window. In this case, we need not set up the additional
4598 infrastructure normally provide by Tk_MaintainGeometry, because we
4599 can rely on the parent/child relationship to handle it for us
4600 implicitly. In this case, Tk_MaintainGeometry just calls directly
4601 to Tk_MoveResizeWindow. This allows geometry managers to simply
4602 always use Tk_MaintainGeometry to maintain geometry for slaves,
4603 and avoid doing the direct descendant check themselves.
4604 (Tk_UnmaintainGeometry): Added a matching check for the direct
4605 descendant case; in this case, Tk_UnmaintainGeometry simply
4606 returns immediately.
4608 2000-10-01 Eric Melski <ericm@ajubasolutions.com>
4610 * generic/tkButton.c (ConfigureButton): Added tests for -compound
4611 option, so that when there is a textvariable and an image, and
4612 -compound is not none, the button will display both the
4613 textvariable and the image.
4615 * doc/SetOptions.3: Added note that restoreProc and freeProc may
4618 * generic/tkConfig.c (Tk_RestoreSavedOptions): For custom options,
4619 added test that the restoreProc is not NULL, to allow for custom
4620 options that don't care about supporting Tk_RestoreSavedOptions.
4622 2000-09-29 D. Richard Hipp <drh@hwaci.com>
4624 * generic/tkBitmap.c: Changes to prevent a BadMatch error from the
4625 Xserver when the same bitmap is used on two or more screens of the
4628 * tests/menu.test: Print a warning if the TK_ALT_DISPLAY environment
4629 variable is not configured so as to test for the bug fix above.
4631 * library/tk.tcl (::tk::SetGrabFocus): "Catch" the grab in case
4632 another application already holds the grab and the "grab" command
4635 2000-09-29 Jeff Hobbs <hobbs@scriptics.com>
4637 * win/Makefile.in: commented use of TESTFLAGS
4638 * unix/Makefile.in: added TESTFLAGS to test and testlang targets to
4639 conform with Windows makefile and TEA style.
4641 2000-09-29 Eric Melski <ericm@ajubasolutions.com>
4643 * generic/tkTest.c: Fixed tests to use updated API.
4647 * generic/tkConfig.c: Changed interface for Tk_CustomOptionSetProc
4648 and Tk_CustomOptionGetProc; these now take a pointer to the start
4649 of the widget record, and an integer offset to the slot for the
4650 option value, instead of just a pointer to the slot. This allows
4651 more sophisticated options to do interesting things based on other
4652 data in the widget record.
4654 2000-09-17 Eric Melski <ericm@ajubasolutions.com>
4656 * generic/tk.h: Added declaration of Tk_ObjCustomOption structure,
4657 used for TK_OPTION_CUSTOM, and typedef's of the functions
4658 Tk_CustomOptionSetProc, Tk_CustomOptionGetProc,
4659 Tk_CustomOptionRestoreProc, and Tk_CustomOptionFreeProc, used for
4662 * doc/SetOptions.3: Added documentation of TK_OPTION_CUSTOM, and
4663 section "CUSTOM OPTION TYPES" explaining how to create and use
4666 * tests/config.test: Added tests for custom option type.
4668 * generic/tkTest.c: Added test support for TK_OPTION_CUSTOM to
4669 TestobjconfigObjCmd. Added CustomOption* functions to implement a
4672 * generic/tkConfig.c: Added new option type TK_OPTION_CUSTOM,
4673 which allows the definition of custom option types by creating
4674 parsing, printing, freeing, and restoring procedures for a custom
4675 option. This is needed by the text and canvas widgets if they are
4676 to be fully objectified.
4678 2000-09-07 Jeff Hobbs <hobbs@scriptics.com>
4682 * doc/loadTk.n: minor doc cleanup
4684 2000-09-06 Eric Melski <ericm@ajubasolutions.com>
4686 * doc/HWNDToWindow.3:
4687 * doc/GetHWND.3: Changed synopsis to indicate the tkPlatDecls.h
4688 should be included, not tk.h.
4690 * generic/tkPlatDecls.h: Removed #include <windows.h> for Windows,
4691 a better solution for now is to update the docs and have extension
4692 authors #include <tkPlatDecls.h>.
4694 * generic/tk.h: Removed '#include "tkPlatDecls.h"', as the
4695 incorrect inclusion order between windows.h/tkPlatDecls.h causes
4696 build conflicts on Windows.
4698 * generic/tkPlatDecls.h: Added #include <windows.h> for Windows,
4699 so that HWND, etc., are defined properly.
4701 2000-09-06 Jeff Hobbs <hobbs@scriptics.com>
4703 * doc/canvas.n: fixed doc bug (ellson). [Bug: 6218]
4707 * unix/configure.in:
4709 * win/configure.in: updated to patchlevel 8.4a2
4711 * generic/tkMessage.c (MessageWidgetObjCmd): initialized result to
4712 avoid pedantic warning.
4714 * generic/tkGrab.c (Tk_GrabObjCmd): changed len arg from size_t to
4715 int to fix pedantic warning.
4717 2000-09-01 Eric Melski <ericm@ajubasolutions.com>
4719 * win/makefile.vc (install-libraries):
4720 * win/Makefile.in (install-libraries):
4721 * unix/Makefile.in (install-libraries): Added tkPlatDecls.h to
4722 list of header files to install.
4724 * generic/tk.h: Added #include "tkPlatDecls.h", which declares the
4725 platform specific component of the public Tk stubs API's.
4727 2000-08-29 Eric Melski <ericm@ajubasolutions.com>
4729 * win/tkWinMenu.c (DrawWindowsSystemBitmap): Use scratchDC
4730 for determining the source's logical coordinates. Patch from
4731 [Bug: 6134 (Markus Oberhumer)].
4733 * win/tkWinMenu.c (SetDefaults): Compute the indicatorDimensions[]
4734 under Windows NT/2000 in the same way as under Windows 95/98.
4735 Patch from [Bug: 6134 (Markus Oberhumer)].
4737 * win/tkWinFont.c (GetScreenFont): Added a memset() to
4738 pacify memory checkers. Patch from [Bug: 6134 (Markus Oberhumer)].
4740 * library/tkfbox.tcl (::tk::dialog::file::Update): Corrected
4741 handling of multi-pattern filters (eg, "* *.*"), which was broken
4742 by the getOpenFile performance patches applied earlier.
4744 2000-08-24 Eric Melski <ericm@ajubasolutions.com>
4756 * doc/checkbutton.n:
4757 * doc/radiobutton.n:
4761 * doc/text.n: Fixed Standard Options section to make best use of
4762 new tab settings in man.macros.
4764 2000-08-24 Mo DeJong <mdejong@redhat.com>
4766 * unix/README: Update to account for removal of --enable-gcc.
4767 * unix/configure.in:
4768 * unix/tcl.m4 (SC_ENABLE_GCC): Remove --enable-gcc option.
4770 * win/tcl.m4 (SC_ENABLE_GCC): Remove --enable-gcc option.
4771 Remove quick hack that provided cross compile support for
4774 2000-08-23 Jeff Hobbs <hobbs@scriptics.com>
4776 * generic/tkButton.c (ButtonTextVarProc): reversed change below,
4779 2000-08-22 Jeff Hobbs <hobbs@scriptics.com>
4781 * generic/tkButton.c (ButtonTextVarProc): changed order of
4782 incr/decr of new value object, in case they are equal.
4784 2000-08-18 Eric Melski <ericm@ajubasolutions.com>
4786 * generic/tkImgPhoto.c (ImgPhotoGet): Removed redundant call to
4787 DitherInstance; this call was formerly being made from
4788 ImgPhotoGet->ImgPhotoConfigureInstance->DitherInstance, and
4789 ImgPhotoGet->DitherInstance. The second call was removed.
4791 2000-08-10 Jeff Hobbs <hobbs@scriptics.com>
4793 * doc/SetOptions.3: added missing ')'.
4795 2000-08-09 Eric Melski <ericm@ajubasolutions.com>
4797 * doc/SetOptions.3: Updated documentation to reflect support for
4798 TK_OPTION_NULL_OK for TK_OPTION_DOUBLE and TK_OPTION_PIXELS.
4800 * generic/tkConfig.c: Added for TK_OPTION_NULL_OK support for
4801 TK_OPTION_DOUBLE and TK_OPTION_PIXELS.
4803 * doc/place.n: Updated, reformatted manual entry.
4805 * tests/place.test: Added many tests.
4807 * generic/tkPlace.c (Tk_PlaceObjCmd): Updated to use Tk
4808 widget-option management facilities to manage place options (-x,
4809 -y, etc.), which simplifies the placer code. Added support for
4810 [place configure pathName] and [place configure pathName -option],
4811 similar to the behavior of the configure subcommand supported by
4814 2000-08-08 Eric Melski <ericm@ajubasolutions.com>
4816 * tests/place.test: Extended test suite to test error returns from
4819 * generic/tkInt.h: Replaced Tk_PlaceCmd prototype with
4820 Tk_PlaceObjCmd prototype.
4822 * generic/tkWindow.c: Updated [place] command entry to use new
4825 * generic/tkPlace.c (Tk_PlaceObjCmd): Tcl_Obj'ified [place] command.
4827 2000-08-07 Eric Melski <ericm@ajubasolutions.com>
4829 * generic/tkWindow.c: Updated [selection] command entry to use
4830 new Tcl_Obj interface.
4832 * generic/tkInt.h: Replaced Tk_SelectionCmd prototype with
4833 Tk_SelectionObjCmd prototype.
4835 * tests/select.test: Updated test suite to recognize standardized
4838 * generic/tkSelect.c (Tk_SelectionObjCmd): Tcl_Obj'ified
4839 [selection] command.
4841 2000-08-07 Jeff Hobbs <hobbs@scriptics.com>
4843 * doc/cursors.n: changed .SS to more compatible macros.
4845 2000-08-05 Jeff Hobbs <hobbs@scriptics.com>
4847 * library/safetk.tcl: rationalized the setting of tk_library when
4848 initialized Tk in a safe interpreter.
4850 2000-08-03 Eric Melski <ericm@ajubasolutions.com>
4852 * generic/tkWindow.c: Updated "grab" command entry to use
4853 Tcl_Obj'ified command.
4855 * generic/tkInt.h: Replaced Tk_GrabCmd prototype with
4856 Tk_GrabObjCmd prototype.
4858 * tests/grab.test: Initial suite of tests for [grab] command.
4860 * generic/tkGrab.c (Tk_GrabObjCmd): Tcl_Obj'ified [grab] command.
4862 * generic/tkInt.h: Removed Tk_AfterCmd function prototype; the
4863 function does not exist (since 4.0p3). Cleaned up some line
4866 * generic/tk.h: Removed "#define Tk_AfterCmd Tcl_AfterCmd";
4867 nothing in the core uses Tk_AfterCmd, and Tcl_AfterCmd doesn't exist
4870 * generic/tkInt.h: Replace Tk_BindCmd prototype with
4871 Tk_BindObjCmd prototype.
4873 * generic/tkWindow.c: Updated "bind" command entry to use
4874 Tcl_Obj'ified command.
4876 * generic/tkCmds.c (Tk_BindObjCmd): Tcl_Obj'ified [bind] command.
4878 * tests/bind.test: Tweaked expected error messages for [bindtags]
4879 to comply with updated error messages.
4881 * generic/tkMenu.c (CloneMenu): Replaced calls to Tk_BindtagsCmd
4882 with equivalent calls to Tk_BindtagsObjCmd.
4884 * generic/tkInt.h: Replace Tk_BindtagsCmd prototype with
4885 Tk_BindtagsObjCmd prototype.
4887 * generic/tkWindow.c: Updated "bindtags" command entry to use
4888 Tcl_Obj'ified command.
4890 * generic/tkCmds.c (Tk_BindtagsObjCmd): Tcl_Obj'ified [bindtags]
4893 2000-08-02 Eric Melski <ericm@ajubasolutions.com>
4895 * generic/tkCmds.c (Tk_TkwaitObjCmd): Tcl_Obj'ified [tkwait] command.
4897 * generic/tkWindow.c: Updated "tkwait" command entry to use
4898 Tcl_Obj'ified command.
4900 * generic/tkInt.h: Replace Tk_TkwaitCmd prototype with
4901 Tk_TkwaitObjCmd prototype.
4903 * generic/tkGrid.c (Tk_GridCmd): Split [grid] subcommands into
4904 separate functions instead of inlining them all in Tk_GridCmd.
4906 2000-08-01 Eric Melski <ericm@ajubasolutions.com>
4908 * generic/tkInt.h: Replaced prototype for Tk_MessageCmd with
4909 prototype for Tk_MessageObjCmd.
4911 * generic/tkWindow.c: Marked message command as using the new
4912 MessageObjCmd instead of the old MessageCmd.
4914 * tests/message.test: Added tests for the message widget.
4916 * generic/tkMessage.c: Obj'ified the message widget.
4918 * generic/tkInt.h: Removed prototype for Tk_ClipboardCmd, added
4919 prototype for Tk_ClipboardObjCmd.
4921 * generic/tkWindow.c: Updated function pointers for clipboard
4922 command to use Tcl_Obj version.
4924 * tests/clipboard.test: Updated tests to expect standard error
4927 * generic/tkClipboard.c (Tk_ClipboardObjCmd): Obj'ified
4928 Tk_ClipboardCmd -> Tk_ClipboardObjCmd.
4930 2000-07-28 Eric Melski <ericm@ajubasolutions.com>
4932 * unix/tkUnixButton.c (TkpDisplayButton): Added bits to change
4933 the indicator color when radio-/check-buttons are disabled. This
4934 reduces the visual incongruity when a group of these controls are
4937 * win/tkWinMenu.c (ReconfigureWindowsMenu): Added MF_GRAYED bit
4938 for disabled menu entries, to ensure that those which are drawn by
4939 the system are shown grayed (such as entries on menubars) [Bug: 4372].
4941 * doc/label.n: Added -disabledforeground to list of options [Bug:
4944 * mac/tkMacDefault.h:
4945 * unix/tkUnixDefault.h: Added default values for listbox
4946 disabledforeground and state.
4948 * win/tkWinDefault.h: Changed default listbox background color to
4949 white and listbox selection borderwidth to 0, in keeping with the
4950 "Microsoft Windows User Experience"; added default values for
4951 listbox disabledforeground and listbox state.
4953 * doc/listbox.n: Added documentation for -state option.
4955 * generic/tkListbox.c: Added support for -state to listbox. [RFE:
4958 * tests/listbox.test: Tests for listbox disabled state.
4960 2000-07-27 Mo DeJong <mdejong@redhat.com>
4962 * win/configure.in: TCL_STUB_LIB_FLAG and
4963 TK_STUB_LIB_FLAG should not include ${TCL_DBGX}
4964 in win/tkConfig.sh, fix that.
4966 2000-07-25 Joe English <jenglish@flightlab.com>
4968 * doc: CanvPsY.3, ConfigWidg.3, CrtImgType.3, CrtItemType.3,
4969 FontId.3, GetFont.3, canvas.n, font.n, options.n, text.n:
4970 Documentation fix: Replaced references to XFontStruct *
4971 and Tk_FontStruct with Tk_Font.
4973 2000-07-24 Eric Melski <ericm@ajubasolutions.com>
4975 * tests/text.test: Added tests for -regexp -nocase searches with
4976 backslash character classes.
4978 * generic/tkText.c (TextSearchCmd): Text search did not work
4979 properly when -regexp and -nocase were used, in combination with
4980 backslash character classes represented by capital letters (ie,
4981 \W, \M); altered implementation of -regexp -nocase searches to use
4982 new regexp interfaces to fix this problem. [Bug: 5988].
4984 2000-07-21 Eric Melski <ericm@ajubasolutions.com>
4986 * tests/text.test: Added tests for searching when text is elided.
4988 * generic/tkText.c (TextSearchCmd): Text search was not returning
4989 the correct index when the search covered (but did not search)
4990 elided characters; corrected this by adjusting the match index by
4991 the number of elided characters preceeding the start of the match,
4992 just as is done with embedded windows, etc. [Bug: 5470].
4994 2000-07-21 Mo DeJong <mdejong@redhat.com>
4996 * win/configure.in: Add TK_STUB_LIB_FLAG and
4997 TK_BUILD_STUB_LIB_SPEC. These are needed to build a stub enabled
5000 2000-07-20 Eric Melski <ericm@ajubasolutions.com>
5002 * unix/tkUnixDraw.c (TkScrollWindow): Replaced a use of a trinary
5003 operator with an if/else, to avoid build problems on some
5004 platforms [Bug: 5819].
5006 * win/makefile.vc: Applied patch from Don Porter to enhance nmake
5007 support on NT/Alpha [RFE: 5939].
5009 2000-07-19 Eric Melski <ericm@ajubasolutions.com>
5011 * library/text.tcl: Enhanced <Tab> binding to behave like normal
5012 <Tab> bindings when the text widget is disabled (ie, it advances
5013 focus to the next widget).
5015 * generic/tkText.c (TextSearchCmd): Added a test for a NULL
5016 segment pointer when doing backwards searches for "" on an empty
5017 text widget. [Bug: 6007].
5019 2000-07-18 Mo DeJong <mdejong@redhat.com>
5021 * unix/aclocal.m4: Use tcl.m4.
5023 * unix/configure.in: Properly quote LOCALES variable. Properly quote
5024 argument to m4 macro.
5026 * unix/tcl.m4: Add updated file from tcl.
5028 * win/tcl.m4: Updated file from tcl.
5030 2000-07-18 Eric Melski <ericm@ajubasolutions.com>
5032 * library/tkfbox.tcl: Fixed keyboard navigation in the iconlist.
5034 * unix/configure.in (MAKE_LIB): Corrected definition of MAKE_LIB
5035 for shared builds, with patch from Mike Hopkirk.
5037 2000-07-18 Mo DeJong <mdejong@redhat.com>
5039 * win/Makefile.in: Fix TCL_GENERIC_DIR variable
5040 so that it uses the TK_SRC_DIR in the same way
5041 as the unix version.
5043 2000-07-17 David Gravereaux <davygrvy@ajubasolutions.com>
5045 * generic/tkConsole.c: Added comments for a Win2K OS bug with
5046 GetStdHandle(STD_OUTPUT_HANDLE). No change was done to the code
5047 as the resulting behaviour of ShouldUseConsoleChannel() was
5048 correct, anyways. [BUG: 5971]
5050 2000-07-17 Eric Melski <ericm@scriptics.com>
5052 * generic/tkStubImg.c (Tk_InitImageArgs): Applied patch from [Bug:
5053 5990], from Anselm Lingnau, which correctly sets the value of
5054 useNewImage to 0 when the new image system is not to be used,
5055 instead of leaving it at -1, which causes the check to be
5056 performed more times than is really necessary.
5058 * library/bgerror.tcl: Fixed a typo in one of the bgerror dialog
5061 * library/msgs/it.msg: Italian message catalog, from Paolo
5062 Brutti. [RFE: 6012].
5064 2000-07-07 Eric Melski <ericm@ajubasolutions.com>
5066 * library/msgs/el.msg: Greek message catalog, from George Petasis.
5068 2000-07-07 Mo DeJong <mdejong@redhat.com>
5070 * win/configure.in: Fix subst of TK_SHARED_BUILD
5071 variable in tkConfig.sh.in. Fix definition of
5072 TK_SRC_DIR variable so that it matches the
5075 2000-07-05 Mo DeJong <mdejong@redhat.com>
5077 * generic/tkFileFilter.c (AddClause): Cast to match function prototype.
5078 * win/stubs.c (_XInitImageFuncPtrs): Add return value for function.
5079 * win/tkWinButton.c (buttonStyles, ButtonBindProc, ComputeStyle):
5080 Remove unused declarations.
5081 * win/tkWinColor.c (GetColorByName, GetColorByValue): Remove unused
5082 function declarations.
5083 * win/tkWinDialog.c (TrySetDirectory): Remove unused function
5085 * win/tkWinEmbed.c (TkWinEmbeddedEventProc): Cast to match function
5087 * win/tkWinMenu.c (winMenuMutex, MenuExitProc): Remove unused
5089 * win/tkWinWindow.c (StackWindow): Remove unused declaration.
5090 * win/tkWinWm.c (ConfigureEvent): Remove unused declaration.
5091 * win/tkWinX.c (winXMutex): Remove unused declaration.
5092 * xlib/ximage.c (XCreateBitmapFromData): Cast to match function
5095 2000-07-05 Eric Melski <ericm@ajubasolutions.com>
5097 * tests/imgPhoto.test: Added test for GIF writing code [Bug: 5823].
5099 * generic/tkImgGIF.c: Applied patch from Jan Nijtmans to fix a
5100 problem with the GIF writing code [Bug: 5823].
5102 * generic/tkCursor.c: Added initialization for nextPtr field of
5103 TkCursor, patch from Nijtmans/Howlett.
5105 2000-07-05 Eric Melski <ericm@ajubasolutions.com>
5107 * library/msgs/nl.msg: Dutch message catalog for dialogs, from Jan
5110 2000-06-30 Eric Melski <ericm@scriptics.com>
5113 * doc/colors.n: Added extra .CE/.CS pairs to break up the large
5114 text block, so that the generated Windows help file could
5115 accomodate the manual entry. [Bug: 5862]
5117 * tests/filebox.test: Adjusted tests to accomodate -multiple.
5119 * library/xmfbox.tcl: Adjusted arguments list construction such
5120 that -multiple is not presented as an option for tk_getSaveFile.
5122 * library/tk.tcl: Added test for safe interpreter status before
5123 attempting to load message catalogs (which is impossible in a
5124 standard safe interpreter). This means that SafeTk will not have
5125 localized dialogs, unless a means is found for loading the message
5128 2000-06-29 Eric Melski <ericm@scriptics.com>
5130 * library/msgs/de.msg: German message catalog.
5132 * library/msgs/en.msg: English message catalog.
5134 * library/msgs/es.msg: Spanish message catalog.
5136 * library/msgs/fr.msg: French message catalog.
5139 * unix/configure.in:
5141 * library/clrpick.tcl:
5142 * library/choosedir.tcl:
5143 * library/console.tcl:
5144 * library/msgbox.tcl:
5145 * library/tkfbox.tcl:
5146 * library/xmfbox.tcl:
5147 * library/bgerror.tcl: Applied patches from Laurent Duperval to
5148 provide localization of Tk dialogs. [RFE: 2671].
5150 2000-06-27 Eric Melski <ericm@scriptics.com>
5152 * generic/tkMenu.c (DeleteMenuCloneEntries): Applied fix from
5153 [Bug: 5275], which corrected a segfault-causing indexing problem
5154 when deleting entries from torn-off menus.
5156 2000-06-22 Eric Melski <ericm@ajubasolutions.com>
5158 * doc/getOpenFile.n: Updated with information about -multiple.
5160 * library/choosedir.tcl: Tweaked to handle modified tkIconList API's.
5162 * library/tkfbox.tcl: Preliminary implementation of multiple
5163 selection; based on patch from [RFE: 604]. Some of the tkIconList
5164 functions changed to support this and to make the dialog faster.
5166 * library/xmfbox.tcl: Added support for multiple selection, from
5167 patch in [RFE: 4999].
5169 2000-06-21 Eric Melski <ericm@scriptics.com>
5171 * library/text.tcl: Corrected behavior of text widget with respect
5172 to this sequence of events: click, shift-click. Previously, the
5173 shift-click just moved the cursor and anchor; now, the shift-click
5174 will select the text between the click and the shift-click, which
5175 is the behavior most users expect. [Bug: 5929].
5177 2000-06-19 Eric Melski <ericm@scriptics.com>
5179 * library/bgerror.tcl: Added auto-truncation for long error
5180 messages (more than 30 characters wide, or more than 4 lines
5181 long), so that the dialog remains a manageable size. [RFE: 5782]
5183 2000-06-15 Eric Melski <ericm@scriptics.com>
5185 * win/tkWinDialog.c: Patched to support tk_getOpenFile
5186 -multiple. [RFE: 604].
5188 2000-06-13 Eric Melski <ericm@scriptics.com>
5192 * win/Makefile.in: Applied patch from [RFE: 5844], to provide
5193 support for the mingw compile environment for Windows.
5195 2000-06-06 Jeff Hobbs <hobbs@scriptics.com>
5199 2000-06-03 Jeff Hobbs <hobbs@scriptics.com>
5201 * doc/CrtCmHdlr.3: new doc for ClientMessage handler procs
5202 * generic/tk.h: added typdef for Tk_ClientMessageProc
5203 * generic/tkStubInit.c:
5204 * generic/tkDecls.h:
5205 * generic/tk.decls: Added Tk_CreateClientMessageHandler and
5206 Tk_DeleteClientMessageHandler declarations.
5207 * generic/tkEvent.c (Tk_HandleEvent): Added
5208 Tk_CreateClientMessageHandler and Tk_DeleteClientMessageHandler to
5209 allow adding event handlers that invoke for ClientMessage events.
5210 This is necessary to support unix dnd protocols.
5212 2000-06-02 Jeff Hobbs <hobbs@scriptics.com>
5214 * canvas.test: added test for 5783.
5215 * generic/tkCanvPoly.c (DisplayPolygon): added checks for the
5216 polygon fillGC not being empty to prevent segfault. [Bug: 5783]
5218 2000-05-31 Eric Melski <ericm@scriptics.com>
5220 * library/bgerror.tcl: Improved bgerror based on work by Donal
5221 K. Fellows; no longer dependent on tk_dialog; features a
5222 Windows-esque "Details" button, and a customizable extra function
5223 button that allows the user to (for example) save the stack trace
5226 2000-05-30 Eric Melski <ericm@scriptics.com>
5228 * generic/tkImgGIF.c: Changed defines for GIF87a/GIF89a to be
5229 static char arrays with integer initialization, to address EBCIDIC
5230 vs. ASCII encoding issues and to handle compilers that don't deal
5231 with "\xAB" syntax for specifying hex values in strings.
5233 2000-05-28 Jeff Hobbs <hobbs@scriptics.com>
5235 * doc/spinbox.n: (new file) docs for spinbox widget
5236 * generic/tkInt.h: added Tk_SpinboxObjCmd declaration
5237 * generic/tkEntry.c: added 'spinbox' widget - an extension of the
5239 * generic/tkWindow.c: added 'spinbox' to core Tk commands
5240 * library/spinbox.tcl: (new file) binding and helper procs for spinbox
5241 * library/tk.tcl: added spinbox.tcl to list of files to source
5242 * tests/entry.test: updated changed error messages
5243 * tests/spinbox.test: (new file) test suite for spinbox
5245 * generic/tkPlace.c (Tk_PlaceCmd): reworked place master/slave
5246 table init'n to prevent seg fault when using place on multiple
5249 * generic/tk.h: added comments ot Tk_FakeWin structure
5251 2000-05-26 Eric Melski <ericm@scriptics.com>
5253 * generic/tkOption.c (Tk_GetOption): Extended Tk_GetOption to
5254 support a new syntax for option names in option tables. If the
5255 option name has an embedded ".", it indicates that the name field
5256 contains both an option name and an overriding widget class, in
5257 the form "class.option". The lookup for the option value will be
5258 performed as though the widget class is that specified, rather
5259 than the actual widget class.
5260 (SetupStacks): Replaced several lines of array element copying
5261 with a for loop for conciseness.
5263 2000-05-25 Eric Melski <ericm@scriptics.com>
5265 * library/button.tcl: Tweaks for -overrelief handling on Windows.
5267 * doc/radiobutton.n: Added documentation for -overrelief option.
5269 * doc/checkbutton.n: Added documentation for -overrelief option.
5271 * doc/label.n: Added documentation for -state option.
5273 * generic/tkButton.c: Added -overrelief option for checkbuttons,
5276 * library/button.tcl (tkButtonDown, macintosh version): Added
5277 protection against querying the -repeatdelay option from a widget
5278 that doesn't support it (ie, checkbuttons, radiobuttons, etc).
5279 Other platforms use a different binding script for checkbuttons
5280 and radiobuttons, so they don't have this issue.
5281 (tkCheckRadioEnter, windows version): Added code to handle
5282 -overrelief for check/radiobuttons on windows.
5284 2000-05-22 Eric Melski <ericm@scriptics.com>
5286 * generic/tkButton.c: Added -activeforeground, -activebackground
5287 for labels, for the -state option.
5289 * doc/label.n: Added documentation for -state option,
5290 -activeforeground, -activebackground.
5292 2000-05-22 Jeff Hobbs <hobbs@scriptics.com>
5294 * win/Makefile.in (install-libraries): corrected to install X
5301 * doc/photo.n: doc fix-ups [Bug: 5396]
5303 2000-05-17 Jeff Hobbs <hobbs@scriptics.com>
5307 * generic/tkCmds.c (Tk_BellObjCmd): added -nice option to
5308 optionally avoid resetting screen saver [Bug: 4279]
5310 2000-05-15 Jeff Hobbs <hobbs@scriptics.com>
5312 * win/tkWinWm.c (Tk_WmCmd): changed wm deiconify from using idle
5313 callback to calling restack and focus code immediately.
5315 2000-05-17 Eric Melski <ericm@scriptics.com>
5317 Overall change: Added "-readonlybackground" option for entries,
5318 to enable a visual change when state goes to readonly.
5320 * mac/tkMacDefault.h (DEF_ENTRY_READONLY_BG_COLOR)
5321 (DEF_ENTRY_READONLY_BG_COLOR):
5322 * win/tkWinDefault.h (DEF_ENTRY_READONLY_BG_COLOR)
5323 (DEF_ENTRY_READONLY_BG_COLOR):
5324 * unix/tkUnixDefault.h (DEF_ENTRY_READONLY_BG_COLOR)
5325 (DEF_ENTRY_READONLY_BG_COLOR): Added default values for entry
5326 -readonlybackground option.
5328 * generic/tkEntry.c: Added -readonlybackground option, cleaned up
5329 excessive use of graphics contexts.
5331 * tests/entry.test: Added configuration test for
5332 -readonlybackground option.
5334 * doc/entry.n: Added documentation for -readonlybackground option.
5336 Overall change: changed implementation of "link" relief for
5337 buttons. Instead of a new relief style (-relief link), there is a
5338 new option, -overrelief, which if set is used when the mouse is
5341 * doc/SetOptions.3: Added information about TK_OPTION_NULL_OK with
5344 * win/tkWinButton.c: Removed bits about TK_RELIEF_LINK.
5346 * tests/button.test: Added tests for -overrelief; removed tests
5349 * mac/tkMacButton.c: Removed bits about TK_RELIEF_LINK.
5351 * generic/tkOldConfig.c: Removed bits about TK_RELIEF_LINK.
5353 * generic/tkConfig.c: Removed bits about TK_RELIEF_LINK; added
5354 support for TK_OPTION_NULL_OK for TK_OPTION_RELIEF.
5356 * library/button.tcl: Added binding support for -overrelief.
5358 * generic/tk3d.c (Tk_GetRelief): Added branch for TK_RELIEF_NULL.
5360 * generic/tkButton.c: Added -overrelief option; removed
5361 Enter/Leave EventProc masks and handlers.
5363 * generic/tk.h: Added TK_RELIEF_NULL definition, removed
5366 * mac/tkMacDefault.h (DEF_BUTTON_OVER_RELIEF):
5367 * win/tkWinDefault.h (DEF_BUTTON_OVER_RELIEF):
5368 * unix/tkUnixDefault.h (DEF_BUTTON_OVER_RELIEF): Added default
5369 value for the -overrelief option.
5371 2000-05-16 Eric Melski <ericm@scriptics.com>
5373 * win/tkWinMenu.c (ReconfigureWindowsMenu): Added code to add the
5374 MF_SEPARATOR bit for SEPARATOR_ENTRY menu items. This causes
5375 separator entries on the system menu to be drawn correctly [Bug: 5451].
5377 2000-05-15 Eric Melski <ericm@scriptics.com>
5379 * doc/image.n: Added documentation for [image inuse] command.
5381 * tests/image.test: Added tests for [image inuse] command.
5383 * generic/tkImage.c (Tk_ImageObjCmd): Added [image inuse] command,
5384 which provides a means for programmers to determine if a given
5385 image is in use by any widgets. [RFE: 3327].
5387 2000-05-14 Eric Melski <ericm@scriptics.com>
5389 * doc/clipboard.n: Added documentation for "clipboard get".
5391 * generic/tkClipboard.c (Tk_ClipboardCmd): Added "clipboard get"
5392 subcommand [RFE: 4628].
5394 * tests/clipboard.test: Updated to use "clipboard get" instead of
5395 "selection get -s CLIPBOARD".
5397 * library/entry.tcl: Adjusted Button-1 binding to set focus to the
5398 entry when it is readonly or normal.
5400 * doc/entry.n: Added documentation for readonly state,
5401 -disabledforeground, -disabledbackground.
5403 * tests/entry.test: Added tests for readonly state.
5405 * generic/tkEntry.c: Added support for "readonly" state, and
5406 redefined "disabled" state. A disabled entry will display its
5407 text in a dimmed color and possibly with a different background,
5408 and will be completely unusable (no selection, no editing). A
5409 readonly entry will look like a normal entry, but it will not be
5410 editable; selection is still allowed. [RFE: 4239]. To support the
5411 new disabled state properly, "-disabledforeground" and
5412 "-disabledbackground" options were added.
5413 *** THIS IS A BACKWARDS INCOMPATIBLE BEHAVIOR CHANGE ***
5415 * win/tkWinDefault.h:
5416 * mac/tkMacDefault.h:
5417 * unix/tkUnixDefault.h: Added DEF_ENTRY_DISABLED_FG,
5418 DEF_ENTRY_DISABLED_BG_COLOR, DEF_ENTRY_DISABLED_BG_MONO.
5420 2000-05-12 Eric Melski <ericm@scriptics.com>
5422 * unix/tkUnixButton.c (TkpDisplayButton, TkpComputeButtonGeometry):
5423 * mac/tkMacButton.c (TkpDisplayButton, TkpComputeButtonGeometry):
5424 * win/tkWinButton.c (TkpDisplayButton, TkpComputeButtonGeometry):
5425 Added code for drawing compound buttons.
5427 * tests/button.test: Added configuration tests for -repeatdelay,
5428 -repeatinterval, -compound.
5430 * library/button.tcl: Added support for -repeatedelay,
5431 -repeatinterval options.
5433 * generic/tkOldConfig.c: Changed handling of link relief so that
5434 proper error messages are used.
5436 * generic/tkButton.h: Added -compound, -repeatdelay,
5437 -repeatinterval options.
5439 * generic/tkButton.c: Added event watchers for enter/leave events,
5440 for link relief support.
5442 * generic/tk3d.c: Changed handling of link relief so that proper
5443 error messages are used.
5445 * generic/tk.h: Changed values of
5446 TK_OPTION_LINK_OK/TK_CONFIG_LINK_OK for link relief support.
5448 2000-05-12 Jeff Hobbs <hobbs@scriptics.com>
5450 * win/tkWinFont.c (LoadFontRanges): improved support for all chars
5451 in 0-255 range for bitmap ANSI fonts. May be improved to handle
5452 bitmap non-ANSI fonts in the future. [Bug: 2172]
5454 * win/tkWinWm.c (RaiseWinWhenIdle): added TK_DONT_DESTROY_WINDOW
5455 to flag check to prevent timing related core dump. [Bug: 5438]
5457 2000-05-11 Jeff Hobbs <hobbs@scriptics.com>
5459 * win/tkWinTest.c (TestclipboardObjCmd): ensured CloseClipboard
5460 would always get called for each OpenClipboard.
5462 * tests/focus.test (focusSetupAlt): removed wm withdraw from proc
5463 as it would cause a hang for tkwait visibility
5467 * generic/tkColor.c:
5468 * generic/tkCursor.c: corrected handling of 3DBorder, Cursor and
5469 Color objects on multiple screens. [Bug: 5454]
5471 2000-05-09 Eric Melski <ericm@scriptics.com>
5473 * doc/button.n: Added documentation for link relief.
5475 * tests/button.test: Added tests for link relief for buttons.
5477 * generic/tk.h (TK_CONFIG_LINK_OK): Added definition of
5478 TK_RELIEF_LINK, TK_OPTION_LINK_OK and TK_CONFIG_LINK_OK. [RFE: 4348]
5480 * generic/tk3d.c: Added support for link relief. [RFE: 4348]
5482 * mac/tkMacButton.c (TkpDisplayButton):
5483 * unix/tkUnixButton.c (TkpDisplayButton): Added support for link
5486 * generic/tkOldConfig.c (Tk_ConfigureWidget):
5487 * generic/tkConfig.c (DoObjConfig): Added understanding of link
5488 relief, which is allowed only for widgets that have
5489 TK_OPTION_LINK_OK or TK_CONFIG_LINK_OK set for the "-relief"
5492 * generic/tkButton.c: Added TK_OPTION_LINK_OK to "-relief" option
5493 for buttons. [RFE: 4348]
5495 * win/tkWinWm.c (EX_TRANSIENT_STYLE): Removed WS_EX_TOOLWINDOW
5496 style bit, so that transient windows have full-size titlebars
5497 (like the tk_getOpenFile dialog).
5499 * win/tkWinMenu.c (GetMenuSeparatorGeometry): Tweaked height
5500 requested for separator bars to be (linespace - (2*descent))
5501 instead of just (linespace); this makes the separator occupy a
5502 more correct amount of vertical space. [Bug: 5303].
5504 2000-05-09 Jeff Hobbs <hobbs@scriptics.com>
5506 * library/focus.tcl: fixed calling of takeFocus proc [Bug: 5372]
5508 2000-05-02 Jeff Hobbs <hobbs@scriptics.com>
5515 * unix/configure.in:
5520 * win/makefile.vc: updated patchlevel to 8.4a1
5522 * unix/Makefile.in: added tk.spec to dist target
5524 2000-04-27 Eric Melski <ericm@scriptics.com>
5526 * doc/Tk_Init.3: Added Tk_SafeInit information [Bug: 1884].
5528 * doc/keysyms.n: Man page enumerating keysyms [RFE: 1645].
5530 * doc/colors.n: Man page enumerating valid color names [RFE: 1645].
5532 * doc/cursors.n: Man page enumerating valid cursor values [RFE: 1645].
5534 * library/msgbox.tcl: Corrected Unix tk_messageBox implementation
5535 to make the first button the default when no default is specified
5538 * doc/messageBox.n: Updated documentation with regards to
5539 selection of default button when none is specified (now it will
5540 use the first button as the default in that case) [Bug: 2218].
5542 2000-04-26 Jeff Hobbs <hobbs@scriptics.com>
5550 * win/README: Updating URLs to reference dev.scriptics.com
5552 2000-04-25 Jeff Hobbs <hobbs@scriptics.com>
5555 * win/Makefile.in: makefile cleanup
5557 2000-04-25 Eric Melski <ericm@scriptics.com>
5559 * generic/tkMain.c: Fixed function header comment for Tk_MainEx.
5562 * doc/GetScroll.3: Added information about Tk_GetScrollInfoObj
5565 2000-04-24 Eric Melski <ericm@scriptics.com>
5568 * doc/Grab.3: Man page for Tk_Grab and Tk_Ungrab [Bug: 1868, 1889]
5571 * doc/MainWin.3: Added entry for Tk_GetNumMainWindows [Bug: 1865].
5574 * doc/GetHINSTANCE.3: Man page for Tk_GetHINSTANCE [Bug: 1862].
5576 2000-04-24 Jeff Hobbs <hobbs@scriptics.com>
5578 * generic/tkImage.c (Tk_PostscriptImage): added check to create
5579 necessary prolog for photos
5580 * generic/tkCanvPs.c: added Tk_PostscriptPhoto that outputs PS for
5582 * generic/tkImgPhoto.c: new func ImgPhotoPostscript and added that
5583 in as ps proc in tkPhotoImageType.
5584 * generic/tkStubInit.c:
5585 * generic/tkDecls.h:
5586 * generic/tk.decls: added Tk_PostscriptPhoto
5588 * generic/tkConfig.c (DoObjConfig): removed direct setting of
5591 * mac/tkMacWm.c (Tk_WmCmd): initialized gotToplevel in
5592 colormapwindows case (bug found by Reasoning, Inc's automated code
5595 2000-04-24 Eric Melski <ericm@scriptics.com>
5598 * doc/GetHWND.3: Man page for Tk_GetHWND [Bug: 1863].
5601 * doc/HWNDToWindow.3: Man page for Tk_HWNDToWindow [Bug: 1869].
5604 * doc/AddOption.3: Man page for Tk_AddOption [Bug: 1854]
5606 2000-04-22 Jim Ingham <jingham@cygnus.com>
5608 * mac/tkMacDialog.c (Tk_MacGetOpenFile): Add empty bodies for the
5609 "-initialfile" and "-defaultextension" options.
5611 * mac/tkMacDialog.c (NavServicesGetFile): Only cons the result up
5612 into a list if multiple is true.
5614 * mac/tkMacMenus.c (SourceDialog): Use the "tk_getOpenFile"
5615 instead of hand-coding the dialog with StandardGetFile. This way
5616 we get the Navigation dialogs for free.
5618 * doc/getOpenFile.n: Document the -multiple and -message flags
5619 which are only implemented on the Mac. Also note that the -title
5620 works on the Mac with Nav Services installed.
5622 2000-04-19 Eric Melski <ericm@scriptics.com>
5624 * doc/WinViewable.3:
5625 * unix/mkLinks: Removed docs for Tk_IsViewable.
5627 * win/tkWinDialog.c: Removed calls to Tk_IsViewable.
5630 * generic/tkStubInit.c:
5631 * generic/tkDecls.h:
5633 * generic/tk.decls: Removed Tk_IsViewable function (it was not
5636 2000-04-19 Jeff Hobbs <hobbs@scriptics.com>
5638 * win/aclocal.m4: made SC_PROG_TCLSH search specifically for
5639 tclsh*.exe type files to find an executable.
5641 * win/Makefile.in: fixed up cleanup, winhelp, cat32 targets
5643 * library/console.tcl: made console use systemfixed font on Win
5645 * generic/tkEntry.c: removed unnecessary ENTRY_VALIDATE #define
5647 2000-04-19 Eric Melski <ericm@scriptics.com>
5649 * generic/tkRectOval.c (ConfigureRectOval): Added checks for valid
5650 outline settings before creating of outline GC; this means that it
5651 is really possible now to have an oval or rectangle with no
5652 outline. [Bug: 5029].
5654 2000-04-19 Jeff Hobbs <hobbs@scriptics.com>
5656 * library/choosedir.tcl (::tk::dialog::file::chooseDir::Config):
5657 * library/tkfbox.tcl (::tk::dialog::file::Config): removed the
5658 extraneous glob on -initialdir after file isdir already returned 1
5659 and moved cd trick into this case as the else already uses [pwd].
5662 * win/winMain.c: moved extern call out of WinMain func
5666 * unix/configure.in:
5668 * win/configure.in: bumped to version 8.3.1
5670 * library/msgbox.tcl (tkMessageBox): changed to use grid in some
5671 places, realign icon to anchor nw.
5673 * mac/tkMacScale.c: reverted tkMacScale.c to 1.5 equivalent (it
5674 was accidentally bumped forward).
5676 2000-04-18 Eric Melski <ericm@scriptics.com>
5678 * win/tkWinPointer.c: Changed Mod2Mask in TkWinGetModifierState to
5679 ALT_MASK, to fix some event problems [Bugs: 1160, 5088].
5681 * win/tkWinX.c: Changed Mod2Mask in GetState to ALT_MASK, to fix
5682 some event problems [Bugs: 1160, 5088].
5684 * generic/tkInt.h: Moved definition of ALT_MASK and META_MASK here
5685 so that it would be accessible from other modules than tkBind.c.
5687 * generic/tkBind.c: Added code in BindEvent to check for ALT_MASK
5688 and META_MASK in the event state field, as this field may not be
5689 set up with the correct display modifier mask bits if the XEvent
5690 structure was created by [event generate] or by the Windows X
5691 emulation. [Bugs: 1160, 5088].
5693 2000-04-18 Scott Redman <redman@HILO>
5697 * win/wish.ico: Modified copyright dates in Windows resource
5698 files. Updated the icon for wish.exe.
5700 2000-04-17 Eric Melski <ericm@scriptics.com>
5702 * win/tkWinDialog.c: Added checks for visibility of parent window
5703 before creating MessageBox and ChooseColor dialogs; this prevents
5704 the application from locking when the parent is withdrawn and the
5705 message box is created. In these cases, the window will be
5706 created without a parent.
5708 * unix/mkLinks: Added WinViewable.3.
5710 * tests/msgbox.test: Added tests for patch from [Bug: 4997].
5712 * library/msgbox.tcl:
5713 * library/dialog.tcl: Applied patch from [Bug: 4997]; detaches
5714 dialog window from parent if parent is not viewable.
5716 * library/bgerror.tcl: Removed workaround from [Bug: 4370]; this
5717 is superceeded by patches to dialog.tcl.
5719 * generic/tkCmds.c: Changed WinfoObjCmd to use Tk_IsViewable
5720 function to determine visibility of windows instead of inlining
5723 * generic/tkStubInit.c:
5724 * generic/tkDecls.h:
5725 * generic/tk.decls: Added Tk_IsViewable declaration.
5727 2000-04-17 Eric Melski <ericm@scriptics.com>
5729 * library/text.tcl: Tweaked double-/triple-click selection;
5730 previously, anchor and insert marks were placed in unexpected
5731 locations following a double or triple click. Now they are placed
5732 logically. Also tweaked the extension of selection via
5733 shift-double-clicks so that it no longer selects the contiguous
5734 whitespace on the side of the selection opposite the
5735 double-click. [RFE: 4253].
5737 * doc/menu.n: Added note regarding rendering of
5738 checkbuttons/radiobuttons in menubars on different platforms --
5739 some systems do not draw indicators for check/radiobuttons in
5742 * library/menu.tcl: Corrected behavior of
5743 checkbuttons/commands/radiobuttons in menubars [Bug: 630].
5745 * tests/grid.test: Added test for [grid propagate . 0] to not toggle.
5747 * generic/tkGrid.c: Fixed bogus logic in [grid propagate] that
5748 caused [grid propagate . 0] to act as a toggle instead of an
5749 absolute set. [Bug: 2286].
5751 2000-04-16 Jeff Hobbs <hobbs@scriptics.com>
5753 * win/tkWinColor.c (FindSystemColor): correct calculation of
5754 colors when shifting value. [Bug: 4919]
5756 2000-04-16 Jim Ingham <jingham@cygnus.com>
5758 * mac/tkMacPort.h: protect against strncasecmp already defined -
5759 it is in the Pro5 version of MSL.
5761 * mac/tkMacWindowMgr.c (GenerateKeyEvent): Check for a null tkWin.
5762 If the hidden window we use for double-buffering controls manages
5763 to percolate to the top (should never happen, but...) this will
5764 keep us from crashing.
5766 * mac/tkMacButton.c (InitSampleControls): Hide the
5767 double-buffering window BEHIND the first "." window you can find.
5768 This will keep it from ever being the front window, and thus a
5769 black hole for events. * mac/tkMacButton.c (ButtonEventProc):
5770 Disable the controls when the window is in the background. This
5771 is required by the MacOS HIG. This doesn't always get called when
5772 it should, it still needs more work.
5774 * mac/tkMacDialog.c: Pretty substantial rewrite to include
5775 Navigation Services support for systems which have it.
5777 2000-04-14 Eric Melski <ericm@scriptics.com>
5779 * win/tkWinKey.c: Added check for ASCII delete character in
5780 KeycodeToKeysym, to fix [Bug: 5090]. See comment in code for more
5783 * generic/ks_names.h: Added Scroll_Lock and Sys_Req definitions.
5785 * win/tkWinKey.c: Changed implementation of KeycodeToKeysym,
5786 et. al., to use a keycode table for lookups; this will result in
5787 faster keycode -> keysym translations for non-ASCII keys like
5790 2000-04-14 Jeff Hobbs <hobbs@scriptics.com>
5792 * win/tkWinWm.c (WmProc): added check in WM_MOUSEACTIVATE so we
5793 correctly activate native menus when clicking in when we didn't
5794 have focus [Bug: 2272]
5796 * generic/tkCanvas.c (CanvasEventProc:2451): corrected cast
5798 * generic/tkEntry.c (Tk_EntryObjCmd): adjusted finishing error
5799 cases and changed TK_CONFIG_NULL_OK to TK_OPTION_NULL_OK
5802 * generic/tkScale.c:
5803 * generic/tkScale.h:
5804 * unix/tkUnixScale.c:
5805 * mac/tkMacScale.c: moved (PixelToValue|ValueToPixel|SetScaleValue)
5806 to tkScale.c. Caused an associated variable to be immediately set
5809 * library/scale.tcl (tkScaleActivate): reduced number of scale
5810 redisplays by checking current value of state before setting it
5813 * tests/winDialog.test: tk_chooseDirectory seems to get a noop
5814 from GetOpenFileName in the static build, hanging some tests.
5815 The tests were fixed to timeout (noop cause unknown).
5817 * unix/aclocal.m4 (SC_ENABLE_THREADS): enhanced the detection of
5818 pthread_mutex_init [Bug: 4359] and (SC_CONFIG_CFLAGS) added
5819 --enable-64bit-vis switch for Sparc VIS compilation [Bug: 4995]
5821 2000-04-13 Eric Melski <ericm@scriptics.com>
5823 * win/tkWinKey.c: Added smarts to check whether the left or right
5824 Control, Shift, or Alt key was pressed. [Bug: 870].
5826 * win/tkWinMenu.c: Corrected code that created separator items on
5827 menus; originally, it requested that the system be responsible for
5828 drawing those items, so it would ignore configuration items like
5829 the widget background. Now, we draw the separators ourselves (as
5830 we do with every other kind of menu item already). [Bug: 1166].
5833 * unix/tkUnix3d.c: Applied patch from [RFE: 2501]: adds more
5834 sophisticated smarts to TkpGetShadows, so that the highlight of a
5835 very bright color is actually distinguishable from the color, and
5836 the shadow of a very dark color is similarly distinguishable from
5839 * generic/tkCanvas.c: Applied patch from [Bug: 4202]; adds a check
5840 for NULL tkwin in Tk_CanvasEventuallyRedraw.
5842 2000-04-12 Jeff Hobbs <hobbs@scriptics.com>
5844 * test/winClipboard.test:
5846 * win/tkWinClipboard.c (UpdateClipboard):
5847 * win/tkWinX.c (GenerateXEvent): added updatingClipboard tsd and
5848 TkWinUpdatingClipboard accessor function to allow us to flag
5849 ourselves when we are the ones updating the clipboard. This
5850 corrected inability to create our own clipboard types within a Tk
5851 application. [Bug: 2338 4318]
5852 * win/tkWinTest.c (TestclipboardCmd): improved TestclipboardCmd
5853 with better error handling and obj'ification
5855 2000-04-11 Eric Melski <ericm@scriptics.com>
5857 * msgcat.n: Added docs for new behavior from patch in [Bug: 4158].
5859 * msgcat.test: Added tests for new behavior from patch in [Bug:
5862 * msgcat.tcl: Applied patch from [Bug: 4158], which enables
5863 msgcat::mc to search the entire namespace ancestry chain for
5864 message translations (ie, first it checks the current namespace,
5865 then the parent, then the parent's parent, etc). Also allows the
5866 specification of additional args for msgcat::mc; if extra args are
5867 given, the [format] command is used to substitute the additional
5868 args in the translated message.
5870 * library/bgerror.tcl: Moved check for withdrawn state after check
5871 for tkerror; this was causing problems when tkerror was used.
5873 2000-04-10 Eric Melski <ericm@scriptics.com>
5875 * library/bgerror.tcl: Added check for withdrawn state of . and
5876 unsetting of transient bit for .bgerrorDialog if . is not
5877 viewable; this protects against the application hanging on systems
5878 like Windows, where transient windows are withdrawn with their
5879 parents. [Bug: 4370].
5881 * tests/event.test: Added test for [event generate $widget
5882 <Alt-z>] [Bug: 4611].
5884 * tests/choosedir.test: Changed "namespace import ::tcltest" to
5885 "namespace import -force ::tcltest".
5889 * mac/tkMacKeyboard.c: Changed InitKeymapInfo to
5890 TkpInitKeymapInfo. [Bug: 4611].
5892 * generic/tkStubInit.c:
5893 * generic/tkIntDecls.h: Re-gen'd from tkInt.decls.
5895 * generic/tkInt.decls: Added TkpInitKeymapInfo to list of function
5898 * generic/tkBind.c (HandleEventGenerate): Added code to initialize
5899 keymap info if necessary, and to correctly set modifier bits in
5900 XEvent structure create to handle [event generate] calls.
5901 Previously, the alt/meta bits were not set correctly, so [event
5902 generate $widget <Alt-z>] would always fail. [Bug: 4611]
5904 2000-04-07 Jeff Hobbs <hobbs@scriptics.com>
5906 * generic/tkGrid.c (InitMasterData): fixed uninit'd data in
5907 GridMaster struct [Bug: 4387]
5909 * library/safetk.tcl (disallowTk): made disallowTk work in the
5912 * library/comdlg.tcl (tkFocusGroup_In): fixed key navigation
5913 problems in dialogs under CDE [Bug: 2960]
5915 * tests/winDialog.test: removed knownBug constraint from 5.16
5917 * win/tkWinFont.c (GetScreenFont): corrected adjustment against
5918 LC_FACESIZE limitation for NT [Bug: 4931]
5920 * win/makefile.vc (TKTEST_OBJS):
5921 * win/Makefile.in (TKTEST_OBJS): moved tkWinTest.c from normal
5922 objs to TKTEST_OBJS where it belonged.
5924 2000-04-03 Jeff Hobbs <hobbs@scriptics.com>
5926 * generic/tkTest.c: fixed incorrect platform inclusion for
5927 TkplatformtestInit (it would never get called).
5929 * unix/Makefile.in (MAN_INSTALL_DIR): patch to accept --mandir
5930 correctly [Bug: 4085]
5932 * library/clrpick.tcl (tkColorDialog_Config): error now thrown
5933 when -initialcolor "" specified. [Bug: 4198]
5935 2000-03-31 Jeff Hobbs <hobbs@scriptics.com>
5937 * doc/DrawFocHlt.3: doc name correction
5939 * generic/tkEntry.c: set TK_OPTION_NULL_OK bit on -invcmd option
5940 and removed #ifdef ENTRY_VALIDATE expressions
5942 * library/menu.tcl (tkMenuInvoke): corrected naming of tearoffs
5945 * library/tkfbox.tcl (tkIconList_Goto): caused browsecmd to be
5946 called in tkIconList_Select. This causes the entry to be set
5947 properly when using the type-in-name-in-listbox bindings.
5949 * win/tkWinDialog.c: added unicode-aware open/save file dialogs
5951 * win/tkWinFont.c (TkpFontPkgInit): move private ref to platformId
5952 to TkWinGetPlatformId
5954 * win/tkWinMenu.c (SetDefaults): moved private use of versionInfo
5955 to TkWinGetPlatformId and removed all code for
5956 (versionInfo.dwMajorVersion < 4) (== Win32s)
5959 * win/tkWin32Dll.c: moved TkWinGetPlatformId to tkWinX.c
5960 * win/tkWinInit.c: added TkWinXInit to TkpInit to ensure that its
5961 called for static Windows shells. [Bug: 3647]
5965 * win/tkWinDraw.c (SetUpGraphicsPort):
5966 * win/tkWinScrlbr.c (UpdateScrollbar): removed use of tkpIsWin32s
5968 * win/tkWinInt.h (TkWinDCState struct): added bkmode value
5969 * win/tkWinDraw.c (TkWinGetDrawableDC, et al): added support for
5970 properly transparent dashed lines on Windows. [Bug: 4617]
5972 2000-03-30 Eric Melski <ericm@scriptics.com>
5974 * generic/tkImgGIF.c: Fixed some ANSI specific bits to avoid
5975 compile problems with non-ANSI compilers (ie, replace const with
5976 CONST, etc). [Bug: 4223].
5978 * unix/configure.in: Applied patch from [Bug: 4237]; ensures that
5979 srcdir is fully qualified.
5981 * unix/Makefile.in: Applied patch from [Bug: 4237]; if tcltest was
5982 not compiled, make test/tktest failed. Now it has a rule to build
5983 tcltest if it has not been built.
5985 2000-03-28 Eric Melski <ericm@scriptics.com>
5987 * library/tkfbox.tcl: Moved an overlooked tkFDialog* function in
5988 ::tk::dialog::file namespace.
5990 * tests/unixWm.test: Added tests for memory leak conditions in
5993 * tests/canvas.test: Added test for bad configuration options on
5994 empty and non-empty canvas.
5996 * generic/tkCanvas.c: Removed bad code in CANV_CONFIGURE block of
5997 CanvasWidgetCmd; this was causing non-empty canvases to improperly
5998 handle bad configuration options [Bug: 4456].
6000 2000-03-27 Eric Melski <ericm@scriptics.com>
6002 * unix/tkUnixWm.c: Applied patch from [Bug: 4405]; fixes memory
6003 leak in Unix wm command.
6005 2000-03-24 Eric Melski <ericm@scriptics.com>
6007 * tests/filebox.test:
6008 * tests/choosedir.test: Updated tests.
6010 * library/xmfbox.tcl: Updated to stash data array in
6011 ::tk::dialog::file namespace instead of in global namespace.
6013 * library/tkfbox.tcl: Extended some functions to support creation
6014 of a choosedir dialog, to allow greater code reuse between the two
6015 dialogs. Moved tkFDialog* functions into a namespace
6016 (::tk::dialog::file). Because these are private Tk functions (and
6017 should thus not be used directly by users), this should not impact
6018 anybody (the tk_getOpenFile and tk_getSaveFile commands still
6019 exist at the global scope).
6022 * library/tclIndex: Updated function names for tkFDialog*
6023 functions and choosedir functions.
6025 * library/choosedir.tcl: New and improved implementation of
6026 tk_chooseDirectory dialog. Based on tk_getOpenFile dialog.
6028 2000-03-23 Eric Melski <ericm@scriptics.com>
6030 * generic/tkWindow.c:
6031 * generic/tkInt.h: Updated Tcl_OptionCmd -> Tcl_OptionObjCmd
6033 * generic/tkOption.c: Tcl_Obj'ectified the "option" command.
6035 2000-03-22 Eric Melski <ericm@scriptics.com>
6037 * library/listbox.tcl (tkListboxCancel): Added a check for empty
6038 string value for tkPriv(listboxPrev). Without this check, it's
6039 possible to get a stack trace under certain conditions. [Bug: 4373].
6041 2000-03-15 Sven Delmas <sven@scriptics.com>
6043 * win/tkWinDialog.c: Changed the behavior for the
6044 tk_chooseDirectory dialog under Windows. Instead of trying to
6045 return the currently selected listbox entry (which didn't work in
6046 case the user selected the initial directory anyway), we now
6047 return the value shown in the entry. This seems to be in
6048 accordance with the expected behavior for this dialog.
6050 2000-03-14 Eric Melski <ericm@scriptics.com>
6052 * tests/choosedir.test: Marked test 3.1 and 3.2 as bad until the
6053 issue with those tests on IRIX can be determined.
6055 2000-03-10 Eric Melski <ericm@scriptics.com>
6057 * library/menu.tcl: Applied patch from [Bug: 4155]; protects
6058 against grabs on non-viewable windows.
6060 2000-03-08 Eric Melski <ericm@scriptics.com>
6062 * tests/choosedir.test: Modified test 3.1 (-mustexist works) to be
6063 more careful about cleaning up its potentially troublesome after
6066 2000-03-07 Eric Melski <ericm@scriptics.com>
6068 * tests/button.test:
6069 * generic/tkButton.c: Added -disabledforeground/-state to labels.
6071 2000-03-07 Jeff Hobbs <hobbs@scriptics.com>
6074 * generic/tkEntry.c (EntrySetValue): malloc the value when
6075 validating because validation could cause the pointer to become
6076 invalid. Also fixed configure to not trigger focus-based
6077 validation. Improved use of Tcl_WrongNumArgs. [Bug: 4320]
6079 2000-03-06 Eric Melski <ericm@scriptics.com>
6081 * library/menu.tcl: Added a check in tkMenuFirstEntry that changes
6082 menu behavior to only auto-post an immediate child cascade if we
6083 are currently on a menubar menu. This prevents massive
6084 auto-cascading in cases where the first entry of the cascade is
6085 itself a cascade, and the first entry of that cascade is a
6086 cascade, and the first entry of that cascade is a cascade
6089 * generic/tkOldConfig.c: Added check for NULL tkwin value in
6090 Tk_ConfigureWidget [Bug: 4079]
6092 * generic/tkWindow.c: Added check for NULL tkwin value in
6093 Tk_NameToWindow [Bug: 4079]
6095 2000-03-02 Jeff Hobbs <hobbs@scriptics.com>
6098 * xlib/xcolors.c (XParseColor FindColor):
6099 * win/tkWinColor.c (XAllocColor): Fixed bit fiddling for colors to
6100 return "correct" values for color mapping. [Bug: 4282]
6102 * unix/Makefile.in (SCRIPT_INSTALL_DIR): removed extraneous '/'
6103 * unix/aclocal.m4: corrected TCL_NEEDS_EXP_FILE to be 1 for AIX
6105 * win/tkWinInt.h: change extern to EXTERN for TkWinChildProc
6106 declaration with extra #defs. [Bug: 4240]
6108 * library/focus.tcl: fixed tkFocusOK to protect $w in
6109 uplevel with list. [Bug: 4208]
6111 * doc/CrtItemType.3: fixed docs for Tk_CreateItemType to reflect
6112 changes made in 8.3.0 (but old style would still work as well).
6115 * tests/config.test: extra test to check object cleanup when
6116 destroying the widget
6117 * generic/tkListbox.c (DestroyListbox): fixed crash in
6118 DestroyListbox due to null tkwin. [Bug: 4207]
6120 * tests/entry.test: added test suite for entry validation
6121 * doc/entry.n: improved docs discussing caveats and gotchas when
6122 mixing textvar with widget validation
6123 * generic/tkEntry.c (EntryValidateChange): improved handling of
6124 validation with relation to -textvariable. Previously, it would
6125 turn off whenever the textvar was set. Now it will it will turn
6126 off only when the textvar is set and validation returns 0. Added
6127 %V (type of validation occuring) to %-subs to help work with
6128 trickier validation.
6130 2000-03-01 Eric Melski <ericm@scriptics.com>
6132 * tests/clrpick.test:
6133 * library/clrpick.tcl: Added code to make color chooser dialog
6134 inherit screen setting from parent (bug #2334)
6136 2000-02-25 Jeff Hobbs <hobbs@scriptics.com>
6138 * win/tkWinWm.c (RaiseWinWhenIdle): Checked for the possibility
6139 that the window could be destroyed (can occur with
6140 wm deiconify .toplevel; destroy .toplevel).
6142 2000-02-25 Eric Melski <ericm@scriptics.com>
6144 * generic/tkImgGIF.c: Applied "spirit of" the patch in 1605 (the
6145 submitted patch was more complicated than necessary and did not
6146 extend to writing GIF's, only reading), to allow reading/writing
6147 of GIF files on EBCDIC and other non-ASCII based systems.
6149 2000-02-14 Eric Melski <ericm@scriptics.com>
6151 * unix/tk.spec: RPM specification for producing a binary Tk RPM
6154 * unix/Makefile.in: Added rpm target to generate Tk
6157 2000-02-10 Jeff Hobbs <hobbs@scriptics.com>
6161 * changes: updated for 8.3.0 release
6163 * generic/tkImgGIF.c (FileReadGIF): added cast for trashBuffer
6165 * generic/tkIntXlibDecls.h:
6166 * generic/tkInt.decls: declared some Xlib emulation calls for
6169 * generic/tkFrame.c (TkInstallFrameMenu): added extra panic to
6170 inform user of bad call when framePtr is NULL [Bug: 2530]
6172 * generic/tkMenu.c (DestroyMenuInstance): Placed checks around
6173 menu name objects before trying to incr the ref. [Bug: 3402]
6175 * generic/tkTest.c: removed USE_OLD_IMAGE def for Mac
6177 * library/listbox.tcl:
6178 * library/text.tcl: added support for <4> and <5> for mousewheel
6179 style scrolling on Unix for mice that map to these buttons.
6181 * tests/scrollbar.test: fixed check of testmetrics command to
6182 allow unix tests to run (testmetrics is mac/pc only)
6184 * unix/tkUnixWm.c (Tk_CoordsToWindow): qualified delete of error
6185 handler as the goto label is reached from above and below.
6187 * unix/configure.in:
6188 * unix/aclocal.m4: cleaned up macros to coincide with tcl.m4,
6189 added -export-dynamic to LDFLAGS for FreeBSD-3+ [Bug: 2998]
6192 * unix/Makefile.in (dist): removed porting.notes and porting.old
6193 from distribution and CVS. The information was very outdated. Now
6194 refer to http://dev.scriptics.com/services/support/platforms.html
6196 * xlib/xgc.c: #def'd out XDrawSegments for the Mac, and added
6197 some extra include info for the Mac
6199 2000-02-09 Jim Ingham <jingham@cygnus.com>
6201 * mac/tkMacButton.c: Stop removing the appearance window from the
6202 Window List. It is not clear why Ray did this, and it causes the
6203 Appearance manager to crash at random times.
6205 * mac/tkMacWM.c: Add support in unsupported1 style for the Appearance
6206 specification of window styles, including floating window support.
6207 * mac/tkMacWindowMgr.c: Operate on the front non-floating window,
6208 unless the mouse is directly over the floating window. Also,
6209 keystrokes go to the front non-floating window.
6210 * mac/tkMacAppInit.c: Initialize floating window support.
6211 * mac/tkMacScrlbr.c:
6212 * mac/tkMacmenu.c: Fixes for floating windows - operate on the
6213 FrontNonFloatingWindow.
6214 * mac/tkMacLibrary.r: Fix typo in File info string.
6215 * mac/tkMacApplication.r: Fix typo in file info string. Add
6216 Finder balloon help for no apparent reason.
6218 * mac/tkMacSubwindows.c: Change panic in tkMacGetDrawablePort to
6219 Debugger. This is only a temporary fix. The panic is only
6220 triggered when a safeTk interpreter is torn down, and ignoring it
6221 does no harm. I haven't figured out how to avoid it yet, however.
6222 Also use the Appearance MoveWindowStructure call when available.
6225 * MW_TkOldImageHeader.h: Handle #defining USE_OLD_IMAGE for tkImgPPM.c.
6226 * MW_TkTestHeader.h:
6227 * MW_TkTestHeader.pch:
6228 * MW_TkHeader.h: Add separate prefix files for test & release
6229 versions of Tk, so we can just have separate targets w/o having to
6232 * tclets.r: The D&D Tclets icon in rez form so we can have a
6235 The above are curtesy of Daniel Steffen (steffen@math.mq.edu.au)
6237 * tkMacAppearanceStubs.c: Stubs of the Mac Appearance calls I use
6238 so I can link the static 68K Shell without putting ifdef's all
6241 2000-02-08 Jeff Hobbs <hobbs@scriptics.com>
6245 * generic/tkInt.decls:
6246 * generic/tkIntDecls.h:
6247 * generic/tkStubInit.c:
6248 * mac/tkMacKeyboard.c:
6250 * win/tkWinKey.c: Fix for keyboard handling of "dead" keys and
6251 caps lock from Peter Spjuth. [Bug: 4105 3359 2493]
6252 Split functions into platform specific files:
6253 Static functions GetKeySym(), SetKeycodeAndState() and InitKeymapInfo()
6254 from tkBind.c moved into platform files tkWinKey.c tkUnixKey.c and
6255 tkMacKeyboard.c. GetKeySym() and SetKeycodeAndState() renamed to
6256 Tkp* and made public (as private functions) in tkInt.decls.
6258 Step 2, fixes in tkWinKey.c
6259 New static function: KeycodeToKeysym(), based on XKeycodeToKeysym()
6260 but with different arguments, and a lot of improvements.
6261 TkpGetString() changed to use KeycodeToKeysym() + other fixes.
6262 TkpGetKeySym() changed to use KeycodeToKeysym() + other fixes.
6263 InitKeymapInfo() changed to use KeycodeToKeysym().
6264 TkpSetKeycodeAndState() rewritten, mostly by copying code from
6266 XKeycodeToKeysym() rewritten. Preferably it should be removed.
6268 EXPLANATION: The main problem is ToAscii() which has a lot of side
6269 effects, and also that XKeycodeToKeysym() is not provided enough
6270 input to do a proper job. The changes' main goal is to avoid
6271 calling ToAscii() if not necessary, and to provide it with as
6272 correct information as possible when called. Also some attempts
6273 to clean up what ToAscii() did are done. See the code for details.
6275 BUGS FIXED: Typing shifted (and AltGr) dead keys did not work.
6276 Keyboard lock lamps did not work on Win98.
6277 Events regarding AltGr-keys behaved badly.
6278 Example: On a Swedish keyboard, $ is typed with AltGr-4.
6279 That keyboard event would get the keysym '4' not 'dollar'.
6280 Also, doing [event generete . <Key-dollar>] would send keysym '4'.
6281 Translation to ascii in TkpGetString did not handle return and
6282 tab correctly. I.e. [event generate . <Key-Return>] gave wrong %A
6284 * generic/tkDecls.h:
6286 * generic/tk.h: moved new public functions created in dash patch
6287 to the stubs interface [Bug: 4062]
6291 * doc/CrtPhImgFmt.3:
6293 * generic/tkImgGIF.c:
6294 * generic/tkImgPhoto.c:
6295 * generic/tkStubImg.c (new file):
6299 * win/makefile.vc: improved support for moving from the old style
6300 image C API to the new obj'ified one with new Tk_InitImageArgs
6301 command and stub'ing of image code. See docs for how to make the
6302 transition. [Bug: 4060]
6304 * library/tk.tcl: wrapped check for tcl_platform(os) around info
6305 exists because it won't in safe interpreters
6307 * win/tkWinFont.c: corrected symbol font use to only work on 8-bit
6308 characters [Bug: 2406]
6310 * unix/aclocal.m4: changed all -fpic to -fPIC
6313 * unix/configure.in:
6315 * generic/tk.h (TK_RELEASE_SERIAL): Moved to 8.3.0 patchlevel
6317 2000-02-07 Eric Melski <ericm@scriptics.com>
6319 * library/tkfbox.tcl: Applied patch from bug #4117,
6320 tk_getOpenFile/getSaveFile doesn't do the right thing when user
6321 types a directory name in the entry and a default extension is
6324 2000-02-05 Jeff Hobbs <hobbs@scriptics.com>
6326 * unix/tkUnixScale.c (TkpDestroyScale): changed ckfree to
6327 Tcl_EventuallyFree to behave with Tcl_Preserve in TkpDisplayScale
6328 (prevents possible segfault).
6330 2000-02-03 Eric Melski <ericm@scriptics.com>
6332 * tests/canvText.test: test for fix for bug #2525.
6334 * generic/tkFont.c (Tk_ComputeTextLayout): Was erroneously setting
6335 the width of newline-only text display chunks to some arbitrary
6336 huge number, instead of 0; this was interfering with things like
6337 the canvas find enclosed feature. (bug #2525).
6340 * generic/tkText.c (DumpLine/DumpSegment): Changed DumpSegment to
6341 take a TkTextIndex instead of two integer offsets, so that it
6342 could use TkTextPrintIndex to format the offsets into an index,
6343 which makes it UTF smart (bug #2582).
6345 2000-02-01 Eric Melski <ericm@scriptics.com>
6349 * library/choosedir.tcl: Moved choosedir functions into the
6350 ::tk::dialog::chooseDir namespace instead of a toplevel
6351 ::tkChooseDirectory namespace. Additional cleanup on the
6354 2000-02-01 Jeff Hobbs <hobbs@scriptics.com>
6356 * doc/text.n: clarified docs on what happens during a search with
6357 -count when images/windows are embedded
6359 * win/Makefile.in (install-*): reduced verbosity of install
6361 * win/tkWinPixmap.c (XGetGeometry): added support for windows in
6362 XGetGeometry [Bug: 4069]
6364 * win/tkWinFont.c (GetScreenFont): fixed possible mem overrun with
6365 long font names [Bug: 4108]
6367 * win/tkWinDialog.c: added EnableWindow calls to dialogs to
6368 correct for possible loss of control in parent Tk toplevel
6371 * generic/tkRectOval.c (ConfigureRectOval):
6372 * generic/tkCanvLine.c (ConfigureLine):
6373 * generic/tkCanvPoly.c (ConfigurePoly):
6374 * generic/tkCanvArc.c (Configure/DisplayArc): fixed handling for
6375 negative dash values [Bug: 4104]
6377 * generic/tkScale.c (TkRoundToResolution): fixed incorrect
6378 assumption that (N+1)*delta = N*delta + delta with floating point
6379 math [Bug: 3689, 4099]
6380 (DestroyScale) Fixed check for cancelling TkpDisplayScale (was
6381 REDRAW_ALL, is now REDRAW_PENDING)
6383 * tests/listbox.test: corrected test case for listbox itemconfigure
6385 * unix/aclocal.m4: added *BSD ELF recognition for
6386 SHARED_LIB_SUFFIX determination (from Tcl's tcl.m4)
6388 2000-01-27 Eric Melski <ericm@scriptics.com>
6390 * generic/tkImgPhoto.c: Removed unneccesary object translation in
6391 MatchStringFormat (bug #4103).
6393 2000-01-27 Eric Melski <ericm@scriptics.com>
6395 * generic/tkImgGIF.c: Additional code cleanup (now we only have
6398 2000-01-26 Eric Melski <ericm@scriptics.com>
6400 * doc/getOpenFile.n:
6401 * doc/chooseDirectory.n: Man page/cross links for
6402 tk_chooseDirectory (bug #1786).
6405 * library/tclIndex: Added hooks for tk_chooseDirectory. (bug #1786)
6407 * library/choosedir.tcl: tk_chooseDirectory implementation for
6408 Unix/Mac (bug #1786).
6410 * generic/tkImgPhoto.c: Added some comments regarding slow
6411 processing of transparent images.
6413 * generic/tkImgGIF.c: Improved GIF decoder for ~60% speed
6414 increase. Added some comments on how to further improve the
6415 implementation, time permitting.
6417 * doc/photo.n: Added a description of what the -data string can
6418 contain (base64 or binary data).
6420 * generic/tkImgPhoto.c: Fixed bug with use of binary data for
6421 "-data" option to "image create" command.
6423 2000-01-21 Eric Melski <ericm@scriptics.com>
6425 * library/tkfbox.tcl: Fixed bug relating to incorrect parent
6426 values for error message boxes displayed by the file dialog (bug
6430 * generic/tkText.c: Fixed bug relating to regexp searching for
6431 empty lines; previously, the starting line was ignored. (bug #1643).
6433 2000-01-20 Jeff Hobbs <hobbs@scriptics.com>
6435 * library/text.tcl: fixed double-click selection behavior where
6436 there were embedded windows/widgets in the same line. [Bug: 3989]
6438 * win/tkWinWm.c (TkWmProtocolEventProc): cached atom name as the
6439 window could get destroyed during eval [Bug: 2513]
6441 * generic/tkCanvLine.c (LineCoords): fixed segfault when too few
6442 coords were passed to a line with certain options set (it should
6443 always have thrown an error anyway). [Bug: 4042]
6446 * generic/tkText.c: fixed missing " in error case and missing
6447 'dump' in subcommand listing [Bug: 4036]
6449 * generic/tkListbox.c: adjusted use of basic string concatenation
6450 in (non-K&R behavior) [Bug: 4027]
6451 Swapped bg/fg class for -select(bg|fg) for listbox and their
6455 * doc/WindowId.3: added docs for Tk_IsContainer and Tk_IsEmbedded
6457 * doc/text.n: clarified mark gravity definition and usage of
6458 ``word'' in binding definitions. [Bug: 2004 2277 1388]
6460 * generic/tkInt.h: moved new TkDisplay useInputMethods structure
6461 element to end to not disturb position of previous elements in
6462 the structure (as compared to Tk <=8.2).
6464 2000-01-20 Eric Melski <ericm@scriptics.com>
6466 * tests/grid.test: Added a test for the consecutive ^ and multiple
6467 widget case (bug #1386).
6469 * generic/tkGrid.c: Fixed interpretation of consecutive ^
6470 characters in grid command. Previously, ^ ^ was interpreted as
6471 meaning that there must be a 2-column widget above to extend,
6472 neglecting the case where there was actually 2 1-column widgets
6473 above. Now, ^ ^ is interpreted as a possible width; the gridder
6474 will consume as many ^'s as there are columns in the widget, and
6475 leave the rest for the extension of other widgets. (bug #1386).
6477 2000-01-19 Eric Melski <ericm@scriptics.com>
6479 * library/tk.tcl: Created a virtual event <<PrevWindow>> for
6480 reverse tab traversals, with one default binding <Shift-Tab>, and
6481 OS specific bindings for Linux, HP-UX, and IRIX. (bug #3163)
6483 2000-01-13 Jeff Hobbs <hobbs@scriptics.com>
6485 * changes: updated changes file to reflect 8.3b2 mods
6488 * unix/configure.in:
6489 * win/configure.in: updated to patchlevel 8.3b2
6491 * win/tkWinWm.c: added visibility event handler to make sure
6492 that transient window wrappers would be updated when the master
6493 was initially mapped.
6495 2000-01-12 Jeff Hobbs <hobbs@scriptics.com>
6497 * tests/text.test: changed test to reflect change of -hidden
6498 to -elide in search options.
6500 * win/tkWinScrlbr.c: added check for valid hwnd in ModalLoopProc
6501 to avoid crash when building statically
6504 * generic/tkBind.c: prevented core with event -warp on Windows
6505 when window wasn't mapped [Bug: 4004] and added docs stating
6506 the requirement for mapped windows.
6508 * generic/tkCanvas.c: fixed mem leak with TagSearchExprInit
6511 * generic/tkStubInit.c:
6512 * generic/tkDecls.h: remove non-existent
6513 Tk_(Get|Create)CanvasVisitor prototypes
6516 * generic/tkEntry.c: fixed cursor to not blink when widget was
6517 disabled [Bug: 1807]
6519 * generic/tkRectOval.c: added note about change to bloat for
6520 RectOval bounds calculation for WIN32 only
6522 * library/dialog.tcl: improved handling of $default arg to allow
6523 for name of given button, as well as bounds checking
6527 * tests/unixWm.test:
6529 * unix/tkUnixWm.c: fixed possible X error being raised [Bug: 3377]
6530 * win/tkWinWm.c: wm deiconify in zoom state [Bug: 2077],
6531 fixed possible flashing of unmapped toplevel in deiconify [Bug: 3338]
6532 and fixed mapping of transient window [Bug: 572]
6533 Also, for all wm's, extended 'wm state' command to allow setting
6534 of the state, and added official support of 'zoomed' state on Win.
6536 * unix/aclocal.m4: strtod bug on Tru64 [Bug: 3378]
6538 * unix/Makefile.in: added tests to prevent unnecessary chmod +x
6539 in source dirs while installing [Bug: 3367]
6541 * unix/configure.in: properly sub'ed in TK_SHARED_BUILD [Bug: 3385]
6543 2000-01-05 Jeff Hobbs <hobbs@scriptics.com>
6548 * generic/tkTextBTree.c:
6549 * generic/tkTextDisp.c:
6550 * generic/tkTextTag.c: removed the -state option for text tags,
6551 and reoriented it around -elide, as -state disabled was never
6552 implemented, and -state hidden is better as -elide.
6554 * mac/tkMacClipboard.c: fixed i18n problems with clipboard [Bug: 3544]
6556 * library/entry.tcl:
6557 * library/focus.tcl:
6558 * library/listbox.tcl:
6559 * library/scale.tcl:
6560 * library/scrlbar.tcl:
6561 * library/tearoff.tcl:
6563 * library/tkfbox.tcl:
6564 * library/xmfbox.tcl: fixed unprotected arg parsing through eval/after
6567 * unix/Makefile.in: added unix/aclocal.m4 to distribution [Bug: 3938]
6568 * unix/aclocal.m4: changed NetBSD SHLIB_CFLAGS from -fpic to -fPIC
6570 * win/tkWinImage.c: added static declaration to function
6572 1999-12-22 Jeff Hobbs <hobbs@scriptics.com>
6574 * changes: updated changes file
6576 * generic/tkScale.c:
6577 * generic/tkScale.h:
6579 * unix/tkUnixScale.c: fixed potential segv from patch in 3897
6581 * tests/unixWm.test: nonPOrtable -> nonPortable
6583 1999-12-21 Jeff Hobbs <hobbs@scriptics.com>
6586 * unix/configure.in:
6589 * README: updated for patch level 8.3b1
6591 * unix/tkUnixWm.c: fixed panic in Tk_CoordsToWindow to print error
6592 and continue instead (for Tix) [Bug: 716 et al]
6595 * generic/tkScale.c:
6596 * generic/tkScale.h: fixed possible core when freeing options
6597 (cursor) associated with scale widget [Bug: 3897]
6599 * doc/MeasureChar.3: fixed docs for Tk_MeasureChars to reflect code
6600 * doc/listbox.n: fixed formatting problem
6602 * generic/tk3d.c: added extra calculations to ensure that thin
6603 frames get refreshed too [Bug: 3596]
6605 * unix/tkUnixMenu.c:
6606 * unix/tkUnixFont.c:
6607 * generic/tkCanvText.c:
6608 * generic/tkEntry.c:
6610 * generic/tkImgPPM.c: removed extranneous vars that were set but
6613 * mac/tclMacHLEvents.c: fixed applescript for I18N [Bug: 3644]
6615 * unix/aclocal.m4: removed -O flag for AIX when using the IBM
6616 compiler (several versions have a bug that crops up in the text
6617 widget). [Bug: 2316]
6619 * unix/Makefile.in: removed extra slash in SCRIPT_INSTALL_DIR
6622 * library/listbox.tcl: added extra checks for existence of
6623 tkPriv(listboxSelection) before it was used. [Bug: 3892]
6625 1999-12-16 Jeff Hobbs <hobbs@scriptics.com>
6628 * win/tkWinCursor.c: added support for Windows cursors to
6629 TkGetCursorByName (.ani, .cur) using -cursor @<filename>
6630 (Ascher) [Bug: 1350]
6632 * win/tkWinWm.c: fixed 'wm deiconify' to update position of the
6633 toplevel if event is waiting before mapping. (Mao) [Bug: 3687]
6634 This removes the need for 'update idle' before 'wm deiconify' on
6637 * doc/listbox.n: added doc for <<ListboxSelect>> [Bug: 3500]
6639 * doc/getOpenFile.n: removed note that -initialfile didn't work
6641 * library/tkfbox.tcl: updated tk_get*File to better match the
6642 Windows file box it emulates, give proper support to -initialfile,
6643 and fixes lack of global tkPriv call. [Bug: 3735 3882]
6645 * doc/tk.n: added doc for 'tk useinputmethods ...'
6649 * generic/tkEvent.c:
6650 * generic/tkWindow.c:
6651 * generic/tkInt.h: add 'tk useinputmethods ?-display win? ?bool?'
6652 call to provide support for disabling/enabling the use of XIM on
6653 X. This was previously all done at compile time, and always on.
6654 Now it is turned off by default, even when available, and the user
6655 must turn it on to use XIM (per display).
6657 * generic/tkCanvUtil.c: fixed bug in Tk_CanvasPsOutline that freed
6660 * generic/tkFont.c: added "bitstream cyberbit" (popular Windows
6661 CJK font) to list of font fallbacks. (kenny) [Bug: 2407]
6663 * mac/tkMacMenu.c: finished bug 3075 by changing the char values of
6664 what was checked (verified correctness on Mac).
6666 1999-12-13 Jeff Hobbs <hobbs@scriptics.com>
6668 * doc/canvas.n: added docs for items added by dash patch (-*dash*,
6669 -state, -active*, -disabled*, -offset, essentially rewrote the
6670 man patch for completely updated 8.3 canvas widget.
6671 * doc/entry.n: added docs for entry widget validation
6672 * doc/event.n: added docs for -warp
6673 * doc/text.n: doc'ed new -state value 'hidden'
6674 * doc/GetDash.3: (new file) man page explaining Tk_GetDash
6675 * generic/tkStubInit.c:
6676 * generic/tkDecls.h:
6677 * generic/tkIntXlibDecls.h:
6678 * generic/tkInt.decls: added XSetDashes and XWarpPointer
6679 * generic/tk.decls: added Tk_CreateSmoothMethod, and reserved
6681 * generic/tk.h: added Tk_SmoothMethod struct,
6682 state item to canvas record, #defines for item state,
6683 support for using old char*-based canvas item C creation
6684 procedures with -DUSE_OLD_CANVAS,
6685 Tk_Dash, Tk_TSOffset (-offsets) & Tk_Outline structs and #defs,
6686 decls for dash, outline and postscript routines
6687 * generic/tkBind.c: added support for Quadruple clicks, and added
6688 the -warp option to 'event' with pointer warping routines
6690 * generic/tkRectOval.c:
6691 * generic/tkCanvArc.c:
6692 * generic/tkCanvBmap.c:
6693 * generic/tkCanvImg.c:
6694 * generic/tkCanvLine.c:
6695 * generic/tkCanvPoly.c:
6696 * generic/tkCanvPs.c:
6697 * generic/tkCanvText.c:
6698 * generic/tkCanvUtil.c:
6699 * generic/tkCanvWind.c:
6700 * generic/tkCanvas.c:
6701 * generic/tkCanvas.h: Canvas and items received overhaul to with
6702 the addition of the dash patch (Nijtmans, et al) This includes
6703 objectification of the 'canvas' command, as well as support for
6704 (where appropriate) dashes in items, extended stipple support,
6705 state for all items, and postscript generation of images and
6706 windows. See the new canvas man page for related docs.
6707 * generic/tkEntry.c: added entry widget validation, see entry.n
6708 * generic/tkEvent.c: on simulated events, ButtonPress should
6709 be matched with ButtonRelease to be correct
6710 * generic/tkFont.c: corrected possible null reference
6711 * generic/tkFrame.c: made frame a Tcl_Obj based command
6712 * generic/tkGet.c: added TkGetDoublePixels
6713 * generic/tkImage.c: bug fixes from Img patch and new
6714 Tk_PostscriptImage and Tk_SetTSOrigin functions
6715 * generic/tkImgBmap.c: new ImgBmapPostscript function
6716 * generic/tkImgPhoto.c: new Tk_CreatePhotoOption, Tk_DitherPhoto
6717 * generic/tkInt.h: declarations for some new functions
6718 * generic/tkMessage.c: reworked relief drawing
6719 * generic/tkOldConfig.c: added TK_CONFIG_OBJS so old style
6720 ConfigureWidget calls can pass in Tcl_Obj arrays
6721 * generic/tkScrollbar.c:
6722 * generic/tkScrollbar.h: made -orient use an option table
6724 * generic/tkText.h: made -wrap and -state use option tables
6725 * generic/tkTextBTree.c:
6726 * generic/tkTextDisp.c:
6727 * generic/tkTextImage.c:
6728 * generic/tkTextMark.c:
6729 * generic/tkTextTag.c:
6730 * generic/tkTextWind.c: added support for -elide and -state hidden
6731 * generic/tkTrig.c: changed TkMakeBezierCurve to support returning
6732 the upper limit of points needed for spline
6733 * generic/tkUtil.c: new option table parsing routines
6734 * generic/tkWindow.c: init'ing of warp stuff, mouseButtonState
6736 related bug ids for the fixes:
6737 [Bug: 648 1541 1540 1779 2168 2311 2297 2340 2348 2578 3386]
6740 * tests/canvImg.test:
6741 * tests/canvPsArc.tcl:
6742 * tests/canvPsImg.tcl: (new file)
6743 * tests/canvRect.test:
6744 * tests/canvText.test:
6745 * tests/canvas.test:
6751 * tests/imgPhoto.test:
6754 * tests/scrollbar.test:
6755 * tests/select.test:
6757 * tests/textDisp.test:
6758 * tests/textTag.test:
6759 * tests/unixFont.test:
6760 * tests/unixWm.test:
6761 * tests/visual_bb.test:
6762 * tests/winClipboard.test: tests for the dash patch changes
6764 * unix/mkLinks: added GetDash.3 into the mkLink step
6766 * mac/tkMacDraw.c: mac still needs pointer warping routine
6767 * mac/tkMacXStubs.c:
6769 * win/tkWinPointer.c: added support for pointer warping and
6770 platform specific support for dash patch items
6772 1999-12-12 Jeff Hobbs <hobbs@scriptics.com>
6774 * generic/tkText.c: fixed bug in TextSearchCmd for multibyte chars
6775 (Darley) [Bug: 3839]
6777 * unix/aclocal.m4: added warning when configuring with
6778 --enable-threads that Tk may have problems
6780 1999-12-09 Jeff Hobbs <hobbs@scriptics.com>
6782 * generic/tkImgGIF.c: updated casting
6784 * win/makefile.vc: removed 16bit stuff, simplified makefile.
6786 1999-12-06 Scott Redman <redman@scriptics.com>
6788 * generic/tkMain.c: need to include tclInt.h for new hook
6789 functions that are internal-use-only.
6791 1999-12-06 Jeff Hobbs <hobbs@scriptics.com>
6793 * library/comdlg.tcl: removed tclVerifyInteger and tclSortNoCase,
6794 they weren't used, and were not actually correct
6798 * mac/tkMacWindowMgr.c: fixed greyed out menu items, handling of
6799 ... elipsis, font mapping problem, and enabled generated menu
6802 1999-12-02 Jeff Hobbs <hobbs@scriptics.com>
6805 * generic/tkWindow.c:
6806 * generic/tkCmds.c: converted Tk_DestroyCmd, Tk_LowerCmd and
6807 Tk_RaiseCmd to their ObjCmd equivalent.
6809 * library/msgbox.tcl: added color icons for tk_messageBox on Unix
6810 and Mac when tk_strictMotif isn't set. (Hipp)
6811 * library/tk.tcl: added window bounds checking to ::tk::PlaceWindow
6813 * tests/imgPPM.test: fixed test 2.2 to use -format ppm (since
6814 we know have GIF write capability)
6816 1999-12-01 Scott Redman <redman@scriptics.com>
6818 * generic/tkMain.c :
6820 * win/winMain.c: Added added hooks into the main() code for
6821 supporting TclPro and other "big" shells more easily without
6822 requiring a copy of the main() code.
6824 1999-11-29 Jeff Hobbs <hobbs@scriptics.com>
6826 * generic/tkImgGIF.c: added GIF writing that uses miGIF RLE
6827 [Bug: 2039, new patch]
6829 * library/entry.tcl: fixed up tkEntrySeeInsert (Nemthi)
6831 * generic/tkListbox.c: fixed 'get' of listbox to return a string
6832 when only one item is requested.
6834 * tests/clrpick.test:
6835 * tests/filebox.test: minor whitespace cleanup
6837 * library/tk.tcl: fixed missing $w in ::tk::PlaceWindow
6839 1999-11-24 Jeff Hobbs <hobbs@scriptics.com>
6841 * library/clrpick.tcl:
6842 * library/msgbox.tcl:
6844 * library/tkfbox.tcl:
6845 * library/xmfbox.tcl: fixed dialogs to center over -parent,
6846 added utility functions ::tk::PlaceWindow, ::tk::SetFocusGrab,
6847 ::tk::RestoreFocusGrab to tk.tcl to help
6849 1999-11-23 Eric Melski <ericm@scriptics.com>
6851 * tests/listbox.test: Added a test to check that the topIndex is
6852 update when items are removed from the listvar variable.
6854 * generic/tkListbox.c: Added a check the updates the topIndex when
6855 items are removed from the listvar variable.
6857 * tests/listbox.test: Added a test to check that the vertical
6858 scrollbar is updated when the listvar changes.
6860 * generic/tkListbox.c (ListboxListVarProc): added a check that
6861 sets the UPDATE_V_SCROLLBAR flag if the length of the listvar has
6864 1999-11-23 Jeff Hobbs <hobbs@scriptics.com>
6867 * generic/tkConfig.c: added support for TK_OPTION_DONT_SET_DEFAULT
6868 as equiv for TK_CONFIG_DONT_SET_DEFAULT
6869 * generic/tkListbox.c: added TK_OPTION_DONT_SET_DEFAULT to the
6872 1999-11-19 Jeff Hobbs <hobbs@scriptics.com>
6874 * generic/tkColor.c:
6875 * generic/tkColor.h: fixed Tk_NameOfColor to work correctly,
6876 with minor change to TkColor struct.
6878 * generic/tkConsole.c: added static declaration to
6879 ConsoleDeleteProc function (proto already had it)
6881 * win/tkWinInt.h: removed TkFontAttributes typedef (was
6882 redundant with tkFont.h).
6883 * win/tkWinPort.h: put #ifndef __GNUC__ around redefinition
6884 of str[n]casecmp, as cygwin uses the originals.
6885 * win/tkWinX.c: changed GetCurrentTime to GetTickCount (the
6886 former is deprecated). [Bug: 2053]
6888 1999-11-19 Eric Melski <ericm@scriptics.com>
6890 * tests/listbox.test: Added tests for itemcget and itemconfigure.
6892 * doc/listbox.n: Added documentation for -listvar option and for
6893 itemconfigure and itemcget commands.
6895 * generic/tkListbox.c: Added support for itemconfigure/itemcget
6896 listbox subcommands (addresses rfe #936)
6898 1999-11-17 Eric Melski <ericm@scriptics.com>
6900 * tests/listbox.test: Updated tests for new error messages.
6902 * generic/tkListbox.c: Improved error messages for bad -listvar's.
6904 * tests/listbox.test: Added tests for bad -listvar's.
6906 * generic/tkListbox.c: Added handlers for bad -listvar's (ie, bad
6909 * tests/listbox.test: Added tests for ListboxUpdateHScrollbar.
6911 * generic/tkListbox.c: Changed some old static buffers to base
6912 size on TCL_DOUBLLE_SPACE instead of (completely) hardcoding the size.
6914 * tests/listbox.test: New tests for -listvar functionality, and an
6915 odd extra case that wasn't covered before.
6917 * generic/tkListbox.c: Tests exposed some bugs, now fixed.
6919 1999-11-16 Eric Melski <ericm@scriptics.com>
6921 * tests/listbox.test: Fixed tests to comply with new objectified
6922 error messages. No -listvar specific tests yet.
6924 * win/tkWinDefault.h:
6925 * unix/tkUnixDefault.h:
6926 * mac/tkMacDefault.h: Added default value for -listvar option.
6928 * generic/tkWindow.c: Changed "listbox" mapping from old-school to
6929 new-school objectified command.
6931 * generic/tkListbox.c: Objectified listbox; added support for
6932 -listvar option. Converted internal structure to use a Tcl list
6933 object to store the data.
6935 * generic/tkInt.h: Changed reference to Tk_ListboxCmd to
6938 1999-11-09 Jeff Hobbs <hobbs@scriptics.com>
6940 * generic/tkGrid.c: changed Tcl_Alloc to ckalloc
6942 * generic/tkEntry.c: fixed C expr error in destroy of entry
6943 that could lead to 'malformed bucket chain' error
6945 * win/winMain.c: corrected winMain to not do a DebugBreak when
6946 returning an error message from the top level
6948 1999-10-30 Jeff Hobbs <hobbs@scriptics.com>
6950 * win/tkWinKey.c: fixed XKeysymToKeycode to handle mapping of
6951 symbolic keysyms (Left, Home, ...) with event generate
6953 * library/entry.tcl: change tkEntrySeeInsert to avoid the use
6954 of a while loop that could eat CPU tremendously. Behavior of
6955 moving the cursor at the right edge changes slightly (previously
6956 it tried to keep the cursor at the right edge, now it moves the
6957 cursor to a "central right" location - better IMHO).
6959 1999-10-28 Jeff Hobbs <hobbs@scriptics.com>
6962 * doc/CrtPhImgFmt.3:
6967 * generic/tkImage.c:
6968 * generic/tkImgBmap.c:
6969 * generic/tkImgGIF.c:
6970 * generic/tkImgPPM.c:
6971 * generic/tkImgPhoto.c:
6974 * generic/tkWindow.c:
6975 * tests/imgPhoto.test: added Img patch (Nijtmans) with docs,
6976 headers #def'd with USE_OLD_IMAGE. Upgrades image stuff to
6977 Tcl_Obj API, adds alpha channel (images are now 32 bpp)
6979 * makefile.vc: changed 'c:/program files' to c:/progra~1
6981 1999-10-19 Jeff Hobbs <hobbs@scriptics.com>
6983 * library/scrlbar.tcl: changed tkScrollButtonUp to check for
6984 existence of tkPriv(relief) in order to avoid spurious release
6987 * unix/Makefile.in: added ChangeLog to dist archive
6989 1999-09-24 Jeff Hobbs <hobbs@scriptics.com>
6995 * library/tk.tcl: up'd to 8.3a1
6997 * unix/Makefile.in: changed 'mkdir' to 'mkdir -p'
6999 * library/dialog.tcl: changed {Times 18} to {Times 12} for
7002 1999-09-16 Jeff Hobbs <hobbs@scriptics.com>
7004 * generic/tkFont.c: fixed processing of font options and error
7005 returned [Bug: 2075]
7007 * win/tkWinWm.c: fixed bug in 'wm deiconify' that raised the
7008 wrong toplevel, and changed it to not set focus on overridden
7011 1999-09-15 Jeff Hobbs <hobbs@scriptics.com>
7013 * unix/aclocal.m4: added fix for FreeBSD-[1-2] recognition [Bug: 2070]
7014 and fix to AIX-* to get ldAix right [Bug: 2624], fixed AIX
7015 version check (readjust from 8-21 fix) and several other config
7017 * mac/tkMacMenubutton.c:
7018 * unix/tkUnixMenubu.c: fixed permanently stippled menubutton image
7019 * win/tkWinButton.c: fixed possible pointer smash [Bug: 2733]
7021 1999-09-14 Jeff Hobbs <hobbs@scriptics.com>
7023 * win/tkWinMenu.c: fix for stack overrun in GetTextFace [Bug: 909]
7025 1999-09-01 Jeff Hobbs <hobbs@scriptics.com>
7028 * unix/tkUnixDraw.c: fixed header style for TkpDrawHighlightBorder
7029 * generic/tkCanvas.c: fixed GC error (bg <> fg) in tkCanvas.c
7030 (from code added to support TkpDrawHighlightBorder) [Bug: 2676]
7031 * unix/aclocal.m4: added -bnoentry to the AIX-* flags
7032 * library/msgbox.tcl: changed the behavior of tk_messageBox on
7033 Unix to be more Windows like in handling of <Return> and the
7035 * library/button.tcl:
7036 * library/clrpick.tcl:
7037 * library/comdlg.tcl:
7038 * library/console.tcl:
7039 * library/dialog.tcl:
7040 * library/entry.tcl:
7041 * library/focus.tcl:
7042 * library/listbox.tcl:
7044 * library/msgbox.tcl:
7045 * library/palette.tcl:
7046 * library/safetk.tcl:
7047 * library/scale.tcl:
7048 * library/scrlbar.tcl:
7049 * library/tearoff.tcl:
7052 * library/tkfbox.tcl:
7053 * library/xmfbox.tcl: updated commands to use [string] ops
7054 instead of expr equality operators
7056 1999-08-21 Jeff Hobbs <hobbs@scriptics.com>
7058 * unix/aclocal.m4: Changed AIX-4.[2-9] check to AIX-4.[1-9]
7061 1999-08-20 Jeff Hobbs <hobbs@scriptics.com>
7063 * generic/tkCursor.c: fixed bug in GetCursorFromObj that caused
7068 1999-08-13 Jim Ingham <jingham@cygnus.com>
7070 * mac/tkMacMenu.c: Tk_DrawChars ends up setting the menu background
7071 wrong. There is no clean way to stop it, so I use lower level routines
7072 here to draw the text.
7073 * mac/tkMacProjects.sea.hqx: Rearrange the projects so that the build
7074 directory is separate from the sources. Much more convenient!
7076 1999-08-10 Jeff Hobbs <hobbs@scriptics.com>
7078 * win/tkWinWm.c: changed "wm deiconify" on Windows to raise and
7079 force the focus on the deiconified window (behavioral change from
7080 8.1 to comply better with Windows style) [Bug: 1609]
7081 * doc/wm.n: clarified behavior of "wm deiconify".
7082 * generic/tkInt.decls: added TkSetFocusWin
7083 * generic/tkFocus.c: changed static SetFocus to TkSetFocusWin
7085 * library/clrpick.tcl:
7086 * library/console.tcl:
7087 * library/tk.tcl: fixed code where abbreviations where used
7088 in calling widget methods (confuses iWidgets) [Bug: 2422]
7090 1999-08-09 Jeff Hobbs <hobbs@scriptics.com>
7092 * library/button.tcl: cleaned up programming (config -> configure)
7093 and fixed Windows relief bug [Bug: 664]
7094 * library/entry.tcl: changed Entry C/C/P to not use global data
7095 (now uses tkPriv(data)) [Bug: 1475]
7096 * library/listbox.tcl: fixed extended mode script error [Bug: 866]
7097 * doc/options.n: clarified that -troughcolor doesn't work on Windows
7098 * doc/wm.n: fixed wm positionfrom docs [Bug: 2284]
7100 1999-08-01 Jeff Hobbs <hobbs@scriptics.com>
7102 * mac/tkMacPort.h: wrapped panic in #ifndef panic to avoid
7103 compiler errors when used with stubs-#defines, from Vince Darley.
7106 1999-07-31 Scott Redman <redman@scriptics.com>
7108 * xlib/X11/Xlib.h: Remove XFillRectangle since it is now in the
7111 1999-07-30 Jeff Hobbs <hobbs@scriptics.com>
7113 * generic/tkInt.decls: Added stub entry for XFillRectangle [Bug: 2446]
7115 1999-07-30 Scott Redman <redman@scriptics.com>
7117 * win/makefile.vc: Corrected building threaded tktest.exe on
7118 Windows. Needed to link in .obj files from Tcl, needs to change
7119 later so that code is in Tk and doesn't require a Tcl build.
7120 Also added runtest target.
7122 1999-07-29 Scott Redman <redman@scriptics.com>
7124 * generic/tkConsole.c: Allow tcl to open CON and NUL, even for std
7125 channels. Checking for bad/unusable std channels was moved to Tk
7126 since its only purpose was to check whether to use the Tk Console
7127 Window for the std channels. [Bug: 2393 2392 2209 2458]
7129 * win/Makefile.in: Corrected building threaded tktest.exe on
7130 Windows. Needed to link in .obj files from Tcl, needs to change
7131 later so that code is in Tk and doesn't require a Tcl build.
7133 1999-07-22 Scott Redman <redman@scriptics.com>
7135 * Changed version to 8.2b2
7137 * win/tkWinPort.h: Block out include of sys/stat.h in order to
7138 build extensions with MetroWerks compiler for Win32. [Bug: 2385]
7140 * unix/Makefile.in: Need to make install-sh executable before
7141 calling (with chmod +x). [Bug: 2413]
7143 * library/menu.tcl: Applied patch from Jeff Hobbs to fix typo.
7146 1999-07-21 Scott Redman <redman@scriptics.com>
7148 * unix/Makefile.in: Add Windows configure script to distribution.
7150 1999-07-16 Scott Redman <redman@scriptics.com>
7153 * win/Makefile.in: Copy the prolog.ps from the generic directory
7154 for install-libraries.
7156 * unix/aclocal.m4: Check for Alpha/Linux to set the IEEE flag to
7157 the compiler to be -mieee. Patch from Don Porter.
7159 1999-07-08 Scott Stanton <stanton@scriptics.com>
7161 * tests/unixSelect.test: Fixed broken test.
7163 * win/makefile.vc: Added special case target to ensure that
7164 tkStubLib.obj is built with -DSTATIC_BUILD.
7166 * win/tkWinX.c (TkWinChildProc): Changed to pass
7167 WM_WINDOWPOSCHANGED through to DefWindowProc to make OpenGL
7168 sub-windows happy. This allows Windows to generate the WM_SIZE
7169 and WM_MOVE messages.
7171 1999-07-08 Scott Redman <redman@scriptics.com>
7173 * unix/configure.in: Fix Tk stub lib file names and flags.
7175 1999-06-30 Scott Redman <redman@scriptics.com>
7177 * generic/tkGrid.c: removed deprecated functions (applied patch
7178 from Jan Nijtmans). [Bug: 2080]
7180 * generic/tkImgGIF.c:
7181 * generic/tkImgPPM.c:
7182 * generic/tkImgPhoto.c: Applied patch to allow Img extension to
7183 work with 8.2, from Jan Nijtmans. [Bug: 2068]
7185 * win/tkWinWm.c: Applied patch from Don Porter to prevent the
7186 windows code from calling the Tcl functions when the stub table
7187 has not been initialized in TkWinWmCleanup. [Bug: 2269]
7189 1999-06-16 Michael Thomas <wart@scriptics.com>
7191 * unix/configure.in:
7193 * unix/aclocal.m4: Numerous build changes to make Tk conform to
7194 the proposed TEA spec
7196 * tkConsole.c: changed some variable types from (int) to (size_t)
7197 to prevent compiler warnings. Cast return value from strlen()
7198 to (int) in one place for the same reason.
7200 1999-06-03 Scott Stanton <stanton@scriptics.com>
7202 * unix/tkUnixSelect.c:
7203 * tests/unixSelect.test:
7204 * generic/tkSelect.c: Fixed selection code to handle Unicode data
7205 in COMPOUND_TEXT and STRING selections. [Bug: 1791]
7207 1999-06-02 Scott Stanton <stanton@scriptics.com>
7209 * generic/tkIntXlibDecls.h:
7210 * xlib/X11/Xlib.h: Added Mac specific defines to help with
7213 * generic/tkFont.c: lint
7215 1999-06-01 Scott Stanton <stanton@scriptics.com>
7217 * unix/tkUnixSelect.c: Improved I18N selection support.
7218 COMPOUND_TEXT is converted to/from iso2022, and STRING is
7219 converted to/from iso8859-1. There are still a few loose ends to
7220 tie up before this is completely done.
7222 * unix/tkUnixFont.c: Eliminated redundant case folding code.
7224 * generic/tkFont.c: Eliminated use of isupper/tolower in favor of
7227 1999-05-24 Scott Stanton <stanton@scriptics.com>
7229 * generic/tkStubLib.c:
7230 * generic/tkStubInit.c:
7231 * generic/tkIntXlibDecls.h:
7232 * generic/tkIntPlatDecls.h:
7233 * generic/tkIntDecls.h:
7234 * generic/tkInt.decls:
7235 * generic/tkConsole.c: Various changes to try to get the Mac
7238 1999-05-21 Scott Stanton <stanton@scriptics.com>
7240 * win/tkWinClipboard.c: Fixed clipboard code to handle lack of
7241 CF_LOCALE information (e.g. from command.com).
7243 1999-05-20 Scott Redman <redman@scriptics.com>
7245 * library/console.tcl: Changed copyright string to read 1999
7246 Scriptics Corp. in wish console about box.
7248 1999-05-19 Scott Redman <redman@scriptics.com>
7250 * generic/tk.h: Add extern "C" block around entire header file for
7251 C++ compilers to fix linkage issues. Submitted by Don Porter and
7254 1999-05-18 Scott Stanton <stanton@scriptics.com>
7256 * tests/winClipboard.test:
7257 * win/tkWinClipboard.c: Fixed clipboard code so it handles Unicode
7258 data properly on Windows NT and 95. [Bug: 1791]
7260 1999-05-07 Scott Stanton <stanton@scriptics.com>
7262 * library/menu.tcl: Fixed bug where tk_popup fails when called too
7263 quickly. [Bug: 2009]
7265 1999-04-30 Scott Stanton <stanton@scriptics.com>
7267 * Changed version number to 8.1.1.
7269 1999-04-30 Scott Stanton <stanton@scriptics.com>
7271 * Merged changes from 8.1.0 branch:
7273 * generic/tkDecls.h:
7274 * generic/tkIntDecls.h:
7275 * generic/tkIntPlatDecls.h:
7276 * generic/tkIntXlibDecls.h:
7277 * generic/tkPlatDecls.h:
7278 * generic/tkStubInit.c: Changed to avoid the need for forward
7279 declarations in stub initializers. Added extern "C" blocks around
7280 stub table pointer declarations so the stubs can be used from C++
7283 * generic/tkInt.decls: Added TkClipBox, XDrawSegments, and
7284 XForceScreenSaver to stubs.
7286 * generic/tkStubLib.c: Reordered declarations to avoid
7287 circularities and forward references.
7289 * generic/tkStubInit.c: Added includes for Mac.
7291 * generic/tkMenubutton.c: lint
7293 * generic/tkEntry.c: Fixed bad option table entry.
7295 * generic/tkImgBmap.c:
7296 * generic/tkImgPPM.c:
7297 * generic/tkImgPhoto.c: Set the -translation and -encoding options
7298 to binary for image files. (reported by Marco Gazzetta)
7300 1999-04-23 Scott Stanton <stanton@scriptics.com>
7302 * generic/tkInt.decls: Added TkClipBox, XDrawSegments, and
7303 XForceScreenSaver to stubs.
7305 * generic/tkStubLib.c: Reordered declarations to avoid
7306 circularities and forward references.
7308 * generic/tkStubInit.c: Added includes for Mac.
7310 * generic/tkMenubutton.c: lint
7312 * generic/tkEntry.c: Fixed bad option table entry.
7314 1999-04-22 Scott Redman <redman@scriptics.com>
7316 * generic/tkImgBmap.c:
7317 * generic/tkImgPPM.c:
7318 * generic/tkImgPhoto.c: Set the -translation and -encoding options
7319 to binary for image files. (reported by Marco Gazzetta)
7321 1999-04-20 Scott Redman <redman@scriptics.com>
7323 * xlib/X11/Xlib.h: changed definition of Status type to use a
7324 typedef instead of a #define to avoid conflicting with the cygwin
7325 win32 headers [Bug 1804]
7327 1999-04-15 Scott Stanton <stanton@scriptics.com>
7329 * Merged 8.1 branch into the main trunk
7331 1999-04-09 Scott Redman <redman@scriptics.com>
7333 * generic/tkWindow.c: Fixed deadlock situation when the Initialize()
7334 function returns without releasing the mutex. Found while testing
7335 Bug 1700, during safe.test (tk).
7337 1999-04-06 Scott Stanton <stanton@scriptics.com>
7339 * generic/tkMain.c (Tk_MainEx): Changed to reset result before
7340 calling Tcl_EvalFile. The ensures that error messages will be
7343 * tests/winfo.test: Enabled tests that previously failed.
7345 1999-04-05 Scott Stanton <stanton@scriptics.com>
7347 * library/bgerror.tcl:
7348 * library/button.tcl:
7349 * library/clrpick.tcl:
7350 * library/console.tcl:
7351 * library/dialog.tcl:
7352 * library/entry.tcl:
7353 * library/focus.tcl:
7354 * library/listbox.tcl:
7356 * library/msgbox.tcl:
7357 * library/palette.tcl:
7358 * library/scale.tcl:
7359 * library/scrlbar.tcl:
7360 * library/tearoff.tcl:
7362 * library/tk.tcl: Lots of minor performance improvements
7363 contributed by Jeffrey Hobbs. [Bug: 1118]
7365 * win/tkWinWm.c (Tk_WmCmd): Fixed bad code in tracing
7366 suboption. [Bug: 1519]
7368 * library/tkfbox.tcl: Change to restore button text after an
7369 action to avoid the sticky "Open" button in a save dialog.
7372 * library/entry.tcl: Fixed so selection is returned using the
7373 -show character during cut and paste operations. [Bug: 1687]
7375 1999-04-5 Scott Redman <redman@scriptics.com>
7377 * generic/tkInt.decls:
7378 * generic/tkIntXlibDecls.h:
7379 * generic/tkStubInit.c:
7382 * xlib/X11/Xutil.h: Added more X functions to the Win & Mac stubs
7385 1999-04-05 Scott Stanton <stanton@scriptics.com>
7387 * unix/configure.in:
7388 * generic/tkCanvPs.c: Added configure test for pw_gecos field in
7389 pwd to support OS/390. [Bug: 1724]
7391 1999-04-02 Scott Stanton <stanton@scriptics.com>
7394 * generic/tkText.c: Fixed handling of Unicode in text searches.
7395 The -count option was returning byte counts instead of character
7396 counts. [Bug: 1056, 1148, 1666]
7398 1999-04-01 Scott Redman <redman@scriptics.com>
7402 * generic/tkStubInit.c:
7403 * generic/tkWindow.c:
7405 * win/makefile.vc: Tk now uses its own stub library to store
7406 pointers to its own stubs table.
7408 * doc/dde.n: (removed)
7411 * tests/winSend.test:
7412 * generic/tkPlatDecls.h:
7413 * win/tkWinSend.c: Removed the DDE-based send and dde commands,
7414 they were causing Tk to lock up when any window on the system was
7415 not processing its message queue (more importantly, windows in Tcl
7416 and Tk). The send command needs to be rewritten to prevent the
7417 deadlock situation (soon). The dde command is being pushed into
7418 its own package and will provide almost all of the capabilities
7419 that send did before (using a "dde eval" command), not yet
7422 1999-03-31 Scott Redman <redman@scriptics.com>
7424 * win/tkWinSend.c: Modified dde/send code to work properly on
7425 Win95/Win98. String lengths are not returned properly by DDE, so
7426 NULL terminate all strings going in and ignore the string length
7427 coming back out. Do not destroy handles until all necessary work
7428 on those handles (and child handles) is done.
7430 1999-03-30 Scott Stanton <stanton@scriptics.com>
7432 * generic/tkWindow.c (Tk_DestroyWindow): Image handlers are now
7433 finalized before the font subsystem since complex image handlers
7434 may contain references to fonts (e.g. Tix compound images).
7437 1999-03-29 Scott Stanton <stanton@scriptics.com>
7439 * doc/MeasureChar.3:
7442 * generic/tkCanvText.c:
7443 * generic/tkEntry.c:
7445 * generic/tkListbox.c:
7446 * generic/tkMessage.c:
7448 * unix/tkUnixButton.c:
7449 * unix/tkUnixFont.c:
7450 * unix/tkUnixMenu.c:
7452 * win/tkWinMenu.c: Standardized text layout and font interfaces
7453 so they are consistent with respect to byte versus character
7454 oriented indices. The layout functions all manipulate character
7455 oriented values while the lower level measurement functions all
7456 operate on byte oriented values. This distinction was not clear
7457 and so the functions were being used improperly in a number of
7458 places. [Bug: 1053, 747, 749, 1646]
7460 * generic/tk.decls: Eliminated uses of C++ STL types string and
7461 list from declarations.
7463 * generic/tkFont.c: Changes to named fonts were not being
7464 propagated in some cases. [Bug: 1144]
7467 * generic/tkInt.decls: Added XParseColor to xlib stub
7471 * generic/tkBitmap.c (BitmapInit): Eliminated use of Tk_Uid's in
7472 bitmaps. Added a few CONST declarations.
7474 1999-03-29 Scott Redman <redman@scriptics.com>
7476 * unix/configure.in:
7479 * generic/tkDecls.h:
7480 * generic/tkIntDecls.h:
7481 * generic/tkIntPlatDecls.h:
7482 * generic/tkPlatDecls.h:
7483 * generic/tkIntXlibDecls.h: Removed stub functions. Always use the
7484 Tcl stubs when building with --enable-shared.
7486 1999-03-26 Scott Redman <redman@scriptics.com>
7488 * generic/tkTextIndex.c:
7489 * tests/testIndex.test: Avoid looking past the beginning of the
7490 array storing data for the text widget (.t index end-2c). Added
7491 test case to check for the bug. [Bug 991]
7493 * generic/tkConsole.c: Copy static strings into a Tcl_DString
7494 before passing to Tcl_Eval, in case the compiler puts static
7495 strings into read-only memory.
7497 1999-03-26 Suresh Ankolekar <suresh@scriptics.com>
7499 * unix/configure.in:
7500 --nameble-shared is now the default and builds Tk as a shared
7501 library; specify --disable-shared to build a static Tk library
7504 1999-03-26 Bryan Surles <surles@scriptics.com>
7506 * library/menu.tcl: Fixed bug reported by Bryan Oakley in the
7507 menubutton bindings. There was a false assumption that there was
7508 always a menu attached to the button. [Bug 1116]
7510 1999-03-26 Scott Redman <redman@scriptics.com>
7512 * unix/configure.in: Removed --enable-tcl-stub. Linking Tk to Tcl
7513 stubs is causing too many problems when linking executables like wish.
7514 Until the Tk is a fully loadable extension, linking against the Tcl
7515 stubs is not supported in Tk.
7517 1999-03-19 Scott Redman <redman@scriptics.com>
7519 * generic/tkBitmap.c:
7520 * generic/tkCursor.c:
7521 * generic/tkGC.c: When creating hash tables that key off of XID
7522 handles, make sure to pass TCL_ONE_WORD_KEYS. XIDs are guaranteed
7523 to be 32bit numbers, although on some 64bit systems (including 64bit
7524 Solaris 7) they are packed into a 64bit value where the upper 32bits
7525 are zero. The normal method of sizeof(XID)/sizeof(int) causes the
7526 hash table code to assume that the XID is a pointer to an array of
7527 two ints, which it is not. Tk now supports 64bit Solaris 7.
7529 1999-03-17 Scott Stanton <stanton@scriptics.com>
7532 * generic/tk.h: Changed to use TCL_BETA_RELEASE macro, and fixed
7533 so this works in rc files.
7538 * unix/configure.in:
7540 * README: Updated version to 8.1b3.
7542 1999-03-14 Scott Stanton <stanton@GASPODE>
7544 * unix/configure.in: Added missing stub related definitions.
7546 * unix/Makefile.in: Install tkDecls.h in addition to tk.h.
7548 * generic/tkStubLib.c: Added flags to ensure we are using Tcl
7551 1999-03-11 Scott Stanton <stanton@GASPODE>
7553 * generic/tkInt.decls: Added reserved slot for XSetDashes for use
7556 1999-03-10 Scott Redman <redman@scriptics.com>
7563 * mac/tkMacXStubs.c:
7564 * mac/tkMacAppInit.c:
7565 * mac/tkMacCursor.c:
7574 * generic/tkInt.decls:
7575 * generic/tkDecls.h:
7576 * generic/tkPlatDecls.h:
7577 * generic/tkIntDecls.h:
7578 * generic/tkIntPlatDecls.h:
7579 * generic/tkIntXlibDecls.h:
7580 * generic/tkStubs.c:
7581 * generic/tkPlatStubs.c:
7582 * generic/tkIntStubs.c:
7583 * generic/tkIntPlatStubs.c:
7584 * generic/tkIntXlibStubs.c:
7585 * generic/tkStubInit.c:
7586 * generic/tkStubLib.c:
7589 * generic/tkConfig.c:
7590 * generic/tkConsole.c:
7591 * generic/tkCursor.c:
7593 * generic/tkImgPhoto.c:
7596 * generic/tkPointer.c:
7597 * generic/tkTextDisp.c:
7598 * generic/tkWindow.c:
7600 * unix/tkUnixPort.h:
7602 * unix/configure.in:
7603 * unix/tkConfig.sh.in:
7606 * unix/tkUnixDraw.c:
7607 * unix/tkUnixFont.c:
7608 * unix/tkUnixMenubu.c: Stubs implementation for 8.1. Tk_Main() is
7609 replaced with a macro which calls Tk_MainEx(). Tk can link to the Tcl
7610 stubs library, wish links directly to Tcl and Tk. Use
7611 --enable-tcl-stubs to link Tk to the Tcl stubs library (Unix), on
7612 by default on Windows. Exported all public functions through the
7613 stubs mechanism (see the *.decls files) and many of the internal
7614 functions. Most of the changes dealt with shifting around the
7615 function declarations in the header files. Mac code may not
7616 compile, but it shouldn't take much work to fix this.
7618 * mac/tkMacMenu.c: Added dummy TkpMenuThreadInit for Mac to be
7619 consistent with Unix and Windows versions.
7621 1999-03-08 Lee Bernhard <lfb@scriptics.com>
7623 * win/tkWinWm.c: Toplevel class no longer shared between
7626 * win/tkWinX.c: Multiple threads no longer share the same
7627 TkDisplay structure. Required because TkDisplay stores much
7628 thread-specific data for a given thread.
7630 * win/tkWinSend.c: Moved application instance handle out
7631 out thread-local storage. DDE was failing to initialize
7632 when the instance handles were different between threads.
7634 * win/makefile.vc: Added THREADDEFINES for building with
7639 * unix/tkUnixMenu.c: Added TkpMenuThreadInit for initializing
7640 thread-specific Menu state.
7642 1999-03-01 Scott Redman <redman@scriptics.com>
7645 * win/tkWinPointer.c:
7646 * win/tkWinInt.h: Fix "focus -force" for Windows. The Win32 API
7647 function SetForegroundWindow() does not work unless the window
7648 handle is a toplevel window (a Windows toplevel). The handle
7649 being passed was a Tk toplevel, which is a child of the Windows
7652 1999-02-26 Scott Redman <redman@scriptics.com>
7654 * win/cat.c: Remove this file, use the one in the Tcl source directory.
7656 * win/makefile.vc: Remove the wishc.exe from the default targets. Add
7657 a separate console-wish target to build it. The need for a
7658 console-wish will go away soon, so we don't want to encourage its
7661 1999-02-25 Scott Redman <redman@scriptics.com>
7663 * win/tkWinWm.c: Properly initialize the tsdPtr->firstWindow field.
7665 * win/cat.c: Code for cat32.exe, copied from the Tcl sources. Required
7666 in order to run the test suite from the makefile
7668 * win/winMain.c: Add main() for a console-based wishc.exe, which meant
7669 adding code to disable the call to Tk_ConsoleInit().
7671 * generic/tkConsole.c: Check the standard handles before creating the
7672 new standard channels. This allows a windows app that has stdin,
7673 stdout, or stderr to correctly connect to them.
7675 * generic/tkMain.c: Add a proper check for the interactive mode, since
7676 the standard channels may actually be connected in windows mode or
7677 even in the console-based wish.
7679 * win/makefile.vc: Add targets for wishc.exe (console-based wish) and
7680 cat32.exe (for testing). Fix the test suite target so it can be run
7681 from the makefile (which can happen since the standard handles have
7684 1999-02-12 Lee Bernhard <lfb@scriptics.com>
7686 * generic/tkMenuButton.h:
7687 * generic/tkMenuButton.c:
7688 * mac/tkMacMenubutton.c:
7689 * mac/tkMacDefault.h
7690 * unix/tkUnixMenubu.c: Eliminated Tk_Uids used by -state option.
7691 * unix/tkUnixDefault.h
7692 * win/tkWinDefault.h
7695 * generic/tkScale.h:
7696 * generic/tkScale.c:
7697 * generic/tkWindow.c:
7698 * unix/tkUnixScale.c:
7699 * unix/tkUnixDefault.h:
7700 * unix/tkWinDefault.h:
7701 * mac/tkMacDefault.h: Objectified scale widget.
7703 * win/tkWinX.c: Removed Thread-specific data from process
7704 initialization code that was stopping the Tk Dll from
7707 1999-02-11 Scott Stanton <stanton@GASPODE>
7711 * unix/configure.in:
7714 * win/makefile.vc: Updated version to 8.1b2.
7716 * unix/tkUnixSend.c: Fixed one more Tcl_*ObjVar instance.
7718 1999-02-04 Scott Stanton <stanton@GASPODE>
7720 * Various cleanup related to the Tcl_Eval and Tcl_ObjSetVar
7723 INTEGRATED PATCHES FROM 8.0.5b2:
7725 * win/tkWinMenu.c (TkpDestroyMenu): Changed so modalMenuPtr is
7726 cleared when it is being destroyed.
7728 * generic/tkImgPhoto.c: Changed so color tables are freed
7729 immediately instead of being delayed. This ensures that color
7730 tables are properly disposed at process exit.
7732 * library/prolog.ps: Changed string that determines font height to
7733 include European character with an umlaut.
7735 * generic/tkImgBmap.c (ImgBmapConfigureInstance): If an image
7736 mask changed but ended up with the same XID, the GC failed to be
7737 updated and so the new mask was not used. [Bug: 970]
7739 * generic/tkFocus.c (SetFocus): Changed so focus window is always
7740 set if -force is specified. This fixes the problem on Windows
7741 where Tk does not activate the window if it already has focus.
7743 * generic/tkConsole.c: Fixed so errors in console eval are
7744 reported properly. Eliminated duplicate result messages. [Bug: 973]
7746 * win/tkWinWm.c: Changed so windows that aren't resizable don't
7747 have resize handles and the zoom box is disabled.
7750 * win/tkWinPointer.c: Changed to cancel the mouse timer when a
7751 user initiated move/resize loop begins.
7753 * unix/configure.in: TK_LD_SEARCH_FLAGS was set incorrectly if
7754 SHLIB_LD_LIBS='${LIBS}', and shared linking is performed through
7755 the C compiler. Systems affected are Linux, MP-RAS and NEXTSTEP,
7756 but also with gcc on many more systems. [Bug: 908]
7758 * win/makefile.vc: First stab at install target. Fixed quoting so
7759 paths with spaces work.
7762 * tests/unixWm.test: Better cleanup of temporary files.
7764 * mac/tkMacAppInit.c:
7766 * generic/tkAppInit.c:
7767 * win/winMain.c: Changed some EXTERN declarations to extern
7768 since they are not defining exported interfaces. This avoids
7769 generating useless declspec() attributes and makes the windows
7772 * library/menu.tcl (tkMenuFind): Changed so keyboard shortcuts
7773 will only be found in the current toplevel. Previously, they
7774 might be found in menus attached to other toplevels that might not
7775 even be mapped. [Bug: 924]
7777 * generic/tkCanvLine.c: Changed to treat zero width lines like
7778 they have width 1 for purposes of selection. [Bug: 925]
7780 * win/tkWinFont.c (Tk_MeasureChars): Added a workaround for a bug
7781 in GetTextExtentExPoint on Win NT 4.0/Japanese. [Bug: 1006]
7783 * unix/tkUnixSend.c (Tk_SetAppName): Fixed uninitialized memory
7784 access bug. [Bug: 919]
7786 1999-1-28 Scott Stanton <stanton@GASPODE>
7788 * generic/tkGrid.c: Fixed bug in "grid forget" that failed to cancel
7789 pending idle handlers, resulting in a crash in a few odd cases.
7791 1999-01-06 Lee Bernhard <lfb@JUSTICE>
7793 * generic/tk.h, generic/tkGet.c, generic/tkConfig.c,
7794 * generic/tkOldConfig.c, generic/tkEntry.c, generic/tkMenubutton.c,
7795 * generic/tkMenubutton.h, generic/tkScale.c, generic/tkScale.h,
7796 * generic/tkTextDisplay.c, generic/tkText.c, unix/tkUnixMenubu.c,
7797 * unix/tkUnixScale.c, mac/tkMacMenu.c, mac/tkMacMenubutton.c,
7799 Removed global Tk_Uids dealing with "-state" configuration option
7800 and added new TK_CONFIG_STATE configSpec that doesn't use
7803 1998-12-11 === Tk 8.1b1 Release ===
7805 1998-12-11 Scott Stanton <stanton@GASPODE>
7807 * generic/tkMain.c (Tk_Main): Fixed improper command line encoding
7810 1998-12-08 Scott Stanton <stanton@GASPODE>
7812 * win/tkWinClipboard.c (TkSelGetSelection, TkWinClipboardRender):
7813 Changed to handle multibyte characters properly. [Bug: 935]
7815 1998-12-07 Scott Stanton <stanton@GASPODE>
7817 * library/xmfbox.tcl (tkMotifFDialog_Create): In the cached case,
7818 the data array was not being initialized with the correct set of
7821 1998-12-4 Brent Welch <welch@SAGE>
7823 * Changed patchLevel to 8.1b1
7825 * generic/tkMenu.c (ConfigureMenuCloneEntries): The -menu configuration
7826 option was being incorrectly specified as just "menu".
7828 1998-11-30 Scott Stanton <stanton@GASPODE>
7830 * generic/tkButton.c (ConfigureButton): The error result was
7831 getting lost when restoring configuration options. [Bug: 619]
7833 1998-11-25 Scott Stanton <stanton@GASPODE>
7835 * unix/tkUnixFont.c (GetFontAttributes): Initialize an unspecified
7836 family to an empty string.
7837 (FontMapLoadPage): if the font included characters below 32, the
7838 index computation was incorrect because the range was shifted up
7840 (CreateClosestFont): check for empty locale as well as NULL.
7842 * generic/tkFont.c (TkFontParseXLFD): initialize charset to
7843 iso8859-1 if no charset is specified.
7845 * mac/tkMacHLEvents.c (OdocHandler): added conversion from
7846 external string to UTF [Bug: 869]
7848 * integrated tk8.0.4 changes.
7850 * generic/tkBind.c: fixed deletion order bug where a crash would
7851 result if a binding deleted "."
7853 * generic/tkMenu.c (MenuWidgetObjCmd): disabled menu entries were
7854 getting reenabled whenever the mouse passed over the entry [Bug: 860]
7856 * unix/tkUnixMenu.c (TkpComputeStandardMenuGeometry): hidemargin
7857 option was not honored properly in menus [Bug: 859]
7859 1998-11-24 Scott Stanton <stanton@GASPODE>
7861 * tkMacMenu.c, tkUnixMenu.c, tkWinMenu.c, tkMenuDraw.c, tkMenu.h,
7862 * tkMenu.c: Backed out the previous fix for bug 620 and
7863 eliminated a bunch of code that created unnecessary objects.
7864 Changed back to using internal types instead of objects for many
7865 configuration options. There are many more fixes like this that
7866 could be made, but some require a little restructuring of the
7867 code. In any case the leaks are fixed and there is a lot less
7868 allocation happening. [Bug: 620]
7870 1998-11-19 Scott Stanton <stanton@GASPODE>
7872 * tkMenu.c (DestroyMenuEntry): fixed memory leaks [Bug: 620]
7874 * tkWinX.c (GetTranslatedKey): fixed bad code merge
7876 * tkWinWm.c, tkWinMenu.c: fixed titles and menus so they properly
7877 display Unicode [Bug: 819]