OSDN Git Service

* tk/win/tcl.m4 (LIB_AC_PROG_CC): Upgrade to avoid use of obsolete ac_cv_cygwin
[pf3gnuchains/sourceware.git] / tk / ChangeLog
1 2006-11-30  Christopher Faylor  <cgf@timesys.com>
2
3         * tk/win/tcl.m4 (LIB_AC_PROG_CC): Upgrade to avoid use of obsolete
4         ac_cv_cygwin variable.
5         * tk/win/configure: Regenerate.
6
7 2006-07-13  Steve Ellcey  <sje@cup.hp.com>
8
9         * configure.in: Fix for autoconf 2.5.
10         * unix/tcl.m4: Fix for autoconf 2.5.
11         * configure: Regenerate.
12         * unix/configure: Regenerate.
13         * win/configure: Regenerate.
14
15 2006-02-08  Alexandre Oliva  <aoliva@redhat.com>
16
17         * unix/tcl.m4 (SC_CONFIG_CFLAGS, SC_BLOCKING_STYLE): Remove
18         unmatched single quote inside backticks.
19         * unix/configure: Rebuild.
20
21 2003-10-15  Ben Elliston  <bje@wasabisystems.com>
22
23         * win/tcl.m4 (SC_PROG_TCLSH): Replace with version from tcl/win.
24         * win/configure: Regenerate.
25
26 2003-02-07  Martin M. Hunt  <hunt@redhat.com>
27
28         * win/tcl.m4 (SC_CONFIG_CFLAGS): Don't default to -O.
29         * unix/tcl.m4 (SC_CONFIG_CFLAGS): Don't default to -O.  
30         CFLAGS gets set to "-O2" by default in top level
31         configure. Adding "-O" here causes the "-O2" to be
32         ignored, but only when the user types "make" within
33         the tcl subdirectory. This caused some confusion.
34         * win/configure: Rebuilt.
35         * unix/configure: Rebuilt.
36
37
38 2002-10-22  Jeff Hobbs  <jeffh@ActiveState.com>
39
40         *** 8.4.1 TAGGED FOR RELEASE ***
41
42         * changes: updated for 8.4.1 release
43
44 2002-10-21  Daniel Steffen  <das@users.sourceforge.net>
45
46         * macosx/README: revised according to Jim's suggestions
47         * macosx/tkMacOSXAppInit.c: use standard PATH_MAX from <limits.h>
48         
49 2002-10-18  Jeff Hobbs  <jeffh@ActiveState.com>
50
51         * win/winMain.c (WinMain, main): remove obsolete SetMessageQueue call
52
53         * win/configure: Regen. 
54         * win/tcl.m4 (SC_CONFIG_CFLAGS): Check for bug in Cygwin version
55         of windres and work around that case by passing a POSIX path
56         instead of a Windows native path. One can't always pass a POSIX
57         path because the mingw native toolchain accepts only Windows
58         native paths. (dejong)
59
60         * win/tkWinPort.h: define OPEN_MAX only if not defined.
61         [Patch #625472] (howell)
62
63 2002-10-18  Daniel Steffen  <das@users.sourceforge.net>
64
65         * mac/tkMacAppInit.c: removed tcltest dependency.
66         [Bug #592639] (porter)
67
68 2002-10-17  Jeff Hobbs  <jeffh@ActiveState.com>
69
70         * tests/imgPhoto.test:
71         * generic/tkImgPhoto.c (ImgPhotoConfigureMaster): fix arg handling
72         for missing -format or -data options. [Bug #624974]
73
74         * tests/text.test:                    properly return the number of
75         * unix/tkUnixFont.c (ControlUtfProc): bytes consumed. [Bug #624732]
76
77 2002-10-17  Daniel Steffen  <das@users.sourceforge.net>
78
79         * macosx/README: info specific to building and running
80         TclTk on Mac OS X, answers to tcl-mac list FAQs.
81         * macosx/Makefile: permission fix after embedded install.
82         * macosx/Wish.pbproj/project.pbxproj: after install, fix
83         permissions of uninstalled products.
84
85 2002-10-17  Daniel Steffen  <das@users.sourceforge.net>
86
87         * macosx/Wish.pbproj/project.pbxproj: added TEXT document
88         type to plist so that files can be dragged onto Wish Shell.
89
90         * macosx/tkMacOSXInt.h:
91         * macosx/tkMacOSXInit.c:
92         * macosx/tkMacOSXFont.c: added private proc
93         TkMacOSXUseAntialiasedText() to enable/disable quickdraw
94         text antialiasing where available, default is enabled.
95         Added a linked boolean ::tk::mac::antialiasedtext with
96         write trace to allow control of antialiasing from tcl.
97
98 2002-10-16  Vince Darley  <vincentdarley@users.sourceforge.net>
99
100         * macosx/tkMacOSXMenu.c: fix to accelerators shown in menus
101         with non-alphanumeric keys.
102         * macosx/tkMacOSXKeyEvent.c: 
103         * macosx/tkMacOSXKeyboard.c: applied first patch from [Patch
104         #622582] to fix some of [Bug #616988].  Further work is needed
105         in this area, but this will let foreign keyboards at least work
106         reasonably with Tk.
107
108 2002-10-15  Jeff Hobbs  <jeffh@ActiveState.com>
109
110         * unix/configure:
111         * unix/tcl.m4: add AIX-5 ppc build support. Remove unused
112         SC_ENABLE_MEMDEBUG.
113
114         * win/configure:
115         * win/tcl.m4: Add --enable-shared=mem support.
116
117 2002-10-10  Peter Spjuth  <peter.spjuth@space.se>
118
119         * tests/grid.test:
120         * generic/tkGrid.c: The grid size was not updated properly
121         when removing a widget from a grid. [Bug #621241] (forssen)
122
123 2002-10-10  Jeff Hobbs  <jeffh@ActiveState.com>
124
125         * tests/canvPs.test: tests for canvas embedded window ps generation
126         * generic/tkCanvWind.c (CanvasPsWindow): removed dead code loop.
127         * generic/tkCanvas.h: moved TkColormapData struct to tkCanvPs.c
128         * generic/tkCanvPs.c (TkImageGetColor): corrected bogus use of
129         TkColormapData on Windows (Windows now requires RGB pixel data
130         from image).
131         * win/tkWinImage.c (XGetImage, XGetImageZPixmap): added support
132         for generating ps for embedded widgets on canvases on Windows,
133         tested for 8, 16, 24 and 32-bit depths (XGetImageZPixmap not used).
134
135         * library/tk.tcl: simplified the adding of extra <ISO_Left_Tab>
136         and <hpBackTab> events to <<PrevWindow>>.
137
138 2002-10-09  Jeff Hobbs  <jeffh@ActiveState.com>
139
140         * unix/README: doc'ed --enable-symbols options.
141         * unix/Makefile.in: comment docs
142         * unix/configure: regen
143         * unix/tcl.m4: replaced SC_ENABLE_MEMDEBUG with a more intelligent
144         SC_ENABLE_SYMBOLS that takes yes|no|mem|all as options now.
145
146 2002-10-09  Don Porter <dgp@users.sf.net>
147
148         * generic/tk.h:  Added reminder comment to edit
149         macosx/Wish.pbproj/project.pbxproj when version number changes.
150
151 2002-10-09  Daniel Steffen  <das@users.sourceforge.net>
152
153         * macosx/Makefile: don't remove tclsh after building embedded.
154         
155         * macosx/Wish.pbproj/project.pbxproj: bumped version to 8.4.1;
156         added missing library/mkpsenc.tcl to framework.
157
158 2002-10-09  Daniel Steffen  <das@users.sourceforge.net>
159
160         * generic/tkInt.decls(tkIntXlib): added XQueryTree declaration for
161         mac & aqua, since it's now called from ParentXId via Tk_HandleEvent.
162         * generic/tkIntXlibDecls.h:
163         * generic/tkStubInit.c: regen.
164         * mac/tkMacXStubs.c: added XQueryTree stub
165
166         * mac/tkMacEmbed.c (TkpUseWindow): check that container window
167         has -container option set (sync with other platforms).
168
169         * mac/tkMacBitmap.c:
170         * mac/tkMacFont.c: 
171         * mac/tkMacSend.c: 
172         * mac/tkMacTest.c: 
173         * mac/tkMacWm.c: CONSTification.
174
175         * mac/tkMacProjects.sea.hqx: added tkStyle.c and tkUndo.c to
176         tk library projects.
177
178 2002-10-09  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
179
180         * generic/tkImgPhoto.c (ImgPhotoSetSize): Only error-out if we
181         fail to allocate a non-empty buffer; getting a NULL when we
182         allocate an empty buffer is no problem since nothing will look at
183         the value anyway. [Bug 619544]
184         Also tidied up file to take into account the fact that we're using
185         32 bits per pixel in the master to accommodate the alpha channel
186         as well as RGB.
187
188 2002-10-08  Jeff Hobbs  <jeffh@ActiveState.com>
189
190         * tests/winButton.test: add option clear to top to prevent option
191         leakage from other tests causing problems. [Bug #582382]
192
193         * generic/tkPanedWindow.c (Tk_PanedWindowObjCmd): leave the
194         DestroyPanedWindow proc to free the pwPtr, add a Preserve
195         reference to the pwPtr->tkwin.
196         (DestroyPanedWindow): Release the pwPtr->tkwin.
197
198         * generic/tkFocus.c (TkFocusFilterEvent): Ignore event if we are
199         focusing into a dead window. [Bug #588831] (griffin)
200
201 2002-10-02  Jim Ingham  <jingham@apple.com>
202
203         * macosx/tkMacOSXScrlbr.c (TkpDisplayScrollbar): Put the Tk scrollbar
204         pointer into the control reference data for the Mac scrollbar, so we
205         can get it out again in the ScrollbarActionProc.
206
207 2002-10-02  Jeff Hobbs  <jeffh@ActiveState.com>
208
209         * generic/tkText.c (TextBlinkProc): don't blink the cursor unless
210         it is visible. [Bug #616791] [Patch #614474] (bonfield)
211
212         * tests/entry.test: added entry-20.7
213         * generic/tkEntry.c (EntryTextVarProc): check if the entry is
214         being deleted before handling an associated textvariable.
215         [Bug #607390 #617446]
216
217 2002-10-01  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
218
219         * tests/unixSelect.test (unixSelect-1.1[89]): Altered these tests
220         to work around [Bug #616923]
221         * unix/tkUnixSelect.c (SelRcvIncrProc,TkSelPropProc): It turns out
222         a much simpler and more robust solution is possible if we leverage
223         Tcl's encoding engine by using the same code path as for the
224         normal string selection.  It might be a bit slower, but it should
225         be a lot more correct.  [Bug #614650]
226
227 2002-09-30  Jeff Hobbs  <jeffh@ActiveState.com>
228
229         * tests/panedwindow.test: added panedwindow-28.[12]
230         * generic/tkPanedWindow.c (PanedWindowCmdDeletedProc): 
231         (Tk_PanedWindowObjCmd): when destroying the panedwindow, destroy
232         the proxy before the parent to avoid dependency conflicts.
233         [Bug #616589]
234
235 2002-09-30  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
236
237         * tests/unixSelect.test: Test for various things that can fail to
238         work in 8.4.0...
239         * unix/tkUnixSelect.c (TkSelPropProc,SelRcvIncrProc): Incremental
240         transfers of UTF8_STRING selections should now work; Tk will now
241         tag them with the right size and only transfer complete UTF8
242         characters.  Previously, things only worked when the transfer
243         could only happen in one go, and even then not always. [Bug 614650]
244
245         * doc/bind.n: Doc-fix to mention that %A substitutes UNICODE
246         characters rather than ASCII ones.  Tk's done this ever since 8.1
247         in any case; after all, it is the right thing to do.
248
249 2002-09-27  Don Porter <dgp@users.sf.net>
250
251         * README:               Bumped to version 8.4.1 to avoid confusion
252         * generic/tk.h:         of CVS snapshots with release 8.4.0.
253         * unix/README:
254         * unix/configure.in:
255         * unix/tk.spec
256         * win/configure.in:
257
258         * unix/configure:       autoconf
259         * win/configure:
260
261 2002-09-26  Jeff Hobbs  <jeffh@ActiveState.com>
262
263         * unix/configure: regen.
264         * unix/tcl.m4: improve AIX-4/5 64bit compilation support.
265
266         * unix/Makefile.in: add macosx subdir to dist target.
267         Do not generate .Z, only .gz and .zip in alldist target.
268
269 2002-09-18  Mumit Khan  <khan@nanotech.wisc.edu>
270
271         Added basic Cygwin support.
272
273         * win/tcl.m4 (SC_PATH_TCLCONFIG): Support one-tree build.
274         (SC_PATH_TKCONFIG): Likewise.
275         (SC_PROG_TCLSH): Likewise.
276         (SC_CONFIG_CFLAGS): Assume real Cygwin port and remove -mno-cygwin 
277         flags.  Add -mwin32 to extra_cflags and extra_ldflags.
278         Remove ``-e _WinMain@16'' from LDFLAGS_WINDOW.
279         * win/configure: Regenerate.
280
281         * win/tkWinPort.h (tchar.h): Do not include on Cygwin.
282         (_T): Define for Cygwin.
283         * win/winMain.c (main): Conditionally define.
284
285 2002-09-26  Daniel Steffen  <das@users.sourceforge.net>
286
287         * macosx/Makefile: preserve environment value of INSTALL_ROOT.
288         When embedding only use deployment build. Force relink before
289         embedded build to ensure new linker flags are picked up.
290
291         * macosx/buildTkConfig.tcl (new):
292         * macosx/Wish.pbproj/project.pbxproj: synthesize tkConfig.sh
293         based on tclConfig.sh in Tcl.framework and tkConfig.sh.in.
294         Add symbolic links to debug lib, stub libs and tkConfig.sh
295         in framework toplevel. Made tkIntXlibDecls.h a public header
296         since Headers/X11/Xlib.h includes it. Install wish8.4 script
297         that runs "Wish Shell.app" and corresponding wish link.
298         Use tcl headers from built Tcl.framework instead of from tcl
299         source directory.
300
301         * macosx/tkMacOSXPort.h: added missing standard unix includes 
302         and defines, similarly to tkUnixPort.h.
303         * macosx/tkMacOSXNotify.c: removed dependency on internal tcl
304         header "tclPort.h"
305
306         * unix/Makefile.in:
307         * unix/install-sh: copied support for 'install-strip' target
308         over from tcl/unix/{Makefile.in,install-sh}
309
310 2002-09-22  Jim Ingham <jingham@apple.com>
311
312         * macosx/tkMacOSXScrlbr.c (UpdateControlValue): HiliteControl
313         doesn't give the proper "nothing to scroll" look on Mac OS X.
314         You have to set the min value greater than the max value to
315         get this.
316
317 2002-09-15  Mo DeJong  <mdejong@users.sourceforge.net>
318
319         * unix/configure: Regen.
320         * unix/tcl.m4: Update from Tcl.
321         * unix/tkUnixEvent.c (TkpCloseDisplay): Use PEEK_XCLOSEIM
322         to examine the input context queue before invoking
323         XCloseIM. Generate an assert if there is an input
324         context that has not been freed.
325         [Patch 570902]
326
327 2002-09-13  Andreas Kupries  <andreas_kupries@users.sourceforge.net>
328
329         * generic/tk.h: Moved RC_INVOKED down so that tcl.h is still
330           included when running the resource compiler. <tcl.h> excludes
331           the unnecessary parts on its own. This reenables the Windows
332           build. It failed because the non-inclusion of tcl.h caused the
333           resource compiler to miss some vital macro definitions
334           (TCL_FINAL_RELEASE, STRINGIFY, ...).
335
336 2002-09-12  Daniel Steffen  <das@users.sourceforge.net>
337
338         * generic/tk.h:
339         * mac/tkMacApplication.r:
340         * mac/tkMacLibrary.r:
341         * mac/tkMacResource.r:
342         * macosx/tkAboutDlg.r:
343         * macosx/tkMacOSXApplication.r:
344         * macosx/tkMacOSXLibrary.r:
345         * macosx/tkMacOSXResource.r: unified use of the two equivalent 
346         resource compiler header inclusion defines RC_INVOKED and
347         RESOURCE_INCLUDED, now use RC_INVOKED throughout.
348
349         * macosx/tkMacOSXAppInit.c: improved detection of Wish startup
350         by the finder (by checking if stdin is /dev/null), in which
351         case we want to bring up the Tk console window.
352
353         * macosx/tkMacOSXHLEvents.c: added 'rapp' apple event handler.
354
355 2002-09-12  Daniel Steffen  <das@users.sourceforge.net>
356
357         * macosx/Wish.pbproj/project.pbxproj: reference & install
358         tk/generic/prolog.ps instead of tk/library/prolog.ps.
359
360 2002-09-10  Daniel Steffen  <das@users.sourceforge.net>
361
362         * macosx/Wish.pbproj/project.pbxproj: added backwards
363         compatibility for OSX 10.1 ProjectBuilder 2.0.
364
365 2002-09-10  Daniel Steffen  <das@users.sourceforge.net>
366
367         * unix/Makefile.in: added DYLIB_INSTALL_DIR variable for Darwin
368         and set it to default value ${LIB_RUNTIME_DIR}
369         * unix/tcl.m4 (Darwin): use DYLIB_INSTALL_DIR instead of
370         LIB_RUNTIME_DIR in the -install_name argument to ld.
371         * unix/configure: regen.
372
373         * macosx/Wish.pbproj/project.pbxproj:
374         * macosx/Makefile: added support for building Tcl as an embedded
375         framework, i.e. using an dyld install_name containing
376         @executable_path/../Frameworks via the new DYLIB_INSTALL_DIR
377         unix/Makefile variable.
378
379 2002-09-10  Jeff Hobbs  <jeffh@ActiveState.com>
380
381         *** 8.4.0 TAGGED FOR RELEASE ***
382
383 2002-09-09  Jeff Hobbs  <jeffh@ActiveState.com>
384
385         * macosx/tkMacOSXNotify.c (Tk_MacOSXSetupTkNotifier): corrected
386         Mac Jaguar event loop issue.
387
388         * library/tk.tcl: use command instead of control on Aqua bindings.
389         Force dialogs to appear below fixed native Mac menubar.
390         * macosx/tkMacOSXKeyEvent.c:
391         * macosx/tkMacOSXKeyboard.c: Keypress/release events for pure
392         modifier keys were not being passed to Tk.
393         Deadkey presses were inserting null characters into text windows.
394         Now they do nothing. (Still not ideal, but better than before!)
395         * macosx/tkMacOSXMenu.c: Allow more than 200 menus to exist -
396         increased to 2000.
397         * macosx/tkMacOSXMouseEvent.c: Bad interactions between floating
398         windows and ordinary ones.  Ensure that local<->global coordinate
399         transformations are wrt to the correct window.
400         * macosx/tkMacOSXWm.c: Better error msg for 'wm attributes'.
401         Remove crash in 'wm transient'.
402         Add 'noActivates' and 'noUpdates' flags to unsupported command.
403         [Patch #606658] (darley)
404
405         * library/xmfbox.tcl (::tk::MotifFDialog_ActivateSEnt): corrected
406         msgcat code with XPG specifier. [Patch #606719] (miller)
407
408 2002-09-06  Don Porter <dgp@users.sf.net>
409
410         * tests/unixWm.test (unixWm-50.3):  Constrained test that hangs
411         on Windows.
412
413 2002-09-05  Daniel Steffen  <das@users.sourceforge.net>
414
415         * macosx/Wish.pbproj/project.pbxproj: added overlooked missing
416         TK_PATCH_LEVEL version bump to 8.4.0.
417
418 2002-09-04  Andreas Kupries  <andreas_kupries@users.sourceforge.net>
419
420         * win/Makefile.in (install-libraries): Added code section to
421           install the message catalogs. Copied same section from
422           unix/Makefile.in and adapted it to the slightly different
423           environment.
424
425 2002-09-03  Jeff Hobbs  <jeffh@ActiveState.com>
426
427         * library/button.tcl: further restrict buttons to not resetting
428         the "original" relief if it has changed in the interim.  This
429         prevents code that simulated overrelief buttons from not working
430         in 8.4.  [Bug #604270]
431
432 2002-09-03  Daniel Steffen  <das@users.sourceforge.net>
433
434         * macosx/Wish.pbproj/project.pbxproj: Bumped version number to
435         8.4.0 and updated copyright info.
436
437 2002-09-03  Vince Darley  <vincentdarley@users.sourceforge.net>
438
439         * macosx/tkMacOSXWm.c: fix to 'wm attributes' error-handling bug.
440         
441 2002-09-03  Don Porter <dgp@users.sf.net>
442
443         * changes: Updated for 8.4.0 release
444
445 2002-09-02  Jeff Hobbs  <jeffh@ActiveState.com>
446
447         * tests/cursor.test: reverted 2002-08-31 change for OS X to use
448         'heart' cursor because 'arrow' on windows has a pre-skewed use
449         count. [Bug #602667]
450
451         * tests/button.test: added button-14.1
452         * win/tkWinButton.c (TkpComputeButtonGeometry): correct Win button
453         sizing to be equal for one-line buttons with -height of 0 or 1, as
454         well as -height 0 buttons with empty text and no image, which
455         should be the same as single-line text buttons. [Bug #565485]
456
457         * library/button.tcl (::tk::ButtonLeave): correctly restore state
458         of button to normal for unix bindings. [Bug #597920]
459
460         * doc/tk.n: added tk windowingsystem docs.
461
462         * tests/wm.test:
463         * unix/tkUnixWm.c: remove possible 2-second delay in 'raise'.
464         [Patch #601518] (english) TIP #107
465
466         * unix/tcl.m4: add support for 64-bit builds on HP-11 with gcc.
467         * unix/configure.in: make sure to substitute LD_LIBRARY_PATH_VAR.
468         * unix/configure: regend
469
470         * README:               Bumped version number to 8.4.0
471         * generic/tk.h:
472         * unix/configure:
473         * unix/configure.in:
474         * unix/tk.spec:
475         * win/configure:
476         * win/configure.in:
477
478         * generic/tkCmds.c:
479         * generic/tkWindow.c: made 'tk' available in safe interpreters,
480         but only the caret and windowingsystem subcommands may be called.
481         * tests/safe.test (safe-1.2): noted that tk is now available in
482         safe interps, but not the appname/scaling subcommands.
483
484         * tests/tk.test (tk-1.2): noted new tk windowingsystem subcommand
485
486 2002-08-31  Daniel Steffen  <das@users.sourceforge.net>
487
488         * unix/tcl.m4: update from Tcl
489
490         * unix/Makefile.in: import of TK_SHLIB_LD_EXTRAS for Tk library
491         specific linker settings. Added use of new LD_LIBRARY_PATH_VAR.
492
493         * unix/configure: regen
494
495 2002-08-31  Daniel Steffen  <das@users.sourceforge.net>
496
497         *** macosx-8-4-branch merged into the mainline [tcl patch #602770] ***
498
499         * generic/tk.decls:
500         * generic/tkInt.decls: added new "aqua" specific entries to the
501         stubs tables. Changed all "unix" entries to "x11" to allow us to
502         distinguish and build both "aqua" on MacOSX and "x11" on MacOSX.
503
504         * generic/tk.h: added a #ifnded RESOURCE_INCLUDED so that tk.h can
505         be passed to the resource compiler. 
506         
507         * generic/tkCmds.c (Tk_TkObjCmd): added [tk windowingsystem]
508         subcommand: returns "x11" when running on X11, "win32" on Windows,
509         "classic" on MacOS9 and "aqua" on MacOSX Aqua (i.e. Carbon)
510
511         * generic/tkFont.c (TkFontGetFirstTextLayout): new private function
512         returning the first chunk of a Tk_TextLayout, i.e. until the first
513         font change on the first line (or the whole first line if there is
514         no such font change).
515
516         * generic/tkMain.c: made Tcl_ThreadDataKey static
517
518         * library/demos/puzzle.tcl: fixed button metrics for aqua
519
520         * tests/cursor.test: check for presence of arrow cursor instead of
521         heart cursor
522
523         * xlib/xcolors.c: changed xColors static initialization to more
524         standard C
525         
526         * macosx/Wish.pbproj/jingham.pbxuser (new):
527         * macosx/Wish.pbproj/project.pbxproj (new): project for Apple's
528         ProjectBuilder IDE.
529
530         * macosx/Makefile (new): simple makefile for building the project
531         from the command line via the ProjectBuilder tool 'pbxbuild'.
532
533         * macosx/tkMacOSXAppInit.c (new): macosx specific AppInit looking
534         for a AppMain.tcl file in its bundled Resources/Scripts folder. If
535         present, argv[1] is set to that file and the Scripts folder is
536         added to the auto_path. This allows tk apps to embed scripts within
537         their bundle directory structure.
538
539         * macosx/tkMacOSXInit.c (new): macosx adapted version of
540         tkUnixInit.c: we initialize & cache the Carbon native encoding
541         (e.g. 'macRoman') and try to find the tk script library files
542         inside Tk packaged as a framework.
543
544         * macosx/tkMacOSXNotify.c (new): new macosx specific merged
545         Carbon/select-based notifier.
546
547         * macosx/tkMacOSXEvent.c (new):
548         * macosx/tkMacOSXEvent.h (new):
549         * macosx/tkMacOSXKeyEvent.c (new):
550         * macosx/tkMacOSXMouseEvent.c (new):
551         * macosx/tkMacOSXWindowEvent.c (new): new macosx specific event
552         handling functionality.
553
554         * macosx/tkMacOSX.h (new):
555         * macosx/tkMacOSXBitmap.c (new): 
556         * macosx/tkMacOSXButton.c (new):
557         * macosx/tkMacOSXClipboard.c (new):
558         * macosx/tkMacOSXColor.c (new):
559         * macosx/tkMacOSXConfig.c (new):
560         * macosx/tkMacOSXCursor.c (new):
561         * macosx/tkMacOSXDefault.h (new):
562         * macosx/tkMacOSXDialog.c (new):
563         * macosx/tkMacOSXDraw.c (new):
564         * macosx/tkMacOSXEmbed.c (new):
565         * macosx/tkMacOSXFont.c (new):
566         * macosx/tkMacOSXHLEvents.c (new):
567         * macosx/tkMacOSXInt.h (new):
568         * macosx/tkMacOSXKeyboard.c (new):
569         * macosx/tkMacOSXMenu.c (new):
570         * macosx/tkMacOSXMenubutton.c (new):
571         * macosx/tkMacOSXMenus.c (new):
572         * macosx/tkMacOSXPort.h (new):
573         * macosx/tkMacOSXRegion.c (new):
574         * macosx/tkMacOSXScale.c (new):
575         * macosx/tkMacOSXScrlbr.c (new):
576         * macosx/tkMacOSXSubwindows.c (new):
577         * macosx/tkMacOSXTest.c (new):
578         * macosx/tkMacOSXUtil.c (new):
579         * macosx/tkMacOSXUtil.h (new):
580         * macosx/tkMacOSXWm.c (new):
581         * macosx/tkMacOSXWm.h (new):
582         * macosx/tkMacOSXXStubs.c (new): macosx ports of classic mac Tk
583         implementation in tk/mac.
584
585         * macosx/tkMacOSXSend.c (new): only send to local interp
586         implemented currently.
587
588         * macosx/tkMacOSXDebug.h (new):
589         * macosx/tkMacOSXDebug.c (new): new macosx specific functions for
590         debugging MacOS events, regions, etc.
591
592         * macosx/tkAboutDlg.r (new):
593         * macosx/tkMacOSXApplication.r (new):
594         * macosx/tkMacOSXCursors.r (new):
595         * macosx/tkMacOSXLibrary.r (new):
596         * macosx/tkMacOSXMenu.r (new):
597         * macosx/tkMacOSXResource.r (new):
598         * macosx/tkMacOSXXCursors.r (new):
599         * macosx/tclets.r (new): sources for Rez resource compiler.
600
601         * macosx/Wish.icns (new): Wish application icon.
602
603         * generic/tk.h:
604         * generic/default.h:
605         * generic/tkBind.c:
606         * generic/tkCmds.c:
607         * generic/tkGrab.c:
608         * generic/tkPointer.c:
609         * generic/tkPort.h:
610         * generic/tkSelect.c:
611         * generic/tkStubLib.c:
612         * generic/tkTest.c:
613         * generic/tkText.c:
614         * generic/tkWindow.c:
615         * unix/tkUnix3d.c:
616         * xlib/xgc.c:
617         * xlib/X11/X.h:
618         * xlib/X11/Xlib.h:
619         * xlib/X11/Xutil.h: added #includes and #ifdefs for macosx
620
621         * library/bgerror.tcl:
622         * library/button.tcl:
623         * library/console.tcl:
624         * library/dialog.tcl:
625         * library/entry.tcl:
626         * library/listbox.tcl:
627         * library/menu.tcl:
628         * library/msgbox.tcl:
629         * library/scrlbar.tcl:
630         * library/spinbox.tcl:
631         * library/text.tcl:
632         * library/tk.tcl:
633         * library/demos/menu.tcl:
634         * library/demos/menubu.tcl:
635         * library/demos/widget: check [tk windowingsystem] instead of
636         and/or in addition to $tcl_platform(platform).
637
638         * generic/tkInt.h:
639         * mac/tkMacBitmap.c:
640         * mac/tkMacWm.c: added missing CONSTification
641
642         * generic/tkIntDecls.h:
643         * generic/tkIntPlatDecls.h:
644         * generic/tkIntXlibDecls.h:
645         * generic/tkPlatDecls.h:        
646         * generic/tkStubInit.c: regen
647
648 2002-08-27  D. Richard Hipp <drh@hwaci.com>
649
650         * doc/checkbutton.n:      [Bug 582457] Fix the -offrelief option so
651         * doc/radiobutton.n:      that when -offrelief is flat and -relief is
652         * mac/tkMacButton.c:      sunken and -overrelief is raised, buttons
653         * unix/tkUnixButton.c:    work look toolbar buttons under Windows.
654         * win/tkWinButton.c:      See also: TIP #82.
655
656 2002-08-26  Don Porter <dgp@users.sf.net>
657
658         * win/Makefile.in:      Removed dependence on the (parts of) the
659         * win/winMain.c:        tcltest executable on Windows.  It was not
660         used, and the dependency complicated the Makefile.  [Bug 592638].
661
662 2002-08-20  Don Porter <dgp@users.sf.net>
663
664         * README:               Bumped version number to 8.4b3 to distinguish
665         * generic/tk.h:         HEAD from the 8.4b2 release.
666         * unix/configure.in:
667         * win/configure.in:
668         * unix/tk.spec:
669         
670         * unix/configure:       autoconf
671         * win/configure:
672
673         * generic/tk.h: Added compile-time check that the tcl.h header file
674         #included by Tk 8.4 is one from Tcl 8.4.  This is needed to be sure
675         that new #defines like CONST84 are available. [Bug 597432].
676
677 2002-08-16  Jeff Hobbs  <jeffh@ActiveState.com>
678
679         * unix/Makefile.in (install-binaries): simplified pkgIndex.tcl
680         file created on installation.
681         * win/Makefile.in (install-binaries): corrected and simplified
682         creation of pkgIndex.tcl file on installation.
683
684 2002-08-14  Vince Darley  <vincentdarley@users.sourceforge.net>
685
686         * win/tkWinDialog.c:
687         * win/makefile.vc: broken compilation and link from changes
688         Hobbs-08-07 fixed.
689         * win/tkWinTest.c: CONST problem resolved.
690
691 2002-08-13  Jeff Hobbs  <jeffh@ActiveState.com>
692
693         * library/button.tcl: change the bindings to use Priv($w,relief)
694         instead of just Priv(relief).  This ensures that neighboring
695         buttons don't confuse (over)relief settings.
696
697 2002-08-13  Reinhard Max  <max@suse.de>
698
699         * unix/tkUnixSend.c (Tk_SetAppName): Fixed a compiler warning.
700
701 2002-08-12  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
702
703         * library/demos/image2.tcl: Tweaked the behaviour of the directory
704         box on resize, as resizing of the overall window tends to be
705         common given the sample images.
706
707 2002-08-08  Mo DeJong  <mdejong@users.sourceforge.net>
708
709         * unix/tkUnixWm.c (WmTransientCmd): Apply fix for
710         wm transient assertion error that was applied
711         to tkWinWm.c for Tk Bug #592201.
712
713 2002-08-08  Mo DeJong  <mdejong@users.sourceforge.net>
714
715         * tests/wm.test: Add deleteWindows at start of
716         new transient tests so they do not fail if the
717         toplevels already exist.
718         * unix/tkUnixWm.c: Revert patch for Tk Bug #592201
719         which incorrectly removed numTransients member.
720
721 2002-08-08  Joe English  <jenglish@users.sourceforge.net>
722
723         * unix/tkUnixWm.c:
724         * win/tkWinWm.c:
725         * tests/wm.test: Fix for Tk Bug #592201 "wm transient fails with two
726           masters"; fixes panic after a transient window is reassigned to
727           new master and either master is subsequently destroyed.
728
729 2002-08-08  Don Porter <dgp@users.sf.net>
730
731         * tests/unixWm.test:  Corrected packaging of unixWm-50.3 so that
732         [setupbg] and [cleanupbg] always balance, no matter what tests
733         are skipped.
734
735 2002-08-08  Reinhard Max  <max@suse.de>
736
737         * unix/Makefile.in: Fixed typos in DISTNAME, and ZIPNAME.
738
739 2002-08-08  Jeff Hobbs  <jeffh@ActiveState.com>
740
741         *** 8.4b2 TAGGED FOR RELEASE ***
742
743         * generic/tkButton.c (TkButtonWorldChanged): added GCFont handling
744         to the disabledGc of buttons when compound != none.  The drawing
745         appears to be incorrect across platforms still.  [Bug #477740]
746
747         * generic/tkImgGIF.c (FileReadGIF): fixed -from handling for gifs
748         [Bug #467524] (obermeier)
749
750 2002-08-07  Jeff Hobbs  <jeffh@ActiveState.com>
751
752         * generic/tkCanvUtil.c (TkSmoothParseProc): recognize the built-in
753         bezier method by name. [Bug #578654]
754         * doc/canvas.n: update to note that -smooth really doesn't take
755         or return just booleans.
756
757         * win/tkWinMenu.c (TkpSetWindowMenuBar): fixed logic bug in when
758         to idle call ReconfigureWindowsMenu.
759
760         * doc/GetBitmap.3: removed doc refs to deprecated
761         Tk_GetBitmapFromData. [Bug #590379]
762
763         * generic/tkPanedWindow.c (Tk_PanedWindowObjCmd): 
764         * library/panedwindow.tcl: changed class from PanedWindow to
765         Panedwindow to not conflict with existing bwidgets, but also to be
766         more regular with other names used in the core.
767
768         * tests/panedwindow.test: added -text foobar to some test buttons
769         to enable correct testing of panedwindow across platforms.
770         [Bug #582370]
771
772         * win/tkWinDialog.c: enabled use of the updated native Windows
773         directory browser (tk_chooseDirectory).  This does require
774         shell32.dll v4.71 or greater. [Patch #468139]
775
776         * win/configure:
777         * win/tcl.m4: added shell32 to libs for updated native Windows
778         tk_chooseDirectory dialog.
779
780 2002-08-06  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
781
782         * generic/tkPanedWindow.c (RESIZE_PENDING): Separated out flag for
783         indicating that a resize needs to be issued.
784         (PanedWindowReqProc): Do the old behaviour when the panedwindow is
785         not mapped; easiest way of making the test suite pass while still
786         preserving improved behaviour in the face of children whose size
787         is not known immediately.
788
789 2002-08-06  Don Porter <dgp@users.sf.net>
790
791         * tests/defs.tcl: removed file.  No longer needed now that Tk is 
792         using the tcltest package to do its testing.
793
794 2002-08-05  Don Porter <dgp@users.sf.net>
795
796         * win/tkWinFont.c:      Additional changes to fix CONST warnings on
797         * win/tkWinWM.c:        Windows due to latest patch.  Tks Vince Darley.
798
799         * doc/3DBorder.3:       Applied companion patch for Tcl Patch 585105,
800         * doc/BindTable.3:      updating Tk to use Tcl 8.4's fully CONST-ified
801         * doc/ConfigWidg.3:     interface, and fully CONSTifying Tk at the
802         * doc/CrtImgType.3:     same time.
803         * doc/CrtWindow.3:
804         * doc/DeleteImg.3:      This patch includes purging Tk of its last
805         * doc/FindPhoto.3:      direct access to interp->result.  [Bug 589853]
806         * doc/GetAnchor.3:
807         * doc/GetBitmap.3:      The substantial changes include copying
808         * doc/GetCapStyl.3:     event sequence strings into Tcl_DStrings
809         * doc/GetClrmap.3:      in tkBind.c, and copying [text] indices into
810         * doc/GetColor.3:       Tcl_DStrings because parsing them involved
811         * doc/GetCursor.3:      overwriting them.  If this causes performance
812         * doc/GetFont.3:        trouble, that can be resolved by further
813         * doc/GetImage.3:       converting them to Tcl_Obj's.
814         * doc/GetJoinStl.3:
815         * doc/GetJustify.3:     The #defines USE_NON_CONST and USE_COMPAT_CONST
816         * doc/GetOption.3:      have the same effect for Tk as they do for Tcl.
817         * doc/GetRelief.3:      (They actually change tcl.h)
818         * doc/GetScroll.3:
819         * doc/GetVisual.3:
820         * doc/InternAtom.3:
821         * doc/NameOfImg.3:
822         * doc/SetAppName.3:
823         * doc/WindowId.3:
824         * generic/tk.decls:
825         * generic/tk.h:
826         * generic/tk3d.c:
827         * generic/tkAtom.c:
828         * generic/tkBind.c:
829         * generic/tkBitmap.c:
830         * generic/tkButton.c:
831         * generic/tkCanvArc.c:
832         * generic/tkCanvBmap.c:
833         * generic/tkCanvImg.c:
834         * generic/tkCanvLine.c:
835         * generic/tkCanvPoly.c:
836         * generic/tkCanvPs.c:
837         * generic/tkCanvText.c:
838         * generic/tkCanvUtil.c:
839         * generic/tkCanvWind.c:
840         * generic/tkCanvas.c:
841         * generic/tkCanvas.h:
842         * generic/tkClipboard.c:
843         * generic/tkCmds.c:
844         * generic/tkColor.c:
845         * generic/tkConfig.c:
846         * generic/tkConsole.c:
847         * generic/tkCursor.c:
848         * generic/tkDecls.h:
849         * generic/tkEntry.c:
850         * generic/tkFont.c:
851         * generic/tkFrame.c:
852         * generic/tkGet.c:
853         * generic/tkGrid.c:
854         * generic/tkImage.c:
855         * generic/tkImgBmap.c:
856         * generic/tkImgPhoto.c:
857         * generic/tkInt.decls:
858         * generic/tkInt.h:
859         * generic/tkIntDecls.h:
860         * generic/tkIntPlatDecls.h:     
861         * generic/tkListbox.c:
862         * generic/tkMenu.c:
863         * generic/tkMenubutton.c:
864         * generic/tkMessage.c:
865         * generic/tkOldConfig.c:
866         * generic/tkOption.c:
867         * generic/tkRectOval.c:
868         * generic/tkScale.c:
869         * generic/tkScrollbar.c:
870         * generic/tkSelect.c:
871         * generic/tkStyle.c:
872         * generic/tkTest.c:
873         * generic/tkText.c:
874         * generic/tkText.h:
875         * generic/tkTextBTree.c:
876         * generic/tkTextDisp.c:
877         * generic/tkTextImage.c:
878         * generic/tkTextIndex.c:
879         * generic/tkTextMark.c:
880         * generic/tkTextTag.c:
881         * generic/tkTextWind.c:
882         * generic/tkUtil.c:
883         * generic/tkVisual.c:
884         * generic/tkWindow.c:
885         * mac/tkMacConfig.c:
886         * mac/tkMacCursor.c:
887         * mac/tkMacEmbed.c:
888         * mac/tkMacSend.c:
889         * unix/tkUnixConfig.c:
890         * unix/tkUnixCursor.c:
891         * unix/tkUnixEmbed.c:
892         * unix/tkUnixFont.c:
893         * unix/tkUnixSelect.c:
894         * unix/tkUnixSend.c:
895         * unix/tkUnixWm.c:
896         * win/tkWinConfig.c:
897         * win/tkWinCursor.c:
898         * win/tkWinEmbed.c:
899         * win/tkWinMenu.c:
900         * win/tkWinSend.c:
901
902 2002-08-02  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
903
904         * generic/tkPanedWindow.c (DestroyPanedWindow): Idle calls need to
905         be deleted on destruction of the window, or things can *really* go
906         pear-shaped.
907
908 2002-07-31  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
909
910         * generic/tkPanedWindow.c (PanedWindowReqProc): Postpone pane
911         arrangement until idle, as is done in other window managers, to
912         fix problems with size calculations when the children don't
913         already know their sizes anyway.
914
915         * unix/configure: Regen.
916         * unix/tcl.m4: Update from Tcl.
917
918 2002-07-29  Mo DeJong  <mdejong@users.sourceforge.net>
919
920         * unix/configure: Regen.
921         * unix/configure.in: Remove code that was setting
922         CC_SEARCH_FLAGS and LD_SEARCH_FLAGS to try to
923         account for cc vs ld linking. Tcl now handles this.
924         * unix/tcl.m4: Update from Tcl.
925
926 2002-07-27  Mo DeJong  <mdejong@users.sourceforge.net>
927
928         * unix/Makefile.in: Add MAJOR_VERSION, MINOR_VERSION,
929         PATCH_LEVEL, INSTALL_LIBRARY, STUB_LIB_FILE, and LIB_FILE
930         to support changes in tcl.m4 related to library builds.
931         Use MAKE_LIB macro to avoid dealing with RANLIB issues.
932         Rename TK_CC_SEARCH_FLAGS to CC_SEARCH_FLAGS and
933         rename TK_LD_SEARCH_FLAGS to LD_SEARCH_FLAGS.
934         Use new INSTALL_LIB and INSTALL_STUB_LIB substs to
935         deal with ranlib issues when install libraries.
936         * unix/configure: Regen.
937         * unix/configure.in: Remove AC_PROG_RANLIB since
938         this is done by tcl.m4 now. Define CC_SEARCH_FLAGS
939         instead of TK_CC_SEARCH_FLAGS and so on.
940         Use MAKE_LIB and MAKE_STUB_LIB from tcl.m4.
941         Remove AC_SUBST calls that are no done in tcl.m4.
942         * unix/tcl.m4: Update from Tcl.
943         * unix/tkConfig.sh.in: Subst CC_SEARCH_FLAGS and
944         LD_SEARCH_FLAGS.
945
946 2002-07-25  Peter Spjuth  <peter.spjuth@space.se>
947
948         * generic/tkInt.h:
949         * generic/tkWindow.c:
950         * mac/tkMacWm.c:
951         * unix/tkUnixWm.c:
952         * win/tkWinWm.c:
953         * tests/wm.test:
954         * tests/winWm.test:
955         * tests/unixWm.test: Objectifed wm. [Patch #564521]
956         Note: At this point the Mac file is completely untested
957         and may not even compile.
958
959 2002-07-25  Jeff Hobbs  <jeffh@ActiveState.com>
960
961         * tests/spinbox.test: added spinbox-22.[1-3]
962         * generic/tkEntry.c (ConfigureEntry): made the textvariable value
963         take precedence over changed -from/-to values, unless it must be
964         constrained.  [Bug #559078]
965
966         * library/spinbox.tcl (MouseSelect): when not in the entry, just
967         return instead of invoking - ButtonUp handles invoking already.
968         [Bug #499168]
969
970         * library/tk.tcl (RestoreFocusGrab): handle the case where the
971         FocusGrab info is not set. [Bug #553283]
972
973 2002-07-24  Jeff Hobbs  <jeffh@ActiveState.com>
974
975         * tests/canvas.test: added canvas-14.[1-6]
976         * generic/tkCanvas.c (CanvasWidgetCmd): corrected handling of
977         'scan' subcommand args.  Also removed early return cases to goto
978         done instead where the canvasPtr would be Tcl_Release'd.  This may
979         solve other problems with unreleased canvasPtr's. [Bug #581560]
980
981         * win/tkWinButton.c (TkpDisplayButton): corrected display of focus
982         ring around the actual text when the button is a compound button.
983         [Bug #583691]
984
985         * unix/README: Corrected notes about running user interactive Tk
986         tests. [Bug #462320]
987
988         * generic/tkText.c (TextEditUndo): set isDirtyIncrement to -1 when
989         reverting to note proper "dirtiness". [Bug #580362] (callewaert)
990
991         * generic/tkEntry.c (DisplayEntry): correct cursor position before
992         calling Tk_SetCaretPos. (yamamoto)
993
994 2002-07-23  Mo DeJong  <mdejong@users.sourceforge.net>
995
996         * unix/configure: Regen.
997         * unix/tcl.m4: Update from Tcl.
998
999 2002-07-22  Mo DeJong  <mdejong@users.sourceforge.net>
1000
1001         * library/choosedir.tcl (tk::dialog::file::chooseDir):
1002         * library/clrpick.tcl (tk::dialog::file::chooseDir):
1003         * library/msgbox.tcl (tk::MessageBox):
1004         * library/tkfbox.tcl (tk::dialog::file):
1005         * library/xmfbox.tcl (tk::MotifFDialog):
1006         Revert [Tk patch 568278]. The transient window workaround
1007         is no longer needed since the fix for [Tk bug 570764]
1008         solved the problem for withdrawn transients.
1009
1010 2002-07-19  Mo DeJong  <mdejong@users.sourceforge.net>
1011
1012         * unix/configure:
1013         * unix/configure.in:
1014         * win/configure:
1015         * win/configure.in: Add AC_PREREQ(2.13) in an attempt
1016         to make it more clear that the configure scripts
1017         must be generated with autoconf version 2.13.
1018         [Tcl Bug 583573]
1019
1020 2002-07-19  D. Richard Hipp  <drh@hwaci.com>
1021
1022         * library/mkpsec.tcl: Fix a bug that was causing postscript generation
1023         to fail under Win2K.
1024
1025 2002-07-18  Reinhard Max  <max@suse.de>
1026
1027         * unix/tkUnixSend.c: Using Tcl_GetTime instead of TclpGetTime.
1028
1029 2002-07-17  Reinhard Max  <max@suse.de>
1030
1031         * library/unsupported.tcl: Extended ExposePrivateVariable, and
1032         ExposePrivateCommand to accept patterns as well.        
1033
1034 2002-07-17  Don Porter <dgp@users.sf.net>
1035
1036         * generic/tkFont.c: Corrected reversed logic in assert -> panic
1037         conversion.  [Bug 582799]
1038
1039 2002-07-16  Mo DeJong  <mdejong@users.sourceforge.net>
1040
1041         * generic/tkFont.c (TkFontPkgFree): Call panic instead
1042         of assert since assert is not used in the rest of Tk.
1043         [Tk bug 579651]
1044
1045 2002-07-16  Mo DeJong  <mdejong@users.sourceforge.net>
1046
1047         * unix/Makefile.in:
1048         * win/Makefile.in: Add a more descriptive warning
1049         in the event `make genstubs` needs to be rerun.
1050
1051 2002-07-16  Vince Darley  <vincentdarley@users.sourceforge.net>
1052
1053         * win/tkWinWm.c: 
1054         * doc/wm.n: fix for part of [Bug 581627], and made iconbitmap
1055         code on Windows more flexible about reading in icons [Bug
1056         220800].
1057
1058 2002-07-15  David Gravereaux <davygrvy@pobox.com>
1059
1060         * win/makefile.bc (new): re-add of the borland makefile.  Submitted
1061         by Helmut Giese <hgiese@ratiosoft.com>.  This needs testing, still.
1062
1063 2002-07-15  Don Porter <dgp@users.sf.net>
1064
1065         * Fixes for [Bug 581627, 581795].
1066         * generic/tkTest.c:             Test commands not supported on non-Unix
1067           platforms should not be defined there in the first place.
1068         * tests/constraints.tcl:        Fixed "secureserver" constraint.
1069         * tests/unixWm.test:            Some tests needed "unix" constraint.
1070         * win/tkWinWm.c:                Typo in error message.
1071
1072 2002-07-14  Don Porter <dgp@users.sf.net>
1073
1074         * tests/event.test:     Fixes to enable testing of only userInteraction
1075         * tests/visual_bb.test: tests.
1076
1077         * README:               Bumped HEAD to version 8.4b2 in order to 
1078         * generic/tk.h:         distinguish it from the 8.4b1 release.
1079         * unix/configure*:      Also extended LOCALES to cover all message
1080         * unix/tk.spec:         catalogs.
1081         * win/configure*:
1082
1083         * tests/focustTcl.test: Conversion bug: Corrected backwards logic.
1084         * tests/imgPhoto.test:  Conversion bug: overwrote unix/README.
1085
1086         * tests/all.tcl:                Completed conversion of Tk test suite
1087         * tests/constraints.tcl:        to use tcltest.
1088         * tests/[b-v]*.test:
1089         * unix/Makefile.in:
1090
1091 2002-07-12  Don Porter <dgp@users.sf.net>
1092
1093         * tests/constraints.tcl:        Converted more files to tcltest and
1094         * tests/[g-x]*.test:            factored out common code.
1095
1096 2002-07-11  Don Porter <dgp@users.sf.net>
1097
1098         * tests/canvPsImg.tcl:                  Converted several files in the
1099         * tests/constraints.tcl (new file):     Tk test suite for testing by
1100         * tests/[r-x]*.test:                    tcltest 2.1.
1101         * unix/Makefile.in:
1102
1103 2002-07-11  Jeff Hobbs  <jeffh@ActiveState.com>
1104
1105         * win/tkWinDialog.c (Tk_ChooseDirectoryObjCmd): initialize
1106         utfTitle to NULL, add a few more notes about limitations of
1107         possible new Tk_ChooseDirectoryObjCmd function.
1108
1109 2002-07-11  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
1110
1111         * tests/imgPhoto.test (imgPhoto-15.1): Added test of mem-alloc
1112         failure, but this is non-portable.
1113         * generic/tkImgPhoto.c (ImgPhotoSetSize): Allowed this function to
1114         fail when it can't allocate enough memory.  Note that not all the
1115         places that call it can fail nicely without API changes; some
1116         still panic but at least some of the potential failures are now
1117         handled gracefully.
1118
1119         * tests/visual_bb.test (lpr): Stopped this from relying on
1120         external files; direct piping is much more flexible for this
1121         application.
1122
1123 2002-07-09  Don Porter <dgp@users.sf.net>
1124
1125         * generic/tkTest.c:     Removed unused dependence on TclThread_Init()
1126         * tests/defs.tcl:       and [testthread].  [Bug 578165, Tcl Bug 531413]
1127
1128 2002-07-08  David Gravereaux <davygrvy@pobox.com>
1129
1130         * unix/Makefile.in: Added missing win/lamp.bmp to the dist
1131         target.
1132
1133 2002-07-05  Jeff Hobbs  <jeffh@ActiveState.com>
1134
1135         *** 8.4b1 TAGGED FOR RELEASE ***
1136
1137 2002-07-04  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
1138
1139         * library/bgerror.tcl (bgerror): Stopped the bgerror dialog from
1140         getting wider than the screen; in theory really long messages
1141         could make it become taller than the screen now, but that's much
1142         less likely to happen.  Also trimmed a little bit of internal
1143         space so that the icon-message gap is the same as the icon-frame
1144         and message-frame gaps.
1145
1146 2002-07-01  Don Porter <dgp@users.sf.net>
1147
1148         * unix/configure:
1149         * unix/tcl.m4: Updated to latest tcl.m4 from Tcl.
1150
1151 2002-06-28  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
1152
1153         * library/msgbox.tcl (MessageBox): Force all non-button widgets to
1154         have the same background as the containing toplevel.  [Bug #552515]
1155
1156 2002-06-27  Andreas Kupries  <andreas_kupries@users.sourceforge.net>
1157
1158         * win/Makefile.in (install-binaries): Fix of troubled Makefile
1159         quoting introduced by [Patch 521356] causing the installed to
1160         fail.
1161
1162 2002-06-25  Don Porter <dgp@users.sf.net>
1163
1164         * unix/tkUnixFont.c: (Tk_DrawChars) silence compiler warning.
1165
1166 2002-06-26  David Gravereaux <davygrvy@pobox.com>
1167
1168         * generic/tkStyle.c: <eol> of the committing cvs client didn't
1169         match the <eol> of the file itself.  Windows users where getting
1170         \r\r\n.  Problem fixed.
1171
1172 2002-06-26  Anton Kovalenko <a_kovalenko@users.sourceforge.net>
1173
1174         * generic/tkFont.c (TkTextLayoutToPostscript): fixed potential
1175         buffer overflow which could be intentionally triggered from
1176         within safe interpreter -- malicious applet could modify 
1177         tk::psglyphs array.
1178
1179 2002-06-26  Anton Kovalenko <a_kovalenko@users.sourceforge.net>
1180
1181         * tests/font.test (font-32.1): updated this test
1182         to expect the new behavior of canvas postscript.
1183
1184 2002-06-25  Don Porter <dgp@users.sf.net>
1185
1186         * unix/Makefile.in:     Expanded install-binaries target to create
1187         * win/Makefile.in:      and install a pkgIndex.tcl file to enable
1188         Tk as a loadable package [Patch 521356]
1189
1190 2002-06-25  Anton Kovalenko <a_kovalenko@users.sourceforge.net>
1191
1192         * library/mkpsenc.tcl: (added) utilities to generate
1193         Postscript prolog for current system encoding.
1194         * generic/tkCanvPs.c (TkCanvPostscriptCmd): now
1195         uses mkpsenc.tcl to generate Postscript prolog.
1196         * generic/tkFont.c (TkTextLayoutToPostscript): modified
1197         according to patch #546910. Now outputs system-encoded
1198         characters (for unibyte) or Adobe glyph names (for
1199         multibyte or outside-locale).
1200         * tests/canvText.test (canvText-17.1): updated this test
1201         to expect the new behavior of canvas postscript.
1202
1203 2002-06-25  Reinhard Max  <max@suse.de>
1204
1205         * unix/tcl.m4:       New macro SC_CONFIG_MANPAGES.
1206         * unix/configure.in: Added support for symlinks and compression
1207         * unix/Makefile.in:  when installing the manpages. [Patch 518052]
1208                              Default is still hardlinks and no compression.
1209
1210         * unix/mkLinks:      generated
1211         * unix/configure:
1212
1213         * unix/README:       Added documentation for the new features.
1214
1215         * unix/configure:                  Replaced ${exec_prefix}/lib
1216         * unix/tcl.m4 (SC_PATH_TCLCONFIG): by ${libdir}.
1217
1218 2002-06-24  Mo DeJong  <mdejong@users.sourceforge.net>
1219
1220         * tests/winWm.test: Verify that both an unmapped
1221         and already mapped toplevel are raised and receive
1222         the focus when deiconified.
1223         * tests/wm.test: Add wm deiconify tests. Check that
1224         a toplevel that has never been mapped is not mapped
1225         by the deiconify command since it should be done
1226         at idle by MapFrame.
1227         * win/tkWinWm.c (Tk_WmCmd): Check the WM_NEVER_MAPPED
1228         flag while processing the wm deiconify command.
1229         The WM_UPDATE_PENDING flag should never be set when
1230         WM_NEVER_MAPPED is set, but double check so that
1231         the implementation is more explicit and matches
1232         the comment just above.
1233         Return without invoking TkWmRestackToplevel or
1234         TkSetFocusWin on a toplevel that has never been
1235         mapped. This fixes a bug where a toplevel is mapped
1236         with the wrong size and is then resized by the
1237         idle call to MapFrame. [Tk bug 233150]
1238
1239 2002-06-23  Jeff Hobbs  <jeffh@ActiveState.com>
1240
1241         * win/tkWinWm.c (UpdateGeometryInfo): remove the check for a null
1242         wrapper introduced in r1.41 on 2002-06-15 because it prevented
1243         geometry setting from taking effect if the window was not on the
1244         screen.  Another check may go in it's place as IsIconic and
1245         IsZoomed should not be passed NULL.
1246
1247 2002-06-22  Mo DeJong  <mdejong@users.sourceforge.net>
1248
1249         * tests/wm.test: Remove invalid minsize test. Add update
1250         calls to wm transient tests so that idle handlers get
1251         run. This is needed to get the tests to pass under Win32.
1252         * unix/tkUnixWm.c (WmWaitMapProc): Move the special
1253         transient withdrawn check into the if body to
1254         make it easier to set a breakpoint on this test
1255         inside a debugger. No functional changes.
1256         * win/tkWinWm.c (WmWaitVisibilityOrMapProc): Ditto.
1257
1258 2002-06-22  Jeff Hobbs  <jeffh@ActiveState.com>
1259
1260         * doc/wm.n:                   TIP #95 Windows implementation and
1261         * mac/tkMacWm.c (Tk_WmCmd):   docs with mac and unix stubs.
1262         * unix/tkUnixWm.c (Tk_WmCmd):
1263         * win/tkWinWm.c (Tk_WmCmd):
1264         * tests/unixWm.test:
1265         * tests/winWm.test: more wm attr tests will be needed.
1266
1267         * generic/tkGrid.c (GridReqProc): check that gridPtr is not NULL
1268         (may be when embedded). [Bug #548791] (halliday)
1269
1270         * generic/tkFont.c (TkFontPkgFree): changed panic on freeing fonts
1271         to an assert, and wrapped panic in #ifdef PURIFY. [Bug #568701]
1272
1273         * library/menu.tcl: corrected menus from being posted offscreen
1274         on Windows. [Bug #464451] (darley)
1275
1276         * library/console.tcl: corrected the defaultPrompt substitution
1277         [Bug #553207] and made Tab a default expansion key (like Escape).
1278
1279         * win/tkWinEmbed.c (EmbedWindowDeleted): added a check for a null
1280         containerPtr.  The core of this bug is likely elsewhere. [Bug #476176]
1281
1282         * doc/text.n:                             TIP #93 implementation that
1283         * generic/tkText.c (TextWidgetCmd):       enhances the text get and
1284         * generic/tkTextIndex.c (TkTextGetIndex): delete methods to accept
1285         * tests/text.test:                        multiple range pairs.
1286         This handles the delete case in an atomic, fixed-index fashion.
1287
1288 2002-06-21  Mo DeJong  <mdejong@users.sourceforge.net>
1289
1290         * tests/wm.test: Add tests to make sure a withdrawn
1291         transient does not get remapped by state changes
1292         in the master.
1293         * unix/tkUnixWm.c (Tk_WmCmd, WmWaitMapProc):
1294         * win/tkWinWm.c (Tk_WmCmd, WmWaitVisibilityOrMapProc):
1295         Add a WM_TRANSIENT_WITHDRAWN flag that gets set by the
1296         withdraw, deiconify, or state wm subcommands. Check
1297         this flag before mapping a transient when processing
1298         a MapNotify event. [Tk bug 570764]
1299
1300 2002-06-21  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
1301
1302         * unix/tk.spec (version), README, win/configure.in, unix/configure.in: 
1303         * generic/tk.h (TK_RELEASE_*, TK_PATCH_LEVEL): Bumped to beta1.
1304
1305 2002-06-21  Jeff Hobbs  <jeffh@ActiveState.com>
1306
1307         * doc/text.n:          TIP #104 implementation which generalizes the
1308         * generic/tkText.c:    undo/redo stack to not be tied solely to the
1309         * generic/tkText.h:    text widget.  The APIs are still private.
1310         * generic/tkUndo.c:    This also adds a stack limiting ability and
1311         * generic/tkUndo.h:    a -maxundo option to the text widget (in
1312         * library/text.tcl:    addition to the options from TIP #26) should
1313         * mac/tkMacDefault.h:  users want to limit the undo/redo stack
1314         * tests/text.test:     (should not be necessary in most cases).
1315         * unix/Makefile.in:    [Patch #554763] (callewart)
1316         * unix/tkUnixDefault.h:
1317         * win/Makefile.in:
1318         * win/makefile.vc:
1319         * win/tkWinDefault.h:
1320
1321 2002-06-21  Don Porter <dgp@users.sf.net>
1322
1323         * unix/Makefile.in:     Removed unnecessary dependence of tktest
1324         * unix/tkAppInit.c:     executable on the tcltest executable on
1325         Unix.  If there are similar dependencies on other platforms, they
1326         can probably be removed as well.  [Bug 572134].
1327
1328 2002-06-20  Jeff Hobbs  <jeffh@ActiveState.com>
1329
1330         * doc/listbox.n:
1331         * generic/tkListbox.c (DisplayListbox): 
1332         * mac/tkMacDefault.h:   TIP #94 implementation adding -activestyle
1333         * tests/listbox.test:   option to the listbox.  This adds the ability 
1334         * unix/tkUnixDefault.h: to have listboxes look native on Windows, and
1335         * win/tkWinDefault.h:   "nicer" elsewhere using the 'dotbox' style.
1336
1337 2002-06-20  Peter Spjuth  <peter.spjuth@space.se>
1338
1339         * generic/tkGrid.c: Corrected the test for grid propagate change.
1340         [Bug #571433]
1341
1342 2002-06-19  Jeff Hobbs  <jeffh@ActiveState.com>
1343
1344         * tests/panedwindow.test:
1345         * generic/tkPanedWindow.c: ensure that sash index is lower bounds
1346         checked. [Bug #548727]
1347
1348 2002-06-19  Mo DeJong  <mdejong@users.sourceforge.net>
1349
1350         * generic/tkClipboard.c (TkClipCleanup): Add code
1351         to set dispPtr->clipWindow to NULL, this was
1352         accidently removed by last commit. Fixes
1353         a crash while running the tests under win32.
1354
1355 2002-06-19  Mo DeJong  <mdejong@users.sourceforge.net>
1356
1357         * generic/tkBind.c (TkBindDeadWindow):
1358         Handle case where Tk_DestroyWindow is invoked
1359         on clipboard and send windows.
1360         * generic/tkClipboard.c (TkClipCleanup):
1361         Invoke Tk_DestroyWindow to cleanup the
1362         dispPtr->clipWindow. Call Tcl_Preserve
1363         and Tcl_Release on the window to avoid an
1364         invalid memory ref on shutdown.
1365         * generic/tkEvent.c (Tk_HandleEvent):
1366         Panic if XCreateIC is invoked twice for
1367         the same window. This should never happen,
1368         the check were just added to make sure it
1369         does not since this could lead to crashes
1370         in XCloseIM.
1371         * generic/tkFocus.c (TkFocusDeadWindow):
1372         Handle case where Tk_DestroyWindow is invoked
1373         on clipboard and send windows.
1374         * generic/tkOption.c (TkOptionDeadWindow): Ditto.
1375         * generic/tkWindow.c (TkCloseDisplay): Move
1376         deletion of dispPtr->winTable after TkpCloseDisplay
1377         call since Tk_DestroyWindow uses it and could
1378         be called by TkpCloseDisplay for clipboard/send windows.
1379         Also invoke ckfree for the dispPtr instead of
1380         doing it in TkpCloseDisplay.
1381         (Tk_DestroyWindow): Check for a null winPtr->mainPtr
1382         before doing certain cleanup tasks so the we can
1383         invoke Tk_DestroyWindow on clipboard and send windows.
1384         We need to do this so that XDestroyIC will get invoked
1385         for the input contexts of each window.
1386         * mac/tkMacXStubs.c (TkpCloseDisplay): Don't free
1387         the displayPtr since this is now done in TkCloseDisplay.
1388         * unix/tkUnixEvent.c (TkpCloseDisplay, OpenIM): Remove
1389         conditional compilation around calls to XCloseIM
1390         since I am confident that the crashes related to
1391         input contexts has been fixed. Don't free
1392         the displayPtr since this is now done in TkCloseDisplay.
1393         * unix/tkUnixSend.c (TkSendCleanup): Invoke the
1394         Tk_DestroyWindow method to cleanup the special
1395         send window. This will call XDestroyIC and thereby
1396         avoid a crash in XCloseIM. The send window needs
1397         to be Tcl_Preserve and Tcl_Release to avoid an
1398         invalid memory ref on shutdown.
1399         * win/tkWinX.c (TkpCloseDisplay): Don't free
1400         the displayPtr since this is now done in TkCloseDisplay.
1401         [Tk patch 570902]
1402
1403 2002-06-19  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
1404
1405         * generic/tkStyle.c: TIP#48 style engine.
1406         See http://purl.org/tcl/tip/48.html for details.
1407
1408         * generic/tkConfig.c (GetOptionFromObj): Split to allow for access
1409         to option tables via name as well as via object.
1410         (TkGetOptionSpec): Semi-public interface to GetOption functionality.
1411         (DoObjConfig, Tk_RestoreSavedOptions, FreeResources)
1412         (GetObjectForOption): Basic style support for configure.
1413
1414         * generic/tkWindow.c (TkCreateMainWindow, Tk_DestroyWindow): Added
1415         calls to set up and tear down the style subsystem.
1416
1417         * generic/tk.decls, generic/tk.h: Many declarations forming TIP#48
1418         public interface.
1419
1420         * generic/tkInt.decls (TkStylePkgInit,TkStylePkgFree): 
1421         * generic/tkInt.h (TkGetOptionSpec): Supporting declarations.
1422
1423         * unix/Makefile.in, win/Makefile.in, win/makefile.vc: Added
1424         tkStyle.c to list of generic source files.
1425
1426 2002-06-18  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
1427
1428         * tests/defs.tcl (makeFile): Defined the return value of this
1429         procedure to be the filename of the created file, as in the real
1430         tcltest package...
1431
1432 2002-06-17  Mo DeJong  <mdejong@users.sourceforge.net>
1433
1434         * generic/tkImage.c (Tk_ImageObjCmd, DeleteImage): Call
1435         Tcl_Preserve and Tcl_Release for the masterPtr->winPtr
1436         window to avoid accessing memory that had already
1437         been deallocated in DeleteImage.
1438
1439 2002-06-17  David Gravereaux <davygrvy@pobox.com>
1440
1441         Trims to support the removal of RESOURCE_INCLUDED from rc
1442         scripts from Tcl's accepted FR #565088.
1443
1444         * generic/tk.h: Changed RESOURCE_INCLUDED to be RC_INVOKED
1445         as the RC tool defines this already by default.
1446
1447         * win/rc/tk.rc:
1448         * win/rc/wish.rc: removed the #define RESOURCE_INCLUDED lines.
1449
1450 2002-06-17  Jeff Hobbs  <jeffh@ActiveState.com>
1451
1452         * unix/Makefile.in (dist): correct installation of
1453         wish.exe.manifest to DISTDIR target directory.
1454
1455         * generic/tkCmds.c (Tk_TkObjCmd): 
1456         * generic/tkInt.h (struct TkCaret): 
1457         * mac/tkMacXStubs.c (Tk_SetCaretPos): 
1458         * unix/tkUnixKey.c (TkpGetString, Tk_SetCaretPos): 
1459         * win/tkWinX.c (Tk_SetCaretPos): 
1460         * tests/tk.test:        Added 'tk caret' implementation of TIP#96
1461         * doc/SetCaret.3 (new): which adds a TkCaret structure element to
1462         * doc/tk.n:             TkDisplay for maintaining state.
1463
1464         * unix/tkUnixSend.c (TkSendCleanup): special cleanup of
1465         inputContext to avoid bug in XCloseIM. (dejong)
1466
1467 2002-06-17  Don Porter <dgp@users.sf.net>
1468
1469         * library/msgs/en_gb.msg:  Added catalog for UK English.
1470         Currently includes only Color -> Colour translation.
1471
1472 2002-06-17  D. Richard Hipp  <drh@hwaci.com>
1473
1474         * doc/checkbutton.n:
1475         * doc/radiobutton.n:
1476         * generic/tkButton.c:
1477         * generic/tkButton.h:
1478         * mac/tkMacButton.c:
1479         * tests/button.test:
1480         * unix/tkUnixButton.c:
1481         * win/tkWinButton.c: Implementation of TIP#82 - Added the
1482         -offrelief option to checkbutton and radiobutton.
1483
1484 2002-06-14  Mo DeJong  <mdejong@users.sourceforge.net>
1485
1486         * generic/tkWindow.c (Tk_DestroyWindow): Set the pathName
1487         component of a window to NULL after its memory has been
1488         deallocated to avoid a possible illegal memory access
1489         as a result of a call to Tk_PathName() on a Tk_Window
1490         structure of a window that has already been destroyed.
1491         [Tk bug 521946]
1492
1493 2002-06-14  Mo DeJong  <mdejong@users.sourceforge.net>
1494
1495         * generic/tkOption.c (Tk_GetOption): Allocate
1496         memory with ckalloc not malloc. This keeps
1497         Tk from erroring out when built with
1498         TCL_MEM_DEBUG.
1499
1500 2002-06-14  Jeff Hobbs  <jeffh@ActiveState.com>
1501
1502         * generic/tkBind.c (HandleEventGenerate): 
1503         * generic/tkInt.h: changed warpInProgress boolean from int to a
1504         bit in the flags variable (TK_DISPLAY_IN_WARP)
1505
1506         * generic/tkCmds.c (Tk_TkObjCmd): 
1507         * unix/tkUnixKey.c (TkpGetString): 
1508         * generic/tkEvent.c (Tk_HandleEvent): 
1509         * generic/tkInt.h: changed useInputMethods boolean from int to a
1510         bit in the flags variable (TK_DISPLAY_USE_IM)
1511
1512         * generic/tkInt.h:
1513         * generic/tkCmds.c (Tk_WmObjCmd): 
1514         * unix/tkUnixWm.c (Tk_WmCmd): 
1515         * win/tkWinWm.c (Tk_WmCmd): changed wmTracing from being an int to
1516         just a bit in the flags variable (TK_DISPLAY_WM_TRACING)
1517
1518         * generic/tkEvent.c (Tk_HandleEvent): 
1519         * unix/tkUnixEvent.c (OpenIM): 
1520         * unix/tkUnixKey.c (TkpGetString): 
1521         * generic/tkInt.h: added TK_DISPLAY_XIM_SPOT flag bit for TkDisplay
1522         and used this to allow a runtime check to see if over-the-spot XIM
1523         is possible.  If not it will try and fallback to the old-style
1524         input context, which handles things like dead keys input.
1525
1526         * generic/tk.decls:     added TIP #84 implementation that adds a
1527         * generic/tkDecls.h:    Tk_CollapseMotionEvents API which controls
1528         * generic/tkEvent.c:    Tk's collapsing of incoming motion events
1529         * generic/tkInt.h:      on its windows.  The default remains to do
1530         * generic/tkStubInit.c: collapsing.  Added a flags parameter to the
1531         * generic/tkWindow.c:   internal display structure to support this
1532         * doc/QWinEvent.3:      and be used in the future for other bits.
1533                                 [Tk patch 564642]
1534
1535         * unix/mkLinks: updated from current docs
1536
1537 2002-06-14  Mo DeJong  <mdejong@users.sourceforge.net>
1538
1539         * generic/tkEvent.c (TkXErrorHandler): Declare static
1540         function to avoid compiler error with VC++.
1541         * generic/tkBind.c (ExpandPercents): Cast argument to
1542         Tk_GetAtomName in order to avoid compiler warning.
1543
1544 2002-06-14  Joe English  <jenglish@users.sf.net>
1545
1546         * doc/bind.n:
1547         * generic/tk.h:
1548         * generic/tkBind.c:
1549         * generic/tkCanvWind.c:
1550         * generic/tkCmds.c:
1551         * generic/tkEvent.c:
1552         * generic/tkFocus.c:
1553         * generic/tkGrab.c:
1554         * generic/tkGrid.c:
1555         * generic/tkImage.c:
1556         * generic/tkPack.c:
1557         * generic/tkPlace.c:
1558         * generic/tkPointer.c:
1559         * generic/tkTextWind.c:
1560         * generic/tkWindow.c:
1561         * mac/tkMacSubwindows.c:
1562         * mac/tkMacWindowMgr.c
1563         * mac/tkMacWm.c:
1564         * unix/Makefile.in:
1565         * unix/tkUnixEmbed.c:
1566         * unix/tkUnixWm.c:
1567         * win/tkWinScrlbr.c:
1568         * win/tkWinWindow.c:
1569         * win/tkWinWm.c: Implementation of TIP #47 by Neil McKay
1570         "Modifying Tk to Allow Writing X Window managers".
1571         Add CirculateRequest, Create, MapRequest, ResizeRequest, 
1572         and ConfigureRequest event types;
1573         Split TK_TOPLEVEL flag into TK_TOPLEVEL, TK_HAS_WRAPPER,
1574         TK_WIN_MANAGED, and TK_TOP_HIERARCHY. [Tk patch 572978]
1575
1576 2002-06-14  Andreas Kupries  <andreas_kupries@users.sourceforge.net>
1577
1578         * unix/tkAppInit.c: Removed now unneeded and erroneous reference
1579           to 'matherr'. See Tcl ChangeLog entry 2002-05-31 Don Porter.
1580
1581 2002-06-14  David Gravereaux <davygrvy@pobox.com>
1582
1583         * win/rules.vc: The test for compiler optimizations was in error.
1584         Thanks goes to Roy Terry <royterry@earthlink.net> for his
1585         assistance with this.
1586
1587 2002-06-14  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
1588
1589         Implement TIP 98  [Tk patch 566765]
1590         
1591         * doc/FindPhoto.3, generic/tk.h, generic/tk.decls:
1592         * generic/tkImgPhoto.c: Changed *_Old to *_NoComposite and
1593         USE_OLD_PHOTO_PUT_BLOCK to USE_COMPOSITELESS_PHOTO_PUT_BLOCK
1594         following a suggestion from Don Porter. 
1595
1596         * tests/imgPhoto.test: Added tests of -compositingrule
1597
1598         * doc/photo.n: Added documentation for "-compositingrule".
1599         * generic/tkImgPhoto.c (ImgPhotoCmd, ParseSubcommandOptions): New
1600         "-compositingrule" option for [$photo copy] subcommand, using
1601         OPT_COMPOSITE flag and compositingRule field in SubcommandOptions
1602         structure.
1603
1604         * doc/FindPhoto.3: Documented the extra argument for the
1605         compositing rule and the action to take if anyone wants to
1606         maintain total backward-compatability.
1607
1608         * generic/tk.h (TK_PHOTO_COMPOSITE_*): Defined values for use as
1609         compositing rules. 
1610         (USE_OLD_PHOTO_PUT_BLOCK): Added a way for users to select the old
1611         interface to Tk_PhotoPutBlock to provide an easier upgrade path.
1612
1613         * generic/tk.decls: Alter Tk_PhotoPut*Block to Tk_PhotoPut*Block_Old
1614         and introduce new slots for the old name of function with an extra
1615         argument at the end for the compositing rule.
1616
1617         * generic/tkImgPhoto.c (ImgPhotoCmd): Updated "transparency set"
1618         subcommand to use TkSubtractRegion().
1619
1620         * win/tkWinRegion.c (TkSubtractRegion): 
1621         * mac/tkMacRegion.c (TkSubtractRegion): 
1622         * generic/tkInt.decls (TkSubtractRegion): 
1623         * unix/tkUnixPort.h (TkSubtractRegion): Added function to perform
1624         the set-difference operation on regions; it seems all platforms
1625         can support it, and it makes removing rectangular bits from
1626         regions much easier.
1627
1628         * generic/tkImgPPM.c (FileReadPPM): Reading a PPM/PGM always uses
1629         the SET compositing rule because it is faster and the format does
1630         not have any transparency information.
1631
1632         * generic/tkImgGIF.c (FileReadGIF): Reading a GIF always uses the
1633         SET compositing rule because GIF files model transparency as a
1634         single special colour.
1635
1636         * generic/tkImgPhoto.c (Tk_PhotoPutBlock, Tk_PhotoPutZoomedBlock):
1637         Added a compositing rule to allow better control over what happens
1638         to transparent pixels when inserting data into a photo image.
1639
1640 2002-06-13  Mo DeJong  <mdejong@users.sourceforge.net>
1641
1642         * tests/winfo.test: Add basic tests for winfo ismapped.
1643
1644 2002-06-13  Mo DeJong  <mdejong@users.sourceforge.net>
1645
1646         * tests/unixWm.test:
1647         * tests/wm.test: Move wm minsize and wm maxsize
1648         usage tests into the cross platform wm tests.
1649
1650 2002-06-13  Don Porter <dgp@users.sf.net>
1651
1652         * tests/cursor.test:  corrected error after cursor-2.2.
1653         * tests/defs.tcl: Added enhancements to Tk's fake version of
1654         tcltest required by recent cursor.test changes.
1655
1656 2002-06-13  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
1657
1658         * tests/cursor.test (cursor-2.[34]): Tests added to ensure that
1659         cursor specs really are well-behaved lists.  Also some general
1660         clean-up...
1661         * win/tkWinCursor.c (TkGetCursorByName): Undone Jeff's back-off
1662         and fixed things so that they should work now.  Cursor specs are
1663         lists first and foremost.
1664
1665 2002-06-12  Mo DeJong  <mdejong@users.sourceforge.net>
1666
1667         * changes: Clearly label wm transient changes as
1668         a POTENTIAL INCOMPATIBILITY. 
1669         * doc/wm.n: Remove "some window managers will" text
1670         and explicitly state what behavior a transient
1671         window will display. Also mention that it is an
1672         error to make a window a transient of itself.
1673
1674 2002-06-12  Mo DeJong  <mdejong@users.sourceforge.net>
1675
1676         * library/choosedir.tcl (tk::dialog::file::chooseDir):
1677         * library/clrpick.tcl (tk::dialog::file::chooseDir):
1678         * library/msgbox.tcl (tk::MessageBox):
1679         * library/tkfbox.tcl (tk::dialog::file):
1680         * library/xmfbox.tcl (tk::MotifFDialog): Remove the
1681         transient property on dialogs after they have been
1682         dismissed to insulate them from further state changes
1683         in the master. This keeps a withdrawn dialog from
1684         being mapped when the master is deiconified. [Tk patch 568278]
1685
1686 2002-06-12  Jeff Hobbs  <jeffh@ActiveState.com>
1687
1688         * win/tkWinCursor.c (TkGetCursorByName): reverted fix from
1689         2002-06-06 because it broke the ability to use built-in cursors
1690         like left_ptr.
1691
1692 2002-06-12  Mo DeJong  <mdejong@users.sourceforge.net>
1693
1694         * library/choosedir.tcl (tk::dialog::file::chooseDir):
1695         * library/clrpick.tcl (tk::dialog::color):
1696         * library/dialog.tcl (tk_dialog):
1697         * library/msgbox.tcl (tk::MessageBox):
1698         * library/tkfbox.tcl (tk::dialog::file):
1699         * library/xmfbox.tcl (tk::MotifFDialog_Create):
1700         Only make the dialog window a transient if
1701         the master is visible. This check already
1702         appeared in some of the dialogs. This patch
1703         just copies the check into those that were
1704         lacking. [Tk patch 568253]
1705
1706 2002-06-12  Mo DeJong  <mdejong@users.sourceforge.net>
1707
1708         * changes: Add note about new transient behavior.
1709         * tests/unixWm.test: Check that the WM_TRANSIENT_FOR
1710         property for a transient window is being cleared
1711         when the master is destroyed.
1712         * tests/wm.test: Source defs.tcl instead of using
1713         tcltest to match the rest of Tk's test files.
1714         Add new tests that ensure that a transient's state
1715         mirrors the state of the master.
1716         * unix/tkUnixWm.c (WmInfo, TkWmNewWindow, TkWmMapWindow,
1717         TkWmDeadWindow, Tk_WmCmd, WmWaitMapProc): Add numTransients
1718         member to WmInfo structure. Keep state of master and
1719         transient in sync using a callback that tracks MapNotify
1720         and UnmapNotify events. When the master is mapped, map
1721         the transient. When the master is unmapped or iconified,
1722         withdraw the transient.
1723         * win/tkWinWm.c (TkWmMapWindow, TkpWmSetState,
1724         TkWmDeadWindow, Tk_WmCmd, WmWaitVisibilityOrMapProc):
1725         Keep state of master and transient in sync using a
1726         callback that tracks MapNotify and UnmapNotify events.
1727         Move masterPtr check from TkpWmSetState into TkWmMapWindow
1728         to deal with WM_NEVER_MAPPED transients. Cleanup
1729         numTransients and the callback in TkWmDeadWindow.
1730         Cleanup numTransients and the callback only after
1731         deleting a master in wm transient command to avoid
1732         deleting the callback when an error is raised.
1733         Add support for MapNotify and UnmapNotify events
1734         to the master callback. [Tk patch 561708]
1735
1736 2002-06-11  Joe English  <jenglish@users.sf.net>
1737
1738         * library/menu.tcl: fix for bug report #530212 "Bad Window Path 
1739           Name in tkMenuFind"
1740
1741 2002-06-10  David Gravereaux <davygrvy@pobox.com>
1742
1743         * win/makefile.vc: Fixed a win98 issue where the /exclude option
1744         for xcopy is unsupported.
1745         Reported by Roy Terry <royterry@earthlink.net>.
1746
1747 2002-06-10  Anton Kovalenko <a_kovalenko@users.sourceforge.net>
1748
1749         * library/tk.tcl: added utility functions to get "-underline" and 
1750         "-text" for labels and buttons from translatable string containing 
1751         "magic ampersand" [patch #566605]
1752         * library/clrpick.tcl:
1753         * library/msgbox.tcl:
1754         * library/tkfbox.tcl:
1755         * library/xmfbox.tcl: some places where msgcat is used to get
1756         translated label are modified to handle labels with magic ampersand.
1757         * library/msgs/ru.msg: russian translations added
1758         * library/msgs/cs.msg:
1759         * library/msgs/de.msg:
1760         * library/msgs/el.msg: 
1761         * library/msgs/es.msg:
1762         * library/msgs/fr.msg:
1763         * library/msgs/it.msg:
1764         * library/msgs/nl.msg: all translation files now have labels with
1765         'magic ampersand' where appropriate. In el.msg some ampersands are
1766         missing, as I don't know which underline positions seems natural
1767         to "el" users.
1768
1769 2002-06-09  Mo DeJong  <mdejong@users.sourceforge.net>
1770
1771         * library/bgerror.tcl (tk::dialog::error::bgerror):
1772         Don't set the bgerror dialog as a transient of
1773         itself since this operation is ill defined.
1774
1775 2002-06-06  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
1776
1777         * win/tkWinCursor.c (TkGetCursorByName): Fixed so that the reading
1778         of cursors from a file with a cursor spec was built using [list]
1779         works when the file has a space in instead of requiring fiddling
1780         with backslashes.
1781
1782 2002-06-06  Anton Kovalenko <a_kovalenko@users.sourceforge.net>
1783
1784         * library/msgbox.tcl (MessageBox): Add -default normal
1785         when creating non-default buttons for message box.
1786         They already get -default normal when they're 
1787         unfocused, and dialog window size used to change suddenly
1788         in such cases.
1789
1790 2002-06-05  Anton Kovalenko <a_kovalenko@users.sourceforge.net>
1791
1792         * unix/tkUnixFont.c (Tk_DrawChars): Don't assume that
1793         one char is always one byte, and that required 
1794         subfont for the last character in any string is 
1795         the same as for the previous character 
1796         [Bug #559435] [Patch #559437]
1797
1798 2002-05-27  Mo DeJong  <mdejong@users.sourceforge.net>
1799
1800         * changes: Document [wm transient .t .t] error.
1801         * tests/wm.test: Check that setting a window
1802         as a transient of itself raises an error. Check
1803         that passing a non-toplevel window to the wm
1804         transient command uses the enclosing toplevel.
1805         * unix/tkUnixWm.c (Tk_WmCmd): Raise an error
1806         if the user tries to make a toplevel a
1807         transient of itself.
1808         * win/tkWinWm.c (Tk_WmCmd): Raise an error
1809         if the user tries to make a toplevel a
1810         transient of itself. Test for other error
1811         before checking for the transient self error.
1812
1813 2002-05-27  Mo DeJong  <mdejong@users.sourceforge.net>
1814
1815         * unix/tkUnixWm.c (WmInfo, TkWmCleanup, TkWmNewWindow,
1816         TkWmMapWindow, TkWmDeadWindow, Tk_WmCmd): Replace
1817         WmInfo's master and masterWindowName members with
1818         a masterPtr member. This implementation is much
1819         simpler and mirrors the Win32 implementation. This
1820         change makes it easy to check the flags of the
1821         master window. No user visible changes.
1822
1823 2002-05-27  Mo DeJong  <mdejong@users.sourceforge.net>
1824
1825         * generic/tkInt.decls: Add unix decl for TkpWmSetState.
1826         * generic/tkIntPlatDecls.h: Regen.
1827         * generic/tkStubInit.c: Regen.
1828         * tests/wm.test: Test state changes between iconic,
1829         normal, and withdrawn both before and after initial
1830         mapping.
1831         * unix/tkUnixWm.c (Tk_WmCmd, TkpWmSetState): Move
1832         state change code into TkpWmSetState to more closely
1833         match the Win32 implementation. No user visible changes.
1834
1835 2002-05-27  Mo DeJong  <mdejong@users.sourceforge.net>
1836
1837         * tests/embed.test: Added cross platform embed tests.
1838         Check that window passed to -use has the -container
1839         option set.
1840         * tests/wm.test: Remove useless catch call. Deiconify
1841         . just in case, stackorder tests will not pass unless
1842         it is in the normal state. Add -container flag to
1843         embedded stackorder test.
1844         * unix/tkUnixEmbed.c (TkpUseWindow):
1845         * win/tkWinEmbed.c (TkpUseWindow): Lookup Tk window
1846         based on the id passed in as the value for -use.
1847         Generate an error if the Tk window did not have
1848         the -container option set.
1849
1850 2002-05-26  Peter Spjuth <peter.spjuth@space.se>
1851
1852         * generic/tkButton.c (ConfigureButton): When creating
1853         a radiobutton with -value "" it was not drawn properly
1854         if the -variable was created by the radiobutton.
1855         [Bug #548765]
1856
1857 2002-05-26  Peter Spjuth <peter.spjuth@space.se>
1858
1859         * generic/tkCanvText.c (ComputeTextBbox): Negative
1860         coordinates were rounded badly causing a 1 pixel
1861         displacement. [Bug #556526]
1862         
1863 2002-05-24  Mo DeJong  <mdejong@users.sourceforge.net>
1864
1865         * mac/tkMacWm.c (Tk_WmCmd):
1866         * tests/unixWm.test: Move wm transient checks over
1867         to wm.test so they will be run on all systems.
1868         * tests/wm.test: Add tests to check for error when
1869         an iconwindow is passed to the wm transient command.
1870         * unix/tkUnixWm.c (Tk_WmCmd):
1871         * win/tkWinWm.c (Tk_WmCmd): Raise an error if one
1872         of the windows passed to the wm transient command
1873         is an iconwindow for another toplevel.
1874
1875 2002-05-23  Mo DeJong  <mdejong@users.sourceforge.net>
1876
1877         * mac/tkMacWm.c (TkWmStackorderToplevelWrapperMap):
1878         * tests/wm.test: Add embedded Window test case for
1879         the stackorder command.
1880         * unix/tkUnixWm.c (TkWmStackorderToplevelWrapperMap):
1881         * win/tkWinWm.c (TkWmStackorderToplevelWrapperMap):
1882         Ignore embedded windows during wm stackorder command.
1883
1884 2002-05-21  Mo DeJong  <mdejong@users.sourceforge.net>
1885
1886         * unix/configure: Regen.
1887         * unix/configure.in: Invoke SC_ENABLE_SHARED before
1888         calling SC_CONFIG_CFLAGS so that the SHARED_BUILD
1889         variable can be checked inside SC_CONFIG_CFLAGS.
1890         * unix/tcl.m4: Update from Tcl.
1891
1892 2002-05-20  Don Porter  <dgp@users.sourceforge.net>
1893
1894         * library/tk.tcl:  A little namespace cleanup on Daniel Steffen's
1895         latest revisions to avoid defining new global commands.
1896
1897 2002-05-20  Daniel Steffen  <das@users.sourceforge.net>
1898
1899         * mac/tkMacInit.c:
1900         * mac/tkMacTclCode.r: include msgcat package in resources
1901         as bgerror depends on it. Restores ability of mac static
1902         build to run standalone (except for encoding file issues).
1903
1904         * mac/tkMacInit.c:
1905         * library/console.tcl:
1906         * library/tk.tcl: fix tk.tcl not sourcing library files
1907         that define bindings at startup on mac. (independent of
1908         tk library files being in resources or on auto_path)
1909
1910 2002-05-08  Don Porter  <dgp@users.sourceforge.net>
1911
1912         * library/bgerror.tcl:
1913         * library/tclIndex:  Cleaned up namespace usage of the bgerror
1914         dialog.  Completes soft dependence on msgcat.  [FR 539309]
1915
1916 2002-05-07  David Gravereaux  <davygrvy@pobox.com>
1917         * win/makefile.vc: Problem with TCLDIR macro not accepting
1918         forward slash path seperators resolved.  Added the same logic
1919         to INSTALLDIR, too. [Bug #553208]
1920
1921 2002-04-26  Jeff Hobbs  <jeffh@ActiveState.com>
1922
1923         * unix/configure:
1924         * unix/tcl.m4: change HP-11 SHLIB_LD_LIBS from "" to ${LIBS} so
1925         that the .sl knows its dependent libs.
1926
1927 2002-04-24  Daniel Steffen  <das@users.sourceforge.net>
1928
1929         * mac/tkMacTclCode.r:
1930         * mac/tkMacResource.r: added check of
1931         TCLTK_NO_LIBRARY_TEXT_RESOURCES #define to allow disabling the
1932         inclusion of the tk library code in the resource fork of Tk
1933         executables and shared libraries.
1934         Moved tk library code inclusion to separate file like in tcl.
1935         Added 'panedwindow' resource.
1936
1937 2002-04-22  Jeff Hobbs  <jeffh@ActiveState.com>
1938
1939         * library/button.tcl (ButtonLeave): corrected the 3
1940         implementations of ButtonLeave to check for Priv(relief) existing
1941         before trying to use it. [Patch #541849]
1942
1943         * generic/tkTextDisp.c (DisplayLineBackground): 
1944         * unix/tkUnix3d.c (Tk_3DHorizontalBevel): 
1945         * unix/tkUnixFont.c (Tk_DrawChars): applied fixes to not overrun
1946         the X window 16-bit size limit. [Patch #541999] (bonfield)
1947
1948 2002-04-22  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
1949
1950         * generic/tkTextDisp.c (GetXView, GetYView): Comparison with
1951         previous values of scrollbar range are now done in a way that is
1952         sensitive to the bizarreness of floating-point on architectures
1953         where IEEE-FP is not used on the processor.  Also increased the
1954         size of the temporary buffer to take account of the fact that
1955         TCL_DOUBLE_SPACE is meant to only imply enough space to take a
1956         printed double and trailing '\0', and no more.  [Bug #223739]
1957         (FP_EQUAL_SCALE): New macro to help compare floating-point numbers
1958         for equality in a sane way, used in GetXView and GetYView.
1959
1960 2002-04-12  Jeff Hobbs  <jeffh@ActiveState.com>
1961
1962         * generic/tkWindow.c (TkCloseDisplay): Added to centralize where a
1963         display was closed.  This handles freeing memory associated with a
1964         display and closing it.
1965         (DeleteWindowsExitProc): actually close displays.  This would also
1966         ideally be done in Tk_DestroyWindow when the last window on the
1967         display has been closed, but that still has unresolved order of
1968         cleanup problems.
1969         (Tk_DestroyWindow): added TkFocusFree call.
1970
1971         * generic/tkStubInit.c:
1972         * generic/tkIntPlatDecls.h:
1973         * generic/tkIntDecls.h:
1974         * generic/tkInt.decls: added TkFocusFree, TkClipCleanup and
1975         TkGCCleanup generic private procs, and TkWmCleanup, TkSendCleanup
1976         and TkFreeXId unix private procs.
1977
1978         * generic/tkInt.h:
1979         * unix/tkUnixXId.c (TkFreeXId): frees XID resources.
1980         Made idCleanupScheduled a Tcl_TimerToken (was int) in TkDisplay
1981         structure to allow us to delete the timer scheduled for it.
1982
1983         * unix/tkUnixWm.c (TkWmStackorderToplevel): ensure children
1984         structure is freed.
1985         (ConfigureEvent, ComputeReparentGeometry): Add extra wm tracing info
1986         (TkWmRestackToplevel): initialize changes to 0 to prevent UMR.
1987         Use WaitForConfigureNotify on all windows.  This part still
1988         requires fixing as it is the root of the 2 second raise delay on
1989         some window managers (those that use extra wrapper windows of
1990         their own).
1991
1992         * unix/tkUnixSend.c (TkSendCleanup): free send-related resources
1993
1994         * unix/tkUnixEvent.c (TkpCloseDisplay): call TkSendCleanup and
1995         TkWmCleanup.
1996
1997         * unix/tkUnixSelect.c (SelRcvIncrProc): added missing Tcl_Release
1998         of interp
1999
2000         * generic/tkGet.c (FreeUidThreadExitProc): free thread-specific
2001         resources on thread exit
2002
2003         * generic/tkFocus.c (TkFocusFree): frees TkMainInfo data
2004         * generic/tkClipboard.c (TkClipCleanup): frees TkDisplay data
2005         * generic/tkGC.c (TkGCCleanup): frees TkDisplay data
2006
2007         * unix/tkUnixFont.c (FontPkgCleanup): cleanup thread specific font
2008         resources on thread exit.
2009
2010         * mac/tkMacXStubs.c (TkpOpenDisplay): memset the initial display
2011         structures to 0.
2012
2013         * generic/tkOption.c (OptionThreadExitProc): freed tsd option
2014         stacks on thread exit.
2015         (Tk_GetOption): free mem used to get Tk_Uid
2016
2017         * generic/tkMenu.c (ConfigureMenu): freed saved options in all
2018         error cases.
2019
2020         * win/tkWinInt.h: declaration for TkWinGetUnicodeEncoding
2021         * win/tkWinDialog.c (GetFileNameW): use TkWinGetUnicodeEncoding
2022         * win/tkWinInit.c (TkpDisplayWarning): use TkWinGetUnicodeEncoding
2023         * win/tkWinFont.c: use TkWinGetUnicodeEncoding instead of static
2024         unicodeEncoding.
2025
2026         * win/tkWinX.c (Tk_SetCaretPos): remove WM_IME_STARTCOMPOSITION
2027         and place the IME position within Tk_SetCaretPos.  Cache results in
2028         Tk_SetCaretPos to reduce unnecessary repositioning.  Also call
2029         DestroyCaret if we receive WM_KILLFOCUS.
2030         (TkpOpenDisplay): ZeroMemory the initial display structures.
2031         (TkWinGetUnicodeEncoding): Added so that Windows only needs to
2032         cache this value one, and then free it in TkWinXCleanup.
2033         (HandleIMEComposition): add support for Win98 and ATOK13
2034         IME. (yamamoto)
2035
2036         * generic/tkConsole.c (ConsoleCmd): correct return that should
2037         have just set result code.
2038
2039         * generic/tkImgPhoto.c: Added PhotoFormatThreadExitProc to clean
2040         up on thread exit. (Tk_PhotoPutBlock) slight code updates
2041
2042         * generic/tkPanedWindow.c (DestroyPanedWindow, ConfigureSlaves):
2043         fix mem leaks in not freeing slave info
2044
2045         * win/configure:
2046         * win/tcl.m4: Enabled COFF as well as CV style debug info with
2047         --enable-symbols to allow Dr. Watson users to see function info.
2048         More info on debugging levels can be obtained at:
2049         http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
2050
2051 2002-04-10  Mo DeJong  <mdejong@users.sourceforge.net>
2052
2053         * doc/wm.n:
2054         * mac/tkMacWm.c:
2055         * tests/wm.test:
2056         * unix/tkUnixWm.c:
2057         * win/tkWinWm.c: Update wm stackorder usage message
2058         to make it clear that either 1 or 3 arguments are
2059         required. [Bug 540013]
2060
2061 2002-04-08  Daniel Steffen  <das@users.sourceforge.net>
2062
2063         * mac/tkMacProjects.sea.hqx: added tkPanedWindow.c to projects
2064         * mac/tkMacAppInit.c: fixes to MSL stdin/stdout hookup to the
2065         TkConsole when using shared MSL libraries; fix for crashing
2066         bug on exit: writing to stdin/sterr when console has already
2067         been destroyed. (both fixes need support in MSL, see 
2068         'CW Pro6 changes' in tcl/mac/tcltkMacBuildSupport.sea.hqx)
2069         * mac/tkMacDialog.c: fixes to Navigation Services Dialog filter.
2070         * mac/tkMacDraw.c: add panic for overwide TkImages that would
2071         crash Tk on mac otherwise.
2072
2073 2002-04-05  Jeff Hobbs  <jeffh@ActiveState.com>
2074
2075         * mac/tkMacXStubs.c: added Tk_SetCaretPos stub (does nothing).
2076         * win/tkWinX.c: added Tk_SetCaretPos code to position IME windows
2077         correctly when WM_IME_STARTCOMPOSITION is received.
2078         * unix/tkUnixKey.c: added Tk_SetCaretPos and code for setting
2079         XIM caret in TkpGetString.
2080
2081         * generic/tkStubInit.c:
2082         * generic/tkDecls.h:
2083         * generic/tk.decls: added Tk_SetCaretPos declaration.  This command
2084         allows users to indicate the cursor position and is used by XIM
2085         (Unix) or IME (Windows) to place the caret box correctly.  It is
2086         also part of correct Accessibility style on Windows to make the
2087         magnifier jump to the focus point.
2088
2089         * win/tkWinButton.c (TkpDisplayButton): 
2090         * generic/tkTextMark.c (TkTextInsertDisplayProc):
2091         * generic/tkCanvText.c (DisplayCanvText):
2092         * generic/tkEntry.c (DisplayEntry): added Tk_SetCaretPos calls
2093
2094         * generic/tkInt.h: added TK_XIM_SPOT #define (default 1).
2095         Added XFontSet attribute to TkDisplay when TK_XIM_SPOT is true.
2096         * generic/tkEvent.c (Tk_HandleEvent): made sure inputContexts are
2097         not getting created on DestroyNotify events (for dead windows).
2098         Added over-the-spot support if TK_XIM_SPOT is defined (default).
2099         The is the nicer XIM behavior, but uses a bit more memory.
2100
2101         * unix/tkUnixEvent.c:
2102         * generic/tkWindow.c: moved OpenIM over to tkUnixEvent.c.
2103         Removed setting inputContext to null in Tk_MakeWindowExist as it
2104         was redundant.
2105
2106         * unix/tkUnixWm.c (CreateWrapper): Removed redundat setting of
2107         inputContext to null.
2108
2109         * win/Makefile.in: changed gdb and shell targets to properly build
2110         all binaries before running (otherwise an error often occured).
2111
2112 2002-03-28  David Gravereaux <davygrvy@pobox.com>
2113
2114         * win/.cvsignore (new):
2115         * win/lamp.bmp (new):
2116         * win/makefile.vc:
2117         * win/nmakehlp.c (new):
2118         * win/rules.vc:  Brought the makefile up-to-date with Tcl's one.
2119         This now has support for Win9x issues and the winhelp target now
2120         exists.  Color scheme can be changed.  I'm just imparting a first
2121         suggestion using orange :)  I'll have to think about the install
2122         portion of the helpfile as I'll need to do some tricks to insert
2123         tk's contents file into Tcl's using some special winhlp32.exe
2124         switches.  [Bug 533862 527941]
2125
2126         * win/makefile.vc:  Tk helpfile is now installing itself into Tcl's
2127         contents file as part of the install target and rebuilding the
2128         contents table as desired.  [Bug 527941]
2129
2130         * doc/console.n:  Changed topic from "Tcl Built-In Commands" to
2131         "Tk Built-In Commands"
2132
2133         * win/buildall.vc.bat:  Update to match Tcl.
2134
2135 2002-03-26  Andreas Kupries  <andreask_kupries@users.sourceforge.net>
2136
2137         * unix/tkUnixFont.c: Added inclusion of <arpa/inet.h>. This fixes
2138           a GCC/HPUX problem with missing a "htons". See also
2139           "tclUnixPort.h" for equivalent code.
2140
2141 2002-03-21  David Gravereaux <davygrvy@pobox.com>
2142
2143         * win/makefile.vc: Changed optimize flag to -0ti instead of -02.
2144         [Bug 528441]
2145
2146 2002-03-20  Don Porter  <dgp@users.sourceforge.net>
2147
2148         * generic/tkButton.c (ButtonTextVarProc,ButtonVarProc): 
2149         * generic/tkCmds.c (WaitVariableProc):
2150         * generic/tkEntry.c (EntryTextVarProc):
2151         * generic/tkListbox.c (ListboxListVarProc):
2152         * generic/tkMenu.c (MenuVarProc):
2153         * generic/tkMenubutton.c (MenuButtonTextVarProc): 
2154         * generic/tkMessage.c (MessageTextVarProc): 
2155         * generic/tkScale.c (ScaleVarProc): Updates to handle change in
2156         type of part2 argument of Tcl_VarTraceProc typedef. [TIP 27]
2157         [Patch 532644].
2158
2159 2002-03-19  Jeff Hobbs  <jeffh@ActiveState.com>
2160
2161         * generic/tkOldConfig.c (Tk_ConfigureValue): prevent leaving
2162         interp->result as NULL.
2163
2164 2002-03-07  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
2165
2166         * library/text.tcl (TextPasteSelection): Renaming of TextPaste to
2167         prevent confusion with tk_textPaste.  Stopped code from inserting
2168         selections twice, which seems to have happened with TIP#26, and
2169         reorganized code to reduce amount of stuff protected by catch
2170         which is tricky to maintain.
2171         (tk_textPaste): Reduce amount of code protected by catch.
2172
2173 2002-03-06  Mo DeJong  <mdejong@users.sourceforge.net>
2174
2175         * win/tkWinX.c: Define _WIN32_IE as 0x0300
2176         before including commctrl.h so that we can
2177         access the InitCommonControlsEx API when
2178         building Tk with mingw.
2179
2180 2002-03-06  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
2181
2182         * README, generic/tk.h, unix/configure.in, unix/tk.spec:
2183         * win/configure.in: Bumped patchlevel; this might need to change
2184         in the future, but it will help us distinguish between the CVS
2185         version and the most recent released version.
2186
2187 2002-03-05  Jeff Hobbs  <jeffh@ActiveState.com>
2188
2189         *** 8.4a4 TAGGED FOR RELEASE ***
2190
2191         * unix/README: updated --* options docs.
2192
2193         * unix/tk.spec: fixed URL refs to use www.tcl.tk or SF.
2194
2195 2002-03-04  Jeff Hobbs  <jeffh@ActiveState.com>
2196
2197         * README: 
2198         * mac/README: 
2199         * unix/README: 
2200         * win/README: updated to use www.tcl.tk URL.
2201
2202 2002-03-03  Jeff Hobbs  <jeffh@ActiveState.com>
2203
2204         * library/entry.tcl: added catch around Triple-1 binding use of
2205         sel.last
2206
2207 2002-02-28  Don Porter  <dgp@users.sourceforge.net>
2208
2209         * library/console.tcl (ConsoleBind): Corrected console <<Paste>>
2210         binding on Unix platforms.
2211
2212 2002-02-26  Jeff Hobbs  <jeffh@ActiveState.com>
2213
2214         * unix/configure: Regen.
2215         * unix/tcl.m4: Update from Tcl.
2216
2217         * generic/tkWindow.c (Tk_MainWindow, Tk_GetNumMainWindows):
2218         protect against being called before Tcl stubs are init'ed.
2219         [Bug #220916] (porter)
2220
2221 2002-02-25  Jeff Hobbs  <jeffh@ActiveState.com>
2222
2223         * generic/tkText.c (ConfigureText): reenable the blinking cursor
2224         on state change where necessary. [Bug #503772]
2225
2226         * tests/listbox.test:
2227         * generic/tkListbox.c: corrected error handling when setting to an
2228         invalid listvar value. [Bug #503613]
2229
2230         * library/scale.tcl: mirror B2 bindings to B3 on Windows to better
2231         accomodate two button mice. [Patch #493145]
2232
2233         * library/panedwindow.tcl: improved proxy sash handling. (boudaillier)
2234
2235 2002-02-25  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
2236
2237         * tests/filebox.test: Reorganised and fixed so that tests are
2238         executed fewer times (!) and the automatic extension adding
2239         behaviour of tk_getSaveFile is tested.
2240
2241 2002-02-23  Mo DeJong  <mdejong@users.sourceforge.net>
2242
2243         * unix/configure: Regen.
2244         * unix/tcl.m4: Update from Tcl.
2245
2246 2002-02-22  Jeff Hobbs  <jeffh@ActiveState.com>
2247
2248         * generic/tkPanedWindow.c (PanedWindowWidgetObjCmd): fixed returns
2249         that should have been breaks instead.  Corrected .pw configure
2250         handling for insufficient args.  [Patch #521436] (boudaillier)
2251
2252         * mac/tkMacDefault.h:
2253         * unix/tkUnixDefault.h:
2254         * win/tkWinDefault.h: changed panedwindow default relief to flat,
2255         a more natural outer relief.
2256
2257         * library/panedwindow.tcl (ReleaseSash): changed to not pass x and
2258         y args at all (they aren't used).
2259         Added proc comments.  Made configuring sash cursor more efficient.
2260         Added Cursor timer that restores the default cursor when pointer
2261         is no longer over the sash.  This is necessary because Leave
2262         events won't be seen when moving into a paned child.
2263
2264 2002-02-22  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
2265
2266         * library/demos/widget: New section "Paned Windows"
2267         * library/demos/paned2.tcl, library/demos/paned1.tcl: New files.
2268
2269         * library/panedwindow.tcl (ReleaseSash): Added missing arguments.
2270         * library/tk.tcl: Bindings for paned window were not being loaded
2271         by default.
2272
2273         * unix/tkUnixMenu.c (GetMenuLabelGeometry,DrawMenuEntryLabel):
2274         Stop meaningless GCC warnings.
2275
2276 2002-02-21  Jeff Hobbs  <jeffh@ActiveState.com>
2277
2278         * doc/panedwindow.n (new):
2279         * generic/tkPanedWindow.c (new):
2280         * generic/tkInt.h:
2281         * generic/tkWindow.c:
2282         * library/panedwindow.tcl (new):
2283         * mac/tkMacDefault.h:
2284         * tests/panedwindow.test (new):
2285         * unix/Makefile.in:
2286         * unix/tkUnixDefault.h:
2287         * win/Makefile.in:
2288         * win/makefile.vc:
2289         * win/tkWinDefault.h: added implementation of TIP #41, panedwindow
2290         widget. [Patch #512503] (melski)
2291
2292         * generic/tkOption.c (ReadOptionFile): fixed Tcl_Seek casting to
2293         remove warnings (we expect no option files with be > 2GB).
2294
2295         * unix/configure: regenerated
2296         * unix/tcl.m4: updated to sync with Tcl's tcl.m4
2297         Added --enable-64bit support for AIX-4 using IBM's xlc (-q64 flag).
2298
2299 2002-02-19  Don Porter  <dgp@users.sourceforge.net>
2300
2301         * changes: First draft of updated changes for 8.4a4 release.
2302
2303 2002-02-19  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
2304
2305         * generic/tkImgPhoto.c (MatchFileFormat):  Tcl_Seek takes
2306         Tcl_WideInt offset (three places.)
2307         * generic/tkImgPPM.c (FileReadPPM): Tcl_Seek takes Tcl_WideInt offset.
2308         * generic/tkFrame.c (ConfigureFrame): Stop GCC warning.
2309
2310         * generic/tkImgGIF.c: Made file meet the formatting rules from the
2311         Tcl Engineering Manual better; mostly differences in whitespace.
2312
2313 2002-02-18  Jeff Hobbs  <jeffh@ActiveState.com>
2314
2315         * unix/configure: regen'd
2316         * unix/tcl.m4:
2317         * unix/configure.in: added macros and calls to SC_TCL_EARLY_FLAGS
2318         and SC_TCL_64BIT_FLAGS, part of TIP #72.
2319
2320 2002-02-14  Mo DeJong  <mdejong@users.sourceforge.net>
2321
2322         * library/entry.tcl:
2323         * library/text.tcl: Adjust <Double-1> and <Triple-1> bindings
2324         so that no anchor point is set and the insertion cursor is
2325         set to the last character in the selection. [Bug 220943]
2326         * tests/event.test: Add test cases for double click and
2327         drag as well as triple click and drag in the text and
2328         entry widgets.
2329
2330 2002-02-14  Mo DeJong  <mdejong@users.sourceforge.net>
2331
2332         * tests/event.test (_text_ind_to_x_y, _get_selection): Fix
2333         incorrect use of results from bbox invocation so that
2334         y center point for a give index is calculated correctly.
2335         Add new method to return the selection and use it in
2336         test cases. Always lappend to the result list to avoid
2337         case where initial result includes a space.
2338
2339 2002-02-07  Don Porter  <dgp@users.sourceforge.net>
2340
2341         * generic/tkMain.c:
2342         * mac/tkMacInit.c:
2343         * mac/tkMacKeyboard.c:
2344         * win/tkWinDialog.c:
2345         * win/tkWinTest.c: modified some callers of Tcl routines that
2346         were restored to return (char *) pointing into Tcl_DStrings.
2347
2348 2002-02-03  eric melski  <ericm@interwoven.com>
2349
2350         * generic/tkImage.c (Tk_ImageObjCmd): Clean up bogus for loop in
2351         [image inuse] subcommand [Bug #485803].
2352
2353 2002-02-01  Jeff Hobbs  <jeffh@ActiveState.com>
2354
2355         * generic/tkCmds.c (Tk_TkObjCmd): don't use 'bool' as an arg as it
2356         conflicts with the C99 spec. [Bug #511956] (ingham)
2357
2358 2002-02-01  David Gravereaux <davygrvy@pobox.com>
2359
2360         * win/makefile.vc: unset macro located in the tktest target
2361         caused a failure to build.  [Bug 511652]
2362
2363 2002-01-30  Don Porter  <dgp@users.sourceforge.net>
2364
2365         * win/stubs.c (XSetCommand):  Overlooked CONSTification.
2366
2367 2002-02-01  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
2368
2369         * doc/photo.n: Documented transparency subcommand.
2370         * tests/imgPhoto.test (imgPhoto-4.40...imgPhoto-4.68): Tests for
2371         the transparency subcommand.
2372         * generic/tkImgPhoto.c (ImgPhotoCmd): Added transparency
2373         subcommand (see TIP #14.)
2374
2375 2002-01-31  Todd Helfter <tmh@users.sourceforge.net>
2376         * generic/tkMenu.c (ConfigureMenuCloneEntries)
2377         * tests/menu.test (menu3.68)
2378         Correct and test for logic error when cloning menus. [Bug #508988]
2379
2380 2002-01-30  Don Porter  <dgp@users.sourceforge.net>
2381
2382         * generic/tk.decls:  The POTENTIAL INCOMPATIBILITY in the changing
2383         interface of Tk_ParseArgv can now be removed by the -DUSE_NON_CONST
2384         compiler flag.
2385         * generic/tkDecls.h: make genstubs
2386
2387 2002-01-29  Andreas Kupries  <andreas_kupries@users.sourceforge.net>
2388
2389         * win/tkWinInit.c (TkpGetAppName): TIP 27 fixup. The code now does
2390           not write into the CONST path returned by "argv0" and
2391           Tcl_SplitPath anymore.
2392
2393 2002-01-28  Mo DeJong  <mdejong@users.sourceforge.net>
2394
2395         * unix/configure: Regen.
2396         * unix/configure.in: Don't set TCL_LIB_SPEC and
2397         TCL_STUB_LIB_SPEC variables since this breaks
2398         the AIX build. This was used in the past to
2399         support linking with Tcl from the build dir
2400         or the install dir, but it is no longer needed.
2401
2402 2002-01-28  Mo DeJong  <mdejong@users.sourceforge.net>
2403
2404         * unix/Makefile.in: Remove commented out vars.
2405         * unix/configure: Regen.
2406         * unix/configure.in: Don't subst vars that are already
2407         taken care of in SC_LOAD_TCLCONFIG.
2408         * unix/tcl.m4: Update from Tcl.
2409         * win/configure: Regen.
2410         * win/tcl.m4: Update from Tcl.
2411
2412 2001-01-27  Daniel Steffen  <das@users.sourceforge.net>
2413
2414         * generic/tkFileFilter.c:
2415         * mac/tkMacInit.c:
2416         * mac/tkMacKeyboard.c:
2417         * mac/tkMacMenus.c: TIP 27 CONSTification induced changes
2418
2419 2002-01-25  Don Porter  <dgp@users.sourceforge.net>
2420
2421         * All changes below are Patch 505159
2422
2423         * doc/AddOption.3:
2424         * doc/CanvTkWin.3:
2425         * doc/GetPixels.3:
2426         * doc/Name.3:
2427         * doc/ParseArgv.3:
2428         * generic/tk.decls (Tk_AddOption,Tk_CanvasGetCoord,Tk_GetPixels,
2429           Tk_GetScreenMM,Tk_NameToWindow,Tk_ParseArgv):
2430         * generic/tkArgv.c (Tk_ParseArgv):
2431         * generic/tkCanvLine.c (ParseArrowShape):
2432         * generic/tkCanvUtil.c (Tk_CanvasGetCoord,Tk_CanvasTagsParseProc,
2433           Tk_CanvasTagsPrintProc,Tk_GetDash):
2434         * generic/tkCanvas.c (ConfigureCanvas):
2435         * generic/tkGet.c (Tk_GetPixels,Tk_GetScreenMM):
2436         * generic/tkImgPhoto.c (ImgPhotoCmd):
2437         * generic/tkMain.c (Tk_MainEx):
2438         * generic/tkOldConfig.c (FormatConfigInfo):
2439         * generic/tkOption.c (Tk_AddOption):
2440         * generic/tkText.c (TextWidgetCmd,TkTextGetTabs,DumpSegment):
2441         * generic/tkText.h (TkTextCreateTag):
2442         * generic/tkTextTag.c (TkTextCreateTag):
2443         * generic/tkWindow.c (Tk_NameToWindow,Initialize):
2444         * mac/tkMacCursor.c (FindCursorByName,TkGetCursorByName):
2445         * mac/tkMacWm.c (Tk_WmCmd):
2446         * unix/tkUnixCursor.c (TkGetCursorByName):
2447         * unix/tkUnixSend.c (ValidateName):
2448         * unix/tkUnixWm.c (Tk_WmCmd):
2449         * win/tkWinCursor.c (TkGetCursorByName):
2450         * win/tkWinWm.c (Tk_WmCmd): Updated callers of Tcl_SplitList and
2451         Tcl_Merge.
2452         * generic/tkDecls.h: make genstubs
2453         ***POTENTIAL INCOMPATIBILITY***
2454         Includes a source incompatibility in the argv argument of Tcl_ParseArgv.
2455
2456         * generic/tkBind.c (DeleteVirtualEvent):
2457         * generic/tkCanvas.c (ScrollFractions, CanvasWidgetCmd,
2458           CanvasUpdateScrollbars):
2459         * generic/tkTestTag.c (TkTextTagCmd): Updated callers of
2460         Tcl_GetStringResult.  Rewrote PrintScrollFractions to
2461         ScrollFractions to stop scribbling directly on interp->result.
2462
2463         * generic/tkInt.decls (TkGetDefaultScreenName, TkpDisplayWarning,
2464           TkpOpenDisplay):
2465         * generic/tkCanvPs.c (Tk_PostscriptColor, Tk_PostscriptFont):
2466         * generic/tkEntry.c (EntrySetValue, EntryValidateChange, ExpandPercents,
2467           EntryValueChanged, Tk_EntryObjCmd, DestroyEntry, ConfigureEntry,
2468           EntryComputeGeometry, InsertChars, DeleteChars, EntryFetchSelection,
2469           EntryTextVarProc, Tk_SpinBoxObjCmd, SpinboxWidgetObjCmd):
2470         * generic/tkMain.c (Prompt):
2471         * generic/tkMenu.c (MenuVarProc):
2472         * generic/tkMenubutton.c (ConfigureMenuButton, MenuButtonTextVarProc):
2473         * generic/tkMessage.c (ConfigureMessage, MessageTextVarProc):
2474         * generic/tkWindow.c (GetScreen, Initialize):
2475         * mac/tkMacInit.c (TkpInit, TkpDisplayWarning):
2476         * mac/tkMacXStubs.c (TkGetDefaultScreenName, TkpOpenDisplay):
2477         * unix/tkUnix.c (TkGetDefaultScreenName):
2478         * unix/tkUnixEvent.c (TkpOpenDisplay):
2479         * unix/tkUnixInit.c (TkpGetAppName, TkpDisplayWarning):
2480         * unix/tkUnixSend.c (SendEventProc):
2481         * win/tkWinInit.c (TkpGetAppName, TkpDisplayWarning):
2482         * win/tkWinX.c (TkGetDefaultScreenName,TkpOpenDisplay): Updated
2483         callers of Tcl_GetVar, Tcl_GetVar2
2484         * generic/tkIntDecls.h: make genstubs
2485
2486         * generic/tkCanvPs.c (TkCanvPostscriptCmd):
2487         * generic/tkImgBmap.c (TkGetBitmapData):
2488         * generic/tkOption.c (ReadOptionFile):
2489         * mac/tkMacInit.c (TkpInit, TkpGetAppName):
2490         * win/tkWinInit.c (TkpGetAppName): Updated callers of
2491         Tcl_SplitPath, Tcl_JoinPath, and Tcl_TranslateFileName.
2492
2493 2002-01-18  Mo DeJong  <mdejong@users.sourceforge.net>
2494
2495         * tests/wm.test: Rewrite stackorder tests that
2496         deal with toplevels that have the overrideredirect
2497         flag set. [Tk bug 492259]
2498
2499 2002-01-18  Don Porter  <dgp@users.sourceforge.net>
2500
2501         * win/tkWinDialog.c: Overlooked Tcl_GetIndexFromObj callers.
2502
2503 2001-01-18  Daniel Steffen  <das@users.sourceforge.net>
2504
2505         * mac/tkMacDialog.c:
2506         * mac/tkMacSend.c: TIP 27 CONSTification broke the mac
2507         build in a few places.
2508
2509 2002-01-16  Jeff Hobbs  <jeffh@ActiveState.com>
2510
2511         * generic/tkListbox.c (ChangeListboxOffset): improved tracking
2512         when scrolling on x axis with entry/text.  [Bug #225025] (voskuil)
2513
2514 2002-01-16  Don Porter  <dgp@users.sourceforge.net>
2515
2516         * generic/tk3d.c (Tk_GetReliefFromObj): 
2517         * generic/tkBind.c (Tk_EventObjCmd,HandleEventGenerate): 
2518         * generic/tkButton.c (ButtonWidgetObjCmd): 
2519         * generic/tkCanvas.c (CanvasWidgetCmd,FindItems): 
2520         * generic/tkClipboard.c (Tk_ClipboardObjCmd): 
2521         * generic/tkCmds.c (Tk_BellObjCmd, Tk_TkObjCmd, Tk_TkwaitObjCmd,
2522           Tk_UpdateObjCmd, Tk_WinfoObjCmd, Tk_WmObjCmd): 
2523         * generic/tkConfig.c (DoObjConfig): 
2524         * generic/tkEntry.c (EntryWidgetObjCmd, SpinboxWidgetObjCmd):
2525         * generic/tkFocus.c (Tk_FocusObjCmd):
2526         * generic/tkFont.c (Tk_FocusObjCmd, ConfigAttributesObj):
2527         * generic/tkFrame.c (Tk_FrameObjCmd):
2528         * generic/tkGet.c (Tk_GetAnchorFromObj, Tk_GetJustifyFromObj):
2529         * generic/tkGrab.c (Tk_GrabObjCmd):
2530         * generic/tkGrid.c (Tk_GridObjCmd,GridRowColumnConfigureCommand,
2531           GridSlavesCommand, ConfigureSlaves):
2532         * generic/tkImage.c (Tk_ImageObjCmd):
2533         * generic/tkImgBmap.c (ImgBmapCmd):
2534         * generic/tkImgGIF.c (FileReadGIF):
2535         * generic/tkImgPhoto.c (ImgPhotoCmd):
2536         * generic/tkListbox.c (ListboxWidgetObjCmd, ListboxSelectionSubCmd,
2537           GetListboxIndex):
2538         * generic/tkMenu.c (MenuWidgetObjCmd, MenuAddOrInsert, MenuCmd,
2539           ConfigureMenu, CloneMenu):
2540         * generic/tkMenubutton.c (MenuButtonWidgetObjCmd): 
2541         * generic/tkMessage.c (MessageWidgetObjCmd): 
2542         * generic/tkOption.c (Tk_OptionObjCmd):
2543         * generic/tkPack.c (Tk_PackObjCmd, ConfigureSlaves):
2544         * generic/tkPlace.c (Tk_PlaceObjCmd):
2545         * generic/tkScale.c (ScaleWidgetObjCmd): 
2546         * generic/tkSelect.c (Tk_SelectionObjCmd): 
2547         * generic/tkSquare.c (SquareWidgetObjCmd): 
2548         * generic/tkTest.c (TestobjconfigObjCmd, TrivialConfigObjCmd,
2549           TestfontObjCmd): Updates to handle change in type of tablePtr
2550         argument of Tcl_GetIndexFromObj(Struct) from (char **) to
2551         (CONST char **).  [TIP 27] [Patch 504705]
2552
2553         * generic/tkCanvText.c (GetSelText):
2554         * generic/tkEntry.c (Entry{FetchSelection,Setvalue},ExpandPercents):
2555         * generic/tkSelect.c (HandleTclCommand):
2556         * generic/tkText.c (TextSearchCmd):
2557         * generic/tkTextIndex.c (TkTextMakeByteIndex, TkTextIndexBackChars):
2558         * mac/tkMacFont.c (Tk_MeasureChars, BreakLine):
2559         * unix/tkUnixMenu.c (DrawMenuUnderline):
2560         * win/tkWinMenu.c (GetEntryText, DrawMenuUnderline):  Updated
2561         callers of Tcl_Utf* and Tcl_Regexp* APIs to reflect TIP 27 API
2562         changes (see Tcl Patch 471509). [Patch 471513]
2563
2564 2002-01-16  Mo DeJong  <mdejong@users.sourceforge.net>
2565
2566         * unix/configure: Regen.
2567         * unix/tcl.m4: Update from Tcl.
2568         * win/configure: Regen.
2569         * win/tcl.m4: Update from Tcl.
2570
2571 2002-01-04  Don Porter  <dgp@users.sourceforge.net>
2572
2573         * generic/tkMain.c (Tk_MainEx):  Updated callers of CONSTified
2574         Tcl interfaces Tcl_EvalFile and TclGetStartupScriptFileName.
2575
2576         * generic/tkConsole.c (ConsoleOutputProc, TkConsolePrint):  
2577         * generic/tkInt.h (TkConsolePrint):
2578         * mac/tkMacAppInit.c (TkConsolePrint): Updated Tk's console to
2579         CONSTified channel driver interface.  [Tcl Patch 503565, Tk Patch
2580         503983]
2581
2582 2002-01-11  Mo DeJong  <mdejong@users.sourceforge.net>
2583
2584         Use ${libdir} instead of ${exec_prefix}/lib. [Tcl bug 489370]
2585         
2586         * unix/configure: Regen.
2587         * unix/configure.in: Define and use libdir.
2588         * win/configure: Regen.
2589         * win/configure.in: Define libdir.
2590
2591 2002-01-11  Mo DeJong  <mdejong@users.sourceforge.net>
2592
2593         * unix/Makefile.in: Burn Tcl and Tk build
2594         directories into tktest executable to avoid crashes
2595         caused by ld loading a previously installed version
2596         of the tcl or tk shared libraries. Remove setting
2597         of LD_LIBRARY_PATH, LIBPATH, and SHLIB_PATH
2598         before running tktest since it should no
2599         longer be required.
2600
2601 2002-01-11  Mo DeJong  <mdejong@users.sourceforge.net>
2602
2603         Enable use of Tcl stubs when building Tk as
2604         a shared library. This should fix the build
2605         under AIX. [Bugs 220858, 220955, 220921]
2606
2607         * unix/Makefile.in: Add TCL_STUB_LIB_SPEC and
2608         TCL_STUB_LIB_FLAG variables.
2609         * unix/configure: Regen.
2610         * unix/configure.in: Pass TCL_STUB_LIB_SPEC into
2611         Makefile and use it when linking the tk shared library.
2612         Define USE_TCL_STUBS when building shared. Subst
2613         TCL_STUB_LIB_SPEC and TCL_STUB_LIB_FLAG.
2614
2615 2002-01-08  D. Richard Hipp  <drh@hwaci.com>
2616
2617         * win/tkWinMenu.c: Fix the following bug: If you select an entry
2618         on a cascade menu then the next time the parent menu is posted, the
2619         cascade entry was active.  Also, if you traverse to a disabled entry
2620         using keystrokes and press ENTER on the disabled entry, then that
2621         entry appears active the next time the menu is posted.  The same
2622         patch fixes both problems.
2623
2624 2002-01-04  Don Porter  <dgp@users.sourceforge.net>
2625
2626         * generic/tkBind.c (TkBindFree):
2627         * generic/tkGrid.c (ResolveConstraints,CheckSlotData,DestroyGrid):
2628         * generic/tkSelect.c (Tk_DeleteSelHandler,TkSelDeadWindow): Replaced
2629         Tcl_Free calls with ckfree so that memory debugging is fully supported.
2630
2631 2001-12-28  Jeff Hobbs  <jeffh@ActiveState.com>
2632
2633         * test/winButton.test:
2634         * win/tkWinButton.c: added updated patch #463234 which returns the
2635         default sizing behavior (not so native), but enables native L&F
2636         with negative sizing (-11 for example).
2637
2638         * library/text.tcl (tk::TextButton1): made text receive focus even
2639         in disabled state for Windows to show selection and allow
2640         mouse-wheel scrolling.
2641
2642         * win/tkWinInit.c (TkpDisplayWarning): added Tcl_DStringFree's
2643
2644         * win/tkWinInt.h:
2645         * win/tkWinX.c: added TkWinProcs that represent a function table
2646         to switch between unicode and ansi procs on Windows.  This is
2647         analogous to the TclWinProcs.  Using Tcl_WinUtfToTChar, we can
2648         easily take advantage of using unicode functions where available
2649         without having to switch on the platform id each time.
2650
2651         * win/tkWinWm.c (InitWindowClass): corrected init routines to
2652         allow unicode in window titles on Windows (for Win2K/XP).
2653         (TkWmStackorderToplevel): Corrected casts to enable debug compile
2654
2655         * win/configure: regen'ed
2656         * win/tcl.m4: added shell32.lib to link libs, as these are
2657         necessary for new directory chooser (when enabled).
2658
2659         * win/tkWinDialog.c (Tk_MessageBoxObjCmd): use MessageBoxW for
2660         proper display of unicode errors.
2661         Added patch which uses new OLE based directory chooser.  This
2662         still has some issues, so is disabled by default. [Patch #468139]
2663         (ColorDlgHookProc) Corrected ability to use unicode chars in
2664         tk_chooseColor -title.
2665
2666 2001-12-27  Jeff Hobbs  <jeffh@ActiveState.com>
2667
2668         * win/tkWinInit.c (TkpDisplayWarning): Use MessageBoxW in case the
2669         error displayed has unicode chars. [Bug #485986]
2670
2671 2001-12-27  Daniel Steffen <das@users.sourceforge.net>
2672
2673         * mac/tkMacInit.c:
2674         * mac/tkMacResource.r: synced up tkInit features to unix/win:
2675         use existing tkInit proc if defined. Added spinbox.tcl resource.
2676         Used TclGetEnv() instead of Tcl_GetVar2(interp, env)
2677         * mac/tkMacApplication.r:
2678         * mac/tkMacLibrary.r: minor version resources cleanup
2679
2680 2001-12-27  Jeff Hobbs  <jeffh@ActiveState.com>
2681
2682         * generic/tkButton.c (ButtonTextVarProc): guard against being
2683         called while the *button/label is being deleted. [Bug #490051]
2684
2685         * library/entry.tcl: 
2686         * library/spinbox.tcl: 
2687         * library/text.tcl: added extra checks against bug #220269 and
2688         made spinbox reuse more of the entry procedure code.
2689
2690 2001-12-20  Mo DeJong  <mdejong@users.sourceforge.net>
2691
2692         * unix/configure: Regen.
2693         * unix/tcl.m4: Update from Tcl.
2694
2695 2001-12-19  Mo DeJong  <mdejong@users.sourceforge.net>
2696
2697         * unix/configure: Regen.
2698         * unix/tcl.m4: Update from Tcl.
2699
2700 2001-12-18  Mo DeJong  <mdejong@users.sourceforge.net>
2701
2702         * unix/configure: Regen.
2703         * unix/configure.in: Move EXP file changes over from
2704         Tcl configure script to fix AIX build with gcc. [Bug 220955]
2705
2706 2001-12-18  Mo DeJong  <mdejong@users.sourceforge.net>
2707
2708         * unix/Makefile.in:
2709         * win/Makefile.in: Use $(MAKE) instead of make
2710         in the tcltest rule.
2711
2712 2001-12-18  Don Porter  <dgp@users.sourceforge.net>
2713
2714         * tests/event.test (event-click-drag-1.2): Corrected test that
2715         failed on Solaris/CDE due to text scrolling.  [Bug 413735]
2716
2717 2001-12-18  Jeff Hobbs  <jeffh@ActiveState.com>
2718
2719         * library/spinbox.tcl (ButtonDown): added catch to ignore
2720         possible error in after cancel when Priv(afterId) isn't defined.
2721
2722         * doc/spinbox.n: corrected spin(up|down) -> button(up|down)
2723
2724 2001-12-14  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
2725
2726         * doc/getOpenFile.n: Documented change.
2727         * library/tkfbox.tcl (SetFilter): Added code to guess the correct
2728         default extension from whatever value was selected in the
2729         filetypes option menu.  Adapted from code by Chris Nelson
2730         submitted in Patch #492220.
2731
2732 2001-12-12  Jeff Hobbs  <jeffh@ActiveState.com>
2733
2734         * unix/tkUnixWm.c (TkWmStackorderToplevelWrapperMap): added static
2735
2736 2001-12-05  Jeff Hobbs  <jeffh@ActiveState.com>
2737
2738         * generic/tkText.c:
2739         * generic/tkText.h: changed TkTextEditType enums to be prefaced
2740         with TK_EDIT_ to prevent name collision.
2741
2742 2001-12-05  Daniel Steffen <das@users.sourceforge.net>
2743
2744         * mac/tkMacWm.c: mac implementation of wm stackorder
2745         (patch 481148, TIP 74)
2746
2747 2001-12-03  Mo DeJong  <mdejong@users.sourceforge.net>
2748
2749         Add TK patch 481148 to implement TIP 74, the
2750         wm stackorder command.
2751
2752         * doc/winfo.n: Update documentation for the winfo
2753         children command to indicate that top-level windows
2754         are not returned in stacking order.
2755         * doc/wm.n: Add documentation for wm stackorder.
2756         * generic/tkInt.decls (TkWmStackorderToplevel):
2757         Add decl for new function.
2758         * generic/tkIntDecls.h: Regen.
2759         * generic/tkStubInit.c: Regen.
2760         * tests/unixWm.test: Add stackorder command to test
2761         for wm command usage message.
2762         * tests/wm.test: Add new set of tests for generic
2763         window manager methods.
2764         * unix/tkUnixWm.c (Tk_WmCmd,
2765         TkWmStackorderToplevelWrapperMap,
2766         TkWmStackorderToplevel): Add unix implementation of
2767         new wm stackorder command.
2768         * win/tkWinWm.c (Tk_WmCmd,
2769         TkWmStackorderToplevelEnumProc,
2770         TkWmStackorderToplevelWrapperMap,
2771         TkWmStackorderToplevel): Add windows implementation
2772         of new wm stackorder command.
2773
2774 2001-12-03  David Gravereaux <davygrvy@pobox.com>
2775
2776         * win/makefile.vc: install target changes by request from
2777         Ryan Casey <scfiead@hotmail.com>.
2778
2779 2001-11-30  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
2780
2781         * library/demos/widget: Further overhauling; shrank fonts, made
2782         better use of fonts, added an icon, fixed the About box.  Prompted
2783         by Bug #487442 from Vincent Wartelle.
2784
2785 2001-11-29  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
2786
2787         * library/palette.tcl (tk_setPalette): Added heuristic to guess
2788         from the background whether to use black or white for the
2789         foreground when not told specifically.  Suggested by Chris Nelson,
2790         this makes the command fit the documentation better!
2791
2792 2001-11-27  David Gravereaux <davygrvy@pobox.com>
2793
2794         * win/makefile.vc: Fixed CAT32 target.  cat.c is located in the Tcl
2795         source, not the Tk source.
2796
2797 2001-11-27  D. Richard Hipp <drh@hwaci.com>
2798
2799         * library/menu.tcl: Do not allow keyboard traversal of torn-off
2800         menus to visit the (invisible) tearoff bar.
2801
2802 2001-11-26  D. Richard Hipp <drh@hwaci.com>
2803
2804         * win/tkWinMenu.c: disabled menu items show the activebackground
2805         color in their background.  This change makes menu behavior
2806         consistent with what native windows does.
2807
2808 2001-11-24  Mo DeJong  <mdejong@users.sourceforge.net>
2809
2810         * unix/Makefile.in: Add comments to better describe
2811         TCL_EXE and when it should be available. Add
2812         rule that prints message about running `make genstubs`
2813         when tkStubInit.c is out of date.
2814         * win/Makefile.in: Add TCL_TOOL_DIR and TCL_EXE
2815         variables to better match the Tcl Makefile. Add
2816         genstubs rule so tkSTubInit.c can be regenerated.
2817
2818 2001-11-24  Mo DeJong  <mdejong@users.sourceforge.net>
2819
2820         * win/configure: Regen.
2821         * win/configure.in: Don't AC_SUBST CFLAGS_DEBUG, CFLAGS_OPTIMIZE,
2822         or CFLAGS_WARNING since it is now done in SC_CONFIG_CFLAGS.
2823         * win/tcl.m4 (SC_CONFIG_CFLAGS): AC_SUBST DL_LIBS, CFLAGS_DEBUG,
2824         CFLAGS_OPTIMIZE, and CFLAGS_WARNING.
2825
2826 2001-11-23  Daniel Steffen <das@users.sourceforge.net>
2827
2828         Up-port to 8.4 of mac code changes for 8.3.3 & various new
2829         changes for 8.4, some already backported to 8.3.4 (patch #435660)
2830
2831         * library/tk.tcl: added <Key-F1> binding for <<Undo>> on the mac (TIP26)
2832
2833         * library/button.tcl: fixed undefined $Priv(repeated) error for button
2834         without -repeatdelay support
2835
2836         * generic/tkConsole.c:
2837         * library/console.tcl:
2838         * mac/tkMacInit.c:
2839         * mac/tkMacResource.r: corrected how mac deals with tcl library
2840         files present both in resources and in $tk_library directory.
2841
2842         * generic/tkConsole.c: crashing bug fix when printing to console
2843         at program exit after the console has already been closed.
2844         Now setting gStdoutInterp=NULL in ConsoleClose().
2845
2846         * mac/tkMacInit.c: correct use of Tcl_JoinPath in tk_library
2847         initialization
2848
2849         * mac/tkMacMenu.c: special MDEF_PROC_OFFSET only needed for
2850         exactly one specific version of the MWERKS 68k compiler .
2851
2852         * mac/tkMacShLib.exp: removed file
2853
2854         * unix/Makefile.in: removed reference to .exp files
2855
2856         * mac/MWTkBuildLibHeader.h:
2857         * mac/MW_TkBuildLibHeader.pch:
2858         * mac/MW_TkHeaderCommon.h:
2859         * mac/MW_TkOldImgStaticHeader.h:
2860         * mac/MW_TkStaticHeader.h:
2861         * mac/MW_TkStaticHeader.pch: new precompiled header files
2862
2863         * mac/MW_TkHeader.pch:
2864         * mac/MW_TkOldImgHeader.h:
2865         * mac/MW_TkTestHeader.pch: revised precompiled header handling: now
2866         include a common header file 'MW_TkHeaderCommon.h' from all .pch files,
2867         the .pch files themselves now only setup #defines (e.g. BUILD_tk,
2868         STATIC_BUILD, TCL_DEBUG, TCL_THREADS) like in makefiles on other
2869         platforms.
2870
2871         * mac/tkMac.h:
2872         * mac/tkMacPort.h:
2873         * mac/tkMacInt.h: use of BUILD_tk and TCL_STORAGE_CLASS like on other
2874         platforms, standardize #include'd files to what's done on other
2875         platforms, removed use of #pragma export, changed extern to EXTERN
2876         where appropriate to enable DLL export via the TCL_STORAGE_CLASS
2877         mechanism.
2878
2879         * mac/tkMacAppearanceStubs.c: removed use of #pragma export
2880
2881         * mac/widget.r: new resource file for 'Widget Demos'
2882
2883         * mac/tkMacProjects.sea.hqx: updated mac build project files:
2884         build support for CodeWarrior Pro6, UnivIntf 3.4 & shared runtime
2885         libraries (see Tcl ChangeLog for details).
2886         changed weak linking so that CFM68k binaries now work on all OS
2887         versions from the free 7.5.5 onwards, with or without AppearanceMgr
2888         and/or NavigationMgr installed.
2889         added target to automatically build 'Widget Demos'
2890         included XML versions of the projects for CW Pro5 or Pro7 users.
2891         use compat/strtod.c instead of MSL's strtod()
2892
2893         * generic/tkInt.decls:
2894         * generic/tkIntDecls.h:
2895         * generic/tkIntPlatDecls.h:
2896         * generic/tkStubInit.c:
2897
2898         * mac/tkMacInt.h: MAC_TCL tk stub support was badly broken due to
2899         multiply defined (mac specific) names in tk.decls and tkInt.decls,
2900         removed the duplicates from the internal unsupported interfaces
2901         "interface tkInt" and "interface tkIntPlat"; moved declaration of
2902         TkpIsWindowFloating from tkMacInt.h to tkInt.decls: interface tkIntPlat.
2903         - these changes to the stub tables might require you to recompile your
2904         Tk extensions if they turn out to reference one of the removed routines
2905         in the wrong table (should be unlikely).
2906
2907         * generic/tkMain.c: MAC_TCL: workaround for broken/non-standard isatty
2908         on MW Pro6, #include <unistd.h> instead of defining isatty
2909         
2910         * generic/tkPointer.c: MAC_TCL: #include tkMacInt.h
2911
2912         * generic/tkStubLib.c: MAC_TCL: removed obsolete special casing of mac
2913         headers, standardize #include'd files to what's done on other platforms
2914
2915         * mac/tclets.r:
2916         * mac/tkMacWindowMgr.c:
2917         * mac/tkMacScrlbr.c:
2918         * mac/tkMacMenu.c:
2919         * mac/tkMacMenus.c:
2920         * mac/tkMacFont.c:
2921         * mac/tkMacDialog.c: 
2922         * mac/tkMacButton.c: renamed obsolete apple API names to modern
2923         equivalents; UH3.4 support: added #include <ControlDefinitions.h>;
2924         fixed munged non-ASCII chars in sources due to bungled latin1<->mac
2925         roman encoding in CVS repository.
2926
2927         * mac/tkMacDialog.c: added support for -filetypes option (fix for bug
2928         tcl #221636); added update event handling for background windows while
2929         in a NavigationMgr dialog; fixed nasty bug when calling CustomGetFile
2930         (missing addr operator) (fix for bug tk #220911 & tcl #219367); renamed
2931         routines conflicting with standard MoreFiles headers (see Tcl ChangeLog
2932         for details)
2933
2934         * mac/tkMacApplication.r:
2935         * mac/tkMacLibrary.r:
2936         * mac/tkMacResource.r: fixed obsolete copyrights/dates in version
2937         strings, updated version strings to standard usage, added support for
2938         '(Support Libraries)' subfolder for shared runtime libraries in
2939         unmerged binaries, commented out demo setting of "Tcl Environment
2940         Variables"; reorganized resources among these files to avoid 
2941         multiple copies in applications and shared libraries, the script
2942         libraries/Xcursors etc are now no longer duplicated in Wish but are
2943         only included in the resources of Tk.shlb.
2944
2945         * mac/tkMacMenu.c: 
2946         * mac/tkMacMDEF.r: changes to support MW Pro 6 68k (vers 0x2400 only) 
2947         compiler producing different offset to start of MDEF; fix to static 68k
2948         presence testing when calling the custom MDEF
2949
2950         * mac/tkMacWm.c.c:
2951         * mac/tkMacWindowMgr.c: added/fixed AppearanceMgr checks; override
2952         AppearanceMgr version detection on static 68k to ensure static 68k Wish
2953         runs on PPCs with recent AppearanceMgr
2954
2955         * mac/tkMacButton.c: fixed misplaced/missing variable initialization.
2956
2957 2001-11-20  Jeff Hobbs  <jeffh@ActiveState.com>
2958
2959         * generic/tkText.c (TextGetText): reworked to use DString for
2960         improved speed. (callewaert, darley)
2961         (DestroyText): plugged mem leak when not clearing stack (callewaert)
2962         (TextGetText): more efficient string size calculation (darley)
2963
2964 2001-11-19  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
2965
2966         * library/demos/entry3.tcl: New demo showing off validation and
2967         password entry.
2968
2969         * library/demos/widget: Some reorganization to make the code
2970         simpler, plus a new entry demo.
2971
2972 2001-11-17  Jeff Hobbs  <jeffh@ActiveState.com>
2973
2974         * win/tkWinButton.c (TkpComputeButtonGeometry): corrected the
2975         default size of Windows buttons to conform to the Windows style.
2976         This changes the default size of buttons on Windows.
2977         [Patch #463234] (nelson)
2978                 **** POTENTIAL VISUAL INCOMPATABILITY ****
2979         
2980 2001-11-16  Jeff Hobbs  <jeffh@ActiveState.com>
2981
2982         * library/menu.tcl: corrected menu traversal code on Unix to
2983         better handle entering cascades.  [Patch #481219] (oleinick)
2984
2985 2001-11-16  David Gravereaux <davygrvy@pobox.com>
2986
2987         * win/makefile.vc:  Install target repaired.
2988
2989 2001-11-15  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
2990
2991         * library/demos/image2.tcl: Many improvements to this
2992         image-viewing demo; now uses labelframes and tk_chooseDirectory
2993
2994         * library/palette.tcl (::tk::RecolorTree): Made this work better
2995         with CDE, which does some extremely annoying things with the
2996         option database that interact badly with Tk's way of handling
2997         options.
2998
2999         * doc/text.n: Overhauled the documentation of undo to make it
3000         easier to understand.
3001         * library/tk.tcl (::tk::EventMotifBindings): Added Emacs-like undo
3002         binding, but not behaviour (we separate undo and redo.)
3003         * library/demos/text.tcl: Show off our undo capability!
3004
3005 2001-11-12  David Gravereaux <davygrvy@pobox.com>
3006
3007         * win/mkd.bat:
3008         * win/rmd.bat:  Removed -kb CVS attribute and added changes
3009         from Llyod Lim for better stability.  [Patch #456761]
3010
3011         * win/rules.vc(new):
3012         * win/buildall.vc.bat(new):
3013         * win/makefile.vc:  large rewrite following Tcl's makefile.vc as
3014         a guide and Patch #456761.  Appears BugFree(tm).
3015
3016 2001-11-12  Jeff Hobbs  <jeffh@ActiveState.com>
3017
3018         * doc/text.n:
3019         * generic/tkText.c:
3020         * generic/tkText.h:
3021         * generic/tkTextTag.c:
3022         * library/text.tcl:
3023         * library/tk.tcl:
3024         * mac/tkMacDefault.h:
3025         * tests/text.test:
3026         * unix/tkUnixDefault.h:
3027         * win/tkWinDefault.h: added TIP #26 implementation of simple
3028         built-in undo/redo of text editing in the text widget.
3029         [Patch #458879] (callewaert)
3030
3031 2001-11-12  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
3032
3033         * library/demos/menu.tcl: Show off -compound support in menus.
3034
3035         * library/demos/radio.tcl: Added some code to both show off the
3036         extra capabilities of the buttons and also show what can be done
3037         with compound images on the sly.
3038
3039 2001-11-10  Mo DeJong  <mdejong@users.sourceforge.net>
3040
3041         * unix/Makefile.in:
3042         * win/Makefile.in: Add "make gdb" target. This target
3043         can run wish inside either gdb or insight.
3044
3045 2001-11-09  Jeff Hobbs  <jeffh@ActiveState.com>
3046
3047         * library/clrpick.tcl: changed a few parameters so that the full
3048         0..255 range could be accessed via the mouse. [Bug #478498]
3049
3050         * unix/configure:
3051         * unix/tcl.m4: added -lc to AIX libs, fixed path to ldAix
3052
3053         * win/configure:
3054         * win/tcl.m4:
3055         * win/makefile.vc: add comctl32.lib to build libs.
3056         * win/tkWinX.c (TkWinXInit): added InitCommonControlsEx call.
3057         * win/rc/tk.rc:
3058         * win/rc/wish.rc:
3059         * win/rc/wish.exe.manifest: added resources that specify using v6
3060         of the MS Common Controls library when available (WinXP+).  This
3061         enables use of the themeable widgets (like scrollbars) to be used
3062         in Tk. [Patch #478933]
3063
3064 2001-11-09  Mo DeJong  <mdejong@users.sourceforge.net>
3065
3066         * unix/configure:
3067         * unix/tcl.m4: Update from Tcl.
3068
3069 2001-11-08  Mo DeJong  <mdejong@users.sourceforge.net>
3070
3071         * unix/Makefile.in:
3072         Avoid adding libc to the LIBS and WISH_LIBS
3073         variables since it is not needed when linking with CC.
3074         If required when linking with LD it should be done
3075         on a case by case basis in tcl.m4.
3076
3077 2001-11-05  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
3078
3079         * library/demos/dialog2.tcl: Typo-fix.
3080         * library/demos/browse, library/demos/ixset, library/demos/rolodex: 
3081         Installation does version number fixup, so we shouldn't.  Thanks
3082         to wohnivec@iol.cz for pointing these (thankfully minor) problems
3083         out.
3084
3085 2001-10-30  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
3086
3087         * library/demos/widget: Integrated labelframe item into the labels
3088         section and added a spinbox demo to the (retitled) entry section.
3089
3090         * library/demos/labelframe.tcl: Adjusted so as to show off the
3091         labelframe widget to better effect and have a better description.
3092
3093         * library/demos/spin.tcl: New demo to show off spinbox capabilities.
3094
3095         * library/demos/rolodex: Changes up-ported from core-8-3-1-branch
3096         to make the script use more 8.*-isms, but not menus due to the way
3097         the context help system works.
3098
3099         * library/demos/ixset: Changed to use the labelframe widget and
3100         the grid geometry manager.
3101
3102 2001-10-29  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
3103
3104         * library/demos/browse: Changes up-ported from core-8-3-1-branch
3105         to make the script much more robust, particularly when neither the
3106         current version of wish or the script are on the path.
3107
3108         * library/demos/hello: Added emacs trailing tag-line.
3109
3110         * library/demos/tcolor: Changes up-ported from core-8-3-1-branch
3111         to make the script compliant with current good practise, as well
3112         as extensive use of the new labelframe widget.
3113
3114         * library/demos/timer: Changes up-ported from core-8-3-1-branch to
3115         make the script look and work better.
3116
3117         * library/demos/rmt: Changes up-ported from core-8-3-1-branch to
3118         use more 8.* features and make the demo script more generally
3119         useful to people.
3120
3121 2001-10-23  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
3122
3123         * generic/tkCursor.c (Tk_GetCursorFromData): Fixed uninit nextPtr
3124         field.  [adapted from Patch 473875]
3125         (GetCursor): Removed double-assignment to nextPtr field.
3126
3127 2001-10-19  Jeff Hobbs  <jeffh@ActiveState.com>
3128
3129         * library/console.tcl: removed transpose ability until the console
3130         can get a proper rewrite of tag handling.
3131
3132 2001-10-18  Jeff Hobbs  <jeffh@ActiveState.com>
3133
3134         * tests/defs.tcl: removed threaded build warning under X.
3135
3136         * library/console.tcl (ConsoleOutput): fixed undefined widget
3137         argument.
3138
3139 2001-10-16  Jeff Hobbs  <jeffh@ActiveState.com>
3140
3141         * library/xmfbox.tcl: fixed filtering in motif file dialog.
3142         [Patch #469670] (nelson)
3143
3144         * generic/tkWindow.c (OpenIM): Added simple XIM patch to enable
3145         basic XIM input on Unix. [Patch #412727] (fabian)
3146
3147 2001-10-15  Jeff Hobbs  <jeffh@ActiveState.com>
3148
3149         * unix/configure:
3150         * unix/configure.in:
3151         * win/configure:
3152         * win/configure.in:
3153         * win/tkConfig.sh.in: reworked to be a little cleaner in
3154         comparison to each other, and to AC_SUBST even empty vars for
3155         win/tkConfig.sh
3156
3157 2001-10-12  Todd M. Helfter <tmh@purdue.edu>
3158
3159         * ChangeLog:
3160         * doc/menu.n:
3161         * generic/tkMenu.c:
3162         * generic/tkMenu.h:
3163         * generic/tkMenubutton.c:
3164         * generic/tkMenubutton.h:
3165         * mac/tkMacDefault.h:
3166         * mac/tkMacMenu.c:
3167         * mac/tkMacMenubutton.c:
3168         * tests/menu.test:
3169         * unix/tkUnixDefault.h:
3170         * unix/tkUnixMenu.c:
3171         * win/makefile.vc:
3172         * win/tkWinDefault.h:
3173         * win/tkWinMenu.c:
3174         * win/tkWinWm.c: Implementation of TIP #63, the addition of
3175         a -compound option to menu entries allowing text and an image to
3176         be displayed at the same time.
3177
3178 2001-10-09  Jeff Hobbs  <jeffh@ActiveState.com>
3179
3180         * library/console.tcl: added more smarts extracted from tkcon to
3181         the default console.
3182
3183 2001-10-01  Jeff Hobbs  <jeffh@ActiveState.com>
3184
3185         * win/tkWinTest.c: better error reporting from testclipboard
3186
3187         * win/tkWinDialog.c: minor cast changes to support Win64
3188
3189         * win/tkWinWindow.c: made use of standard Tk_GetHWND instead of
3190         older, private TkWinGetHWND.
3191
3192         * win/configure: regen'ed
3193         * win/tcl.m4:
3194         * win/makefile.vc: updated for Win64 SDK RC1 compilation support
3195
3196 2001-09-30  Peter Spjuth <peter.spjuth@space.se>
3197
3198         * doc/grid.n:
3199         * generic/tkGrid.c:
3200         * tests/grid.test: Added -uniform option to grid's row/column-
3201         configure. [TIP 37] [Patch 459343]
3202         
3203 2001-09-26  Peter Spjuth <peter.spjuth@space.se>
3204
3205         * win/tkWinFont.c (Tk_DrawChars): Added support for clipping text.
3206
3207         * doc/frame.n:
3208         * doc/labelframe.n:
3209         * doc/toplevel.n:
3210         * generic/tkFrame.c:
3211         * generic/tkInt.h:
3212         * generic/tkWindow.c:
3213         * library/demos/radio.tcl:
3214         * library/demos/labelframe.tcl:
3215         * library/demos/widget:
3216         * mac/tkMacDefault.h:
3217         * tests/frame.test:
3218         * unix/tkUnixDefault.h:
3219         * win/tkWinDefault.h: Added labelframe widget. Added -padx/y
3220         options to frame and toplevel.
3221
3222         * tests/grid.test:
3223         * tests/pack.test:
3224         * tests/place.test: Used labelframe to test geometry manager changes.
3225         [TIP 18] [Patch 429164]
3226         
3227 2001-09-26  Peter Spjuth <peter.spjuth@space.se>
3228
3229         * doc/GeomReq.3:
3230         * doc/WindowId.3:
3231         * generic/tk.decls:
3232         * generic/tk.h:
3233         * generic/tkDecls.h:
3234         * generic/tkGeometry.c:
3235         * generic/tkGrid.c (ArrangeGrid):
3236         * generic/tkInt.h:
3237         * generic/tkPack.c (ArrangePacking):
3238         * generic/tkPlace.c (RecomputePlacement):
3239         * generic/tkStubInit.c:
3240         * generic/tkUtil.c (TkComputeAnchor):
3241         * generic/tkWindow.c (TkAllocWindow):
3242         * unix/mkLinks: Geometry manager changes to support TIP#18.
3243         Allows a widget to set different internal border widths on
3244         different sides, and to set a minimum requested size.
3245         POTENTIAL INCOMPATIBILITY.  [Patch 429164]
3246         
3247 2001-09-25  Don Porter  <dgp@users.sourceforge.net>
3248
3249         * generic/tkBind.c:
3250         * generic/tkInt.decls (TkpScanWindowId):
3251         * unix/tkUnixPort.h (Tkp{Print,Scan}WindowId):
3252         * unix/tkUnixXId.c (TkpScanWindowId):
3253         * win/tkWinWindow.c (TkpScanWindowId): Corrected definition of
3254         TkpScanWindowId to handle situation where types Window and int
3255         do not have the same number of bits.  CONST-ified too.
3256
3257         * generic/tkIntPlatDecls.h: 
3258         * generic/tkStubInit.c: make genstubs
3259
3260 2001-09-24  Don Porter  <dgp@users.sourceforge.net>
3261
3262         * generic/tkMain.c (StdinProc): Update to handle change in
3263         return type of Tcl_DStringAppend() from (char *) to (CONST char *).
3264         [TIP 27]
3265
3266 2001-09-23  Peter Spjuth  <peter.spjuth@space.se>
3267         * generic/tkPack.c (ConfigureSlaves):
3268         * tests/pack.test:
3269         * tests/grid.test:  Pack accepted asymmetric values for -ipadx/y.
3270         Only -padx/y supports asymmetry. [Bug #462348]
3271
3272 2001-09-21  Jeff Hobbs  <jeffh@ActiveState.com>
3273
3274         * win/tkWinWindow.c (TkpPrintWindowId, TkpScanWindowId): fixed to
3275         work on Win64 with 64bit XIDs.
3276
3277         * generic/tkWindow.c (Tk_CreateAnonymousWindow): 
3278         * generic/tkEntry.c (GetSpinboxElement): fixed unreachable returns.
3279
3280         * win/tkWinX.c (TkGetServerInfo): added recognition of Win64.
3281
3282         * xlib/X11/X.h: made XID __int64 type for Win64.
3283
3284         * unix/tkUnixPort.h:
3285         * mac/tkMacPort.h: add (int*) cast to TkpScanWindowId.
3286         These may need to be changed to Window* (ulong).
3287
3288         * generic/tkCmds.c (Tk_WinfoObjCmd):
3289         * generic/tkBind.c (NameToWindow):
3290         correct Window id's to be of type Window
3291
3292         * generic/tkIntDecls.h:
3293         * generic/tkIntPlatDecls.h:
3294         * generic/tkInt.decls (TkpScanWindowId): changed decl to use
3295         Window* instead of int*.
3296
3297         * xlib/xcolors.c:
3298         * generic/tkPack.c,tkWindow.c:
3299         * win/tkWinFont.c,tkWinMenu.c:
3300         * unix/tkUnixScale.c: minor cast fixes to prevent 64bit warnings.
3301
3302         * tests/scrollbar.test (scrollbar-6.27): marked knownBug because
3303         it is skewed by bad dimensions returned by Windows.
3304
3305         * tests/textDisp.test (textDisp-4.12): corrected test to work
3306         properly on Windows.
3307
3308         * tests/id.test,macFont.test,macMenu.test,macscrollbar.test:
3309         * tests/send.test,winClipboard.test,winDialog.test,winFont.test:
3310         improved use of test constraints
3311
3312         * win/tkWinWm.c (WinSetIcon): fixed SetClassLong for 64bit support.
3313
3314 2001-09-20  Jeff Hobbs  <jeffh@ActiveState.com>
3315
3316         * unix/configure: regen'ed
3317         * unix/tcl.m4: added --enable-64bit support for HP-11 with the
3318         64-bit kernel.
3319
3320 2001-09-17  Don Porter  <dgp@users.sourceforge.net>
3321
3322         * generic/tkGrid.c (ConfigureSlaves):
3323         * generic/tkPack.c (PackAfter):  Corrected type definition of
3324         argument passed to Tcl_GetStringFromObj() from size_t to int.
3325         Incorrect type broke [pack] and [grid] on systems where
3326         sizeof(size_t) != sizeof(int).  [Bugs 462375, 462342, 462338]
3327
3328 2001-09-17  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
3329
3330         * library/choosedir.tcl (DblClick): 
3331         * library/tkfbox.tcl (OkCmd, ListInvoke): Rewrote so as to avoid
3332         the highly confusing string "text" and to be consistent about what
3333         is and what is not a list.  [Bug 459895, reported by fandom]
3334
3335 2001-09-14  Andreas Kupries  <andreas_kupries@users.sourceforge.net>
3336
3337         * generic/tkImgGIF.c:
3338         * generic/tkImgPPM.c:
3339         * generic/tkImgPhoto.c:
3340         * generic/tkMenu.c: Applied patch [461578], provided by Vincent
3341           Darley. This fixes several memory leaks in the image code. They
3342           happen if there are errors during the initialization of the
3343           channel the image is supposed to be read from.
3344
3345 2001-09-12  Mo DeJong  <mdejong@users.sourceforge.net>
3346
3347         * unix/configure:
3348         * unix/tcl.m4: Update from Tcl.
3349
3350 2001-09-12  D. Richard Hipp  <drh@hwaci.com>
3351
3352         * library/tkfbox.tcl: fixed error that appeared when you would
3353         click on the canvas while viewing an empty directory.
3354
3355 2001-09-10  Mo DeJong  <mdejong@users.sourceforge.net>
3356
3357         * unix/configure:
3358         * unix/tcl.m4: Update from Tcl.
3359
3360 2001-09-09  Mo DeJong  <mdejong@users.sourceforge.net>
3361
3362         * win/Makefile.in: Fix Windows Makefile so that
3363         tcltest will automatically be compiled if the
3364         user tries to build tktest.
3365
3366 2001-09-09  Mo DeJong  <mdejong@users.sourceforge.net>
3367
3368         * win/Makefile.in: Use TKTEST variable directly
3369         instead of depending on the tktest alias.
3370
3371 2001-09-08  Mo DeJong  <mdejong@users.sourceforge.net>
3372
3373         * win/mkd.bat:
3374         * win/rmd.bat:
3375         Apply binary property (cvs admin -kb) to files and convert
3376         to CRLF linefeed format to fix the VC++ build. [Tcl Bug #219409]
3377
3378 2001-08-29  Jeff Hobbs  <jeffh@ActiveState.com>
3379
3380         * tests/menu.test:
3381         * tests/send.test:
3382         * tests/select.test: corrected to use testConfig constraints in
3383         the TK_ALT_DISPLAY case
3384
3385         * tests/unixSend.test: removed test file completely identical to
3386         send.test.  Removed platform specific named file in case somebody
3387         gets send working on Win/Mac in the future.
3388
3389         * tests/config.test: added config-14.1 to test namespace import
3390         evaluation of widgets.
3391         * generic/tkButton.c (ButtonCreate):
3392         * generic/tkFrame.c (CreateFrame):
3393         * generic/tkMenubutton.c (Tk_MenubuttonObjCmd):
3394         * generic/tkPlace.c (Tk_PlaceObjCmd):
3395         * generic/tkScale.c (Tk_ScaleObjCmd):
3396         * generic/tkMessage.c (Tk_MessageObjCmd):
3397         * generic/tkEntry.c (Tk_EntryObjCmd, Tk_SpinboxObjCmd):
3398         * generic/tkSquare.c (SquareObjCmd): redid the handling of
3399         optionTables in widgets to allow them to be imported into other
3400         namespaces. [Bug #456632]
3401
3402 2001-08-28  Jeff Hobbs  <jeffh@ActiveState.com>
3403
3404         * win/tkWinDialog.c (ChooseDirectoryHookProc): work-around for MS
3405         bug that caused crashing in tk_chooseDirectory on Win95.
3406         [Bug #224936] (baker)
3407
3408         * unix/tkUnixWm.c (TkWmRestackToplevel): reworked how
3409         ConfigureNotify requests were handled in relation to the parent to
3410         avoid the problem with potential 'raise' delays on some wms.
3411         [Bug #220260] (baker) wms that were affected should notice the
3412         difference in tests unixWm-51.* not failing that failed before.
3413
3414 2001-08-26  Don Porter  <dgp@users.sourceforge.net>
3415
3416         * library/text.tcl (<Shift-Up> binding):  Corrected TIP 44 typo
3417         that broke binding.  Thanks to "Michal" for the fix.
3418         [Bug 455468]
3419
3420 2001-08-23  Jeff Hobbs  <jeffh@ActiveState.com>
3421
3422         * unix/configure:
3423         * unix/tcl.m4: added QNX-6 build support. [Bug #219410] (loverso)
3424
3425         * doc/CrtPhImgFmt.3: removed bogus note about including tkPhoto.h
3426
3427 2001-08-22  Peter Spjuth  <peter.spjuth@space.se>
3428
3429         * generics/tkGrid.c (ConfigureSlaves):
3430         * tests/grid.test: Fixed a bug where adjacent 'x' and '^' where
3431         not handled properly. [Bug #452040]
3432         
3433 2001-08-22  Jeff Hobbs  <jeffh@ActiveState.com>
3434
3435         * generic/tkPack.c (TkParsePadAmount): added lint init for sepChar.
3436
3437         * tests/dialog.test (HitReturn): fixed failing dialog-2.1 test
3438         because it wasn't always getting focus properly.
3439
3440 2001-08-21  Jeff Hobbs  <jeffh@ActiveState.com>
3441
3442         * tests/unixFont.test (unixFont-2.[234]): fixed to be more
3443         sensitive on systems that have more installed fonts.
3444
3445         * library/dialog.tcl (tk_dialog): changed dialog to show bar on
3446         Windows as well and added some y padding between the buttons and
3447         the bar. [Patch #442835] (harrismh)
3448
3449 2001-08-20  Peter Spjuth  <peter.spjuth@space.se>
3450
3451         * generic/tkInt.h:
3452         * generic/tkWindow.c:
3453         * generic/tkGrid.c:
3454         * generic/tkPack.c:
3455         * tests/grid.test:
3456         * tests/oldpack.test:
3457         * tests/pack.test: Objectified grid and pack commands.
3458
3459 2001-08-20  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
3460
3461         * generic/tkObj.c (TkGetWindowFromObj): Rewrote window code to
3462         reuse a previously worked-out set of window information exactly
3463         when the reference window is the same and no window deletions have
3464         occurred since the object was allocated (display has same epoch
3465         counter.)  Required changing the internal rep of the window quite
3466         a bit as now need to save three words-worth of information in the
3467         internal rep (this window, reference window, display epoch.)
3468         * generic/tkObj.c (SetWindowFromAny, DupWindowInternalRep,
3469         FreeWindowInternalRep): Code to support new internal rep for
3470         window objects.
3471         * generic/tkInt.h: Added epoch counter to TkDisplay structure
3472         * generic/tkWindow.c (GetScreen, Tk_DestroyWindow): Epoch counter
3473         is incremented every time a window is deleted.
3474
3475 2001-08-18  Peter Spjuth <peter.spjuth@space.se>
3476
3477         * doc/grid.n:
3478         * tests/grid.test:
3479         * generic/tkGrid.c: Grid configure rejected initial "x" and "^".
3480         [Bug #418664]
3481         
3482 2001-08-17  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
3483
3484         * generic/tkObj.c (TkGetWindowFromObj): Was failing to reuse
3485         cached window objects, forcing a call to Tcl_GetStringFromObj and
3486         Tk_NameToWindow every time.  This fault has been in there for
3487         nearly three years...
3488
3489 2001-08-15  Don Porter <dgp@users.sourceforge.net>
3490
3491         * changes: Labelled the TIP 44 changes as "POTENTIAL INCOMPATIBILITY".
3492         Although technically internal changes are not incompatible, they'll
3493         be perceived as such by those who get bitten, and this will help
3494         them find the cause of their trouble.
3495
3496 2001-08-14  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
3497
3498         * generic/tk{Util,Font,Cursor,Color,Bitmap,3d}.c: Modified
3499         objtype declarations so that they can be picked up in tkObj.c and
3500         the names are now prefixed with "tk" too.
3501         * generic/tkObj.c (TkRegisterObjTypes): 
3502         * generic/tkWindow.c (Initialize): 
3503         * generic/tkInt.h: Added code to register Tk's object types with
3504         the Tcl runtime.  [Tcl Bug 450545]
3505
3506 2001-08-12  Mo DeJong  <mdejong@redhat.com>
3507
3508         * unix/configure: Regen.
3509         * unix/tcl.m4: Update from Tcl.
3510
3511 2001-08-10  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
3512
3513         * library/demos/image2.tcl (loadDir): Converted non-portable
3514         [glob [file join $dirName *]] to [glob -directory $dirName *]
3515         which is both fully portable and more reliable when directory
3516         names contain glob-significant characters.  [Bug 223313]
3517
3518 2001-08-08  Don Porter <dgp@users.sourceforge.net>
3519
3520         * tests/dialog.test:  New file testing [tk_dialog].
3521
3522         * library/dialog.tcl:
3523         * library/tkfbox.tcl: Corrections to problems introduced by
3524         the TIP 44 changes.  [Bug 449261]
3525
3526         * README:
3527         * generic/tk.h:
3528         * unix/configure:
3529         * unix/configure.in:
3530         * unix/tk.spec:
3531         * win/configure:
3532         * win/configure.in: Bumped up patchlevel to 8.4a4 to distinguish
3533         CVS snapshots from the 8.4a3 release.  This does not necessarily
3534         mean there will be an 8.4a4 release.  [Bug 448938].
3535
3536 2001-08-07  Jeff Hobbs  <jeffh@ActiveState.com>
3537
3538         * unix/Makefile.in (dist): added {unix,win}/tcl.m4 and
3539         library/msgs/*.msg to dist target.  [Bug: #448802]
3540
3541 2001-08-06  Jeff Hobbs  <jeffh@ActiveState.com>
3542
3543         8.4a3 RELEASE
3544
3545         * changes:
3546         * README: updated for 8.4a3 release
3547
3548         * unix/configure: regenerated
3549         * unix/tcl.m4: added GNU (HURD) configuration target. (brinkmann)
3550         [Patch: #442974]
3551
3552 2001-08-06  Don Porter  <dgp@users.sourceforge.net>
3553
3554         * generic/tkConsole.c:
3555         * generic/tkWindow.c:
3556         * library/bgerror.tcl:
3557         * library/dialog.tcl:
3558         * library/msgbox.tcl:
3559         * library/unsupported.tcl:
3560         * mac/tclets.tcl:
3561         * mac/tkMacHLEvents.c:
3562         * mac/tkMacWm.c:  TIP 44 changes specific to the Mac and
3563         Windows platforms that were overlooked before: tkOpenDocument,
3564         tkConsoleExit, tkConsoleOutput, unsupported1 out of namespace :: .
3565         Thanks to Vince Darley for prompting another look.
3566
3567 2001-08-03  Jeff Hobbs  <jeffh@ActiveState.com>
3568
3569         * win/winMain.c (WishPanic): fixed CONST changes to go with
3570         CONST-ification in Tcl.
3571
3572         * win/configure: regenerated
3573         * win/tcl.m4: fixed DLLSUFFIX definition to always be ${DBGX}.dll.
3574         This is necessary for TEA compliant builds that build shared
3575         against a static-built Tk.
3576         * win/Makefile.in ($(WISH)): added $(TK_STUB_LIB_FILE) to build
3577         target, otherwise it wouldn't get generated in a static build.
3578
3579 2001-08-01  Don Porter  <dgp@users.sourceforge.net>
3580
3581         * doc/console.n:
3582         * doc/menu.n:
3583         * doc/text.n:
3584         * doc/tkvars.n:
3585         * generic/tkBind.c:
3586         * generic/tkMenu.c:
3587         * library/bgerror.tcl:
3588         * library/button.tcl:
3589         * library/choosedir.tcl:
3590         * library/clrpick.tcl:
3591         * library/comdlg.tcl:
3592         * library/console.tcl:
3593         * library/dialog.tcl:
3594         * library/entry.tcl:
3595         * library/focus.tcl:
3596         * library/listbox.tcl:
3597         * library/menu.tcl:
3598         * library/msgbox.tcl:
3599         * library/optMenu.tcl:
3600         * library/palette.tcl:
3601         * library/scale.tcl:
3602         * library/scrlbar.tcl:
3603         * library/spinbox.tcl:
3604         * library/tclIndex:
3605         * library/tearoff.tcl:
3606         * library/text.tcl:
3607         * library/tk.tcl:
3608         * library/tkfbox.tcl:
3609         * library/unsupported.tcl:
3610         * library/xmfbox.tcl:
3611         * mac/tkMacMenu.c:
3612         * tests/clrpick.test:
3613         * tests/filebox.test:
3614         * tests/macMenu.test:
3615         * tests/menu.test:
3616         * tests/menuDraw.test:
3617         * tests/msgbox.test:
3618         * tests/text.test:
3619         * tests/unixMenu.test:
3620         * tests/winMenu.test:
3621         * tests/xmfbox.test:
3622         * unix/mkLinks:
3623         * unix/tkUnixDialog.c: Merged changes from feature branch
3624         dgp-privates-into-namespace, implementing TIP 44.  All
3625         Tk commands and variables matching tk[A-Z]* are now in the
3626         ::tk namespace.  See "BRANCH: dgp-privates-into-namespace"
3627         entries below for details.  [FR 220936]
3628
3629 2001-07-24  Mo DeJong  <mdejong@redhat.com>
3630
3631         * generic/default.h: Include tkWinDefault.h
3632         when built with Cygwin or Mingw.
3633
3634 2001-07-18  Don Porter  <dgp@users.sourceforge.net>
3635
3636         BRANCH dgp-privates-into-namespace:
3637         * doc/console.n:  Updated names of private console commands.
3638
3639 2001-07-16  Don Porter  <dgp@users.sourceforge.net>
3640
3641         BRANCH dgp-privates-into-namespace:
3642         * library/console.tcl:
3643         * library/unsupported.tcl: Renamed tk::histNum to tk::HistNum
3644         as directed by the Tcl Style Guide.
3645
3646 2001-07-10  Mo DeJong  <mdejong@redhat.com>
3647
3648         * unix/Makefile.in: Add AR and STLIB_LD variables.
3649         * unix/configure:
3650         * unix/configure.in: Use STLIB_LD when defining MAKE_LIB
3651         and MAKE_STUB_LIB. Subst STLIB_LD, RANLIB, and AR.
3652         * unix/tcl.m4: Update from Tcl.
3653         * win/configure: Regen.
3654         * win/tcl.m4: Update from Tcl.
3655
3656 2001-07-06  Mo DeJong  <mdejong@redhat.com>
3657
3658         * win/configure: Regen.
3659         * win/tcl.m4: Update from Tcl.
3660
3661 2001-07-05  Mo DeJong  <mdejong@redhat.com>
3662
3663         * win/Makefile.in: Subst DEPARG directly instead
3664         of relying on a variable. This will make Cygwin
3665         build faster since an extra exec will be avoided.
3666         * win/configure: Regen.
3667         * win/configure.in: Subst DEPARG.
3668         * win/tcl.m4: Update from Tcl.
3669
3670 2001-07-04  Jeff Hobbs  <jeffh@ActiveState.com>
3671
3672         * README:
3673         * mac/README:
3674         * unix/README:
3675         * win/README: updated READMEs with purls
3676
3677 2001-07-03  Jeff Hobbs  <jeffh@ActiveState.com>
3678
3679         * tests/canvas.test:
3680         * generic/tkCanvPoly.c (PolygonToArea): Added patch that respects
3681         the polygon difference of including points in the polygon even
3682         when fill is empty.  [Bug #226357]
3683
3684 2001-07-03  Mo DeJong  <mdejong@redhat.com>
3685
3686         * win/Makefile.in: Remove PATHTYPE variable.
3687         * win/configure: Regen.
3688         * win/configure.in: Don't subst PATHTYPE.
3689         * win/tcl.m4: Update from Tcl.
3690
3691 2001-07-03  Mo DeJong  <mdejong@redhat.com>
3692
3693         * win/Makefile.in: Don't use VPSEP, instead just use :
3694         in the VPATH.
3695         * win/configure: Regen.
3696         * win/configure.in: Don't subst VPSEP.
3697
3698 2001-07-03  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
3699
3700         * library/xmfbox.tcl (tkMotifFDialog_ActivateSEnt): Added missing
3701         backslash [Bug #438247]
3702
3703 2001-07-02  Jeff Hobbs  <jeffh@ActiveState.com>
3704
3705         * generic/tkWindow.c (Tk_DestroyWindow): changed to use
3706         Tcl_EventuallyFree instead of ckfree so that widgets that have
3707         references to a tkwin can use them.
3708
3709         * generic/tkCanvArc.c:
3710         * generic/tkCanvBmap.c:
3711         * generic/tkCanvLine.c:
3712         * generic/tkCanvPoly.c:
3713         * generic/tkCanvText.c:
3714         * generic/tkCanvWind.c:
3715         * generic/tkRectOval.c: corrected argument handling in
3716         Create<Item> functions that could lead to ABRs or FMRs and
3717         corrected names of argc/argv to objc/objv.
3718
3719         * generic/tkImgGIF.c (Mgetc): corrected screwy use of ternary
3720         operator and possible FMR.
3721
3722         * generic/tkEntry.c: corrected missing Tcl_Release that caused
3723         font not freed complaints when trying valid cleanup calls.
3724         * generic/tkListbox.c: made use of Tcl_Preserve/Tcl_Release to
3725         prevent FMR errors in Display functions.
3726
3727         * unix/tkUnixScale.c (TkpDisplayScale): corrected FMR when scale
3728         was deleted while calling its command.
3729
3730         * library/console.tcl:
3731         * library/entry.tcl:
3732         * library/spinbox.tcl:
3733         * library/text.tcl:
3734         * library/tk.tcl: added private ::tk::GetSelection command to
3735         handle requesting selection.  This is to support requesting
3736         UTF8_STRING before generic STRING on Unix.  Changed Text, Spinbox,
3737         Entry and Console to use this command.
3738
3739         * tests/select.test:
3740         * generic/tkSelect.c (Tk_CreateSelHandler, Tk_DeleteSelHandler):
3741         on Unix, a UTF8_STRING handler will be created when the user
3742         requests a STRING handler (in addition to the STRING handler).
3743         This provides implicit support for the new UTF8_STRING selection
3744         target.
3745         * unix/tkUnixSelect.c (TkSelEventProc, ConvertSelection): Added
3746         support for UTF8_STRING target. [RFE #418653, Patch #433283]
3747
3748         * generic/tkInt.h: added utf8Atom to TkDisplay structure.
3749
3750         * tests/listbox.test: changed 'darkblue' to 'white' in a test
3751         because it isn't a portable color name.
3752
3753         * generic/tkEntry.c (DestroyEntry): used Tcl_EventuallyFree
3754         instead of ckfree for entryPtr to prevent FMRs. [Bug #413904]
3755
3756 2001-06-26  Mo DeJong  <mdejong@redhat.com>
3757
3758         * unix/Makefile.in:
3759         * win/Makefile.in: Add `make shell` target. This target
3760         will set the proper env vars before invoking wish
3761         from the build directory.
3762
3763 2001-06-26  Mo DeJong  <mdejong@redhat.com>
3764
3765         * win/configure:
3766         * win/configure.in: Revert cross compiling change
3767         accidently added during last checkin.
3768
3769 2001-06-26  Mo DeJong  <mdejong@redhat.com>
3770
3771         * unix/configure: Regen.
3772         * unix/configure.in: Fix last checkin by removing
3773         export since that only works in bash.
3774         * win/configure: Regen.
3775         * win/configure.in: Ditto.
3776
3777 2001-06-26  Mo DeJong  <mdejong@redhat.com>
3778
3779         * unix/configure: Regen.
3780         * unix/configure.in: Set CFLAGS to "" if the user
3781         did not set CFLAGS in the env. This keeps AC_PROG_CC
3782         from adding "-g -O2" to the CFLAGS by default.
3783         * win/configure: Regen.
3784         * win/configure.in: Ditto.
3785
3786 2001-06-22  Mo DeJong  <mdejong@redhat.com>
3787
3788         * win/configure: Regen.
3789         * win/configure.in: Use RC_DEFINE flag from tcl.m4.
3790         * win/tcl.m4: Update from Tcl.
3791
3792 2001-06-22  Mo DeJong  <mdejong@redhat.com>
3793
3794         * win/configure: Regen.
3795         * win/tcl.m4: Update from Tcl.
3796
3797 2001-06-22  Mo DeJong  <mdejong@redhat.com>
3798
3799         * win/configure: Regen.
3800         * win/tcl.m4 (SC_CONFIG_CFLAGS): Link to the
3801         imm32 library when building with mingw gcc.
3802         * win/tkWinX.c: Include the imm.h header
3803         to fix compiling with mingw gcc.
3804
3805 2001-06-22  Mo DeJong  <mdejong@redhat.com>
3806
3807         * win/configure: Regen.
3808         * win/configure.in: Add resource compiler fix from
3809         8.3.3 to fix compiling with mingw.
3810
3811 2001-06-22  Mo DeJong  <mdejong@redhat.com>
3812
3813         * win/configure: Regen.
3814         * win/tcl.m4: Fix silly typo in last checkin.
3815
3816 2001-06-22  Mo DeJong  <mdejong@redhat.com>
3817
3818         * unix/Makefile.in: Set CFLAGS to @CFLAGS@ and @CFLAGS_DEFAULT@.
3819         Set LDFLAGS to @LDFLAGS@ and @LDFLAGS_DEFAULT@. Add LDFLAGS_DEBUG
3820         and LDFLAGS_OPTIMIZE to match the way CFLAGS_DEFAULT works. Use
3821         new LDFLAGS variable in the Makefile instead of @LDFLAGS@.
3822         * unix/configure: Regen.
3823         * unix/configure.in: Don't set CFLAGS to CFLAGS_DEFAULT, instead
3824         subst CFLAGS_DEFAULT into the Makefile. Add AC_SUBST for CFLAGS_DEBUG,
3825         CFLAGS_OPTIMIZE, LDFLAGS_DEFAULT, LDFLAGS_DEBUG, and LDFLAGS_OPTIMIZE.
3826         Remove unused LD_FLAGS subst.
3827         * unix/tcl.m4: Update from Tcl.
3828         * win/Makefile.in: Set CFLAGS to @CFLAGS@ and @CFLAGS_DEFAULT@.
3829         Set LDFLAGS to @LDFLAGS@ and @LDFLAGS_DEFAULT@.
3830         * win/configure: Regen.
3831         * win/configure.in: Don't set CFLAGS or LDFLAGS, instead subst
3832         CFLAGS_DEFAULT and LDFLAGS_DEFAULT into the Makefile.
3833         * win/tcl.m4: Update from Tcl.
3834
3835 2001-06-22  Mo DeJong  <mdejong@redhat.com>
3836
3837         * win/configure:
3838         * win/tcl.m4: Update From Tcl.
3839
3840 2001-06-21  eric melski  <ericm@interwoven.com>
3841
3842         * doc/colors.n: Corrected bogus documentation with respect to
3843         several shades of blue, all of which were listed as RGB 0 0 0.
3844         [Bug #432104].
3845
3846 2001-06-14  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
3847
3848         * library/demos/floor.tcl, library/demos/filebox.tcl,
3849         * library/demos/clrpick.tcl, library/demos/vscale.tcl,
3850         * library/demos/twind.tcl, library/demos/ruler.tcl, 
3851         * library/demos/plot.tcl, library/demos/items.tcl, 
3852         * library/demos/hscale.tcl, library/demos/ctext.tcl,
3853         * library/demos/cscroll.tcl, library/demos/arrow.tcl,
3854         * library/xmfbox.tcl, library/msgbox.tcl,
3855         * library/clrpick.tcl, library/bgerror.tcl: Braced expressions.
3856
3857 2001-06-06  Mo DeJong  <mdejong@redhat.com>
3858
3859         * win/configure: Regen.
3860         * win/configure.in: Handle the --prefix option correctly
3861         it should default to /usr/local like the unix version.
3862
3863 2001-06-03  Jeff Hobbs  <jeffh@ActiveState.com>
3864
3865         * doc/selection.n: 
3866         * doc/clipboard.n: added SEE ALSOs to cross-reference selection
3867         and clipboard, with extra note for clipboard command in selection
3868         docs.  [Patch #422256]
3869
3870         * unix/tkUnixFont.c: Corrected support for iso10646 (X11 Unicode)
3871         fonts on Unix. This adds a ucs-2be (UCS-2 Big Endian) encoding in
3872         Tk on Unix that is used for those fonts (X11 requires
3873         big-endianness). (welch) [Patch #406411; Bug #220890 #220899]
3874         This differs from the 8.3.3 patch by not adding ucs-2be in the
3875         preferred encodingList (seems works fine without).
3876         Added alias for jisx0201* fonts to jis0201 encoding. [Bug #414033]
3877
3878 2001-05-30  Jeff Hobbs  <jeffh@ActiveState.com>
3879
3880         * win/tkWinKey.c (TkpSetKeycodeAndState): removed old debug info
3881
3882 2001-05-29  Jeff Hobbs  <jeffh@ActiveState.com>
3883
3884         * win/tkWinX.c: moved the initialization of tkPlatformId from
3885         TkWinXInit to TkWinGetPlatformId because static builds could call
3886         it before it was initialized. [Bug #427278]
3887
3888 2001-05-28  Peter Spjuth  <peter.spjuth@space.se>
3889
3890         * generic/tkFrame.c:
3891         * generic/tkWindow.c:
3892         * tests/frame.test: Upgraded frame to use the newer TK_OPTION
3893         style when processing configuration options. Some cleanup of
3894         bad comments and bad code. [part of patch #420861]
3895
3896 2001-05-23  Mo DeJong  <mdejong@redhat.com>
3897
3898         * unix/configure:
3899         * unix/tcl.m4:
3900         * win/configure:
3901         * win/tcl.m4: Sync from Tcl sources.
3902
3903 2001-05-21  Jeff Hobbs  <jeffh@ActiveState.com>
3904
3905         * unix/tcl.m4: sync'ed up wih Tcl tcl.m4. [Bug #419812]
3906
3907         * doc/TkInitStubs.3:
3908         * generic/tk.h:
3909         * generic/tkStubLib.c: CONST'ified Tk_InitStubs to match CONST
3910         changes to Tcl_PkgRequireEx.
3911
3912 2001-05-21  Todd M. Helfter  <tmh@purdue.edu>
3913
3914         * doc/menubutton.n:
3915         * generic/tkMenubutton.c:
3916         * generic/tkMenubutton.h:
3917         * mac/tkMacMenubutton.c:
3918         * tests/menubut.test:
3919         * unix/tkUnixMenubu.c: Implementation of TIP #11, the addition of
3920         a -compound option to the menubutton allowing text and an image to
3921         be displayed at the same time.  This behavior is identical to the
3922         behavior of the button widget.
3923
3924 2001-05-16  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
3925
3926         * doc/console.n: Added - was erroneously placed in Tcl before...
3927
3928 2001-04-25  Mo DeJong  <mdejong@redhat.com>
3929
3930         * unix/configure: Regen.
3931         * unix/tcl.m4: Update from Tcl.
3932         * win/configure: Regen.
3933         * win/tcl.m4: Update from Tcl.
3934
3935 2001-04-25  Mo DeJong  <mdejong@redhat.com>
3936
3937         * unix/configure: Regen.
3938         * unix/configure.in: Use $@ in MAKE_LIB and MAKE_STUB_LIB
3939         commands instead of using a delayed subst variable. Replace
3940         instances of STUB_LIB_FILE with TK_STUB_LIB_FILE.
3941
3942 2001-04-25  Mo DeJong  <mdejong@redhat.com>
3943
3944         * unix/Makefile.in: Use TCL_STUB_LIB_FILE instead of STUB_LIB_FILE.
3945         * unix/configure: Regen.
3946         * unix/configure.in: Don't subst STUB_LIB_FILE, use TCL_STUB_LIB_FILE
3947         instead.
3948
3949 2001-04-12  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
3950
3951         * generic/tkImage.c (Tk_ImageObjCmd,DeleteImage): Better detection
3952         of deletion when world is falling apart. [Bug #220819]
3953
3954 2001-04-04  Jeff Hobbs  <jeffh@ActiveState.com>
3955
3956         * win/tkWinMenu.c (TkWinHandleMenuEvent): corrected reseting of
3957         service mode to only occur when it was set. [Bug #220948]
3958
3959 2001-04-03  Jeff Hobbs  <jeffh@ActiveState.com>
3960
3961         * tests/winClipboard.test: improved results for understanding when
3962         tests fail.
3963
3964         * tests/winDialog.test: string totitle'd some results that
3965         expected [pwd] to return a capital drive letter.
3966
3967         * tests/cursor.test: changed tests to use 'heart' cursor because
3968         'arrow' on windows has a pre-skewed use count.
3969
3970         * win/tkWinDialog.c (GetFileNameA): initialize multi to 0.
3971
3972 2001-04-02  Jeff Hobbs  <jeffh@ActiveState.com>
3973
3974         * win/configure:
3975         * win/tcl.m4 (SHLIB_LD): added -incremental:no. [Bug #219381]
3976
3977         * generic/tkMenu.c (TkInvokeMenu): checked for menu deletion
3978         before calling associated menu entry command.  [Bug #220821]
3979
3980         * doc/image.n: added warning about names chosen for images.
3981
3982         * generic/tkImgPhoto.c (ImgPhotoCmd): corrected the src and dest
3983         values for $imageName put when -format and -to are used.
3984         [Bug #232741]
3985
3986         * tests/listbox.test: added test listbox-27.1, delete during
3987         scrollbar update
3988         * generic/tkListbox.c (DestroyListbox, ListboxEventProc):
3989         corrected listbox to make proper use of Tcl_EventuallyFree and
3990         protect against unusual listbox deletion.
3991
3992         * tests/entry.test: added tests entry-20.*, delete during widget
3993         activity
3994         * generic/tkEntry.c (DestroyEntry, EntryEventProc): fixed the
3995         entry widget to survive deletion while processing scrollbar
3996         updates and validation.
3997
3998         * tests/canvas.test: test of canvas delete during event
3999         * generic/tkCanvas.c (DestroyCanvas, CanvasEventProc): fixed the
4000         canvas to survive deletion during event processing. [Bug #228024]
4001
4002 2001-04-01  Jeff Hobbs  <jeffh@ActiveState.com>
4003
4004         * README:
4005         * mac/README: updated patchlevel to 8.4a3 and corrected links and
4006         notes.
4007
4008         * generic/tk.h:
4009         * unix/configure.in (TK_PATCH_LEVEL): 
4010         * unix/configure:
4011         * unix/tk.spec:
4012         * win/configure.in (TK_PATCH_LEVEL): 
4013         * win/configure: updated patchlevel to 8.4a3
4014
4015 2001-03-30  Jeff Hobbs  <jeffh@ActiveState.com>
4016
4017         * tests/safe.test: added note about correcting failures in
4018         safe.test.
4019         * library/tk.tcl: moved package require msgcat inside if case to
4020         not be used in safe interps.
4021
4022         * win/makefile.vc:
4023         * win/configure:
4024         * win/tcl.m4: added imm32.lib to LIBS_GUI for Tk IME support.
4025         * win/tkWinInt.h:
4026         * win/tkWinKey.c:
4027         * win/tkWinX.c: added support for changing IME on the fly in
4028         Windows (2000).  (lam) [Patch #402993]
4029         
4030         * tests/bind.test (bind-22.18):
4031         * generic/tkBind.c (NameToWindow): handled the error case where a
4032         valid-looking but invalid identifier could be passed in certain
4033         event generate options causing a crash. [Bug #411307]
4034
4035         * win/tkWinWm.c (UpdateWrapper): ensured that the passed in winPtr
4036         had an existent window to operate on. [Bug #409172]
4037
4038         * win/Makefile.in (install-*): improved install-* targets to use
4039         their base build dependency.
4040
4041         * generic/tkImage.c (Tk_ImageObjCmd, EventuallyDeleteImage):
4042         added casts to allow compiling on Windows with debbuging.
4043
4044 2001-03-29  Jeff Hobbs  <jeffh@ActiveState.com>
4045
4046         * library/msgs/de.msg: fixed translations. [Patch #403525]
4047
4048         * doc/canvas.n: Noted ability to specify coords as a list in the
4049         docs. (techentin) [Patch #403660]
4050
4051         * tests/canvas.test: added test case to check obj conversion
4052         * generic/tkObj.c (UpdateStringOfMM, SetMMFromAny): better
4053         obj-aware screen distances.  (pgbaum, hobbs) [Patch #403327]
4054
4055         * library/bgerror.tcl (bgerror): allow focus into details window
4056         for Windows C&P to work. [Bug #220929]
4057
4058         * library/tk.tcl: put a catch around adding <hpBackTab> to the
4059         <<PrevWindow>> virtual event as it doesn't seem to work on all HP
4060         systems. [Bug #411669]
4061
4062         * library/tkfbox.tcl: fixed selecting directories and single files
4063         with spaces using tk_getOpenFile -multiple 1. [Bug #411640]
4064
4065         * win/tkWinDialog.c (GetFileNameA): added support for -multiple to
4066         ascii-based tk_getOpenFile (Win9*). (haneef) [Patch #403047]
4067         (GetFileNameW): increased number of files that could be returned
4068         by tk_getOpenFile -multiple. [Patch #412042]
4069
4070 2001-03-29  Mo DeJong  <mdejong@redhat.com>
4071
4072         * library/entry.tcl (tkEntryMouseSelect):
4073         * library/text.tcl (tkTextSelectTo): When
4074         the mouse is dragged with the button down,
4075         move the insertion cursor to the current
4076         mouse position.
4077         * tests/event.test: Add a series of tests
4078         for event generation. Add tests for selection,
4079         check the position of the insertion cursor.
4080
4081 2001-03-28  Jeff Hobbs  <jeffh@gimlet.activestate.com>
4082
4083         * unix/configure:
4084         * unix/tcl.m4: corrected IRIX-5.x config to not use -n32.
4085         (english) [Patch 403626]
4086
4087 2001-03-28  Don Porter  <dgp@users.sourceforge.net>
4088
4089         * tests/focus.test (focus-6.1):
4090         * tests/macEmbed.test (unixEmbed-5.1):
4091         * tests/macMenu.test (macMenu-21.3):
4092         * tests/menu.test (menu-27.1):
4093         * tests/unixEmbed.test (unixEmbed-8.2):
4094         * tests/unixWm.test (unixWm-50.4):  Replaced all [load {} tk]
4095         in Tk test suite with [load {} Tk].  [Bug 220940, Patch 411952]
4096
4097 2001-03-12  Don Porter  <dgp@users.sourceforge.net>
4098
4099         BRANCH dgp-privates-into-namespace:
4100         * doc/menu.n:
4101         * unix/mkLinks: Added documentation for [tk_menuSetFocus].
4102
4103 2001-03-12  Don Porter  <dgp@users.sourceforge.net>
4104
4105         BRANCH dgp-privates-into-namespace:
4106         * doc/text.n:
4107         * doc/tkvars.n:
4108         * unix/mkLinks: Added documentation for commands and variables
4109         matching tk_text*.
4110
4111 2001-03-08  Don Porter  <dgp@users.sourceforge.net>
4112
4113         BRANCH dgp-privates-into-namespace:
4114         * generic/tkTextDisp.c: 
4115         * library/unsupported.tcl: 
4116         * tests/textDisp.test: Restored the global variables tk_textRedraw
4117         and tk_textRelayout.  Since they match tk_*, they should remain
4118         publicly available until at least Tk 9.
4119
4120 2001-03-01  Don Porter  <dgp@users.sourceforge.net>
4121
4122         BRANCH dgp-privates-into-namespace:
4123         * library/unsupported.tcl: New file for Tk's unsupported
4124         interfaces.  Contains [tk::unsupported::ExposePrivateCommand]
4125         and [tk::unsupported::ExposePrivateVariable] that restore the
4126         availability of an old public name of one of Tk's private
4127         commands and variables, respectively, for those applications
4128         and extensions that depend on the old names against advice.
4129
4130 2001-02-28  Don Porter  <dgp@users.sourceforge.net>
4131
4132         BRANCH dgp-privates-into-namespace:  Feature branch to move all
4133         of Tk's private commands and variable into the ::tk namespace
4134         and its children.
4135
4136         * doc/tkvars.n:  Documented private variable tkPriv renamed tk::Priv.
4137
4138         * generic/tkBind.c:
4139         * generic/tkMenu.c:
4140         * generic/tkTextDisp.c:
4141         * library/bgerror.tcl:
4142         * library/button.tcl:
4143         * library/choosedir.tcl:
4144         * library/clrpick.tcl:
4145         * library/comdlg.tcl:
4146         * library/console.tcl:
4147         * library/dialog.tcl:
4148         * library/entry.tcl:
4149         * library/focus.tcl:
4150         * library/listbox.tcl:
4151         * library/menu.tcl:
4152         * library/msgbox.tcl:
4153         * library/optMenu.tcl:
4154         * library/palette.tcl:
4155         * library/scale.tcl:
4156         * library/scrlbar.tcl:
4157         * library/spinbox.tcl:
4158         * library/tclIndex:
4159         * library/tearoff.tcl:
4160         * library/text.tcl:
4161         * library/tk.tcl:
4162         * library/tkfbox.tcl:
4163         * library/xmfbox.tcl:
4164         * mac/tkMacMenu.c:
4165         * tests/clrpick.test:
4166         * tests/filebox.test:
4167         * tests/macMenu.test:
4168         * tests/menu.test:
4169         * tests/menuDraw.test:
4170         * tests/msgbox.test:
4171         * tests/text.test:
4172         * tests/textDisp.test:
4173         * tests/unixMenu.test:
4174         * tests/winMenu.test:
4175         * tests/xmfbox.test:
4176         * unix/tkUnixDialog.c:  All Tk commands matching ::tk[A-Z]* and
4177         all Tk private variables in the global namespace were renamed to
4178         live in the namespace ::tk or one of its children.  
4179
4180 2001-02-13  Eric Melski  <ericm@interwoven.com>
4181
4182         * doc/photo.n: [Bug 132213] Added clarification on interpretation
4183         of ranges for "photoName data -from" subcommand.
4184
4185 2001-02-12  D. Richard Hipp  <drh@hwaci.com>
4186
4187         TIP #21: Asymmetric padding in the pack and grid geometry managers.
4188         With this changes, you can now say "-padx {10 20}" to put 10 pixels
4189         of padding on the left and 20 on the right.  Similar rules apply
4190         for vertical padding.  See the revised documentation for details.
4191
4192 2001-01-02  Andreas Kupries  <a.kupries@westend.com>
4193
4194         * Everything below belongs together and implements TIP #8
4195           (SF patch #102833).
4196
4197         * win/tkWinWm.c (line 56f): Added icon structures.
4198         * win/tkWinWm.c (struct WmInfo, line 242): Added reference to
4199           optional icon for titlebar.
4200         * win/tkWinWm.c (struct ThreadSpecificData, line 335): Added
4201           reference to optional default icon for toplevel windows.
4202         * win/tkWinWm.c (line 387 ... 1169): All the new functions required
4203           to deal with icon specifications, 'InitWm' changed.
4204         * win/tkWinWm.c (TkWmNewWindow, UpdateWrapper, TkWmDeadWindow, Tk_WmCmd):
4205           Added initialization and handling of the new fields.
4206         * doc/wm.n: Documentation updated to explain the newly available
4207           functionality. 
4208
4209 2000-12-13  jeff hobbs  <jhobbs@interwoven.com>
4210
4211         * generic/tkObj.c (SetMMFromAny): Added ability to recognize
4212         double type object to speed up canvas coord calculations.
4213         [Patch 403327]
4214
4215 2000-12-12  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
4216
4217         * doc/entry.n: Improved documentation of interplay between the
4218           -state and -textvariable options.
4219
4220 2000-11-29  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
4221
4222         * tests/image.test (image-1.10): Improved this test, which
4223           previously only worked if the command failed to delete the root
4224           window, and caused *major* trouble otherwise...
4225         * generic/tkImage.c (EventuallyDeleteImage): Created this function
4226           so that images that get deleted during the creation of an image
4227           won't cause a nasty core dump.  Properly fixes bug #120819.
4228
4229 2000-11-28  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
4230
4231         * doc/image.n: 
4232         * generic/tkImage.c (Tk_ImageObjCmd): Backed out previous change.
4233           Bug #120819 is back again in force.  Left the test in there
4234           though.
4235
4236 2000-11-23  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
4237
4238         * doc/image.n: 
4239         * tests/image.test (image-1.10):
4240         * generic/tkImage.c (Tk_ImageObjCmd): Prohibited image names that
4241           start with "." since they can cause some really obscure
4242           crashes.  Fixes Bug #120819.
4243
4244 2000-11-21  Eric Melski  <ericm@ajubasolutions.com>
4245
4246         Overall change:  Implemented TIP 5, which exports
4247         TkClassProcs/TkSetClassProcs as Tk_ClassProcs/Tk_SetClassProcs,
4248         adding a size field to Tk_ClassProcs to allow for future
4249         expansion, and renaming the geometryProc to worldChangedProc,
4250         which is more in keeping with the actual use of the callback.
4251
4252         * unix/mkLinks: Added link for Tk_SetClassProcs.
4253
4254         * doc/SetClassProcs.3: Documentation for
4255         Tk_ClassProcs/Tk_SetClassProcs.
4256
4257         * generic/tkCanvas.c:
4258         * generic/tkEntry.c:
4259         * generic/tkFrame.c:
4260         * generic/tkListbox.c:
4261         * generic/tkMenu.c:
4262         * generic/tkMessage.c:
4263         * generic/tkScale.c:
4264         * generic/tkText.c: Updated to use Tk_ClassProcs/Tk_SetClassProcs
4265         instead of TkClassProcs/TkSetClassProcs.
4266
4267         * generic/tkMenubutton.c:
4268         * generic/tkScrollbar.c:
4269         * generic/tkButton.c: Updated to use Tk_SetClassProcs instead of
4270         TkSetClassProcs.
4271
4272         * generic/tkMenubutton.h:
4273         * generic/tkScrollbar.h:
4274         * generic/tkButton.h:
4275         * win/tkWinButton.c:
4276         * win/tkWinScrlbr.c:
4277         * mac/tkMacButton.c:
4278         * mac/tkMacMenubutton.c:
4279         * mac/tkMacScrlbr.c:
4280         * unix/tkUnixButton.c:
4281         * unix/tkUnixMenubu.c:
4282         * unix/tkUnixScrlbr.c: Updated to use Tk_ClassProcs instead of
4283         TkClassProcs.
4284
4285         * generic/tkDecls.h:
4286         * generic/tkStubInit.c:
4287         * generic/tkIntDecls.h: Regenned from tk.decls, tkInt.decls.
4288         
4289         * generic/tk.h: Added declaration of Tk_ClassProcs, with size
4290         field.  Added typedef's for Tk_ClassCreateProc,
4291         Tk_ClassWorldChangedProc, Tk_ClassModalProc.  Added definition of
4292         Tk_GetClassProc macro, shorthand for extracting a member of the
4293         Tk_ClassProcs structure.
4294
4295         * generic/tkInt.h: Removed declaration of TkClassProcs,
4296         TkClassGeometryProc, etc.
4297
4298         * generic/tkBind.c (Tk_BindEvent): Updated to use Tk_GetClassProc
4299         macro to extract modalProc; added check that the modalProc is non-NULL.
4300
4301         * generic/tkFont.c (RecomputeWidgets): Updated to use
4302         Tk_GetClassProc macro to extract worldChangedProc; added comment
4303         about the choice of a recursive versus iterative algorithm for
4304         propagating world changed messages.
4305
4306         * generic/tkWindow.c (Tk_MakeWindowExist): Updated to use
4307         Tk_GetClassProc macro to extract createProc from Tk_ClassProcs.
4308
4309         * generic/tk.decls: Added declaration for Tk_SetClassProcs.
4310
4311         * generic/tkInt.decls: Commented out declaration for
4312         TkSetClassProcs, which is made public by this change.  The entry
4313         is left in place, but commented, so that future developers will
4314         know not to reuse it's stub number.
4315
4316 2000-11-21  Donal K. Fellows  <fellowsd@cs.man.ac.uk>
4317
4318         * doc/ConfigWidg.3: Added deprecation note from Bug #120944 - use
4319         Tk_SetOption() instead.
4320
4321         * generic/tkImgPhoto.c (TkPhotoGetValidRegion): Applied patch to
4322         create this function and add it to tkInt stubs.  Should now be
4323         possible to write an extension that accesses the transparency data
4324         in a photo image.  Bug #120930
4325
4326 2000-11-03  Jeff Hobbs  <hobbs@ajubasolutions.com>
4327
4328         8.4a2 RELEASE
4329
4330         * generic/tkWindow.c (Initialize): added call to Tcl_SetMainLoop.
4331         This only has effect when tclsh is run (not wish), and then Tk is
4332         loaded in interactively.
4333
4334 2000-11-02  Jeff Hobbs  <hobbs@ajubasolutions.com>
4335
4336         * win/tkWinButton.c:
4337         * win/tkWinDialog.c:
4338         * win/tkWinScrlbr.c:
4339         * win/tkWinWm.c: fixed up code for Win64 support.  This mostly
4340         remains in _WIN64 #ifdef's, until updated compilers are standard.
4341
4342         * win/tcl.m4:
4343         * win/makefile.vc: updated for Win64 compile support
4344
4345         * unix/configure:
4346         * win/configure: checked in configure scripts so people doing
4347         CVS checkouts aren't required to have autoconf.  Changes to
4348         configure.in in the future will require the corresponding
4349         configure script to also be re-autoconf'ed and checked in.
4350
4351         * doc/event.n: added note that key events require window focus.
4352
4353 2000-11-01  Jeff Hobbs  <hobbs@ajubasolutions.com>
4354
4355         * win/tkWinDialog.c (GetFileNameW, GetFileNameA,
4356         Tk_ChooseDirectoryObjCmd): created
4357         work-around for change in NT5.0/98 that caused no initialdir
4358         setting to open the browser up in the user's documents dir.
4359
4360         * tests/color.test: marked color-2.6 nonPortable as we can't
4361         reliably assume what 'red' maps to.
4362
4363 2000-11-01  Eric Melski  <ericm@ajubasolutions.com>
4364
4365         * tests/winDialog.test: Corrected expected results for bad option
4366         tests (5.2, 5.5) to include -multiple option.
4367
4368         * win/tkWinDialog.c: Added branch for 0 return from
4369         CommDlgExtendedError() switches; this was formerly treated as an
4370         error, but it actually is not, since it just means the user hit
4371         cancel or closed the dialog.  (GetFileNameW): Added better smarts
4372         such that -multiple is not considered a valid option for
4373         tk_getSaveFile.
4374         Removed CommDlgExtendedError() checks for color and choosedir
4375         dialogs, and removed all except the explicit invalid filename
4376         checks for the file dialogs.
4377         
4378 2000-10-30  David Gravereaux  <davygrvy@ajubasolutions.com>
4379
4380         * win/configure.in:
4381         * win/Makefile.in:
4382         * win/makefile.vc:
4383         * win/rc/tk.rc:
4384         * win/rc/tk_base.rc (new):
4385         * win/rc/wish.rc: Added logic to derive filenames better in the 
4386         resource scripts based on compile options along with better
4387         support for building a static wish shell with cursor resources.
4388
4389 2000-10-27  Jeff Hobbs  <hobbs@ajubasolutions.com>
4390
4391         * unix/tcl.m4: added support for AIX-5.
4392
4393         * tests/tk.test: 
4394         * doc/tk.n: updated to reflect default on status of useinputmethods.
4395         * library/tk.tcl: tk useinputmethods is set to 1 by default.  This
4396         enables Kanji and dead-char input by default.  Intro'd in
4397         1999-12-16 with default off to avoid some problems with older X
4398         servers that would slow down widget creation over time.
4399
4400         * win/Makefile.in (test, winhelp, tktest): corrected the
4401         TCL_LIBRARY path specification.
4402
4403 2000-10-18  Eric Melski  <ericm@ajubasolutions.com>
4404
4405         * win/tkWinDraw.c (RenderObject): Applied patch from [Bug: 6368],
4406         which corrects rendering of 1-pixel wide stippled lines on Windows.
4407
4408         * generic/tkCanvLine.c (DisplayLine): Applied patch from 
4409         [Bug: 6368], corrects bugs relating to use of active- and
4410         disabledwidth values for displaying lines (disabledwidth was never
4411         used, and activewidth/disablewidths would only possibly be used
4412         when greater than default width, rather than when simply not equal
4413         to default width).
4414
4415         * library/tkfbox.tcl (OkCmd): Applied patch from [Bug: 6365],
4416         which adds safety for directory names containing spaces or which
4417         are non-lists.
4418
4419         * win/tkWinDialog.c (GetFileNameW, GetFileNameA, 
4420         Tk_ChooseColorObjCmd, Tk_ChooseDirectoryObjCmd): Added error
4421         checking for the return value from the common dialog functions, so
4422         that the commands will not silently fail if the common dialog
4423         returns an error. [Bug: 6369].
4424
4425 2000-10-10  Eric Melski  <ericm@ajubasolutions.com>
4426
4427         * generic/tkConfig.c (Tk_InitOptions): Added
4428         Tcl_IncrRefCount/Tcl_DecrRefCount calls on valuePtr, to prevent
4429         memory leaks when the value object comes from the option
4430         database.  [Bug: 6275].
4431
4432 2000-10-06  Jeff Hobbs  <hobbs@ajubasolutions.com>
4433
4434         * win/Makefile.in (cat32.${OBJEXT}): add win/ subdirectory to
4435         cat32 target to correctly find the source file.
4436
4437 2000-10-05  Eric Melski  <ericm@ajubasolutions.com>
4438
4439         * generic/tkCmds.c (Tk_WinfoObjCmd): Added check for
4440         TK_ANONYMOUS_WINDOW flag in the [winfo children] subcommand; if
4441         set, the window will not be printed in the list of children.
4442
4443         * doc/CrtWindow.3: Added entry for Tk_CreateAnonymousWindow.
4444
4445         * generic/tkWindow.c 
4446         (Tk_CreateAnonymousWindow): New API for creating anonymous
4447         windows.  These windows are manipulable from C, but not from Tcl,
4448         because they have no pathname associated with them.  They are used
4449         initially by widgets that do rubber-band resizing (panedwindow,
4450         multi-column listbox, etc.), and may be useful for other widgets
4451         as well (dropbox, combobox).
4452         (Tk_DestroyWindow): Added check for TK_ANONYMOUS_WINDOW flag when
4453         determining whether to generate a DestroyNotify event.
4454
4455         * generic/tkStubInit.c: 
4456         * generic/tkDecls.h: Regen'd from tk.decls.
4457
4458         * generic/tk.decls: Added Tk_CreateAnonymousWindow declaration.
4459
4460         * generic/tk.h: Added TK_ANONYMOUS_WINDOW flag for Tk_Window's.
4461
4462 2000-10-04  Eric Melski  <ericm@ajubasolutions.com>
4463
4464         * doc/MaintGeom.3: Noted that Tk_MaintainGeometry handles direct
4465         descendants properly.
4466
4467         * generic/tkGeometry.c (Tk_MaintainGeometry): Added a check for
4468         the case in which the slave window is a direct descendant of the
4469         master window.  In this case, we need not set up the additional
4470         infrastructure normally provide by Tk_MaintainGeometry, because we
4471         can rely on the parent/child relationship to handle it for us
4472         implicitly.  In this case, Tk_MaintainGeometry just calls directly
4473         to Tk_MoveResizeWindow.  This allows geometry managers to simply
4474         always use Tk_MaintainGeometry to maintain geometry for slaves,
4475         and avoid doing the direct descendant check themselves.
4476         (Tk_UnmaintainGeometry): Added a matching check for the direct
4477         descendant case; in this case, Tk_UnmaintainGeometry simply
4478         returns immediately.
4479
4480 2000-10-01  Eric Melski  <ericm@ajubasolutions.com>
4481
4482         * generic/tkButton.c (ConfigureButton): Added tests for -compound
4483         option, so that when there is a textvariable and an image, and
4484         -compound is not none, the button will display both the
4485         textvariable and the image.
4486
4487         * doc/SetOptions.3: Added note that restoreProc and freeProc may
4488         be NULL.
4489
4490         * generic/tkConfig.c (Tk_RestoreSavedOptions): For custom options,
4491         added test that the restoreProc is not NULL, to allow for custom
4492         options that don't care about supporting Tk_RestoreSavedOptions.
4493
4494 2000-09-29  D. Richard Hipp <drh@hwaci.com>
4495
4496         * generic/tkBitmap.c: Changes to prevent a BadMatch error from the
4497         Xserver when the same bitmap is used on two or more screens of the
4498         same display.
4499
4500         * tests/menu.test: Print a warning if the TK_ALT_DISPLAY environment
4501         variable is not configured so as to test for the bug fix above.
4502
4503         * library/tk.tcl (::tk::SetGrabFocus): "Catch" the grab in case
4504         another application already holds the grab and the "grab" command
4505         fails.
4506
4507 2000-09-29  Jeff Hobbs  <hobbs@scriptics.com>
4508
4509         * win/Makefile.in: commented use of TESTFLAGS
4510         * unix/Makefile.in: added TESTFLAGS to test and testlang targets to
4511         conform with Windows makefile and TEA style.
4512
4513 2000-09-29  Eric Melski  <ericm@ajubasolutions.com>
4514
4515         * generic/tkTest.c: Fixed tests to use updated API.
4516
4517         * doc/SetOptions.3:
4518         * generic/tk.h: 
4519         * generic/tkConfig.c: Changed interface for Tk_CustomOptionSetProc
4520         and Tk_CustomOptionGetProc; these now take a pointer to the start
4521         of the widget record, and an integer offset to the slot for the
4522         option value, instead of just a pointer to the slot.  This allows
4523         more sophisticated options to do interesting things based on other
4524         data in the widget record.
4525
4526 2000-09-17  Eric Melski  <ericm@ajubasolutions.com>
4527
4528         * generic/tk.h: Added declaration of Tk_ObjCustomOption structure,
4529         used for TK_OPTION_CUSTOM, and typedef's of the functions
4530         Tk_CustomOptionSetProc, Tk_CustomOptionGetProc,
4531         Tk_CustomOptionRestoreProc, and Tk_CustomOptionFreeProc, used for
4532         TK_OPTION_CUSTOM.
4533
4534         * doc/SetOptions.3: Added documentation of TK_OPTION_CUSTOM, and
4535         section "CUSTOM OPTION TYPES" explaining how to create and use
4536         custom options.
4537
4538         * tests/config.test: Added tests for custom option type.
4539
4540         * generic/tkTest.c: Added test support for TK_OPTION_CUSTOM to
4541         TestobjconfigObjCmd.  Added CustomOption* functions to implement a
4542         test custom option.
4543
4544         * generic/tkConfig.c: Added new option type TK_OPTION_CUSTOM,
4545         which allows the definition of custom option types by creating
4546         parsing, printing, freeing, and restoring procedures for a custom
4547         option.  This is needed by the text and canvas widgets if they are
4548         to be fully objectified.
4549
4550 2000-09-07  Jeff Hobbs  <hobbs@scriptics.com>
4551
4552         * doc/Tk_Init.3:
4553         * doc/bell.n:
4554         * doc/loadTk.n: minor doc cleanup
4555
4556 2000-09-06  Eric Melski  <ericm@ajubasolutions.com>
4557
4558         * doc/HWNDToWindow.3: 
4559         * doc/GetHWND.3: Changed synopsis to indicate the tkPlatDecls.h
4560         should be included, not tk.h.
4561
4562         * generic/tkPlatDecls.h: Removed #include <windows.h> for Windows,
4563         a better solution for now is to update the docs and have extension
4564         authors #include <tkPlatDecls.h>.
4565
4566         * generic/tk.h: Removed '#include "tkPlatDecls.h"', as the
4567         incorrect inclusion order between windows.h/tkPlatDecls.h causes
4568         build conflicts on Windows.
4569
4570         * generic/tkPlatDecls.h: Added #include <windows.h> for Windows,
4571         so that HWND, etc., are defined properly.
4572
4573 2000-09-06  Jeff Hobbs  <hobbs@scriptics.com>
4574
4575         * doc/canvas.n: fixed doc bug (ellson). [Bug: 6218]
4576
4577         * README:
4578         * generic/tk.h:
4579         * unix/configure.in:
4580         * unix/tk.spec:
4581         * win/configure.in: updated to patchlevel 8.4a2
4582
4583         * generic/tkMessage.c (MessageWidgetObjCmd): initialized result to
4584         avoid pedantic warning.
4585
4586         * generic/tkGrab.c (Tk_GrabObjCmd): changed len arg from size_t to
4587         int to fix pedantic warning.
4588
4589 2000-09-01  Eric Melski  <ericm@ajubasolutions.com>
4590
4591         * win/makefile.vc (install-libraries): 
4592         * win/Makefile.in (install-libraries): 
4593         * unix/Makefile.in (install-libraries): Added tkPlatDecls.h to
4594         list of header files to install.
4595
4596         * generic/tk.h: Added #include "tkPlatDecls.h", which declares the
4597         platform specific component of the public Tk stubs API's.
4598
4599 2000-08-29  Eric Melski  <ericm@ajubasolutions.com>
4600
4601         * win/tkWinMenu.c (DrawWindowsSystemBitmap): Use scratchDC
4602         for determining the source's logical coordinates.  Patch from 
4603         [Bug: 6134 (Markus Oberhumer)].
4604
4605         * win/tkWinMenu.c (SetDefaults): Compute the indicatorDimensions[]
4606         under Windows NT/2000 in the same way as under Windows 95/98.
4607         Patch from [Bug: 6134 (Markus Oberhumer)].
4608
4609         * win/tkWinFont.c (GetScreenFont): Added a memset() to
4610         pacify memory checkers.  Patch from [Bug: 6134 (Markus Oberhumer)].
4611
4612         * library/tkfbox.tcl (::tk::dialog::file::Update): Corrected
4613         handling of multi-pattern filters (eg, "* *.*"), which was broken
4614         by the getOpenFile performance patches applied earlier.
4615
4616 2000-08-24  Eric Melski  <ericm@ajubasolutions.com>
4617
4618         * doc/toplevel.n: 
4619         * doc/spinbox.n: 
4620         * doc/scrollbar.n: 
4621         * doc/scale.n: 
4622         * doc/menubutton.n: 
4623         * doc/menu.n: 
4624         * doc/listbox.n: 
4625         * doc/entry.n: 
4626         * doc/frame.n: 
4627         * doc/message.n: 
4628         * doc/checkbutton.n: 
4629         * doc/radiobutton.n: 
4630         * doc/button.n: 
4631         * doc/label.n: 
4632         * doc/canvas.n: 
4633         * doc/text.n: Fixed Standard Options section to make best use of
4634         new tab settings in man.macros.
4635
4636 2000-08-24  Mo DeJong  <mdejong@redhat.com>
4637
4638         * unix/README: Update to account for removal of --enable-gcc.
4639         * unix/configure.in:
4640         * unix/tcl.m4 (SC_ENABLE_GCC): Remove --enable-gcc option.
4641         * win/configure.in: 
4642         * win/tcl.m4 (SC_ENABLE_GCC): Remove --enable-gcc option.
4643         Remove quick hack that provided cross compile support for
4644         windows builds.
4645
4646 2000-08-23  Jeff Hobbs  <hobbs@scriptics.com>
4647
4648         * generic/tkButton.c (ButtonTextVarProc): reversed change below,
4649         it was not correct.
4650
4651 2000-08-22  Jeff Hobbs  <hobbs@scriptics.com>
4652
4653         * generic/tkButton.c (ButtonTextVarProc): changed order of
4654         incr/decr of new value object, in case they are equal.
4655
4656 2000-08-18  Eric Melski  <ericm@ajubasolutions.com>
4657
4658         * generic/tkImgPhoto.c (ImgPhotoGet): Removed redundant call to
4659         DitherInstance; this call was formerly being made from
4660         ImgPhotoGet->ImgPhotoConfigureInstance->DitherInstance, and
4661         ImgPhotoGet->DitherInstance.  The second call was removed.
4662
4663 2000-08-10  Jeff Hobbs  <hobbs@scriptics.com>
4664
4665         * doc/SetOptions.3: added missing ')'.
4666
4667 2000-08-09  Eric Melski  <ericm@ajubasolutions.com>
4668
4669         * doc/SetOptions.3: Updated documentation to reflect support for
4670         TK_OPTION_NULL_OK for TK_OPTION_DOUBLE and TK_OPTION_PIXELS.
4671
4672         * generic/tkConfig.c: Added for TK_OPTION_NULL_OK support for
4673         TK_OPTION_DOUBLE and TK_OPTION_PIXELS.
4674
4675         * doc/place.n: Updated, reformatted manual entry.
4676
4677         * tests/place.test: Added many tests.
4678
4679         * generic/tkPlace.c (Tk_PlaceObjCmd): Updated to use Tk
4680         widget-option management facilities to manage place options (-x,
4681         -y, etc.), which simplifies the placer code.  Added support for
4682         [place configure pathName] and [place configure pathName -option],
4683         similar to the behavior of the configure subcommand supported by
4684         widgets.
4685
4686 2000-08-08  Eric Melski  <ericm@ajubasolutions.com>
4687
4688         * tests/place.test: Extended test suite to test error returns from
4689         [place].
4690
4691         * generic/tkInt.h: Replaced Tk_PlaceCmd prototype with
4692         Tk_PlaceObjCmd prototype.
4693
4694         * generic/tkWindow.c: Updated [place] command entry to use new
4695         Tcl_Obj interface.
4696
4697         * generic/tkPlace.c (Tk_PlaceObjCmd): Tcl_Obj'ified [place] command.
4698
4699 2000-08-07  Eric Melski  <ericm@ajubasolutions.com>
4700
4701         * generic/tkWindow.c: Updated [selection] command entry to use
4702         new Tcl_Obj interface.
4703
4704         * generic/tkInt.h: Replaced Tk_SelectionCmd prototype with
4705         Tk_SelectionObjCmd prototype.
4706
4707         * tests/select.test: Updated test suite to recognize standardized
4708         error messages.
4709
4710         * generic/tkSelect.c (Tk_SelectionObjCmd): Tcl_Obj'ified
4711         [selection] command.
4712
4713 2000-08-07  Jeff Hobbs  <hobbs@scriptics.com>
4714
4715         * doc/cursors.n: changed .SS to more compatible macros.
4716
4717 2000-08-05  Jeff Hobbs  <hobbs@scriptics.com>
4718
4719         * library/safetk.tcl: rationalized the setting of tk_library when
4720         initialized Tk in a safe interpreter.
4721
4722 2000-08-03  Eric Melski  <ericm@ajubasolutions.com>
4723
4724         * generic/tkWindow.c: Updated "grab" command entry to use
4725         Tcl_Obj'ified command.
4726
4727         * generic/tkInt.h: Replaced Tk_GrabCmd prototype with
4728         Tk_GrabObjCmd prototype.
4729
4730         * tests/grab.test: Initial suite of tests for [grab] command.
4731
4732         * generic/tkGrab.c (Tk_GrabObjCmd): Tcl_Obj'ified [grab] command.
4733
4734         * generic/tkInt.h: Removed Tk_AfterCmd function prototype; the
4735         function does not exist (since 4.0p3).  Cleaned up some line
4736         wrapping.
4737         
4738         * generic/tk.h: Removed "#define Tk_AfterCmd Tcl_AfterCmd";
4739         nothing in the core uses Tk_AfterCmd, and Tcl_AfterCmd doesn't exist
4740         anymore anyway.
4741
4742         * generic/tkInt.h: Replace Tk_BindCmd prototype with
4743         Tk_BindObjCmd prototype.
4744
4745         * generic/tkWindow.c: Updated "bind" command entry to use
4746         Tcl_Obj'ified command.
4747
4748         * generic/tkCmds.c (Tk_BindObjCmd): Tcl_Obj'ified [bind] command.
4749
4750         * tests/bind.test: Tweaked expected error messages for [bindtags]
4751         to comply with updated error messages.
4752
4753         * generic/tkMenu.c (CloneMenu): Replaced calls to Tk_BindtagsCmd
4754         with equivalent calls to Tk_BindtagsObjCmd.
4755
4756         * generic/tkInt.h: Replace Tk_BindtagsCmd prototype with
4757         Tk_BindtagsObjCmd prototype.
4758
4759         * generic/tkWindow.c: Updated "bindtags" command entry to use
4760         Tcl_Obj'ified command.
4761
4762         * generic/tkCmds.c (Tk_BindtagsObjCmd): Tcl_Obj'ified [bindtags]
4763         command.
4764
4765 2000-08-02  Eric Melski  <ericm@ajubasolutions.com>
4766
4767         * generic/tkCmds.c (Tk_TkwaitObjCmd): Tcl_Obj'ified [tkwait] command.
4768
4769         * generic/tkWindow.c: Updated "tkwait" command entry to use
4770         Tcl_Obj'ified command.
4771
4772         * generic/tkInt.h: Replace Tk_TkwaitCmd prototype with
4773         Tk_TkwaitObjCmd prototype.
4774
4775         * generic/tkGrid.c (Tk_GridCmd): Split [grid] subcommands into
4776         separate functions instead of inlining them all in Tk_GridCmd.
4777
4778 2000-08-01  Eric Melski  <ericm@ajubasolutions.com>
4779
4780         * generic/tkInt.h: Replaced prototype for Tk_MessageCmd with
4781         prototype for Tk_MessageObjCmd.
4782
4783         * generic/tkWindow.c: Marked message command as using the new
4784         MessageObjCmd instead of the old MessageCmd.
4785
4786         * tests/message.test: Added tests for the message widget.
4787
4788         * generic/tkMessage.c: Obj'ified the message widget.
4789
4790         * generic/tkInt.h: Removed prototype for Tk_ClipboardCmd, added
4791         prototype for Tk_ClipboardObjCmd.
4792
4793         * generic/tkWindow.c: Updated function pointers for clipboard
4794         command to use Tcl_Obj version.
4795
4796         * tests/clipboard.test: Updated tests to expect standard error
4797         messages.
4798
4799         * generic/tkClipboard.c (Tk_ClipboardObjCmd): Obj'ified
4800         Tk_ClipboardCmd -> Tk_ClipboardObjCmd.
4801
4802 2000-07-28  Eric Melski  <ericm@ajubasolutions.com>
4803
4804         * unix/tkUnixButton.c (TkpDisplayButton): Added bits to change
4805         the indicator color when radio-/check-buttons are disabled.  This
4806         reduces the visual incongruity when a group of these controls are
4807         disabled together.
4808
4809         * win/tkWinMenu.c (ReconfigureWindowsMenu): Added MF_GRAYED bit
4810         for disabled menu entries, to ensure that those which are drawn by
4811         the system are shown grayed (such as entries on menubars) [Bug: 4372].
4812
4813         * doc/label.n: Added -disabledforeground to list of options [Bug:
4814         6053].
4815
4816         * mac/tkMacDefault.h: 
4817         * unix/tkUnixDefault.h: Added default values for listbox
4818         disabledforeground and state.
4819
4820         * win/tkWinDefault.h: Changed default listbox background color to
4821         white and listbox selection borderwidth to 0, in keeping with the
4822         "Microsoft Windows User Experience"; added default values for
4823         listbox disabledforeground and listbox state.
4824
4825         * doc/listbox.n: Added documentation for -state option.
4826
4827         * generic/tkListbox.c: Added support for -state to listbox. [RFE:
4828         6052].
4829
4830         * tests/listbox.test: Tests for listbox disabled state.
4831
4832 2000-07-27  Mo DeJong  <mdejong@redhat.com>
4833
4834         * win/configure.in: TCL_STUB_LIB_FLAG and
4835         TK_STUB_LIB_FLAG should not include ${TCL_DBGX}
4836         in win/tkConfig.sh, fix that.
4837
4838 2000-07-25  Joe English  <jenglish@flightlab.com>
4839         * doc: CanvPsY.3, ConfigWidg.3, CrtImgType.3, CrtItemType.3, 
4840         FontId.3, GetFont.3, canvas.n, font.n, options.n, text.n:
4841         Documentation fix: Replaced references to XFontStruct *
4842         and Tk_FontStruct with Tk_Font.
4843
4844 2000-07-24  Eric Melski  <ericm@ajubasolutions.com>
4845
4846         * tests/text.test: Added tests for -regexp -nocase searches with
4847         backslash character classes.
4848
4849         * generic/tkText.c (TextSearchCmd): Text search did not work
4850         properly when -regexp and -nocase were used, in combination with
4851         backslash character classes represented by capital letters (ie,
4852         \W, \M); altered implementation of -regexp -nocase searches to use
4853         new regexp interfaces to fix this problem.  [Bug: 5988].
4854
4855 2000-07-21  Eric Melski  <ericm@ajubasolutions.com>
4856
4857         * tests/text.test: Added tests for searching when text is elided.
4858
4859         * generic/tkText.c (TextSearchCmd): Text search was not returning
4860         the correct index when the search covered (but did not search)
4861         elided characters; corrected this by adjusting the match index by
4862         the number of elided characters preceeding the start of the match,
4863         just as is done with embedded windows, etc. [Bug: 5470].
4864
4865 2000-07-21  Mo DeJong  <mdejong@redhat.com>
4866
4867         * win/configure.in: Add TK_STUB_LIB_FLAG and
4868         TK_BUILD_STUB_LIB_SPEC. These are needed to build a stub enabled
4869         extension.
4870
4871 2000-07-20  Eric Melski  <ericm@ajubasolutions.com>
4872
4873         * unix/tkUnixDraw.c (TkScrollWindow): Replaced a use of a trinary
4874         operator with an if/else, to avoid build problems on some
4875         platforms [Bug: 5819].
4876
4877         * win/makefile.vc: Applied patch from Don Porter to enhance nmake
4878         support on NT/Alpha [RFE: 5939].
4879
4880 2000-07-19  Eric Melski  <ericm@ajubasolutions.com>
4881
4882         * library/text.tcl: Enhanced <Tab> binding to behave like normal
4883         <Tab> bindings when the text widget is disabled (ie, it advances
4884         focus to the next widget).
4885
4886         * generic/tkText.c (TextSearchCmd): Added a test for a NULL
4887         segment pointer when doing backwards searches for "" on an empty
4888         text widget. [Bug: 6007].
4889
4890 2000-07-18  Mo DeJong  <mdejong@redhat.com>
4891
4892         * unix/aclocal.m4: Use tcl.m4.
4893
4894         * unix/configure.in: Properly quote LOCALES variable. Properly quote
4895         argument to m4 macro.
4896         
4897         * unix/tcl.m4: Add updated file from tcl.
4898         
4899         * win/tcl.m4: Updated file from tcl.
4900
4901 2000-07-18  Eric Melski  <ericm@ajubasolutions.com>
4902
4903         * library/tkfbox.tcl: Fixed keyboard navigation in the iconlist.
4904
4905         * unix/configure.in (MAKE_LIB): Corrected definition of MAKE_LIB
4906         for shared builds, with patch from Mike Hopkirk.
4907         
4908 2000-07-18  Mo DeJong  <mdejong@redhat.com>
4909
4910         * win/Makefile.in: Fix TCL_GENERIC_DIR variable
4911         so that it uses the TK_SRC_DIR in the same way
4912         as the unix version.
4913
4914 2000-07-17  David Gravereaux  <davygrvy@ajubasolutions.com>
4915
4916         * generic/tkConsole.c: Added comments for a Win2K OS bug with
4917         GetStdHandle(STD_OUTPUT_HANDLE).  No change was done to the code
4918         as the resulting behaviour of ShouldUseConsoleChannel() was
4919         correct, anyways. [BUG: 5971]
4920
4921 2000-07-17  Eric Melski  <ericm@scriptics.com>
4922
4923         * generic/tkStubImg.c (Tk_InitImageArgs): Applied patch from [Bug:
4924         5990], from Anselm Lingnau, which correctly sets the value of
4925         useNewImage to 0 when the new image system is not to be used,
4926         instead of leaving it at -1, which causes the check to be
4927         performed more times than is really necessary.
4928         
4929         * library/bgerror.tcl: Fixed a typo in one of the bgerror dialog
4930         label.
4931
4932         * library/msgs/it.msg: Italian message catalog, from Paolo
4933         Brutti. [RFE: 6012].
4934
4935 2000-07-07  Eric Melski  <ericm@ajubasolutions.com>
4936
4937         * library/msgs/el.msg: Greek message catalog, from George Petasis.
4938
4939 2000-07-07  Mo DeJong  <mdejong@redhat.com>
4940
4941         * win/configure.in: Fix subst of TK_SHARED_BUILD
4942         variable in tkConfig.sh.in. Fix definition of
4943         TK_SRC_DIR variable so that it matches the
4944         unix version.
4945
4946 2000-07-05  Mo DeJong  <mdejong@redhat.com>
4947
4948         * generic/tkFileFilter.c (AddClause): Cast to match function prototype.
4949         * win/stubs.c (_XInitImageFuncPtrs): Add return value for function.
4950         * win/tkWinButton.c (buttonStyles, ButtonBindProc, ComputeStyle):
4951         Remove unused declarations.
4952         * win/tkWinColor.c (GetColorByName, GetColorByValue): Remove unused
4953         function declarations.
4954         * win/tkWinDialog.c (TrySetDirectory): Remove unused function 
4955         declaration.
4956         * win/tkWinEmbed.c (TkWinEmbeddedEventProc): Cast to match function 
4957         prototype.
4958         * win/tkWinMenu.c (winMenuMutex, MenuExitProc): Remove unused
4959         declaration.
4960         * win/tkWinWindow.c (StackWindow): Remove unused declaration.
4961         * win/tkWinWm.c (ConfigureEvent): Remove unused declaration.
4962         * win/tkWinX.c (winXMutex): Remove unused declaration.
4963         * xlib/ximage.c (XCreateBitmapFromData): Cast to match function 
4964         prototype.
4965
4966 2000-07-05  Eric Melski  <ericm@ajubasolutions.com>
4967
4968         * tests/imgPhoto.test: Added test for GIF writing code [Bug: 5823].
4969
4970         * generic/tkImgGIF.c: Applied patch from Jan Nijtmans to fix a
4971         problem with the GIF writing code [Bug: 5823].
4972
4973         * generic/tkCursor.c: Added initialization for nextPtr field of
4974         TkCursor, patch from Nijtmans/Howlett.
4975
4976 2000-07-05  Eric Melski  <ericm@ajubasolutions.com>
4977
4978         * library/msgs/nl.msg: Dutch message catalog for dialogs, from Jan
4979         Nijtmans.
4980
4981 2000-06-30  Eric Melski  <ericm@scriptics.com>
4982
4983         * doc/keysyms.n: 
4984         * doc/colors.n: Added extra .CE/.CS pairs to break up the large
4985         text block, so that the generated Windows help file could
4986         accomodate the manual entry. [Bug: 5862]
4987
4988         * tests/filebox.test: Adjusted tests to accomodate -multiple.
4989
4990         * library/xmfbox.tcl: Adjusted arguments list construction such
4991         that -multiple is not presented as an option for tk_getSaveFile.
4992
4993         * library/tk.tcl: Added test for safe interpreter status before
4994         attempting to load message catalogs (which is impossible in a
4995         standard safe interpreter).  This means that SafeTk will not have
4996         localized dialogs, unless a means is found for loading the message
4997         catalog files.
4998
4999 2000-06-29  Eric Melski  <ericm@scriptics.com>
5000
5001         * library/msgs/de.msg: German message catalog.
5002         
5003         * library/msgs/en.msg: English message catalog.
5004
5005         * library/msgs/es.msg: Spanish message catalog.
5006
5007         * library/msgs/fr.msg: French message catalog.
5008
5009         * unix/Makefile.in: 
5010         * unix/configure.in: 
5011         * library/tk.tcl:
5012         * library/clrpick.tcl:
5013         * library/choosedir.tcl:
5014         * library/console.tcl:
5015         * library/msgbox.tcl:
5016         * library/tkfbox.tcl:
5017         * library/xmfbox.tcl:
5018         * library/bgerror.tcl: Applied patches from Laurent Duperval to 
5019         provide localization of Tk dialogs. [RFE: 2671].
5020
5021 2000-06-27  Eric Melski  <ericm@scriptics.com>
5022
5023         * generic/tkMenu.c (DeleteMenuCloneEntries): Applied fix from
5024         [Bug: 5275], which corrected a segfault-causing indexing problem
5025         when deleting entries from torn-off menus.
5026
5027 2000-06-22  Eric Melski  <ericm@ajubasolutions.com>
5028
5029         * doc/getOpenFile.n: Updated with information about -multiple.
5030
5031         * library/choosedir.tcl: Tweaked to handle modified tkIconList API's.
5032
5033         * library/tkfbox.tcl: Preliminary implementation of multiple
5034         selection; based on patch from [RFE: 604].  Some of the tkIconList
5035         functions changed to support this and to make the dialog faster.
5036
5037         * library/xmfbox.tcl: Added support for multiple selection, from
5038         patch in [RFE: 4999].
5039
5040 2000-06-21  Eric Melski  <ericm@scriptics.com>
5041
5042         * library/text.tcl: Corrected behavior of text widget with respect
5043         to this sequence of events:  click, shift-click.  Previously, the
5044         shift-click just moved the cursor and anchor; now, the shift-click
5045         will select the text between the click and the shift-click, which
5046         is the behavior most users expect. [Bug: 5929].
5047
5048 2000-06-19  Eric Melski  <ericm@scriptics.com>
5049
5050         * library/bgerror.tcl: Added auto-truncation for long error
5051         messages (more than 30 characters wide, or more than 4 lines
5052         long), so that the dialog remains a manageable size. [RFE: 5782]
5053
5054 2000-06-15  Eric Melski  <ericm@scriptics.com>
5055
5056         * win/tkWinDialog.c: Patched to support tk_getOpenFile
5057         -multiple. [RFE: 604].
5058
5059 2000-06-13  Eric Melski  <ericm@scriptics.com>
5060
5061         * win/aclocal.m4: 
5062         * win/configure.in: 
5063         * win/Makefile.in: Applied patch from [RFE: 5844], to provide
5064         support for the mingw compile environment for Windows.
5065
5066 2000-06-06  Jeff Hobbs  <hobbs@scriptics.com>
5067
5068         8.4a1 RELEASE
5069
5070 2000-06-03  Jeff Hobbs  <hobbs@scriptics.com>
5071
5072         * doc/CrtCmHdlr.3: new doc for ClientMessage handler procs
5073         * generic/tk.h: added typdef for Tk_ClientMessageProc
5074         * generic/tkStubInit.c:
5075         * generic/tkDecls.h:
5076         * generic/tk.decls: Added Tk_CreateClientMessageHandler and
5077         Tk_DeleteClientMessageHandler declarations.
5078         * generic/tkEvent.c (Tk_HandleEvent): Added
5079         Tk_CreateClientMessageHandler and Tk_DeleteClientMessageHandler to
5080         allow adding event handlers that invoke for ClientMessage events.
5081         This is necessary to support unix dnd protocols.
5082
5083 2000-06-02  Jeff Hobbs  <hobbs@scriptics.com>
5084
5085         * canvas.test: added test for 5783.
5086         * generic/tkCanvPoly.c (DisplayPolygon): added checks for the
5087         polygon fillGC not being empty to prevent segfault. [Bug: 5783]
5088
5089 2000-05-31  Eric Melski  <ericm@scriptics.com>
5090
5091         * library/bgerror.tcl: Improved bgerror based on work by Donal
5092         K. Fellows; no longer dependant on tk_dialog; features a
5093         Windows-esque "Details" button, and a customizable extra function
5094         button that allows the user to (for example) save the stack trace
5095         to a file.
5096
5097 2000-05-30  Eric Melski  <ericm@scriptics.com>
5098
5099         * generic/tkImgGIF.c: Changed defines for GIF87a/GIF89a to be
5100         static char arrays with integer initialization, to address EBCIDIC
5101         vs. ASCII encoding issues and to handle compilers that don't deal
5102         with "\xAB" syntax for specifying hex values in strings.
5103
5104 2000-05-28  Jeff Hobbs  <hobbs@scriptics.com>
5105
5106         * doc/spinbox.n: (new file) docs for spinbox widget
5107         * generic/tkInt.h: added Tk_SpinboxObjCmd declaration
5108         * generic/tkEntry.c: added 'spinbox' widget - an extension of the
5109         entry widget type.
5110         * generic/tkWindow.c: added 'spinbox' to core Tk commands
5111         * library/spinbox.tcl: (new file) binding and helper procs for spinbox
5112         * library/tk.tcl: added spinbox.tcl to list of files to source
5113         * tests/entry.test: updated changed error messages
5114         * tests/spinbox.test: (new file) test suite for spinbox
5115
5116         * generic/tkPlace.c (Tk_PlaceCmd): reworked place master/slave
5117         table init'n to prevent seg fault when using place on multiple
5118         displays.
5119
5120         * generic/tk.h: added comments ot Tk_FakeWin structure
5121
5122 2000-05-26  Eric Melski  <ericm@scriptics.com>
5123
5124         * generic/tkOption.c (Tk_GetOption): Extended Tk_GetOption to
5125         support a new syntax for option names in option tables.  If the
5126         option name has an embedded ".", it indicates that the name field
5127         contains both an option name and an overriding widget class, in
5128         the form "class.option".  The lookup for the option value will be
5129         performed as though the widget class is that specified, rather
5130         than the actual widget class.
5131         (SetupStacks): Replaced several lines of array element copying
5132         with a for loop for conciseness.
5133
5134 2000-05-25  Eric Melski  <ericm@scriptics.com>
5135
5136         * library/button.tcl: Tweaks for -overrelief handling on Windows.
5137
5138         * doc/radiobutton.n: Added documentation for -overrelief option.
5139
5140         * doc/checkbutton.n: Added documentation for -overrelief option.
5141
5142         * doc/label.n: Added documentation for -state option.
5143
5144         * generic/tkButton.c: Added -overrelief option for checkbuttons,
5145         and radiobuttons.
5146
5147         * library/button.tcl (tkButtonDown, macintosh version): Added
5148         protection against querying the -repeatdelay option from a widget
5149         that doesn't support it (ie, checkbuttons, radiobuttons, etc).
5150         Other platforms use a different binding script for checkbuttons
5151         and radiobuttons, so they don't have this issue.
5152         (tkCheckRadioEnter, windows version):  Added code to handle
5153         -overrelief for check/radiobuttons on windows.
5154
5155 2000-05-22  Eric Melski  <ericm@scriptics.com>
5156
5157         * generic/tkButton.c: Added -activeforeground, -activebackground
5158         for labels, for the -state option.
5159
5160         * doc/label.n: Added documentation for -state option,
5161         -activeforeground, -activebackground.
5162
5163 2000-05-22  Jeff Hobbs  <hobbs@scriptics.com>
5164
5165         * win/Makefile.in (install-libraries): corrected to install X
5166         headers [Bug: 5516]
5167
5168         * doc/bind.n: 
5169         * doc/canvas.n: 
5170         * doc/entry.n: 
5171         * doc/listbox.n: 
5172         * doc/photo.n: doc fix-ups [Bug: 5396]
5173
5174 2000-05-17  Jeff Hobbs  <hobbs@scriptics.com>
5175
5176         * doc/bell.n:
5177         * tests/bell.test:
5178         * generic/tkCmds.c (Tk_BellObjCmd): added -nice option to
5179         optionally avoid resetting screen saver [Bug: 4279]
5180
5181 2000-05-15  Jeff Hobbs  <hobbs@scriptics.com>
5182
5183         * win/tkWinWm.c (Tk_WmCmd): changed wm deiconify from using idle
5184         callback to calling restack and focus code immediately.
5185
5186 2000-05-17  Eric Melski  <ericm@scriptics.com>
5187
5188         Overall change:  Added "-readonlybackground" option for entries,
5189         to enable a visual change when state goes to readonly.
5190
5191         * mac/tkMacDefault.h (DEF_ENTRY_READONLY_BG_COLOR,
5192         DEF_ENTRY_READONLY_BG_COLOR):
5193         * win/tkWinDefault.h (DEF_ENTRY_READONLY_BG_COLOR,
5194         DEF_ENTRY_READONLY_BG_COLOR):
5195         * unix/tkUnixDefault.h (DEF_ENTRY_READONLY_BG_COLOR,
5196         DEF_ENTRY_READONLY_BG_COLOR): Added default values for entry
5197         -readonlybackground option.
5198
5199         * generic/tkEntry.c: Added -readonlybackground option, cleaned up
5200         excessive use of graphics contexts.
5201
5202         * tests/entry.test: Added configuration test for
5203         -readonlybackground option.
5204
5205         * doc/entry.n: Added documentation for -readonlybackground option.
5206
5207         Overall change:  changed implementation of "link" relief for
5208         buttons.  Instead of a new relief style (-relief link), there is a
5209         new option, -overrelief, which if set is used when the mouse is
5210         over the button.
5211
5212         * doc/SetOptions.3: Added information about TK_OPTION_NULL_OK with
5213         TK_OPTION_RELIEF.
5214
5215         * win/tkWinButton.c: Removed bits about TK_RELIEF_LINK.
5216
5217         * tests/button.test: Added tests for -overrelief; removed tests
5218         for -relief link.
5219
5220         * mac/tkMacButton.c: Removed bits about TK_RELIEF_LINK.
5221
5222         * generic/tkOldConfig.c: Removed bits about TK_RELIEF_LINK.
5223
5224         * generic/tkConfig.c: Removed bits about TK_RELIEF_LINK; added
5225         support for TK_OPTION_NULL_OK for TK_OPTION_RELIEF.
5226
5227         * library/button.tcl: Added binding support for -overrelief.
5228
5229         * generic/tk3d.c (Tk_GetRelief): Added branch for TK_RELIEF_NULL.
5230
5231         * generic/tkButton.c: Added -overrelief option; removed
5232         Enter/Leave EventProc masks and handlers.
5233
5234         * generic/tk.h: Added TK_RELIEF_NULL definition, removed
5235         TK_RELIEF_LINK.
5236
5237         * mac/tkMacDefault.h (DEF_BUTTON_OVER_RELIEF): 
5238         * win/tkWinDefault.h (DEF_BUTTON_OVER_RELIEF): 
5239         * unix/tkUnixDefault.h (DEF_BUTTON_OVER_RELIEF): Added default
5240         value for the -overrelief option.
5241
5242 2000-05-16  Eric Melski  <ericm@scriptics.com>
5243
5244         * win/tkWinMenu.c (ReconfigureWindowsMenu): Added code to add the
5245         MF_SEPARATOR bit for SEPARATOR_ENTRY menu items.  This causes
5246         separator entries on the system menu to be drawn correctly [Bug: 5451].
5247
5248 2000-05-15  Eric Melski  <ericm@scriptics.com>
5249
5250         * doc/image.n: Added documentation for [image inuse] command.
5251
5252         * tests/image.test: Added tests for [image inuse] command.
5253
5254         * generic/tkImage.c (Tk_ImageObjCmd): Added [image inuse] command,
5255         which provides a means for programmers to determine if a given
5256         image is in use by any widgets. [RFE: 3327].
5257
5258 2000-05-14  Eric Melski  <ericm@scriptics.com>
5259
5260         * doc/clipboard.n: Added documentation for "clipboard get".
5261
5262         * generic/tkClipboard.c (Tk_ClipboardCmd): Added "clipboard get"
5263         subcommand [RFE: 4628].
5264
5265         * tests/clipboard.test: Updated to use "clipboard get" instead of
5266         "selection get -s CLIPBOARD".
5267
5268         * library/entry.tcl: Adjusted Button-1 binding to set focus to the
5269         entry when it is readonly or normal.
5270
5271         * doc/entry.n: Added documentation for readonly state,
5272         -disabledforeground, -disabledbackground.
5273
5274         * tests/entry.test: Added tests for readonly state.
5275
5276         * generic/tkEntry.c: Added support for "readonly" state, and
5277         redefined "disabled" state.  A disabled entry will display its
5278         text in a dimmed color and possibly with a different background,
5279         and will be completely unusable (no selection, no editing).  A
5280         readonly entry will look like a normal entry, but it will not be
5281         editable; selection is still allowed. [RFE: 4239].  To support the
5282         new disabled state properly, "-disabledforeground" and
5283         "-disabledbackground" options were added.
5284         *** THIS IS A BACKWARDS INCOMPATIBLE BEHAVIOR CHANGE ***
5285
5286         * win/tkWinDefault.h:
5287         * mac/tkMacDefault.h:
5288         * unix/tkUnixDefault.h: Added DEF_ENTRY_DISABLED_FG,
5289         DEF_ENTRY_DISABLED_BG_COLOR, DEF_ENTRY_DISABLED_BG_MONO.
5290
5291 2000-05-12  Eric Melski  <ericm@scriptics.com>
5292
5293         * unix/tkUnixButton.c (TkpDisplayButton, TkpComputeButtonGeometry): 
5294         * mac/tkMacButton.c (TkpDisplayButton, TkpComputeButtonGeometry): 
5295         * win/tkWinButton.c (TkpDisplayButton, TkpComputeButtonGeometry): 
5296         Added code for drawing compound buttons.
5297
5298         * tests/button.test: Added configuration tests for -repeatdelay,
5299         -repeatinterval, -compound.
5300
5301         * library/button.tcl: Added support for -repeatedelay,
5302         -repeatinterval options.
5303
5304         * generic/tkOldConfig.c: Changed handling of link relief so that
5305         proper error messages are used.
5306
5307         * generic/tkButton.h: Added -compound, -repeatdelay,
5308         -repeatinterval options.
5309
5310         * generic/tkButton.c: Added event watchers for enter/leave events,
5311         for link relief support.
5312
5313         * generic/tk3d.c: Changed handling of link relief so that proper
5314         error messages are used.
5315
5316         * generic/tk.h: Changed values of
5317         TK_OPTION_LINK_OK/TK_CONFIG_LINK_OK for link relief support.
5318
5319 2000-05-12  Jeff Hobbs  <hobbs@scriptics.com>
5320
5321         * win/tkWinFont.c (LoadFontRanges): improved support for all chars
5322         in 0-255 range for bitmap ANSI fonts.  May be improved to handle
5323         bitmap non-ANSI fonts in the future. [Bug: 2172]
5324
5325         * win/tkWinWm.c (RaiseWinWhenIdle): added TK_DONT_DESTROY_WINDOW
5326         to flag check to prevent timing related core dump. [Bug: 5438]
5327
5328 2000-05-11  Jeff Hobbs  <hobbs@scriptics.com>
5329
5330         * win/tkWinTest.c (TestclipboardObjCmd): ensured CloseClipboard
5331         would always get called for each OpenClipboard.
5332
5333         * tests/focus.test (focusSetupAlt): removed wm withdraw from proc
5334         as it would cause a hang for tkwait visibility
5335
5336         * tests/menu.test:
5337         * generic/tk3d.c:
5338         * generic/tkColor.c:
5339         * generic/tkCursor.c: corrected handling of 3DBorder, Cursor and
5340         Color objects on multiple screens. [Bug: 5454]
5341
5342 2000-05-09  Eric Melski  <ericm@scriptics.com>
5343
5344         * doc/button.n: Added documentation for link relief.
5345
5346         * tests/button.test: Added tests for link relief for buttons.
5347
5348         * generic/tk.h (TK_CONFIG_LINK_OK): Added definition of
5349         TK_RELIEF_LINK, TK_OPTION_LINK_OK and TK_CONFIG_LINK_OK. [RFE: 4348]
5350
5351         * generic/tk3d.c: Added support for link relief. [RFE: 4348]
5352
5353         * mac/tkMacButton.c (TkpDisplayButton): 
5354         * unix/tkUnixButton.c (TkpDisplayButton): Added support for link
5355         relief. [RFE: 4348]
5356
5357         * generic/tkOldConfig.c (Tk_ConfigureWidget): 
5358         * generic/tkConfig.c (DoObjConfig): Added understanding of link
5359         relief, which is allowed only for widgets that have
5360         TK_OPTION_LINK_OK or TK_CONFIG_LINK_OK set for the "-relief"
5361         option. [RFE: 4348]
5362
5363         * generic/tkButton.c: Added TK_OPTION_LINK_OK to "-relief" option
5364         for buttons. [RFE: 4348]
5365
5366         * win/tkWinWm.c (EX_TRANSIENT_STYLE): Removed WS_EX_TOOLWINDOW
5367         style bit, so that transient windows have full-size titlebars
5368         (like the tk_getOpenFile dialog).
5369
5370         * win/tkWinMenu.c (GetMenuSeparatorGeometry): Tweaked height
5371         requested for separator bars to be (linespace - (2*descent))
5372         instead of just (linespace); this makes the separator occupy a
5373         more correct amount of vertical space. [Bug: 5303].
5374
5375 2000-05-09  Jeff Hobbs  <hobbs@scriptics.com>
5376
5377         * library/focus.tcl: fixed calling of takeFocus proc [Bug: 5372]
5378
5379 2000-05-02  Jeff Hobbs  <hobbs@scriptics.com>
5380
5381         * README:
5382         * generic/tk.h:
5383         * library/tk.tcl:
5384         * mac/README:
5385         * unix/README:
5386         * unix/configure.in:
5387         * unix/tk.spec:
5388         * win/README:
5389         * win/aclocal.m4:
5390         * win/configure.in:
5391         * win/makefile.vc: updated patchlevel to 8.4a1
5392
5393         * unix/Makefile.in: added tk.spec to dist target
5394
5395 2000-04-27  Eric Melski  <ericm@scriptics.com>
5396
5397         * doc/Tk_Init.3: Added Tk_SafeInit information [Bug: 1884].
5398
5399         * doc/keysyms.n: Man page enumerating keysyms [RFE: 1645].
5400
5401         * doc/colors.n: Man page enumerating valid color names [RFE: 1645].
5402
5403         * doc/cursors.n: Man page enumerating valid cursor values [RFE: 1645].
5404
5405         * library/msgbox.tcl: Corrected Unix tk_messageBox implementation
5406         to make the first button the default when no default is specified
5407         [Bug: 2218].
5408
5409         * doc/messageBox.n: Updated documentation with regards to
5410         selection of default button when none is specified (now it will
5411         use the first button as the default in that case) [Bug: 2218].
5412
5413 2000-04-26  Jeff Hobbs  <hobbs@scriptics.com>
5414
5415         8.3.1 RELEASE
5416
5417         * README:
5418         * mac/README:
5419         * unix/README:
5420         * unix/tk.spec:
5421         * win/README: Updating URLs to reference dev.scriptics.com
5422
5423 2000-04-25  Jeff Hobbs  <hobbs@scriptics.com>
5424
5425         * unix/Makefile.in:
5426         * win/Makefile.in: makefile cleanup
5427
5428 2000-04-25  Eric Melski  <ericm@scriptics.com>
5429
5430         * generic/tkMain.c: Fixed function header comment for Tk_MainEx.
5431
5432         * unix/mkLinks: 
5433         * doc/GetScroll.3: Added information about Tk_GetScrollInfoObj
5434         [Bug: 1866].
5435
5436 2000-04-24  Eric Melski  <ericm@scriptics.com>
5437
5438         * unix/mkLinks: 
5439         * doc/Grab.3: Man page for Tk_Grab and Tk_Ungrab [Bug: 1868, 1889]
5440
5441         * unix/mkLinks: 
5442         * doc/MainWin.3: Added entry for Tk_GetNumMainWindows [Bug: 1865].
5443
5444         * unix/mkLinks: 
5445         * doc/GetHINSTANCE.3: Man page for Tk_GetHINSTANCE [Bug: 1862].
5446
5447 2000-04-24  Jeff Hobbs  <hobbs@scriptics.com>
5448
5449         * generic/tkImage.c (Tk_PostscriptImage): added check to create
5450         necessary prolog for photos
5451         * generic/tkCanvPs.c: added Tk_PostscriptPhoto that outputs PS for
5452         photo images
5453         * generic/tkImgPhoto.c: new func ImgPhotoPostscript and added that
5454         in as ps proc in tkPhotoImageType.
5455         * generic/tkStubInit.c:
5456         * generic/tkDecls.h:
5457         * generic/tk.decls: added Tk_PostscriptPhoto
5458
5459         * generic/tkConfig.c (DoObjConfig): removed direct setting of
5460         interp->result.
5461
5462         * mac/tkMacWm.c (Tk_WmCmd): initialized gotToplevel in
5463         colormapwindows case (bug found by Reasoning, Inc's automated code
5464         testing).
5465
5466 2000-04-24  Eric Melski  <ericm@scriptics.com>
5467
5468         * unix/mkLinks: 
5469         * doc/GetHWND.3: Man page for Tk_GetHWND [Bug: 1863].
5470
5471         * unix/mkLinks: 
5472         * doc/HWNDToWindow.3: Man page for Tk_HWNDToWindow [Bug: 1869].
5473
5474         * unix/mkLinks: 
5475         * doc/AddOption.3: Man page for Tk_AddOption [Bug: 1854]
5476
5477 2000-04-22  Jim Ingham  <jingham@cygnus.com>
5478
5479         * mac/tkMacDialog.c (Tk_MacGetOpenFile): Add empty bodies for the 
5480         "-initialfile" and "-defaultextension" options.
5481
5482         * mac/tkMacDialog.c (NavServicesGetFile): Only cons the result up
5483         into a list if multiple is true.
5484
5485         * mac/tkMacMenus.c (SourceDialog): Use the "tk_getOpenFile"
5486         instead of hand-coding the dialog with StandardGetFile.  This way
5487         we get the Navigation dialogs for free.
5488
5489         * doc/getOpenFile.n: Document the -multiple and -message flags
5490         which are only implemented on the Mac.  Also note that the -title
5491         works on the Mac with Nav Services installed.
5492
5493 2000-04-19  Eric Melski  <ericm@scriptics.com>
5494
5495         * doc/WinViewable.3: 
5496         * unix/mkLinks: Removed docs for Tk_IsViewable.
5497
5498         * win/tkWinDialog.c: Removed calls to Tk_IsViewable.
5499
5500         * generic/tkUtil.c: 
5501         * generic/tkStubInit.c: 
5502         * generic/tkDecls.h: 
5503         * generic/tkCmds.c: 
5504         * generic/tk.decls: Removed Tk_IsViewable function (it was not
5505         actually needed).
5506
5507 2000-04-19  Jeff Hobbs  <hobbs@scriptics.com>
5508
5509         * win/aclocal.m4: made SC_PROG_TCLSH search specifically for
5510         tclsh*.exe type files to find an executable.
5511
5512         * win/Makefile.in: fixed up cleanup, winhelp, cat32 targets
5513
5514         * library/console.tcl: made console use systemfixed font on Win
5515
5516         * generic/tkEntry.c: removed unnecessary ENTRY_VALIDATE #define
5517
5518 2000-04-19  Eric Melski  <ericm@scriptics.com>
5519
5520         * generic/tkRectOval.c (ConfigureRectOval): Added checks for valid
5521         outline settings before creating of outline GC; this means that it
5522         is really possible now to have an oval or rectangle with no
5523         outline.  [Bug: 5029].
5524
5525 2000-04-19  Jeff Hobbs  <hobbs@scriptics.com>
5526
5527         * library/choosedir.tcl (::tk::dialog::file::chooseDir::Config):
5528         * library/tkfbox.tcl (::tk::dialog::file::Config): removed the
5529         extraneous glob on -initialdir after file isdir already returned 1
5530         and moved cd trick into this case as the else already uses [pwd].
5531         [Bug: 5181]
5532
5533         * win/winMain.c: moved extern call out of WinMain func
5534
5535         * README:
5536         * generic/tk.h:
5537         * unix/configure.in:
5538         * unix/tk.spec:
5539         * win/configure.in: bumped to version 8.3.1
5540
5541         * library/msgbox.tcl (tkMessageBox): changed to use grid in some
5542         places, realign icon to anchor nw.
5543
5544         * mac/tkMacScale.c: reverted tkMacScale.c to 1.5 equivalent (it
5545         was accidentally bumped forward).
5546
5547 2000-04-18  Eric Melski  <ericm@scriptics.com>
5548
5549         * win/tkWinPointer.c: Changed Mod2Mask in TkWinGetModifierState to
5550         ALT_MASK, to fix some event problems [Bugs: 1160, 5088].
5551
5552         * win/tkWinX.c: Changed Mod2Mask in GetState to ALT_MASK, to fix
5553         some event problems [Bugs: 1160, 5088].
5554
5555         * generic/tkInt.h: Moved definition of ALT_MASK and META_MASK here
5556         so that it would be accessible from other modules than tkBind.c.
5557
5558         * generic/tkBind.c: Added code in BindEvent to check for ALT_MASK
5559         and META_MASK in the event state field, as this field may not be
5560         set up with the correct display modifier mask bits if the XEvent
5561         structure was created by [event generate] or by the Windows X
5562         emulation. [Bugs: 1160, 5088].
5563
5564 2000-04-18  Scott Redman  <redman@HILO>
5565
5566         * win/tk.rc:
5567         * win/wish.rc:
5568         * win/wish.ico:  Modified copyright dates in Windows resource
5569         files.  Updated the icon for wish.exe.
5570
5571 2000-04-17  Eric Melski  <ericm@scriptics.com>
5572
5573         * win/tkWinDialog.c: Added checks for visibility of parent window
5574         before creating MessageBox and ChooseColor dialogs; this prevents
5575         the application from locking when the parent is withdrawn and the
5576         message box is created.  In these cases, the window will be
5577         created without a parent.
5578
5579         * unix/mkLinks: Added WinViewable.3.
5580
5581         * tests/msgbox.test: Added tests for patch from [Bug: 4997].
5582
5583         * library/msgbox.tcl: 
5584         * library/dialog.tcl: Applied patch from [Bug: 4997]; detaches
5585         dialog window from parent if parent is not viewable.
5586
5587         * library/bgerror.tcl: Removed workaround from [Bug: 4370]; this
5588         is superceeded by patches to dialog.tcl.
5589
5590         * generic/tkCmds.c: Changed WinfoObjCmd to use Tk_IsViewable
5591         function to determine visibility of windows instead of inlining
5592         the code.
5593
5594         * generic/tkStubInit.c: 
5595         * generic/tkDecls.h: 
5596         * generic/tk.decls: Added Tk_IsViewable declaration.
5597
5598 2000-04-17  Eric Melski  <ericm@scriptics.com>
5599
5600         * library/text.tcl: Tweaked double-/triple-click selection;
5601         previously, anchor and insert marks were placed in unexpected
5602         locations following a double or triple click.  Now they are placed
5603         logically.  Also tweaked the extension of selection via
5604         shift-double-clicks so that it no longer selects the contiguous
5605         whitespace on the side of the selection opposite the
5606         double-click. [RFE: 4253].
5607
5608         * doc/menu.n: Added note regarding rendering of
5609         checkbuttons/radiobuttons in menubars on different platforms --
5610         some systems do not draw indicators for check/radiobuttons in
5611         menubars.
5612
5613         * library/menu.tcl: Corrected behavior of
5614         checkbuttons/commands/radiobuttons in menubars [Bug: 630].
5615
5616         * tests/grid.test: Added test for [grid propagate . 0] to not toggle.
5617         
5618         * generic/tkGrid.c: Fixed bogus logic in [grid propagate] that
5619         caused [grid propagate . 0] to act as a toggle instead of an
5620         absolute set. [Bug: 2286].
5621
5622 2000-04-16  Jeff Hobbs  <hobbs@scriptics.com>
5623
5624         * win/tkWinColor.c (FindSystemColor): correct calculation of
5625         colors when shifting value. [Bug: 4919]
5626
5627 2000-04-16  Jim Ingham   <jingham@cygnus.com>
5628
5629         * mac/tkMacPort.h: protect against strncasecmp already defined -
5630         it is in the Pro5 version of MSL.
5631
5632         * mac/tkMacWindowMgr.c (GenerateKeyEvent): Check for a null tkWin.
5633         If the hidden window we use for double-buffering controls manages
5634         to percolate to the top (should never happen, but...) this will
5635         keep us from crashing.
5636
5637         * mac/tkMacButton.c (InitSampleControls): Hide the
5638         double-buffering window BEHIND the first "." window you can find.
5639         This will keep it from ever being the front window, and thus a
5640         black hole for events.  * mac/tkMacButton.c (ButtonEventProc):
5641         Disable the controls when the window is in the background.  This
5642         is required by the MacOS HIG. This doesn't always get called when
5643         it should, it still needs more work.
5644
5645         * mac/tkMacDialog.c: Pretty substantial rewrite to include
5646         Navigation Services support for systems which have it.
5647
5648 2000-04-14  Eric Melski  <ericm@scriptics.com>
5649
5650         * win/tkWinKey.c: Added check for ASCII delete character in
5651         KeycodeToKeysym, to fix [Bug: 5090].  See comment in code for more
5652         information.
5653
5654         * generic/ks_names.h: Added Scroll_Lock and Sys_Req definitions.
5655
5656         * win/tkWinKey.c: Changed implementation of KeycodeToKeysym,
5657         et. al., to use a keycode table for lookups; this will result in
5658         faster keycode -> keysym translations for non-ASCII keys like
5659         Control, Alt, etc.
5660
5661 2000-04-14  Jeff Hobbs  <hobbs@scriptics.com>
5662
5663         * win/tkWinWm.c (WmProc): added check in WM_MOUSEACTIVATE so we
5664         correctly activate native menus when clicking in when we didn't
5665         have focus [Bug: 2272]
5666
5667         * generic/tkCanvas.c (CanvasEventProc:2451): corrected cast
5668
5669         * generic/tkEntry.c (Tk_EntryObjCmd): adjusted finishing error
5670         cases and changed TK_CONFIG_NULL_OK to TK_OPTION_NULL_OK
5671
5672         * tests/scale.test:
5673         * generic/tkScale.c:
5674         * generic/tkScale.h:
5675         * unix/tkUnixScale.c:
5676         * mac/tkMacScale.c: moved (PixelToValue|ValueToPixel|SetScaleValue)
5677         to tkScale.c.  Caused an associated variable to be immediately set
5678         [Bug: 4833]
5679
5680         * library/scale.tcl (tkScaleActivate): reduced number of scale
5681         redisplays by checking current value of state before setting it
5682         again.  [Bug: 4191]
5683
5684         * tests/winDialog.test: tk_chooseDirectory seems to get a noop
5685         from GetOpenFileName in the static build, hanging some tests.
5686         The tests were fixed to timeout (noop cause unknown).
5687
5688         * unix/aclocal.m4 (SC_ENABLE_THREADS): enhanced the detection of
5689         pthread_mutex_init [Bug: 4359] and (SC_CONFIG_CFLAGS) added
5690         --enable-64bit-vis switch for Sparc VIS compilation [Bug: 4995]
5691
5692 2000-04-13  Eric Melski  <ericm@scriptics.com>
5693
5694         * win/tkWinKey.c: Added smarts to check whether the left or right
5695         Control, Shift, or Alt key was pressed.  [Bug: 870].
5696
5697         * win/tkWinMenu.c: Corrected code that created separator items on
5698         menus; originally, it requested that the system be responsible for
5699         drawing those items, so it would ignore configuration items like
5700         the widget background.  Now, we draw the separators ourselves (as
5701         we do with every other kind of menu item already). [Bug: 1166].
5702
5703         * win/tkWin3d.c: 
5704         * unix/tkUnix3d.c: Applied patch from [RFE: 2501]: adds more
5705         sophisticated smarts to TkpGetShadows, so that the highlight of a
5706         very bright color is actually distinguishable from the color, and
5707         the shadow of a very dark color is similarly distinguishable from
5708         the color.
5709
5710         * generic/tkCanvas.c: Applied patch from [Bug: 4202]; adds a check
5711         for NULL tkwin in Tk_CanvasEventuallyRedraw.
5712
5713 2000-04-12  Jeff Hobbs  <hobbs@scriptics.com>
5714
5715         * test/winClipboard.test:
5716         * win/tkWinInt.h:
5717         * win/tkWinClipboard.c (UpdateClipboard):
5718         * win/tkWinX.c (GenerateXEvent): added updatingClipboard tsd and
5719         TkWinUpdatingClipboard accessor function to allow us to flag
5720         ourselves when we are the ones updating the clipboard.  This
5721         corrected inability to create our own clipboard types within a Tk
5722         application.  [Bug: 2338 4318]
5723         * win/tkWinTest.c (TestclipboardCmd): improved TestclipboardCmd
5724         with better error handling and obj'ification
5725
5726 2000-04-11  Eric Melski  <ericm@scriptics.com>
5727
5728         * msgcat.n: Added docs for new behavior from patch in [Bug: 4158].
5729
5730         * msgcat.test: Added tests for new behavior from patch in [Bug:
5731         4158].
5732         
5733         * msgcat.tcl: Applied patch from [Bug: 4158], which enables
5734         msgcat::mc to search the entire namespace ancestry chain for
5735         message translations (ie, first it checks the current namespace,
5736         then the parent, then the parent's parent, etc).  Also allows the
5737         specification of additional args for msgcat::mc; if extra args are
5738         given, the [format] command is used to substitute the additional
5739         args in the translated message.
5740
5741         * library/bgerror.tcl: Moved check for withdrawn state after check
5742         for tkerror; this was causing problems when tkerror was used.
5743
5744 2000-04-10  Eric Melski  <ericm@scriptics.com>
5745
5746         * library/bgerror.tcl: Added check for withdrawn state of . and
5747         unsetting of transient bit for .bgerrorDialog if . is not
5748         viewable; this protects against the application hanging on systems
5749         like Windows, where transient windows are withdrawn with their
5750         parents. [Bug: 4370].
5751
5752         * tests/event.test: Added test for [event generate $widget
5753         <Alt-z>] [Bug: 4611].
5754
5755         * tests/choosedir.test: Changed "namespace import ::tcltest" to
5756         "namespace import -force ::tcltest".
5757
5758         * win/tkWinKey.c: 
5759         * unix/tkUnixKey.c: 
5760         * mac/tkMacKeyboard.c: Changed InitKeymapInfo to
5761         TkpInitKeymapInfo. [Bug: 4611].
5762
5763         * generic/tkStubInit.c: 
5764         * generic/tkIntDecls.h: Re-gen'd from tkInt.decls.
5765
5766         * generic/tkInt.decls: Added TkpInitKeymapInfo to list of function
5767         decls.
5768
5769         * generic/tkBind.c (HandleEventGenerate): Added code to initialize
5770         keymap info if necessary, and to correctly set modifier bits in
5771         XEvent structure create to handle [event generate] calls.
5772         Previously, the alt/meta bits were not set correctly, so [event
5773         generate $widget <Alt-z>] would always fail. [Bug: 4611]
5774
5775 2000-04-07  Jeff Hobbs  <hobbs@scriptics.com>
5776
5777         * generic/tkGrid.c (InitMasterData): fixed uninit'd data in
5778         GridMaster struct [Bug: 4387]
5779
5780         * library/safetk.tcl (disallowTk): made disallowTk work in the
5781         simple case.
5782
5783         * library/comdlg.tcl (tkFocusGroup_In): fixed key navigation
5784         problems in dialogs under CDE [Bug: 2960]
5785
5786         * tests/winDialog.test: removed knownBug constraint from 5.16
5787
5788         * win/tkWinFont.c (GetScreenFont): corrected adjustment against
5789         LC_FACESIZE limitation for NT [Bug: 4931]
5790
5791         * win/makefile.vc (TKTEST_OBJS):
5792         * win/Makefile.in (TKTEST_OBJS): moved tkWinTest.c from normal
5793         objs to TKTEST_OBJS where it belonged.
5794
5795 2000-04-03  Jeff Hobbs  <hobbs@scriptics.com>
5796
5797         * generic/tkTest.c: fixed incorrect platform inclusion for
5798         TkplatformtestInit (it would never get called).
5799
5800         * unix/Makefile.in (MAN_INSTALL_DIR): patch to accept --mandir
5801         correctly [Bug: 4085]
5802
5803         * library/clrpick.tcl (tkColorDialog_Config): error now thrown
5804         when -initialcolor "" specified. [Bug: 4198]
5805
5806 2000-03-31  Jeff Hobbs  <hobbs@scriptics.com>
5807
5808         * doc/DrawFocHlt.3: doc name correction
5809
5810         * generic/tkEntry.c: set TK_OPTION_NULL_OK bit on -invcmd option
5811         and removed #ifdef ENTRY_VALIDATE expressions
5812
5813         * library/menu.tcl (tkMenuInvoke): corrected naming of tearoffs
5814         [Bug: 4506]
5815
5816         * library/tkfbox.tcl (tkIconList_Goto): caused browsecmd to be
5817         called in tkIconList_Select.  This causes the entry to be set
5818         properly when using the type-in-name-in-listbox bindings.
5819
5820         * win/tkWinDialog.c: added unicode-aware open/save file dialogs
5821
5822         * win/tkWinFont.c (TkpFontPkgInit): move private ref to platformId
5823         to TkWinGetPlatformId
5824
5825         * win/tkWinMenu.c (SetDefaults): moved private use of versionInfo
5826         to TkWinGetPlatformId and removed all code for
5827         (versionInfo.dwMajorVersion < 4) (== Win32s)
5828
5829         * win/tkWinX.c:
5830         * win/tkWin32Dll.c: moved TkWinGetPlatformId to tkWinX.c
5831         * win/tkWinInit.c: added TkWinXInit to TkpInit to ensure that its
5832         called for static Windows shells. [Bug: 3647]
5833
5834         * win/tkWinInt.h:
5835         * win/tkWinX.c:
5836         * win/tkWinDraw.c (SetUpGraphicsPort): 
5837         * win/tkWinScrlbr.c (UpdateScrollbar): removed use of tkpIsWin32s
5838
5839         * win/tkWinInt.h (TkWinDCState struct): added bkmode value
5840         * win/tkWinDraw.c (TkWinGetDrawableDC, et al): added support for
5841         properly transparent dashed lines on Windows. [Bug: 4617]
5842
5843 2000-03-30  Eric Melski  <ericm@scriptics.com>
5844
5845         * generic/tkImgGIF.c: Fixed some ANSI specific bits to avoid
5846         compile problems with non-ANSI compilers (ie, replace const with
5847         CONST, etc).  [Bug: 4223].
5848
5849         * unix/configure.in: Applied patch from [Bug: 4237]; ensures that
5850         srcdir is fully qualified.
5851
5852         * unix/Makefile.in: Applied patch from [Bug: 4237]; if tcltest was
5853         not compiled, make test/tktest failed.  Now it has a rule to build
5854         tcltest if it has not been built.
5855
5856 2000-03-28  Eric Melski  <ericm@scriptics.com>
5857
5858         * library/tkfbox.tcl: Moved an overlooked tkFDialog* function in
5859         ::tk::dialog::file namespace.
5860
5861         * tests/unixWm.test: Added tests for memory leak conditions in
5862         tkUnixWm.c.
5863
5864         * tests/canvas.test: Added test for bad configuration options on
5865         empty and non-empty canvas.
5866
5867         * generic/tkCanvas.c: Removed bad code in CANV_CONFIGURE block of
5868         CanvasWidgetCmd; this was causing non-empty canvases to improperly
5869         handle bad configuration options [Bug: 4456].
5870
5871 2000-03-27  Eric Melski  <ericm@scriptics.com>
5872
5873         * unix/tkUnixWm.c: Applied patch from [Bug: 4405]; fixes memory
5874         leak in Unix wm command.
5875
5876 2000-03-24  Eric Melski  <ericm@scriptics.com>
5877
5878         * tests/filebox.test: 
5879         * tests/choosedir.test: Updated tests.
5880
5881         * library/xmfbox.tcl: Updated to stash data array in
5882         ::tk::dialog::file namespace instead of in global namespace.
5883
5884         * library/tkfbox.tcl: Extended some functions to support creation
5885         of a choosedir dialog, to allow greater code reuse between the two
5886         dialogs.  Moved tkFDialog* functions into a namespace
5887         (::tk::dialog::file).  Because these are private Tk functions (and
5888         should thus not be used directly by users), this should not impact
5889         anybody (the tk_getOpenFile and tk_getSaveFile commands still
5890         exist at the global scope).
5891
5892         * library/tk.tcl: 
5893         * library/tclIndex: Updated function names for tkFDialog*
5894         functions and choosedir functions.
5895
5896         * library/choosedir.tcl: New and improved implementation of
5897         tk_chooseDirectory dialog.  Based on tk_getOpenFile dialog.
5898
5899 2000-03-23  Eric Melski  <ericm@scriptics.com>
5900
5901         * generic/tkWindow.c: 
5902         * generic/tkInt.h: Updated Tcl_OptionCmd -> Tcl_OptionObjCmd
5903
5904         * generic/tkOption.c: Tcl_Obj'ectified the "option" command.
5905
5906 2000-03-22  Eric Melski  <ericm@scriptics.com>
5907
5908         * library/listbox.tcl (tkListboxCancel): Added a check for empty
5909         string value for tkPriv(listboxPrev).  Without this check, it's
5910         possible to get a stack trace under certain conditions. [Bug: 4373].
5911
5912 2000-03-15  Sven Delmas  <sven@scriptics.com>
5913
5914         * win/tkWinDialog.c: Changed the behavior for the
5915         tk_chooseDirectory dialog under Windows. Instead of trying to
5916         return the currently selected listbox entry (which didn't work in
5917         case the user selected the initial directory anyway), we now
5918         return the value shown in the entry. This seems to be in
5919         accordance with the expected behavior for this dialog.
5920
5921 2000-03-14  Eric Melski  <ericm@scriptics.com>
5922
5923         * tests/choosedir.test: Marked test 3.1 and 3.2 as bad until the
5924         issue with those tests on IRIX can be determined.
5925
5926 2000-03-10  Eric Melski  <ericm@scriptics.com>
5927
5928         * library/menu.tcl: Applied patch from [Bug: 4155]; protects
5929         against grabs on non-viewable windows.
5930
5931 2000-03-08  Eric Melski  <ericm@scriptics.com>
5932
5933         * tests/choosedir.test: Modified test 3.1 (-mustexist works) to be
5934         more careful about cleaning up its potentially troublesome after 
5935         events.
5936
5937 2000-03-07  Eric Melski  <ericm@scriptics.com>
5938
5939         * tests/button.test: 
5940         * generic/tkButton.c: Added -disabledforeground/-state to labels.
5941
5942 2000-03-07  Jeff Hobbs  <hobbs@scriptics.com>
5943
5944         * tests/entry.test:
5945         * generic/tkEntry.c (EntrySetValue): malloc the value when
5946         validating because validation could cause the pointer to become
5947         invalid.  Also fixed configure to not trigger focus-based
5948         validation.  Improved use of Tcl_WrongNumArgs. [Bug: 4320]
5949
5950 2000-03-06  Eric Melski  <ericm@scriptics.com>
5951
5952         * library/menu.tcl: Added a check in tkMenuFirstEntry that changes
5953         menu behavior to only auto-post an immediate child cascade if we
5954         are currently on a menubar menu.  This prevents massive
5955         auto-cascading in cases where the first entry of the cascade is
5956         itself a cascade, and the first entry of that cascade is a
5957         cascade, and the first entry of that cascade is a cascade
5958         ... [Bug: 676].
5959
5960         * generic/tkOldConfig.c: Added check for NULL tkwin value in
5961         Tk_ConfigureWidget [Bug: 4079]
5962
5963         * generic/tkWindow.c: Added check for NULL tkwin value in
5964         Tk_NameToWindow [Bug: 4079]
5965
5966 2000-03-02  Jeff Hobbs  <hobbs@scriptics.com>
5967
5968         * tests/color.test:
5969         * xlib/xcolors.c (XParseColor FindColor):
5970         * win/tkWinColor.c (XAllocColor): Fixed bit fiddling for colors to
5971         return "correct" values for color mapping. [Bug: 4282]
5972
5973         * unix/Makefile.in (SCRIPT_INSTALL_DIR): removed extraneous '/'
5974         * unix/aclocal.m4: corrected TCL_NEEDS_EXP_FILE to be 1 for AIX
5975
5976         * win/tkWinInt.h: change extern to EXTERN for TkWinChildProc
5977         declaration with extra #defs. [Bug: 4240]
5978
5979         * library/focus.tcl: fixed tkFocusOK to protect $w in
5980         uplevel with list. [Bug: 4208]
5981
5982         * doc/CrtItemType.3: fixed docs for Tk_CreateItemType to reflect
5983         changes made in 8.3.0 (but old style would still work as well).
5984         [Bug: 4252]
5985
5986         * tests/config.test: extra test to check object cleanup when
5987         destroying the widget
5988         * generic/tkListbox.c (DestroyListbox): fixed crash in
5989         DestroyListbox due to null tkwin.  [Bug: 4207]
5990
5991         * tests/entry.test: added test suite for entry validation
5992         * doc/entry.n: improved docs discussing caveats and gotchas when
5993         mixing textvar with widget validation
5994         * generic/tkEntry.c (EntryValidateChange): improved handling of
5995         validation with relation to -textvariable.  Previously, it would
5996         turn off whenever the textvar was set.  Now it will it will turn
5997         off only when the textvar is set and validation returns 0.  Added
5998         %V (type of validation occuring) to %-subs to help work with
5999         trickier validation.
6000
6001 2000-03-01  Eric Melski  <ericm@scriptics.com>
6002
6003         * tests/clrpick.test: 
6004         * library/clrpick.tcl: Added code to make color chooser dialog
6005         inherit screen setting from parent (bug #2334)
6006
6007 2000-02-25  Jeff Hobbs  <hobbs@scriptics.com>
6008
6009         * win/tkWinWm.c (RaiseWinWhenIdle): Checked for the possibility
6010         that the window could be destroyed (can occur with
6011         wm deiconify .toplevel; destroy .toplevel).
6012
6013 2000-02-25  Eric Melski  <ericm@scriptics.com>
6014
6015         * generic/tkImgGIF.c: Applied "spirit of" the patch in 1605 (the
6016         submitted patch was more complicated than necessary and did not
6017         extend to writing GIF's, only reading), to allow reading/writing
6018         of GIF files on EBCDIC and other non-ASCII based systems.
6019
6020 2000-02-14  Eric Melski  <ericm@scriptics.com>
6021
6022         * unix/tk.spec: RPM specification for producing a binary Tk RPM
6023         for Linux.
6024
6025         * unix/Makefile.in: Added rpm target to generate Tk
6026         binary RPM.
6027
6028 2000-02-10  Jeff Hobbs  <hobbs@scriptics.com>
6029
6030         8.3.0 RELEASE
6031
6032         * changes: updated for 8.3.0 release
6033
6034         * generic/tkImgGIF.c (FileReadGIF): added cast for trashBuffer
6035
6036         * generic/tkIntXlibDecls.h:
6037         * generic/tkInt.decls: declared some Xlib emulation calls for
6038         the Mac
6039
6040         * generic/tkFrame.c (TkInstallFrameMenu): added extra panic to
6041         inform user of bad call when framePtr is NULL [Bug: 2530]
6042
6043         * generic/tkMenu.c (DestroyMenuInstance): Placed checks around
6044         menu name objects before trying to incr the ref.  [Bug: 3402]
6045
6046         * generic/tkTest.c: removed USE_OLD_IMAGE def for Mac
6047
6048         * library/listbox.tcl:
6049         * library/text.tcl: added support for <4> and <5> for mousewheel
6050         style scrolling on Unix for mice that map to these buttons.
6051
6052         * tests/scrollbar.test: fixed check of testmetrics command to
6053         allow unix tests to run (testmetrics is mac/pc only)
6054
6055         * unix/tkUnixWm.c (Tk_CoordsToWindow): qualified delete of error
6056         handler as the goto label is reached from above and below.
6057
6058         * unix/configure.in:
6059         * unix/aclocal.m4: cleaned up macros to coincide with tcl.m4,
6060         added -export-dynamic to LDFLAGS for FreeBSD-3+ [Bug: 2998]
6061
6062         * unix/README:
6063         * unix/Makefile.in (dist): removed porting.notes and porting.old
6064         from distribution and CVS.  The information was very outdated.  Now
6065         refer to http://dev.scriptics.com/services/support/platforms.html
6066
6067         * xlib/xgc.c: #def'd out XDrawSegments for the Mac, and added
6068         some extra include info for the Mac
6069
6070 2000-02-09  Jim Ingham  <jingham@cygnus.com>
6071
6072         * mac/tkMacButton.c: Stop removing the appearance window from the
6073         Window List.  It is not clear why Ray did this, and it causes the
6074         Appearance manager to crash at random times.
6075         
6076         * mac/tkMacWM.c: Add support in unsupported1 style for the Appearance
6077         specification of window styles, including floating window support.
6078         * mac/tkMacWindowMgr.c: Operate on the front non-floating window,
6079         unless the mouse is directly over the floating window.  Also,
6080         keystrokes go to the front non-floating window.
6081         * mac/tkMacAppInit.c: Initialize floating window support.
6082         * mac/tkMacScrlbr.c:
6083         * mac/tkMacmenu.c: Fixes for floating windows - operate on the 
6084         FrontNonFloatingWindow.
6085         * mac/tkMacLibrary.r: Fix typo in File info string.
6086         * mac/tkMacApplication.r: Fix typo in file info string.  Add
6087         Finder balloon help for no apparent reason.
6088         
6089         * mac/tkMacSubwindows.c: Change panic in tkMacGetDrawablePort to
6090         Debugger.  This is only a temporary fix.  The panic is only
6091         triggered when a safeTk interpreter is torn down, and ignoring it
6092         does no harm.  I haven't figured out how to avoid it yet, however.
6093         Also use the Appearance MoveWindowStructure call when available.
6094         
6095         New Files:
6096         * MW_TkOldImageHeader.h: Handle #defining USE_OLD_IMAGE for tkImgPPM.c.
6097         * MW_TkTestHeader.h:
6098         * MW_TkTestHeader.pch:
6099         * MW_TkHeader.h: Add separate prefix files for test & release
6100         versions of Tk, so we can just have separate targets w/o having to
6101         edit files.
6102         
6103         * tclets.r: The D&D Tclets icon in rez form so we can have a
6104         target for this.
6105
6106         The above are curtesy of Daniel Steffen (steffen@math.mq.edu.au)
6107         
6108         * tkMacAppearanceStubs.c: Stubs of the Mac Appearance calls I use
6109         so I can link the static 68K Shell without putting ifdef's all
6110         over the code.
6111         
6112 2000-02-08  Jeff Hobbs  <hobbs@scriptics.com>
6113
6114         * generic/tk.decls:
6115         * generic/tkBind.c:
6116         * generic/tkInt.decls:
6117         * generic/tkIntDecls.h:
6118         * generic/tkStubInit.c:
6119         * mac/tkMacKeyboard.c:
6120         * unix/tkUnixKey.c:
6121         * win/tkWinKey.c: Fix for keyboard handling of "dead" keys and
6122         caps lock from Peter Spjuth. [Bug: 4105 3359 2493]
6123         Split functions into platform specific files:
6124         Static functions GetKeySym(), SetKeycodeAndState() and InitKeymapInfo()
6125         from tkBind.c moved into platform files tkWinKey.c tkUnixKey.c and
6126         tkMacKeyboard.c.  GetKeySym() and SetKeycodeAndState() renamed to 
6127         Tkp* and made public (as private functions) in tkInt.decls.
6128
6129         Step 2, fixes in tkWinKey.c
6130         New static function: KeycodeToKeysym(), based on XKeycodeToKeysym()
6131         but with different arguments, and a lot of improvements.
6132         TkpGetString() changed to use KeycodeToKeysym() + other fixes.
6133         TkpGetKeySym() changed to use KeycodeToKeysym() + other fixes.
6134         InitKeymapInfo() changed to use KeycodeToKeysym().
6135         TkpSetKeycodeAndState() rewritten, mostly by copying code from
6136         XKeysymToKeycode().
6137         XKeycodeToKeysym() rewritten. Preferably it should be removed.
6138
6139         EXPLANATION: The main problem is ToAscii() which has a lot of side
6140         effects, and also that XKeycodeToKeysym() is not provided enough
6141         input to do a proper job.  The changes' main goal is to avoid
6142         calling ToAscii() if not necessary, and to provide it with as
6143         correct information as possible when called.  Also some attempts
6144         to clean up what ToAscii() did are done.  See the code for details.
6145
6146         BUGS FIXED: Typing shifted (and AltGr) dead keys did not work.
6147         Keyboard lock lamps did not work on Win98.
6148         Events regarding AltGr-keys behaved badly.
6149         Example: On a Swedish keyboard, $ is typed with AltGr-4.
6150         That keyboard event would get the keysym '4' not 'dollar'.
6151         Also, doing [event generete . <Key-dollar>] would send keysym '4'.
6152         Translation to ascii in TkpGetString did not handle return and
6153         tab correctly. I.e. [event generate . <Key-Return>] gave wrong %A
6154
6155         * generic/tkDecls.h:
6156         * generic/tk.decls:
6157         * generic/tk.h: moved new public functions created in dash patch
6158         to the stubs interface [Bug: 4062]
6159
6160         * generic/tk.h: 
6161         * doc/CrtImgType.3:
6162         * doc/CrtPhImgFmt.3:
6163         * generic/tk.h:
6164         * generic/tkImgGIF.c:
6165         * generic/tkImgPhoto.c:
6166         * generic/tkStubImg.c (new file):
6167         * generic/tkTest.c:
6168         * unix/Makefile.in:
6169         * win/Makefile.in:
6170         * win/makefile.vc: improved support for moving from the old style
6171         image C API to the new obj'ified one with new Tk_InitImageArgs
6172         command and stub'ing of image code.  See docs for how to make the
6173         transition. [Bug: 4060]
6174
6175         * library/tk.tcl: wrapped check for tcl_platform(os) around info
6176         exists because it won't in safe interpreters
6177
6178         * win/tkWinFont.c: corrected symbol font use to only work on 8-bit
6179         characters [Bug: 2406]
6180
6181         * unix/aclocal.m4: changed all -fpic to -fPIC
6182
6183         * README:
6184         * unix/configure.in:
6185         * win/configure.in:
6186         * generic/tk.h (TK_RELEASE_SERIAL): Moved to 8.3.0 patchlevel
6187
6188 2000-02-07  Eric Melski  <ericm@scriptics.com>
6189
6190         * library/tkfbox.tcl: Applied patch from bug #4117,
6191         tk_getOpenFile/getSaveFile doesn't do the right thing when user
6192         types a directory name in the entry and a default extension is
6193         specified.
6194
6195 2000-02-05  Jeff Hobbs  <hobbs@scriptics.com>
6196
6197         * unix/tkUnixScale.c (TkpDestroyScale): changed ckfree to
6198         Tcl_EventuallyFree to behave with Tcl_Preserve in TkpDisplayScale
6199         (prevents possible segfault).
6200
6201 2000-02-03  Eric Melski  <ericm@scriptics.com>
6202
6203         * tests/canvText.test: test for fix for bug #2525.
6204
6205         * generic/tkFont.c (Tk_ComputeTextLayout): Was erroneously setting
6206         the width of newline-only text display chunks to some arbitrary
6207         huge number, instead of 0; this was interfering with things like
6208         the canvas find enclosed feature. (bug #2525).
6209
6210         * tests/text.test: 
6211         * generic/tkText.c (DumpLine/DumpSegment): Changed DumpSegment to
6212         take a TkTextIndex instead of two integer offsets, so that it
6213         could use TkTextPrintIndex to format the offsets into an index,
6214         which makes it UTF smart (bug #2582).
6215
6216 2000-02-01  Eric Melski  <ericm@scriptics.com>
6217
6218         * library/tk.tcl: 
6219         * library/tclIndex: 
6220         * library/choosedir.tcl: Moved choosedir functions into the
6221         ::tk::dialog::chooseDir namespace instead of a toplevel
6222         ::tkChooseDirectory namespace.  Additional cleanup on the
6223         chooseDir dialog.
6224
6225 2000-02-01  Jeff Hobbs  <hobbs@scriptics.com>
6226
6227         * doc/text.n: clarified docs on what happens during a search with
6228         -count when images/windows are embedded
6229
6230         * win/Makefile.in (install-*): reduced verbosity of install
6231
6232         * win/tkWinPixmap.c (XGetGeometry): added support for windows in
6233         XGetGeometry [Bug: 4069]
6234
6235         * win/tkWinFont.c (GetScreenFont): fixed possible mem overrun with
6236         long font names [Bug: 4108]
6237
6238         * win/tkWinDialog.c: added EnableWindow calls to dialogs to
6239         correct for possible loss of control in parent Tk toplevel
6240         [Bug: 1212 et al]
6241
6242         * generic/tkRectOval.c (ConfigureRectOval): 
6243         * generic/tkCanvLine.c (ConfigureLine): 
6244         * generic/tkCanvPoly.c (ConfigurePoly): 
6245         * generic/tkCanvArc.c (Configure/DisplayArc): fixed handling for
6246         negative dash values [Bug: 4104]
6247
6248         * generic/tkScale.c (TkRoundToResolution): fixed incorrect
6249         assumption that (N+1)*delta = N*delta + delta with floating point
6250         math [Bug: 3689, 4099]
6251         (DestroyScale) Fixed check for cancelling TkpDisplayScale (was
6252         REDRAW_ALL, is now REDRAW_PENDING)
6253
6254         * tests/listbox.test: corrected test case for listbox itemconfigure
6255
6256         * unix/aclocal.m4: added *BSD ELF recognition for
6257         SHARED_LIB_SUFFIX determination (from Tcl's tcl.m4)
6258
6259 2000-01-27  Eric Melski  <ericm@scriptics.com>
6260
6261         * generic/tkImgPhoto.c: Removed unneccesary object translation in 
6262         MatchStringFormat (bug #4103).
6263
6264 2000-01-27  Eric Melski  <ericm@scriptics.com>
6265
6266         * generic/tkImgGIF.c: Additional code cleanup (now we only have
6267         one decoder!  neat!)
6268
6269 2000-01-26  Eric Melski  <ericm@scriptics.com>
6270
6271         * doc/getOpenFile.n: 
6272         * doc/chooseDirectory.n: Man page/cross links for
6273         tk_chooseDirectory (bug #1786).
6274
6275         * library/tk.tcl: 
6276         * library/tclIndex: Added hooks for tk_chooseDirectory. (bug #1786)
6277
6278         * library/choosedir.tcl: tk_chooseDirectory implementation for
6279         Unix/Mac (bug #1786).
6280
6281         * generic/tkImgPhoto.c: Added some comments regarding slow
6282         processing of transparent images.
6283
6284         * generic/tkImgGIF.c: Improved GIF decoder for ~60% speed
6285         increase.  Added some comments on how to further improve the
6286         implementation, time permitting.
6287
6288         * doc/photo.n: Added a description of what the -data string can
6289         contain (base64 or binary data).
6290
6291         * generic/tkImgPhoto.c: Fixed bug with use of binary data for
6292         "-data" option to "image create" command.
6293
6294 2000-01-21  Eric Melski  <ericm@scriptics.com>
6295
6296         * library/tkfbox.tcl: Fixed bug relating to incorrect parent
6297         values for error message boxes displayed by the file dialog (bug
6298         #3616).
6299
6300         * tests/text.test: 
6301         * generic/tkText.c: Fixed bug relating to regexp searching for
6302         empty lines; previously, the starting line was ignored. (bug #1643).
6303
6304 2000-01-20  Jeff Hobbs  <hobbs@scriptics.com>
6305
6306         * library/text.tcl: fixed double-click selection behavior where
6307         there were embedded windows/widgets in the same line. [Bug: 3989]
6308
6309         * win/tkWinWm.c (TkWmProtocolEventProc): cached atom name as the
6310         window could get destroyed during eval [Bug: 2513]
6311
6312         * generic/tkCanvLine.c (LineCoords): fixed segfault when too few
6313         coords were passed to a line with certain options set (it should
6314         always have thrown an error anyway). [Bug: 4042]
6315
6316         * tests/text.test:
6317         * generic/tkText.c: fixed missing " in error case and missing
6318         'dump' in subcommand listing [Bug: 4036]
6319
6320         * generic/tkListbox.c: adjusted use of basic string concatenation
6321         in (non-K&R behavior) [Bug: 4027]
6322         Swapped bg/fg class for -select(bg|fg) for listbox and their
6323         items [Bug: 4039]
6324
6325         * unix/mkLinks:
6326         * doc/WindowId.3: added docs for Tk_IsContainer and Tk_IsEmbedded
6327
6328         * doc/text.n: clarified mark gravity definition and usage of
6329         ``word'' in binding definitions.  [Bug: 2004 2277 1388]
6330
6331         * generic/tkInt.h: moved new TkDisplay useInputMethods structure
6332         element to end to not disturb position of previous elements in
6333         the structure (as compared to Tk <=8.2).
6334
6335 2000-01-20  Eric Melski  <ericm@scriptics.com>
6336
6337         * tests/grid.test: Added a test for the consecutive ^ and multiple
6338         widget case (bug #1386).
6339
6340         * generic/tkGrid.c: Fixed interpretation of consecutive ^
6341         characters in grid command.  Previously, ^ ^ was interpreted as
6342         meaning that there must be a 2-column widget above to extend,
6343         neglecting the case where there was actually 2 1-column widgets
6344         above.  Now, ^ ^ is interpreted as a possible width; the gridder
6345         will consume as many ^'s as there are columns in the widget, and
6346         leave the rest for the extension of other widgets.  (bug #1386).
6347
6348 2000-01-19  Eric Melski  <ericm@scriptics.com>
6349
6350         * library/tk.tcl: Created a virtual event <<PrevWindow>> for
6351         reverse tab traversals, with one default binding <Shift-Tab>, and
6352         OS specific bindings for Linux, HP-UX, and IRIX. (bug #3163)
6353
6354 2000-01-13  Jeff Hobbs  <hobbs@scriptics.com>
6355
6356         * changes: updated changes file to reflect 8.3b2 mods
6357         * README:
6358         * generic/tk.h:
6359         * unix/configure.in:
6360         * win/configure.in: updated to patchlevel 8.3b2
6361
6362         * win/tkWinWm.c: added visibility event handler to make sure
6363         that transient window wrappers would be updated when the master
6364         was initially mapped.
6365
6366 2000-01-12  Jeff Hobbs  <hobbs@scriptics.com>
6367
6368         * tests/text.test: changed test to reflect change of -hidden
6369         to -elide in search options.
6370
6371         * win/tkWinScrlbr.c: added check for valid hwnd in ModalLoopProc
6372         to avoid crash when building statically
6373
6374         * doc/event.n:
6375         * generic/tkBind.c: prevented core with event -warp on Windows
6376         when window wasn't mapped [Bug: 4004] and added docs stating
6377         the requirement for mapped windows.
6378
6379         * generic/tkCanvas.c: fixed mem leak with TagSearchExprInit
6380         [Bug: 3977]
6381
6382         * generic/tkStubInit.c:
6383         * generic/tkDecls.h: remove non-existent
6384         Tk_(Get|Create)CanvasVisitor prototypes
6385
6386         * generic/tkText.c:
6387         * generic/tkEntry.c: fixed cursor to not blink when widget was
6388         disabled [Bug: 1807]
6389
6390         * generic/tkRectOval.c: added note about change to bloat for
6391         RectOval bounds calculation for WIN32 only
6392
6393         * library/dialog.tcl: improved handling of $default arg to allow
6394         for name of given button, as well as bounds checking
6395
6396         * doc/wm.n:
6397         * tests/winWm.test:
6398         * tests/unixWm.test:
6399         * mac/tkMacWm.c:
6400         * unix/tkUnixWm.c: fixed possible X error being raised [Bug: 3377]
6401         * win/tkWinWm.c: wm deiconify in zoom state [Bug: 2077],
6402         fixed possible flashing of unmapped toplevel in deiconify [Bug: 3338]
6403         and fixed mapping of transient window [Bug: 572]
6404         Also, for all wm's, extended 'wm state' command to allow setting
6405         of the state, and added official support of 'zoomed' state on Win.
6406
6407         * unix/aclocal.m4: strtod bug on Tru64 [Bug: 3378]
6408
6409         * unix/Makefile.in: added tests to prevent unnecessary chmod +x
6410         in source dirs while installing [Bug: 3367]
6411
6412         * unix/configure.in: properly sub'ed in TK_SHARED_BUILD [Bug: 3385]
6413
6414 2000-01-05  Jeff Hobbs  <hobbs@scriptics.com>
6415
6416         * doc/text.n:
6417         * generic/tkText.c:
6418         * generic/tkText.h:
6419         * generic/tkTextBTree.c:
6420         * generic/tkTextDisp.c:
6421         * generic/tkTextTag.c: removed the -state option for text tags,
6422         and reoriented it around -elide, as -state disabled was never
6423         implemented, and -state hidden is better as -elide.
6424
6425         * mac/tkMacClipboard.c: fixed i18n problems with clipboard [Bug: 3544]
6426
6427         * library/entry.tcl:
6428         * library/focus.tcl:
6429         * library/listbox.tcl:
6430         * library/scale.tcl:
6431         * library/scrlbar.tcl:
6432         * library/tearoff.tcl:
6433         * library/text.tcl:
6434         * library/tkfbox.tcl:
6435         * library/xmfbox.tcl: fixed unprotected arg parsing through eval/after
6436         [Bug: 3943]
6437
6438         * unix/Makefile.in: added unix/aclocal.m4 to distribution [Bug: 3938]
6439         * unix/aclocal.m4: changed NetBSD SHLIB_CFLAGS from -fpic to -fPIC
6440
6441         * win/tkWinImage.c: added static declaration to function
6442
6443 1999-12-22  Jeff Hobbs  <hobbs@scriptics.com>
6444
6445         * changes: updated changes file
6446
6447         * generic/tkScale.c:
6448         * generic/tkScale.h:
6449         * mac/tkMacScale.c:
6450         * unix/tkUnixScale.c: fixed potential segv from patch in 3897
6451
6452         * tests/unixWm.test: nonPOrtable -> nonPortable
6453
6454 1999-12-21  Jeff Hobbs  <hobbs@scriptics.com>
6455
6456         * generic/tk.h:
6457         * unix/configure.in:
6458         * win/configure.in:
6459         * win/aclocal.m4:
6460         * README: updated for patch level 8.3b1
6461
6462         * unix/tkUnixWm.c: fixed panic in Tk_CoordsToWindow to print error
6463         and continue instead (for Tix) [Bug: 716 et al]
6464
6465         * scale.test:
6466         * generic/tkScale.c:
6467         * generic/tkScale.h: fixed possible core when freeing options
6468         (cursor) associated with scale widget [Bug: 3897]
6469
6470         * doc/MeasureChar.3: fixed docs for Tk_MeasureChars to reflect code
6471         * doc/listbox.n: fixed formatting problem
6472
6473         * generic/tk3d.c: added extra calculations to ensure that thin
6474         frames get refreshed too [Bug: 3596]
6475
6476         * unix/tkUnixMenu.c:
6477         * unix/tkUnixFont.c:
6478         * generic/tkCanvText.c:
6479         * generic/tkEntry.c:
6480         * generic/tkFont.c:
6481         * generic/tkImgPPM.c: removed extranneous vars that were set but
6482         never used.
6483
6484         * mac/tclMacHLEvents.c: fixed applescript for I18N [Bug: 3644]
6485
6486         * unix/aclocal.m4: removed -O flag for AIX when using the IBM
6487         compiler (several versions have a bug that crops up in the text
6488         widget). [Bug: 2316]
6489
6490         * unix/Makefile.in: removed extra slash in SCRIPT_INSTALL_DIR
6491         [Bug: 3896]
6492
6493         * library/listbox.tcl: added extra checks for existence of
6494         tkPriv(listboxSelection) before it was used. [Bug: 3892]
6495
6496 1999-12-16  Jeff Hobbs  <hobbs@scriptics.com>
6497
6498         * doc/GetCursor.3:
6499         * win/tkWinCursor.c: added support for Windows cursors to
6500         TkGetCursorByName (.ani, .cur) using -cursor @<filename>
6501         (Ascher) [Bug: 1350]
6502
6503         * win/tkWinWm.c: fixed 'wm deiconify' to update position of the
6504         toplevel if event is waiting before mapping. (Mao) [Bug: 3687]
6505         This removes the need for 'update idle' before 'wm deiconify' on
6506         Windows.
6507
6508         * doc/listbox.n: added doc for <<ListboxSelect>> [Bug: 3500]
6509
6510         * doc/getOpenFile.n: removed note that -initialfile didn't work
6511         for tk_getOpenFile
6512         * library/tkfbox.tcl: updated tk_get*File to better match the
6513         Windows file box it emulates, give proper support to -initialfile,
6514         and fixes lack of global tkPriv call.  [Bug: 3735 3882]
6515
6516         * doc/tk.n: added doc for 'tk useinputmethods ...'
6517         * tests/tk.test:
6518         * unix/tkUnixKey.c:
6519         * generic/tkCmds.c:
6520         * generic/tkEvent.c:
6521         * generic/tkWindow.c:
6522         * generic/tkInt.h: add 'tk useinputmethods ?-display win? ?bool?'
6523         call to provide support for disabling/enabling the use of XIM on
6524         X.  This was previously all done at compile time, and always on.
6525         Now it is turned off by default, even when available, and the user
6526         must turn it on to use XIM (per display).
6527
6528         * generic/tkCanvUtil.c: fixed bug in Tk_CanvasPsOutline that freed
6529         mem it shouldn't.
6530
6531         * generic/tkFont.c: added "bitstream cyberbit" (popular Windows
6532         CJK font) to list of font fallbacks. (kenny) [Bug: 2407]
6533
6534         * mac/tkMacMenu.c: finished bug 3075 by changing the char values of
6535         what was checked (verified correctness on Mac).
6536
6537 1999-12-13  Jeff Hobbs  <hobbs@scriptics.com>
6538
6539         * doc/canvas.n: added docs for items added by dash patch (-*dash*,
6540         -state, -active*, -disabled*, -offset, essentially rewrote the
6541         man patch for completely updated 8.3 canvas widget.
6542         * doc/entry.n: added docs for entry widget validation
6543         * doc/event.n: added docs for -warp
6544         * doc/text.n: doc'ed new -state value 'hidden'
6545         * doc/GetDash.3: (new file) man page explaining Tk_GetDash
6546         * generic/tkStubInit.c:
6547         * generic/tkDecls.h:
6548         * generic/tkIntXlibDecls.h:
6549         * generic/tkInt.decls: added XSetDashes and XWarpPointer
6550         * generic/tk.decls: added Tk_CreateSmoothMethod, and reserved
6551         two spots
6552         * generic/tk.h: added Tk_SmoothMethod struct,
6553         state item to canvas record, #defines for item state,
6554         support for using old char*-based canvas item C creation
6555         procedures with -DUSE_OLD_CANVAS,
6556         Tk_Dash, Tk_TSOffset (-offsets) & Tk_Outline structs and #defs,
6557         decls for dash, outline and postscript routines
6558         * generic/tkBind.c: added support for Quadruple clicks, and added
6559         the -warp option to 'event' with pointer warping routines
6560         * xlib/xgc.c:
6561         * generic/tkRectOval.c:
6562         * generic/tkCanvArc.c:
6563         * generic/tkCanvBmap.c:
6564         * generic/tkCanvImg.c:
6565         * generic/tkCanvLine.c:
6566         * generic/tkCanvPoly.c:
6567         * generic/tkCanvPs.c:
6568         * generic/tkCanvText.c:
6569         * generic/tkCanvUtil.c:
6570         * generic/tkCanvWind.c:
6571         * generic/tkCanvas.c:
6572         * generic/tkCanvas.h: Canvas and items received overhaul to with
6573         the addition of the dash patch (Nijtmans, et al)  This includes
6574         objectification of the 'canvas' command, as well as support for
6575         (where appropriate) dashes in items, extended stipple support,
6576         state for all items, and postscript generation of images and
6577         windows.  See the new canvas man page for related docs.
6578         * generic/tkEntry.c: added entry widget validation, see entry.n
6579         * generic/tkEvent.c: on simulated events, ButtonPress should
6580         be matched with ButtonRelease to be correct
6581         * generic/tkFont.c: corrected possible null reference
6582         * generic/tkFrame.c: made frame a Tcl_Obj based command
6583         * generic/tkGet.c: added TkGetDoublePixels
6584         * generic/tkImage.c: bug fixes from Img patch and new
6585         Tk_PostscriptImage and Tk_SetTSOrigin functions
6586         * generic/tkImgBmap.c: new ImgBmapPostscript function
6587         * generic/tkImgPhoto.c: new Tk_CreatePhotoOption, Tk_DitherPhoto
6588         * generic/tkInt.h: declarations for some new functions
6589         * generic/tkMessage.c: reworked relief drawing
6590         * generic/tkOldConfig.c: added TK_CONFIG_OBJS so old style
6591         ConfigureWidget calls can pass in Tcl_Obj arrays
6592         * generic/tkScrollbar.c:
6593         * generic/tkScrollbar.h: made -orient use an option table
6594         * generic/tkText.c:
6595         * generic/tkText.h: made -wrap and -state use option tables
6596         * generic/tkTextBTree.c:
6597         * generic/tkTextDisp.c:
6598         * generic/tkTextImage.c:
6599         * generic/tkTextMark.c:
6600         * generic/tkTextTag.c:
6601         * generic/tkTextWind.c: added support for -elide and -state hidden
6602         * generic/tkTrig.c: changed TkMakeBezierCurve to support returning
6603         the upper limit of points needed for spline
6604         * generic/tkUtil.c: new option table parsing routines
6605         * generic/tkWindow.c: init'ing of warp stuff, mouseButtonState
6606
6607         related bug ids for the fixes:
6608         [Bug: 648 1541 1540 1779 2168 2311 2297 2340 2348 2578 3386]
6609
6610         * tests/bind.test:
6611         * tests/canvImg.test:
6612         * tests/canvPsArc.tcl:
6613         * tests/canvPsImg.tcl: (new file)
6614         * tests/canvRect.test:
6615         * tests/canvText.test:
6616         * tests/canvas.test:
6617         * tests/defs.tcl:
6618         * tests/entry.test:
6619         * tests/event.test:
6620         * tests/font.test:
6621         * tests/frame.test:
6622         * tests/imgPhoto.test:
6623         * tests/safe.test:
6624         * tests/scale.test:
6625         * tests/scrollbar.test:
6626         * tests/select.test:
6627         * tests/text.test:
6628         * tests/textDisp.test:
6629         * tests/textTag.test:
6630         * tests/unixFont.test:
6631         * tests/unixWm.test:
6632         * tests/visual_bb.test:
6633         * tests/winClipboard.test: tests for the dash patch changes
6634
6635         * unix/mkLinks: added GetDash.3 into the mkLink step
6636
6637         * mac/tkMacDraw.c: mac still needs pointer warping routine
6638         * mac/tkMacXStubs.c:
6639         * win/tkWinDraw.c:
6640         * win/tkWinPointer.c: added support for pointer warping and
6641         platform specific support for dash patch items
6642
6643 1999-12-12  Jeff Hobbs  <hobbs@scriptics.com>
6644
6645         * generic/tkText.c: fixed bug in TextSearchCmd for multibyte chars
6646         (Darley) [Bug: 3839]
6647
6648         * unix/aclocal.m4: added warning when configuring with
6649         --enable-threads that Tk may have problems
6650
6651 1999-12-09  Jeff Hobbs  <hobbs@scriptics.com>
6652
6653         * generic/tkImgGIF.c: updated casting
6654
6655         * win/makefile.vc: removed 16bit stuff, simplified makefile.
6656
6657 1999-12-06  Scott Redman  <redman@scriptics.com>
6658
6659         * generic/tkMain.c: need to include tclInt.h for new hook
6660         functions that are internal-use-only.
6661
6662 1999-12-06  Jeff Hobbs  <hobbs@scriptics.com>
6663
6664         * library/comdlg.tcl: removed tclVerifyInteger and tclSortNoCase,
6665         they weren't used, and were not actually correct
6666
6667         * mac/tkMacFont.c:
6668         * mac/tkMacMenu.c:
6669         * mac/tkMacWindowMgr.c: fixed greyed out menu items, handling of
6670         ... elipsis, font mapping problem, and enabled generated menu
6671         posting [Bug: 3705]
6672
6673 1999-12-02  Jeff Hobbs  <hobbs@scriptics.com>
6674
6675         * generic/tkInt.h:
6676         * generic/tkWindow.c:
6677         * generic/tkCmds.c: converted Tk_DestroyCmd, Tk_LowerCmd and
6678         Tk_RaiseCmd to their ObjCmd equivalent.
6679
6680         * library/msgbox.tcl: added color icons for tk_messageBox on Unix
6681         and Mac when tk_strictMotif isn't set. (Hipp)
6682         * library/tk.tcl: added window bounds checking to ::tk::PlaceWindow
6683
6684         * tests/imgPPM.test: fixed test 2.2 to use -format ppm (since
6685         we know have GIF write capability)
6686
6687 1999-12-01  Scott Redman <redman@scriptics.com>
6688
6689         * generic/tkMain.c :
6690         * unix/tkAppInit.c: 
6691         * win/winMain.c: Added added hooks into the main() code for
6692         supporting TclPro and other "big" shells more easily without
6693         requiring a copy of the main() code.
6694
6695 1999-11-29  Jeff Hobbs  <hobbs@scriptics.com>
6696
6697         * generic/tkImgGIF.c: added GIF writing that uses miGIF RLE
6698         [Bug: 2039, new patch]
6699
6700         * library/entry.tcl: fixed up tkEntrySeeInsert (Nemthi)
6701
6702         * generic/tkListbox.c: fixed 'get' of listbox to return a string
6703         when only one item is requested.
6704
6705         * tests/clrpick.test:
6706         * tests/filebox.test: minor whitespace cleanup
6707
6708         * library/tk.tcl: fixed missing $w in ::tk::PlaceWindow
6709
6710 1999-11-24  Jeff Hobbs  <hobbs@scriptics.com>
6711
6712         * library/clrpick.tcl:
6713         * library/msgbox.tcl:
6714         * library/tk.tcl:
6715         * library/tkfbox.tcl:
6716         * library/xmfbox.tcl: fixed dialogs to center over -parent,
6717         added utility functions ::tk::PlaceWindow, ::tk::SetFocusGrab,
6718         ::tk::RestoreFocusGrab to tk.tcl to help
6719
6720 1999-11-23  Eric Melski  <ericm@scriptics.com>
6721
6722         * tests/listbox.test: Added a test to check that the topIndex is
6723         update when items are removed from the listvar variable.
6724
6725         * generic/tkListbox.c: Added a check the updates the topIndex when
6726         items are removed from the listvar variable.
6727
6728         * tests/listbox.test: Added a test to check that the vertical
6729         scrollbar is updated when the listvar changes.
6730
6731         * generic/tkListbox.c (ListboxListVarProc): added a check that
6732         sets the UPDATE_V_SCROLLBAR flag if the length of the listvar has
6733         changed.
6734
6735 1999-11-23  Jeff Hobbs  <hobbs@scriptics.com>
6736
6737         * generic/tk.h:
6738         * generic/tkConfig.c: added support for TK_OPTION_DONT_SET_DEFAULT
6739         as equiv for TK_CONFIG_DONT_SET_DEFAULT
6740         * generic/tkListbox.c: added TK_OPTION_DONT_SET_DEFAULT to the
6741         item specs
6742
6743 1999-11-19  Jeff Hobbs  <hobbs@scriptics.com>
6744
6745         * generic/tkColor.c:
6746         * generic/tkColor.h: fixed Tk_NameOfColor to work correctly,
6747         with minor change to TkColor struct.
6748
6749         * generic/tkConsole.c: added static declaration to
6750         ConsoleDeleteProc function (proto already had it)
6751
6752         * win/tkWinInt.h: removed TkFontAttributes typedef (was
6753         redundant with tkFont.h).
6754         * win/tkWinPort.h: put #ifndef __GNUC__ around redefinition
6755         of str[n]casecmp, as cygwin uses the originals.
6756         * win/tkWinX.c: changed GetCurrentTime to GetTickCount (the
6757         former is deprecated).  [Bug: 2053]
6758
6759 1999-11-19  Eric Melski  <ericm@scriptics.com>
6760
6761         * tests/listbox.test: Added tests for itemcget and itemconfigure.
6762
6763         * doc/listbox.n: Added documentation for -listvar option and for
6764         itemconfigure and itemcget commands.
6765
6766         * generic/tkListbox.c: Added support for itemconfigure/itemcget
6767         listbox subcommands (addresses rfe #936)
6768
6769 1999-11-17  Eric Melski  <ericm@scriptics.com>
6770
6771         * tests/listbox.test: Updated tests for new error messages.
6772
6773         * generic/tkListbox.c: Improved error messages for bad -listvar's.
6774
6775         * tests/listbox.test: Added tests for bad -listvar's.
6776
6777         * generic/tkListbox.c: Added handlers for bad -listvar's (ie, bad
6778         lists)
6779
6780         * tests/listbox.test: Added tests for ListboxUpdateHScrollbar.
6781
6782         * generic/tkListbox.c: Changed some old static buffers to base
6783         size on TCL_DOUBLLE_SPACE instead of (completely) hardcoding the size.
6784
6785         * tests/listbox.test: New tests for -listvar functionality, and an
6786         odd extra case that wasn't covered before.
6787
6788         * generic/tkListbox.c: Tests exposed some bugs, now fixed.
6789
6790 1999-11-16  Eric Melski  <ericm@scriptics.com>
6791
6792         * tests/listbox.test: Fixed tests to comply with new objectified
6793         error messages.  No -listvar specific tests yet.
6794
6795         * win/tkWinDefault.h: 
6796         * unix/tkUnixDefault.h: 
6797         * mac/tkMacDefault.h: Added default value for -listvar option.
6798
6799         * generic/tkWindow.c: Changed "listbox" mapping from old-school to
6800         new-school objectified command.
6801
6802         * generic/tkListbox.c: Objectified listbox; added support for
6803         -listvar option.  Converted internal structure to use a Tcl list
6804         object to store the data.
6805
6806         * generic/tkInt.h: Changed reference to Tk_ListboxCmd to
6807         Tk_ListboxObjCmd.
6808
6809 1999-11-09  Jeff Hobbs  <hobbs@scriptics.com>
6810
6811         * generic/tkGrid.c: changed Tcl_Alloc to ckalloc
6812
6813         * generic/tkEntry.c: fixed C expr error in destroy of entry
6814         that could lead to 'malformed bucket chain' error
6815
6816         * win/winMain.c: corrected winMain to not do a DebugBreak when
6817         returning an error message from the top level
6818
6819 1999-10-30  Jeff Hobbs  <hobbs@scriptics.com>
6820
6821         * win/tkWinKey.c: fixed XKeysymToKeycode to handle mapping of
6822         symbolic keysyms (Left, Home, ...) with event generate
6823
6824         * library/entry.tcl: change tkEntrySeeInsert to avoid the use
6825         of a while loop that could eat CPU tremendously.  Behavior of
6826         moving the cursor at the right edge changes slightly (previously
6827         it tried to keep the cursor at the right edge, now it moves the
6828         cursor to a "central right" location - better IMHO).
6829
6830 1999-10-28  Jeff Hobbs  <hobbs@scriptics.com>
6831
6832         * doc/CrtImgType.3:
6833         * doc/CrtPhImgFmt.3:
6834         * doc/FindPhoto.3:
6835         * doc/photo.n:
6836         * generic/tk.h:
6837         * generic/tkCmds.c:
6838         * generic/tkImage.c:
6839         * generic/tkImgBmap.c:
6840         * generic/tkImgGIF.c:
6841         * generic/tkImgPPM.c:
6842         * generic/tkImgPhoto.c:
6843         * generic/tkInt.h:
6844         * generic/tkTest.c:
6845         * generic/tkWindow.c:
6846         * tests/imgPhoto.test: added Img patch (Nijtmans) with docs,
6847         headers #def'd with USE_OLD_IMAGE.  Upgrades image stuff to
6848         Tcl_Obj API, adds alpha channel (images are now 32 bpp)
6849
6850         * makefile.vc: changed 'c:/program files' to c:/progra~1
6851
6852 1999-10-19  Jeff Hobbs  <hobbs@scriptics.com>
6853
6854         * library/scrlbar.tcl: changed tkScrollButtonUp to check for
6855         existence of tkPriv(relief) in order to avoid spurious release
6856         events
6857
6858         * unix/Makefile.in: added ChangeLog to dist archive
6859
6860 1999-09-24  Jeff Hobbs  <hobbs@scriptics.com>
6861
6862         * */README:
6863         * win/makefile.vc:
6864         * */configure.in:
6865         * generic/tk.h:
6866         * library/tk.tcl: up'd to 8.3a1
6867
6868         * unix/Makefile.in: changed 'mkdir' to 'mkdir -p'
6869
6870         * library/dialog.tcl: changed {Times 18} to {Times 12} for
6871         dialog font.
6872
6873 1999-09-16  Jeff Hobbs  <hobbs@scriptics.com>
6874
6875         * generic/tkFont.c: fixed processing of font options and error
6876         returned [Bug: 2075]
6877
6878         * win/tkWinWm.c: fixed bug in 'wm deiconify' that raised the
6879         wrong toplevel, and changed it to not set focus on overridden
6880         toplevels
6881
6882 1999-09-15  Jeff Hobbs  <hobbs@scriptics.com>
6883
6884         * unix/aclocal.m4: added fix for FreeBSD-[1-2] recognition [Bug: 2070]
6885         and fix to AIX-* to get ldAix right [Bug: 2624], fixed AIX
6886         version check (readjust from 8-21 fix) and several other config
6887         fixes for AIX
6888         * mac/tkMacMenubutton.c:
6889         * unix/tkUnixMenubu.c: fixed permanently stippled menubutton image
6890         * win/tkWinButton.c: fixed possible pointer smash [Bug: 2733]
6891
6892 1999-09-14  Jeff Hobbs  <hobbs@scriptics.com>
6893
6894         * win/tkWinMenu.c: fix for stack overrun in GetTextFace [Bug: 909]
6895
6896 1999-09-01  Jeff Hobbs  <hobbs@scriptics.com>
6897
6898         * win/tkWinDraw.c:
6899         * unix/tkUnixDraw.c: fixed header style for TkpDrawHighlightBorder
6900         * generic/tkCanvas.c: fixed GC error (bg <> fg) in tkCanvas.c
6901         (from code added to support TkpDrawHighlightBorder) [Bug: 2676]
6902         * unix/aclocal.m4: added -bnoentry to the AIX-* flags
6903         * library/msgbox.tcl: changed the behavior of tk_messageBox on
6904         Unix to be more Windows like in handling of <Return> and the
6905         default button
6906         * library/button.tcl:
6907         * library/clrpick.tcl:
6908         * library/comdlg.tcl:
6909         * library/console.tcl:
6910         * library/dialog.tcl:
6911         * library/entry.tcl:
6912         * library/focus.tcl:
6913         * library/listbox.tcl:
6914         * library/menu.tcl:
6915         * library/msgbox.tcl:
6916         * library/palette.tcl:
6917         * library/safetk.tcl:
6918         * library/scale.tcl:
6919         * library/scrlbar.tcl:
6920         * library/tearoff.tcl:
6921         * library/text.tcl:
6922         * library/tk.tcl:
6923         * library/tkfbox.tcl:
6924         * library/xmfbox.tcl: updated commands to use [string] ops
6925         instead of expr equality operators
6926
6927 1999-08-21  Jeff Hobbs  <hobbs@scriptics.com>
6928
6929         * unix/aclocal.m4: Changed AIX-4.[2-9] check to AIX-4.[1-9]
6930         [Bug: 1909]
6931
6932 1999-08-20  Jeff Hobbs  <hobbs@scriptics.com>
6933
6934         * generic/tkCursor.c: fixed bug in GetCursorFromObj that caused
6935         panic [Bug: 2562]
6936
6937         * TK 8.2.0 RELEASED
6938
6939 1999-08-13  Jim Ingham  <jingham@cygnus.com>
6940
6941         * mac/tkMacMenu.c: Tk_DrawChars ends up setting the menu background
6942         wrong.  There is no clean way to stop it, so I use lower level routines
6943         here to draw the text.
6944         * mac/tkMacProjects.sea.hqx: Rearrange the projects so that the build 
6945         directory is separate from the sources.  Much more convenient! 
6946
6947 1999-08-10  Jeff Hobbs  <hobbs@scriptics.com>
6948
6949         * win/tkWinWm.c: changed "wm deiconify" on Windows to raise and
6950         force the focus on the deiconified window (behavioral change from
6951         8.1 to comply better with Windows style) [Bug: 1609]
6952         * doc/wm.n: clarified behavior of "wm deiconify".
6953         * generic/tkInt.decls: added TkSetFocusWin
6954         * generic/tkFocus.c: changed static SetFocus to TkSetFocusWin
6955
6956         * library/clrpick.tcl:
6957         * library/console.tcl:
6958         * library/tk.tcl: fixed code where abbreviations where used
6959         in calling widget methods (confuses iWidgets) [Bug: 2422]
6960
6961 1999-08-09  Jeff Hobbs  <hobbs@scriptics.com>
6962
6963         * library/button.tcl: cleaned up programming (config -> configure)
6964         and fixed Windows relief bug [Bug: 664]
6965         * library/entry.tcl: changed Entry C/C/P to not use global data
6966         (now uses tkPriv(data)) [Bug: 1475]
6967         * library/listbox.tcl: fixed extended mode script error [Bug: 866]
6968         * doc/options.n: clarified that -troughcolor doesn't work on Windows
6969         * doc/wm.n: fixed wm positionfrom docs [Bug: 2284]
6970
6971 1999-08-01  Jeff Hobbs  <hobbs@scriptics.com>
6972
6973         * mac/tkMacPort.h: wrapped panic in #ifndef panic to avoid
6974         compiler errors when used with stubs-#defines, from Vince Darley.
6975         [Bug: 2389]
6976         
6977 1999-07-31  Scott Redman  <redman@scriptics.com>
6978
6979         * xlib/X11/Xlib.h: Remove XFillRectangle since it is now in the
6980         stub tables.
6981
6982 1999-07-30  Jeff Hobbs  <hobbs@scriptics.com>
6983
6984         * generic/tkInt.decls: Added stub entry for XFillRectangle [Bug: 2446]
6985
6986 1999-07-30    <redman@scriptics.com>
6987
6988         * win/makefile.vc: Corrected building threaded tktest.exe on
6989         Windows.  Needed to link in .obj files from Tcl, needs to change
6990         later so that code is in Tk and doesn't require a Tcl build.
6991         Also added runtest target.
6992
6993 1999-07-29    <redman@scriptics.com>
6994
6995         * generic/tkConsole.c: Allow tcl to open CON and NUL, even for std
6996         channels.  Checking for bad/unusable std channels was moved to Tk
6997         since its only purpose was to check whether to use the Tk Console
6998         Window for the std channels.  [Bug: 2393 2392 2209 2458]
6999
7000         * win/Makefile.in: Corrected building threaded tktest.exe on
7001         Windows.  Needed to link in .obj files from Tcl, needs to change
7002         later so that code is in Tk and doesn't require a Tcl build.
7003
7004 1999-07-22    <redman@scriptics.com>
7005
7006         * Changed version to 8.2b2
7007
7008         * win/tkWinPort.h: Block out include of sys/stat.h in order to
7009         build extensions with MetroWerks compiler for Win32. [Bug: 2385]
7010         
7011         * unix/Makefile.in: Need to make install-sh executable before
7012         calling (with chmod +x).  [Bug: 2413]
7013         
7014         * library/menu.tcl: Applied patch from Jeff Hobbs to fix typo.
7015         [Bug: 2425]
7016         
7017 1999-07-21    <redman@scriptics.com>
7018
7019         * unix/Makefile.in: Add Windows configure script to distribution.
7020
7021 1999-07-16    <redman@scriptics.com>
7022
7023         * unix/Makefile.in:
7024         * win/Makefile.in:  Copy the prolog.ps from the generic directory
7025         for install-libraries.
7026
7027         * unix/aclocal.m4: Check for Alpha/Linux to set the IEEE flag to
7028         the compiler to be -mieee.  Patch from Don Porter.
7029
7030 1999-07-08    <stanton@scriptics.com>
7031
7032         * tests/unixSelect.test: Fixed broken test.
7033
7034         * win/makefile.vc: Added special case target to ensure that 
7035         tkStubLib.obj is built with -DSTATIC_BUILD.
7036
7037         * win/tkWinX.c (TkWinChildProc): Changed to pass
7038         WM_WINDOWPOSCHANGED through to DefWindowProc to make OpenGL
7039         sub-windows happy.  This allows Windows to generate the WM_SIZE
7040         and WM_MOVE messages.
7041
7042 1999-07-08    <redman@scriptics.com>
7043
7044         * unix/configure.in: Fix Tk stub lib file names and flags.
7045
7046 1999-06-30    <redman@scriptics.com>
7047
7048         * generic/tkGrid.c: removed deprecated functions (applied patch
7049         from Jan Nijtmans). [Bug: 2080]
7050
7051         * generic/tkImgGIF.c:
7052         * generic/tkImgPPM.c:
7053         * generic/tkImgPhoto.c: Applied patch to allow Img extension to
7054         work with 8.2, from Jan Nijtmans. [Bug: 2068]
7055
7056         * win/tkWinWm.c: Applied patch from Don Porter to prevent the
7057         windows code from calling the Tcl functions when the stub table
7058         has not been initialized in TkWinWmCleanup.  [Bug: 2269]
7059         
7060 1999-06-16    <wart@scriptics.com>
7061
7062         * unix/configure.in:
7063         * unix/Makefile.in:
7064         * unix/aclocal.m4: Numerous build changes to make Tk conform to
7065         the proposed TEA spec
7066
7067         * tkConsole.c: changed some variable types from (int) to (size_t)
7068         to prevent compiler warnings.  Cast return value from strlen()
7069         to (int) in one place for the same reason.
7070
7071 1999-06-03    <stanton@scriptics.com>
7072
7073         * unix/tkUnixSelect.c: 
7074         * tests/unixSelect.test: 
7075         * generic/tkSelect.c: Fixed selection code to handle Unicode data
7076         in COMPOUND_TEXT and STRING selections. [Bug: 1791]
7077
7078 1999-06-02    <stanton@scriptics.com>
7079
7080         * generic/tkIntXlibDecls.h: 
7081         * xlib/X11/Xlib.h: Added Mac specific defines to help with
7082         compilation. 
7083
7084         * generic/tkFont.c: lint
7085
7086 1999-06-01    <stanton@scriptics.com>
7087
7088         * unix/tkUnixSelect.c: Improved I18N selection support.
7089         COMPOUND_TEXT is converted to/from iso2022, and STRING is
7090         converted to/from iso8859-1.  There are still a few loose ends to
7091         tie up before this is completely done.
7092
7093         * unix/tkUnixFont.c: Eliminated redundant case folding code.
7094
7095         * generic/tkFont.c: Eliminated use of isupper/tolower in favor of
7096         Unicode variants.
7097
7098 1999-05-24    <stanton@scriptics.com>
7099
7100         * generic/tkStubLib.c: 
7101         * generic/tkStubInit.c:
7102         * generic/tkIntXlibDecls.h: 
7103         * generic/tkIntPlatDecls.h: 
7104         * generic/tkIntDecls.h: 
7105         * generic/tkInt.decls: 
7106         * generic/tkConsole.c: Various changes to try to get the Mac
7107         builds working.
7108
7109 1999-05-21    <stanton@scriptics.com>
7110
7111         * win/tkWinClipboard.c: Fixed clipboard code to handle lack of
7112         CF_LOCALE information (e.g. from command.com).
7113
7114 1999-05-20    <redman@scriptics.com>
7115
7116         * library/console.tcl: Changed copyright string to read 1999
7117         Scriptics Corp. in wish console about box.
7118         
7119 1999-05-19    <redman@scriptics.com>
7120
7121         * generic/tk.h: Add extern "C" block around entire header file for
7122         C++ compilers to fix linkage issues.  Submitted by Don Porter and
7123         Paul Duffin.
7124
7125 1999-05-18    <stanton@scriptics.com>
7126
7127         * tests/winClipboard.test: 
7128         * win/tkWinClipboard.c: Fixed clipboard code so it handles Unicode
7129         data properly on Windows NT and 95. [Bug: 1791]
7130
7131 1999-05-07    <stanton@scriptics.com>
7132
7133         * library/menu.tcl: Fixed bug where tk_popup fails when called too
7134         quickly. [Bug: 2009]
7135
7136 1999-04-30    <stanton@scriptics.com>
7137
7138         * Changed version number to 8.1.1.
7139
7140 1999-04-30    <stanton@scriptics.com>
7141
7142         * Merged changes from 8.1.0 branch:
7143
7144         * generic/tkDecls.h: 
7145         * generic/tkIntDecls.h: 
7146         * generic/tkIntPlatDecls.h: 
7147         * generic/tkIntXlibDecls.h: 
7148         * generic/tkPlatDecls.h: 
7149         * generic/tkStubInit.c: Changed to avoid the need for forward
7150         declarations in stub initializers.  Added extern "C" blocks around
7151         stub table pointer declarations so the stubs can be used from C++
7152         code. [Bug: 1934]
7153
7154         * generic/tkInt.decls: Added TkClipBox, XDrawSegments, and
7155         XForceScreenSaver to stubs.
7156
7157         * generic/tkStubLib.c: Reordered declarations to avoid
7158         circularities and forward references.
7159
7160         * generic/tkStubInit.c: Added includes for Mac.
7161
7162         * generic/tkMenubutton.c: lint
7163
7164         * generic/tkEntry.c: Fixed bad option table entry.
7165
7166         * generic/tkImgBmap.c:
7167         * generic/tkImgPPM.c:
7168         * generic/tkImgPhoto.c: Set the -translation and -encoding options
7169         to binary for image files. (reported by Marco Gazzetta)
7170         
7171 1999-04-23    <stanton@scriptics.com>
7172
7173         * generic/tkInt.decls: Added TkClipBox, XDrawSegments, and
7174         XForceScreenSaver to stubs.
7175
7176         * generic/tkStubLib.c: Reordered declarations to avoid
7177         circularities and forward references.
7178
7179         * generic/tkStubInit.c: Added includes for Mac.
7180
7181         * generic/tkMenubutton.c: lint
7182
7183         * generic/tkEntry.c: Fixed bad option table entry.
7184
7185 1999-04-22    <redman@scriptics.com>
7186
7187         * generic/tkImgBmap.c:
7188         * generic/tkImgPPM.c:
7189         * generic/tkImgPhoto.c: Set the -translation and -encoding options
7190         to binary for image files. (reported by Marco Gazzetta)
7191
7192 1999-04-20    <redman@scriptics.com>
7193
7194         * xlib/X11/Xlib.h: changed definition of Status type to use a
7195         typedef instead of a #define to avoid conflicting with the cygwin
7196         win32 headers [Bug 1804]
7197
7198 1999-04-15    <stanton@scriptics.com>
7199
7200         * Merged 8.1 branch into the main trunk
7201
7202 1999-04-09    <redman@scriptics.com>
7203
7204         * generic/tkWindow.c: Fixed deadlock situation when the Initialize()
7205         function returns without releasing the mutex.  Found while testing
7206         Bug 1700, during safe.test (tk).
7207
7208 1999-04-06    <stanton@scriptics.com>
7209
7210         * generic/tkMain.c (Tk_MainEx): Changed to reset result before
7211         calling Tcl_EvalFile.  The ensures that error messages will be
7212         generated cleanly.
7213
7214         * tests/winfo.test: Enabled tests that previously failed.
7215
7216 1999-04-05    <stanton@scriptics.com>
7217
7218         * library/bgerror.tcl:
7219         * library/button.tcl:
7220         * library/clrpick.tcl:
7221         * library/console.tcl:
7222         * library/dialog.tcl:
7223         * library/entry.tcl:
7224         * library/focus.tcl:
7225         * library/listbox.tcl:
7226         * library/menu.tcl:
7227         * library/msgbox.tcl:
7228         * library/palette.tcl:
7229         * library/scale.tcl:
7230         * library/scrlbar.tcl:
7231         * library/tearoff.tcl:
7232         * library/text.tcl:
7233         * library/tk.tcl: Lots of minor performance improvements
7234         contributed by Jeffrey Hobbs. [Bug: 1118]
7235
7236         * win/tkWinWm.c (Tk_WmCmd): Fixed bad code in tracing
7237         suboption. [Bug: 1519]
7238
7239         * library/tkfbox.tcl: Change to restore button text after an
7240         action to avoid the sticky "Open" button in a save dialog.
7241         [Bug: 1640]
7242
7243         * library/entry.tcl: Fixed so selection is returned using the
7244         -show character during cut and paste operations. [Bug: 1687]
7245         
7246 1999-04-5     <redman@scriptics.com>
7247
7248         * generic/tkInt.decls:
7249         * generic/tkIntXlibDecls.h:
7250         * generic/tkStubInit.c:
7251         * xlib/xgc.c:
7252         * xlib/X11/Xlib.h:
7253         * xlib/X11/Xutil.h: Added more X functions to the Win & Mac stubs
7254         tables.
7255         
7256 1999-04-05    <stanton@scriptics.com>
7257
7258         * unix/configure.in:
7259         * generic/tkCanvPs.c: Added configure test for pw_gecos field in
7260         pwd to support OS/390. [Bug: 1724]
7261
7262 1999-04-02    <stanton@scriptics.com>
7263
7264         * tests/text.test: 
7265         * generic/tkText.c: Fixed handling of Unicode in text searches.
7266         The -count option was returning byte counts instead of character
7267         counts. [Bug: 1056, 1148, 1666]
7268
7269 1999-04-01    <redman@scriptics.com>
7270
7271         * generic/tk.decls:
7272         * generic/tk.h:
7273         * generic/tkStubInit.c:
7274         * generic/tkWindow.c:
7275         * unix/Makefile.in:
7276         * win/makefile.vc: Tk now uses its own stub library to store
7277         pointers to its own stubs table.
7278
7279         * doc/dde.n: (removed)
7280         * doc/send.n:
7281         * generic/tk.decls:
7282         * tests/winSend.test:
7283         * generic/tkPlatDecls.h:
7284         * win/tkWinSend.c:  Removed the DDE-based send and dde commands,
7285         they were causing Tk to lock up when any window on the system was
7286         not processing its message queue (more importantly, windows in Tcl
7287         and Tk).  The send command needs to be rewritten to prevent the
7288         deadlock situation (soon).  The dde command is being pushed into
7289         its own package and will provide almost all of the capabilities
7290         that send did before (using a "dde eval" command), not yet
7291         completed.
7292
7293 1999-03-31    <redman@scriptics.com>
7294
7295         * win/tkWinSend.c: Modified dde/send code to work properly on
7296         Win95/Win98. String lengths are not returned properly by DDE, so
7297         NULL terminate all strings going in and ignore the string length
7298         coming back out.  Do not destroy handles until all necessary work
7299         on those handles (and child handles) is done.
7300
7301 1999-03-30    <stanton@scriptics.com>
7302
7303         * generic/tkWindow.c (Tk_DestroyWindow): Image handlers are now
7304         finalized before the font subsystem since complex image handlers
7305         may contain references to fonts (e.g. Tix compound images).
7306         [Bug: 1603]
7307
7308 1999-03-29    <stanton@scriptics.com>
7309
7310         * doc/MeasureChar.3: 
7311         * doc/TextLayout.3: 
7312         * generic/tk.decls: 
7313         * generic/tkCanvText.c: 
7314         * generic/tkEntry.c:
7315         * generic/tkFont.c: 
7316         * generic/tkListbox.c: 
7317         * generic/tkMessage.c: 
7318         * mac/tkMacFont.c: 
7319         * unix/tkUnixButton.c: 
7320         * unix/tkUnixFont.c: 
7321         * unix/tkUnixMenu.c: 
7322         * win/tkWinFont.c: 
7323         * win/tkWinMenu.c: Standardized text layout and font interfaces
7324         so they are consistent with respect to byte versus character
7325         oriented indices.  The layout functions all manipulate character
7326         oriented values while the lower level measurement functions all
7327         operate on byte oriented values.  This distinction was not clear
7328         and so the functions were being used improperly in a number of
7329         places.  [Bug: 1053, 747, 749, 1646]
7330
7331         * generic/tk.decls: Eliminated uses of C++ STL types string and
7332         list from declarations.
7333
7334         * generic/tkFont.c: Changes to named fonts were not being
7335         propagated in some cases. [Bug: 1144]
7336         
7337         * xlib/X11/Xlib.h:
7338         * generic/tkInt.decls: Added XParseColor to xlib stub
7339         tables. [Bug: 1574] 
7340
7341         * doc/GetBitmap.3: 
7342         * generic/tkBitmap.c (BitmapInit): Eliminated use of Tk_Uid's in
7343         bitmaps.  Added a few CONST declarations.
7344
7345 1999-03-29    <redman@scriptics.com>
7346
7347         * unix/configure.in:
7348         * unix/Makefile.in:
7349         * win/makefile.vc:
7350         * generic/tkDecls.h:
7351         * generic/tkIntDecls.h:
7352         * generic/tkIntPlatDecls.h:
7353         * generic/tkPlatDecls.h:
7354         * generic/tkIntXlibDecls.h: Removed stub functions. Always use the
7355         Tcl stubs when building with --enable-shared.
7356         
7357
7358 1999-03-26    <redman@scriptics.com>
7359
7360         * generic/tkTextIndex.c:
7361         * tests/testIndex.test: Avoid looking past the beginning of the
7362         array storing data for the text widget (.t index end-2c).  Added
7363         test case to check for the bug.  [Bug 991]
7364         
7365         * generic/tkConsole.c: Copy static strings into a Tcl_DString
7366         before passing to Tcl_Eval, in case the compiler puts static
7367         strings into read-only memory.
7368
7369 1999-03-26    <suresh@scriptics.com>
7370         
7371         * unix/configure.in:
7372         --nameble-shared is now the default and builds Tk as a shared
7373         library; specify --disable-shared to build a static Tk library
7374         and shell.
7375
7376 1999-03-26    <surles@scriptics.com>
7377
7378         * library/menu.tcl: Fixed bug reported by Bryan Oakley in the
7379         menubutton bindings.  There was a false assumption that there was
7380         always a menu attached to the button.  [Bug 1116] 
7381
7382 1999-03-26    <redman@scriptics.com>
7383
7384         * unix/configure.in: Removed --enable-tcl-stub.  Linking Tk to Tcl
7385         stubs is causing too many problems when linking executables like wish.
7386         Until the Tk is a fully loadable extension, linking against the Tcl
7387         stubs is not supported in Tk.
7388
7389 1999-03-19    <redman@scriptics.com>
7390
7391         * generic/tkBitmap.c:
7392         * generic/tkCursor.c:
7393         * generic/tkGC.c: When creating hash tables that key off of XID
7394         handles, make sure to pass TCL_ONE_WORD_KEYS.  XIDs are guaranteed
7395         to be 32bit numbers, although on some 64bit systems (including 64bit
7396         Solaris 7) they are packed into a 64bit value where the upper 32bits
7397         are zero. The normal method of sizeof(XID)/sizeof(int) causes the
7398         hash table code to assume that the XID is a pointer to an array of 
7399         two ints, which it is not.  Tk now supports 64bit Solaris 7.
7400
7401 1999-03-17    <stanton@scriptics.com>
7402
7403         * win/makefile.vc: 
7404         * generic/tk.h: Changed to use TCL_BETA_RELEASE macro, and fixed
7405         so this works in rc files.
7406         
7407         * win/makefile.vc: 
7408         * win/makefile.bc: 
7409         * win/README: 
7410         * unix/configure.in: 
7411         * generic/tk.h: 
7412         * README: Updated version to 8.1b3.
7413
7414 1999-03-14    <stanton@GASPODE>
7415
7416         * unix/configure.in: Added missing stub related definitions.
7417
7418         * unix/Makefile.in: Install tkDecls.h in addition to tk.h.
7419
7420         * generic/tkStubLib.c: Added flags to ensure we are using Tcl
7421         stub macros.
7422
7423 1999-03-11    <stanton@GASPODE>
7424
7425         * generic/tkInt.decls: Added reserved slot for XSetDashes for use
7426         by the dash patch.
7427
7428 1999-03-10    <redman@scriptics.com>
7429
7430         * xlib/xdraw.c:
7431         * xlib/X11/Xlib.h:
7432         * mac/tkMac.h:
7433         * mac/tkMacInt.h:
7434         * mac/tkMacPort.h:
7435         * mac/tkMacXStubs.c:
7436         * mac/tkMacAppInit.c:
7437         * mac/tkMacCursor.c:
7438         * win/makefile.vc:
7439         * win/tkWin.h:
7440         * win/tkWinInt.h:
7441         * win/tkWinPort.h:
7442         * win/winMain.c:
7443         * generic/tk.h:
7444         * generic/tkInt.h:
7445         * generic/tk.decls:
7446         * generic/tkInt.decls:
7447         * generic/tkDecls.h:
7448         * generic/tkPlatDecls.h:
7449         * generic/tkIntDecls.h:
7450         * generic/tkIntPlatDecls.h:
7451         * generic/tkIntXlibDecls.h:
7452         * generic/tkStubs.c:
7453         * generic/tkPlatStubs.c:
7454         * generic/tkIntStubs.c:
7455         * generic/tkIntPlatStubs.c:
7456         * generic/tkIntXlibStubs.c:
7457         * generic/tkStubInit.c:
7458         * generic/tkStubLib.c:
7459         * generic/tkBind.c:
7460         * generic/tkCmds.c:
7461         * generic/tkConfig.c:
7462         * generic/tkConsole.c: 
7463         * generic/tkCursor.c:
7464         * generic/tkGrab.c:
7465         * generic/tkImgPhoto.c:
7466         * generic/tkMain.c:
7467         * generic/tkMenu.c:
7468         * generic/tkPointer.c:
7469         * generic/tkTextDisp.c:
7470         * generic/tkWindow.c:
7471         * unix/tkUnixInt.h:
7472         * unix/tkUnixPort.h:
7473         * unix/Makefile.in:
7474         * unix/configure.in:
7475         * unix/tkConfig.sh.in:
7476         * unix/tkUnix.c:
7477         * unix/tkUnix3d.c:
7478         * unix/tkUnixDraw.c:
7479         * unix/tkUnixFont.c:
7480         * unix/tkUnixMenubu.c: Stubs implementation for 8.1.  Tk_Main() is
7481         replaced with a macro which calls Tk_MainEx(). Tk can link to the Tcl
7482         stubs library, wish links directly to Tcl and Tk. Use
7483         --enable-tcl-stubs to link Tk to the Tcl stubs library (Unix), on
7484         by default on Windows. Exported all public functions through the
7485         stubs mechanism (see the *.decls files) and many of the internal
7486         functions. Most of the changes dealt with shifting around the
7487         function declarations in the header files.  Mac code may not
7488         compile, but it shouldn't take much work to fix this.
7489         
7490         * mac/tkMacMenu.c: Added dummy TkpMenuThreadInit for Mac to be
7491         consistent with Unix and Windows versions.
7492         
7493 1999-03-08    <lfb@scriptics.com>
7494
7495         * win/tkWinWm.c: Toplevel class no longer shared between 
7496         threads.
7497         
7498         * win/tkWinX.c: Multiple threads no longer share the same
7499         TkDisplay structure.  Required because TkDisplay stores much
7500         thread-specific data for a given thread.
7501
7502         * win/tkWinSend.c: Moved application instance handle out
7503         out thread-local storage.  DDE was failing to initialize
7504         when the instance handles were different between threads.
7505         
7506         * win/makefile.vc: Added THREADDEFINES for building with
7507         threads enabled.
7508         
7509         * generic/tkMenu.c:
7510         * win/tkWinMenu.c:
7511         * unix/tkUnixMenu.c: Added TkpMenuThreadInit for initializing
7512         thread-specific Menu state.
7513
7514 1999-03-01    <redman@scriptics.com>
7515
7516         * win/tkWinWm.c: 
7517         * win/tkWinPointer.c:
7518         * win/tkWinInt.h: Fix "focus -force" for Windows.  The Win32 API
7519         function SetForegroundWindow() does not work unless the window
7520         handle is a toplevel window (a Windows toplevel).  The handle
7521         being passed was a Tk toplevel, which is a child of the Windows
7522         toplevel.
7523
7524 1999-02-26    <redman@scriptics.com>
7525
7526         * win/cat.c: Remove this file, use the one in the Tcl source directory.
7527
7528         * win/makefile.vc: Remove the wishc.exe from the default targets.  Add
7529         a separate console-wish target to build it.  The need for a 
7530         console-wish will go away soon, so we don't want to encourage its
7531         use.
7532
7533 1999-02-25    <redman@scriptics.com>
7534
7535         * win/tkWinWm.c: Properly initialize the tsdPtr->firstWindow field.
7536         
7537         * win/cat.c: Code for cat32.exe, copied from the Tcl sources. Required
7538         in order to run the test suite from the makefile
7539
7540         * win/winMain.c: Add main() for a console-based wishc.exe, which meant
7541         adding code to disable the call to Tk_ConsoleInit().
7542         
7543         * generic/tkConsole.c: Check the standard handles before creating the
7544         new standard channels.  This allows a windows app that has stdin,
7545         stdout, or stderr to correctly connect to them.
7546         
7547         * generic/tkMain.c: Add a proper check for the interactive mode, since
7548         the standard channels may actually be connected in windows mode or
7549         even in the console-based wish.
7550         
7551         * win/makefile.vc: Add targets for wishc.exe (console-based wish) and
7552         cat32.exe (for testing). Fix the test suite target so it can be run
7553         from the makefile (which can happen since the standard handles have
7554         been fixed).
7555
7556 1999-02-12    <lfb@scriptics.com>
7557
7558         * generic/tkMenuButton.h:
7559         * generic/tkMenuButton.c:
7560         * mac/tkMacMenubutton.c:
7561         * mac/tkMacDefault.h
7562         * unix/tkUnixMenubu.c: Eliminated Tk_Uids used by -state option.
7563         * unix/tkUnixDefault.h
7564         * win/tkWinDefault.h
7565         
7566
7567         * generic/tk.h:
7568         * generic/tkScale.h:
7569         * generic/tkScale.c:
7570         * generic/tkWindow.c:
7571         * unix/tkUnixScale.c:   
7572         * unix/tkUnixDefault.h:
7573         * unix/tkWinDefault.h:
7574         * mac/tkMacDefault.h:  Objectified scale widget.
7575
7576         * win/tkWinX.c: Removed Thread-specific data from process
7577         initialization code that was stopping the Tk Dll from 
7578         loading.
7579
7580 1999-02-11    <stanton@GASPODE>
7581
7582         * README:
7583         * generic/tk.h: 
7584         * unix/configure.in:
7585         * win/README:
7586         * win/makefile.bc:
7587         * win/makefile.vc: Updated version to 8.1b2.
7588         
7589         * unix/tkUnixSend.c: Fixed one more Tcl_*ObjVar instance.
7590         
7591 1999-02-04    <stanton@GASPODE>
7592
7593         * Various cleanup related to the Tcl_Eval and Tcl_ObjSetVar
7594         changes in Tcl.
7595         
7596         INTEGRATED PATCHES FROM 8.0.5b2: 
7597         
7598         * win/tkWinMenu.c (TkpDestroyMenu): Changed so modalMenuPtr is
7599         cleared when it is being destroyed.
7600
7601         * generic/tkImgPhoto.c: Changed so color tables are freed
7602         immediately instead of being delayed.  This ensures that color
7603         tables are properly disposed at process exit.
7604
7605         * library/prolog.ps: Changed string that determines font height to
7606         include European character with an umlaut.
7607
7608         * generic/tkImgBmap.c (ImgBmapConfigureInstance): If an image
7609         mask changed but ended up with the same XID, the GC failed to be
7610         updated and so the new mask was not used. [Bug: 970]
7611
7612         * generic/tkFocus.c (SetFocus): Changed so focus window is always
7613         set if -force is specified.  This fixes the problem on Windows
7614         where Tk does not activate the window if it already has focus.
7615
7616         * generic/tkConsole.c: Fixed so errors in console eval are
7617         reported properly.  Eliminated duplicate result messages. [Bug: 973]
7618
7619         * win/tkWinWm.c: Changed so windows that aren't resizable don't
7620         have resize handles and the zoom box is disabled.
7621
7622         * win/tkWinInt.h:
7623         * win/tkWinPointer.c: Changed to cancel the mouse timer when a
7624         user initiated move/resize loop begins.
7625
7626         * unix/configure.in: TK_LD_SEARCH_FLAGS was set incorrectly if
7627         SHLIB_LD_LIBS='${LIBS}', and shared linking is performed through
7628         the C compiler. Systems affected are Linux, MP-RAS and NEXTSTEP,
7629         but also with gcc on many more systems. [Bug: 908]
7630
7631         * win/makefile.vc: First stab at install target.  Fixed quoting so
7632         paths with spaces work.
7633         
7634         * tests/main.test:
7635         * tests/unixWm.test: Better cleanup of temporary files.
7636         
7637         * mac/tkMacAppInit.c:
7638         * generic/tkTest.c:
7639         * generic/tkAppInit.c:
7640         * win/winMain.c: Changed some EXTERN declarations to extern
7641         since they are not defining exported interfaces.  This avoids
7642         generating useless declspec() attributes and makes the windows
7643         makefile simpler.
7644
7645         * library/menu.tcl (tkMenuFind): Changed so keyboard shortcuts
7646         will only be found in the current toplevel.  Previously, they
7647         might be found in menus attached to other toplevels that might not
7648         even be mapped. [Bug: 924]
7649
7650         * generic/tkCanvLine.c: Changed to treat zero width lines like
7651         they have width 1 for purposes of selection. [Bug: 925]
7652
7653         * win/tkWinFont.c (Tk_MeasureChars): Added a workaround for a bug
7654         in GetTextExtentExPoint on Win NT 4.0/Japanese. [Bug: 1006]
7655
7656         * unix/tkUnixSend.c (Tk_SetAppName): Fixed uninitialized memory
7657         access bug. [Bug: 919]
7658
7659 1999-1-28    <stanton@GASPODE>
7660
7661         * generic/tkGrid.c: Fixed bug in "grid forget" that failed to cancel
7662         pending idle handlers, resulting in a crash in a few odd cases.
7663
7664 1999-01-06  <lfb@JUSTICE>
7665
7666         * generic/tk.h, generic/tkGet.c, generic/tkConfig.c, 
7667         * generic/tkOldConfig.c, generic/tkEntry.c, generic/tkMenubutton.c, 
7668         * generic/tkMenubutton.h, generic/tkScale.c, generic/tkScale.h, 
7669         * generic/tkTextDisplay.c, generic/tkText.c, unix/tkUnixMenubu.c, 
7670         * unix/tkUnixScale.c, mac/tkMacMenu.c, mac/tkMacMenubutton.c, 
7671         
7672         Removed global Tk_Uids dealing with "-state" configuration option
7673         and added new TK_CONFIG_STATE configSpec that doesn't use 
7674         Tk_Uids.
7675
7676 1998-12-11    === Tk 8.1b1 Release ===
7677         
7678 1998-12-11    <stanton@GASPODE>
7679
7680         * generic/tkMain.c (Tk_Main): Fixed improper command line encoding
7681         handling. 
7682
7683 1998-12-08    <stanton@GASPODE>
7684
7685         * win/tkWinClipboard.c (TkSelGetSelection, TkWinClipboardRender):
7686         Changed to handle multibyte characters properly. [Bug: 935]
7687
7688 1998-12-07    <stanton@GASPODE>
7689
7690         * library/xmfbox.tcl (tkMotifFDialog_Create): In the cached case,
7691         the data array was not being initialized with the correct set of
7692         widgets.
7693
7694 1998-12-4    <welch@SAGE>
7695
7696         * Changed patchLevel to 8.1b1
7697
7698         * generic/tkMenu.c (ConfigureMenuCloneEntries): The -menu configuration
7699         option was being incorrectly specified as just "menu". 
7700
7701 1998-11-30    <stanton@GASPODE>
7702
7703         * generic/tkButton.c (ConfigureButton): The error result was
7704         getting lost when restoring configuration options. [Bug: 619]
7705
7706 1998-11-25    <stanton@GASPODE>
7707
7708         * unix/tkUnixFont.c (GetFontAttributes): Initialize an unspecified
7709         family to an empty string.
7710         (FontMapLoadPage): if the font included characters below 32, the
7711         index computation was incorrect because the range was shifted up
7712         to 32.
7713         (CreateClosestFont): check for empty locale as well as NULL.
7714
7715         * generic/tkFont.c (TkFontParseXLFD): initialize charset to
7716         iso8859-1 if no charset is specified.
7717
7718         * mac/tkMacHLEvents.c (OdocHandler): added conversion from
7719         external string to UTF [Bug: 869]
7720
7721         * integrated tk8.0.4 changes.
7722         
7723         * generic/tkBind.c: fixed deletion order bug where a crash would
7724         result if a binding deleted "."
7725
7726         * generic/tkMenu.c (MenuWidgetObjCmd): disabled menu entries were
7727         getting reenabled whenever the mouse passed over the entry [Bug: 860]
7728
7729         * unix/tkUnixMenu.c (TkpComputeStandardMenuGeometry): hidemargin
7730         option was not honored properly in menus [Bug: 859]
7731
7732 1998-11-24    <stanton@GASPODE>
7733
7734         * tkMacMenu.c, tkUnixMenu.c, tkWinMenu.c, tkMenuDraw.c, tkMenu.h,
7735         * tkMenu.c: Backed out the previous fix for bug 620 and
7736         eliminated a bunch of code that created unnecessary objects.
7737         Changed back to using internal types instead of objects for many
7738         configuration options.  There are many more fixes like this that
7739         could be made, but some require a little restructuring of the
7740         code. In any case the leaks are fixed and there is a lot less
7741         allocation happening. [Bug: 620]
7742
7743 1998-11-19    <stanton@GASPODE>
7744
7745         * tkMenu.c (DestroyMenuEntry): fixed memory leaks [Bug: 620]
7746         
7747         * tkWinX.c (GetTranslatedKey): fixed bad code merge
7748
7749         * tkWinWm.c, tkWinMenu.c: fixed titles and menus so they properly
7750         display Unicode [Bug: 819]