1 2004-12-29 Jeff Hobbs <jeffh@ActiveState.com>
3 * win/tcl.m4, win/configure: update MSVC CFLAGS_OPT to -O2, remove -Gs
4 (included in -O2) and -GD (outdated). Use "link -lib" instead of "lib"
5 binary and remove -YX for MSVC7 portability. Add -fomit-frame-pointer
6 for gcc OPT compiles. [Bug 1092952, 1091967]
8 2004-12-21 Donal K. Fellows <donal.k.fellows@man.ac.uk>
10 * library/demos/*.tcl: Add [package require Tk] to all the widget demo
11 scripts so they follow standard practice better. [FRQ 815118]
13 2004-12-20 Vince Darley <vincentdarley@users.sourceforge.net>
15 * generic/tkFileFilter.c:
16 * generic/tkFileFilter.h:
17 * macosx/tkMacOSXDialog.c:
20 * tests/winDialog.test: Corrected handling of MacOS file types in
21 tk_*file dialogs [Bug 1083878].
23 2004-12-20 Donal K. Fellows <donal.k.fellows@man.ac.uk>
25 * doc/panedwindow.n: Fix silly typo. [Bug 1087842]
27 2004-12-19 Chengye Mao <chengye.geo@yahoo.com>
29 * win/tkWin.h, win/tkWinEmbed.h: Make embedding work better on Windows.
30 * win/tkWinWm.c, win/tkWinX.c: [Bugs 222677, 831627, 842945, 1024364]
32 2004-12-17 Chengye Mao <chengye.geo@yahoo.com>
34 * generic/tkFrame.c: Make container windows display their
35 * generic/tkWindow.c: background when they don't have content.
37 2004-12-10 Donal K. Fellows <donal.k.fellows@man.ac.uk>
39 * unix/tk.spec, macosx/Tk-Info.plist, macosx/Wish-Info.plist:
40 * macosx/Wish.pbproj/project.pbxproj, README, win/configure.in:
41 * unix/configure.in, generic/tk.h: Bump version to 8.5a3.
43 2004-12-09 Daniel Steffen <das@users.sourceforge.net>
45 * unix/tcl.m4: synced with tcl/unix/tcl.m4
46 * unix/configure: regen
48 2004-12-09 Donal K. Fellows <donal.k.fellows@man.ac.uk>
50 * generic/tkImgPhoto.c (Tk_PhotoPutBlock, Tk_PhotoPutZoomedBlock):
51 Added guards so that rescanning for the complex-alpha check is not done
52 in the common case of creating a simple image a bit at a time, or any
53 other time where the image was simple before and the input data has no
54 alpha channel. [Bug 1081966]
56 2004-12-07 Don Porter <dgp@users.sourceforge.net>
58 * tests/canvPs.test: Cleaned up the matching of [makeFile] and
59 * tests/choosedir.test: [removeFile] commands as indicated by the
60 * tests/filebox.test: results of a -debug 1 run of the test suite.
61 * tests/imgPPM.test: Tk test suite is now -debug 1 clean. This
62 * tests/imgPhoto.test: completes fixing [1078648].
66 2004-12-07 Donal K. Fellows <donal.k.fellows@man.ac.uk>
68 * tests/bind.test, tests/button.test, tests/canvas.test:
69 * tests/cursor.test, tests/scrollbar.test: Eliminate all duplicate test
70 names. [Bug 1078648 again]
72 2004-12-06 Jeff Hobbs <jeffh@ActiveState.com>
74 *** 8.5a2 TAGGED FOR RELEASE ***
76 2004-12-06 Don Porter <dgp@users.sourceforge.net>
78 * tests/safe.test: Trim auto_path to improve performance [1080039]
80 2004-12-05 Jeff Hobbs <jeffh@ActiveState.com>
82 * changes: updated for 8.5a2 release
84 2004-12-04 Donal K. Fellows <donal.k.fellows@man.ac.uk>
86 * tests/*.test: Resolve duplicate test names. [Bug 1078648]
88 2004-12-03 Donal K. Fellows <donal.k.fellows@man.ac.uk>
90 * generic/tkImgPhoto.c (Tk_PhotoPutBlock, Tk_PhotoPutZoomedBlock): Make
91 overlay compositing where the target is empty no longer set the target
92 to magical gray, and also make sure that the complex-alpha flag is
93 toggled when necessary. [Patch 848161]
95 2004-12-01 Jeff Hobbs <jeffh@ActiveState.com>
97 * unix/tkUnixButton.c (TkpDisplayButton): constrain coords to
98 Tk_RedrawImage to display only portion that is valid.
99 * generic/tkImgPhoto.c (ImgPhotoDisplay): add X error suppression
100 around XGetImage to prevent app abort. [Bug 979239]
102 2004-11-28 Joe English <jenglish@users.sourceforge.net>
104 * unix/tkUnixRFont.c(Tk_DrawChars): Check for short integer overflow in
105 x,y coordinates [Fixes: Bug 942320 "Tk, Xft, text and long lines"]
107 2004-11-26 David Gravereaux <davygrvy@pobox.com>
109 * win/makefile.vc: Shell targets needed more stack space. [Bug 1066755]
111 2004-11-20 Vince Darley <vincentdarley@users.sourceforge.net>
113 * tests/text.test: fix to test's platform sensitivities [Bug 1025871]
114 * tests/textDisp.test: made test less timing sensitive [Bug 1034171],
115 and fixed a platform-sensitive test [Bug 966845]
117 2004-11-19 Daniel Steffen <das@users.sourceforge.net>
119 * macosx/Wish.pbproj/project.pbxproj: reverted earlier changes for
120 tclConfig.h changes to tcl, since those have been reverted for now.
122 Note that newly added macosx/Wish.xcode will not work without
123 tclConfig.h, this project has not been removed again.
125 2004-11-18 Reinhard Max <max@suse.de>
127 * unix/tcl.m4 (SC_CONFIG_MANPAGES): Applied an improved version of
128 * unix/configure.in: [Patch 996085], that introduces
129 * unix/Makefile.in: --enable-man-suffix.
131 * unix/installManPage: added
132 * unix/mkLinks.tcl: removed
133 * unix/mkLinks: removed
134 * unix/configure: generated
136 2004-11-17 Jeff Hobbs <jeffh@ActiveState.com>
138 * generic/tkCanvWind.c (ConfigureWinItem): unmap windows immediately
139 when state hidden is requested. [Bug 982248]
141 * generic/tkCanvImg.c (ImageToPostscript): don't try ps generation of
142 canvas image item without image specified. [Bug 1032300]
144 * library/console.tcl (::tk::console::ExpandVariable): correct array
145 keyname expansion. [Bug 1004508] (bold)
147 * generic/tkPanedWindow.c (Tk_PanedWindowObjCmd): set save_under X attr
148 to prevent expose events when moving sash. [Bug 1036963]
150 2004-11-16 Vince Darley <vincentdarley@users.sourceforge.net>
152 * doc/text.n: clarified documentation on use of -tabs option.
154 2004-11-16 Don Porter <dgp@users.sourceforge.net>
156 * library/msgs/it.msg: Updated Italian message catalog. Thanks to
157 Roberto Ugoccioni [Bug 1063675].
159 2004-11-16 Daniel Steffen <das@users.sourceforge.net>
161 * macosx/Wish.pbproj/project.pbxproj:
162 * macosx/buildTkConfig.tcl: fixes for tclConfig.h changes.
164 * macosx/Wish.pbproj/project.pbxproj: fixed references to renamed
167 * macosx/Wish.xcode/project.pbxproj (new):
168 * macosx/Wish.xcode/default.pbxuser (new):
169 * macosx/Wish-Info.plist (new):
170 * macosx/Tk-Info.plist (new): added new Xcode 1.5 project using native
171 targets, made possible by tclConfig.h changes.
173 * generic/tk.h: added version number change comments for new files.
175 2004-11-15 Vince Darley <vincentdarley@users.sourceforge.net>
177 * generic/tkText.c: fix to multi-line search problem and removed
178 * tests/text.test: 'knownBug' from one test.
180 2004-11-15 Donal K. Fellows <donal.k.fellows@man.ac.uk>
182 * unix/tcl.m4, unix/configure.in: Expanded all AC_DEFINE calls to the
183 three-argument form and ported recent changes to the tcl.m4 from the
184 Tcl distribution. *No* call to AC_CONFIG_HEADERS has been added; this
185 change should be virtually entirely cosmetic.
187 2004-11-12 Daniel Steffen <das@users.sourceforge.net>
189 * macosx/tkMacOSXXStubs.c: implemented XGetGeometry().
191 2004-11-12 Jeff Hobbs <jeffh@ActiveState.com>
193 * generic/tkCmds.c (Tk_TkObjCmd): use correct screen data when
194 -displayof arg is passed to [tk scaling]. [Bug 800178]
196 2004-11-12 Daniel Steffen <das@users.sourceforge.net>
199 * doc/text.n: fixed *roff errors uncovered by running 'make html'.
201 * macosx/tkMacOSXFont.c (Tk_MeasureChars,Tk_DrawChars,etc): Make sure
202 that the lastSubFontPtr remains valid even when the subfont array is
203 reallocated. [Bug 618872]
205 2004-11-11 Reinhard Max <max@suse.de>
207 * generic/tkEvent.c (InvokeInputMethods): Call XSetICFocus whenever the
208 window receives focus. This fixes [Bug 905830] but avoids [Bug 1000051]
210 2004-11-11 Daniel Steffen <das@users.sourceforge.net>
213 * macosx/tkMacOSXAppInit.c (removed):
214 * macosx/Wish.pbproj/project.pbxproj:
215 * macosx/tkMacOSXInit.c:
216 * macosx/tkMacOSXInt.h: changes to make TkAqua dynamically loadable,
217 enabling [package require Tk] from tclsh. Startup code from
218 tkMacOSXAppInit.c moved into tkMacOSXInit.c, added code that notifies
219 the window server that an unbundled executable is a full GUI
220 application after loading Tk. [Patch 1035348]
222 * doc/wm.n: documented [wm attributes] on Mac OS X. [Bug 606665]
223 * macosx/tkMacOSXWm.c: implemented TIP 222 [wm attributes -alpha] on
224 Mac OS X. [Patch 892194]
225 WmIconbitmapCmd: adopted FSRef changes from [wm atttrs -titlepath].
227 * macosx/tkMacOSXSubwindows.c: synced spacing/formatting with
230 * generic/tkRectOval.c:
232 * macosx/tkMacOSXDefault.h:
233 * macosx/tkMacOSXDraw.c:
234 * macosx/tkMacOSXInit.c:
235 * macosx/tkMacOSXInt.h:
236 * macosx/tkMacOSXMenu.c:
237 * macosx/tkMacOSXWm.c: forward port from core-8-4-branch of Jim's and
238 my changes for CG drawing and [wm attributes] (corresponds to 8.4
239 changes dating from 09-18, 07-27, 07-24).
241 * macosx/tkMacOSXMouseEvent.c: endianness fixes.
243 * macosx/Wish.pbproj/project.pbxproj: corrected path to html help
246 * macosx/Makefile: prevent parallel make from building several targets
249 2004-11-09 Vince Darley <vincentdarley@users.sourceforge.net>
251 * macosx/tkMacOSXButton.c: fix to dynamic reconfiguration of button
252 '-compound' options (cosmetic problem), [Bug 1055023]
254 * tests/text.test: added 'knownBug' 20.172.1 in text widget multiline
257 2004-11-08 Donal K. Fellows <donal.k.fellows@man.ac.uk>
259 * library/demos/goldberg.tcl: Added slightly adapted version of Keith
260 Vetter's tkGoldberg as the final animation demo. Many many thanks to
261 Keith for giving his permission! [FRQ 627466]
263 2004-11-07 Peter Spjuth <peter.spjuth@space.se>
265 * doc/frame.n: Added some info for -width/-height options. [Bug
268 2004-11-07 Peter Spjuth <peter.spjuth@space.se>
271 * generic/tkGrid.c: Made handling of ^ a bit more consistent in corner
272 cases. This makes ^ work without any widgets in the same command. [Bug
275 2004-11-07 Donal K. Fellows <donal.k.fellows@man.ac.uk>
277 * library/demos/pendulum.tcl: Added demonstrations of how to do
278 * library/demos/aniwave.tcl: animations using Tcl/Tk to the widget
279 * library/demos/anilabel.tcl: demo.
281 2004-11-03 Don Porter <dgp@users.sourceforge.net>
283 * tests/button.test: Update expected results to account for more
284 verbose errorinfo from errors in variable traces [Tcl Bug 572164]
286 2004-11-01 Don Porter <dgp@users.sourceforge.net>
288 * tests/dialog.test (dialog-1.1): Update expected result to changes in
289 the error messages produced by procs.
291 2004-10-29 Mo DeJong <mdejong@users.sourceforge.net>
293 * tests/wm.test: Add Win32 test cases for attributes subcommand.
294 * win/tkWinWm.c (WmAttributesCmd): Fixup broken option processing logic
295 for attributes subcommand.
297 2004-10-28 Mo DeJong <mdejong@users.sourceforge.net>
299 * win/tkWin32Dll.c (DllMain, _except_dllmain_detach_handler): Rework
300 pushing of exception handler function pointer so that compiling with
301 gcc -O3 works. Remove empty function call to avoid compiler warning.
302 Mark the DllMain function as noinline to avoid compiler error from
303 duplicated asm labels in generated code.
305 2004-10-28 Pat Thoyts <patthoyts@users.sourceforge.net>
307 * unix/tkUnixScale.c (DisplayHorizontalValue): Fix for [Bug 220927] by
308 Michael Schlenker to keep the labels within the window.
310 2004-10-28 Donal K. Fellows <donal.k.fellows@man.ac.uk>
312 * doc/*.n: Assorted minor documentation fixes.
314 2004-10-26 David Gravereaux <davygrvy@pobox.com>
316 * win/tkWinX.c: Signature for tkWinXCleanup needed to be
317 * generic/tkInt.decls: changed so it matches the Tcl_ExitProc
318 * generic/tkIntPlatDecls.h: typedef to avoid a bad-style cast.
320 * win/makefile.vc: Force TCL_LIBRARY envar when calling tclsh
322 2004-10-26 Pat Thoyts <patthoyts@users.sourceforge.net>
324 * win/tkWinRegion.c (TkpBuildRegionFromAlphaData): Fixed syntax error
325 * generic/tkImgPhoto.c (Tk_PhotoPutBlock): Removed unreferences vars.
327 2004-10-26 Donal K. Fellows <donal.k.fellows@man.ac.uk>
329 * macosx/tkMacOSXRegion.c (TkpBuildRegionFromAlphaData):
330 * win/tkWinRegion.c (TkpBuildRegionFromAlphaData): Factor out the
331 * unix/tkUnix.c (TkpBuildRegionFromAlphaData): building of region
332 * generic/tkImgPhoto.c (Tk_PhotoPutBlock): data to permit
333 better implementations on particular platforms. [Bug 919066]
335 2004-10-24 Donal K. Fellows <donal.k.fellows@man.ac.uk>
337 TIP#177 AND TIP#179 IMPLEMENTATIONS
339 * doc/panedwindow.n: Docs for -hide and -stretch options.
340 * tests/panedwindow.test: Basic tests of -hide and -stretch options.
341 * generic/tkPanedWindow.c (Slave,slaveOptionSpecs,ComputeGeometry):
342 (DisplayPanedWindow,ArrangePanes,MoveSash,PanedWindowIdentifyCoords):
343 Add hide flag and stretch setting to list of options supported on a
344 panedwindow's slaves. [Patch 983886] Much thanks to Brian Griffin for
347 2004-10-20 Jeff Hobbs <jeffh@ActiveState.com>
349 * win/tkWinWm.c (UpdateWrapper): pass SWP_NOOWNERZORDER to SetWindowPos
350 when maintaining win Z order, to prevent parent from flashing (when
353 2004-10-19 Joe English <jenglish@users.sourceforge.net>
355 TIP#204 IMPLEMENTATION
357 * library/tk.tcl, library/entry.tcl, library/spinbox.tcl:
358 TIP #204 "Virtual Events for Keyboard Traversal" [Patch 976928]
360 2004-10-19 Donal K. Fellows <donal.k.fellows@man.ac.uk>
362 * tests/canvPsImg.tcl, tests/canvPsBmap.tcl:
363 * generic/tkBitmap.c, bitmaps/*.bmp:
364 * library/demos/icon.tcl, library/demos/items.tcl:
365 * library/demos/label.tcl, library/demos/menu.tcl:
366 * library/demos/ruler.tcl, library/demos/twind.tcl:
367 * library/demos/images/*.bmp: Renamed all X bitmap files files to have
368 an .xbm extension so Windows users won't get confused when wandering
369 around the Tcl source tree. [Bug 733835]
371 2004-10-11 Miguel Bañon <bagnonm@users.sourceforge.net>
373 * library/msgs/sv.msg: Swedish message catalog from Mats Bengtsson.
375 2004-10-09 Donal K. Fellows <donal.k.fellows@man.ac.uk>
377 * doc/wm.n: Recorded what attribute values are supported on OSX though
378 I don't know what they do.
380 2004-10-08 Joe English <jenglish@users.sourceforge.net>
382 TIP#205 IMPLEMENTATION
384 * unix/tkUnixRFont.c: TIP #205 "Use pkgconfig Database to Register Xft
387 2004-10-05 Jeff Hobbs <jeffh@ActiveState.com>
389 TIP#159 IMPLEMENTATION
391 * doc/wm.n (iconphoto): Added support for Tk photo images as
392 * generic/tkInt.h (TkDisplay): title-bar icons. TIP #159
393 * win/tkWinWm.c (WmIconphotoCmd): "wm iconphoto ?-default? image1 ..."
394 * macosx/tkMacOSXWm.c (WmIconphotoCmd): Implemented for Win/Unix,
395 * unix/tkUnixWm.c (WmIconphotoCmd): stubbed out for OS X.
396 * tests/wm.test, tests/unixWm.test, tests/winWm.test: [Bug 815751]
398 2004-10-04 Jeff Hobbs <jeffh@ActiveState.com>
400 * generic/tkTextWind.c (EmbWinDelayedUnmap): Fix init warnings
401 * generic/tkTextTag.c (TkTextCreateTag):
402 * generic/tkTextMark.c (TkTextSetMark):
403 * generic/tkTextIndex.c (GetIndex):
404 * generic/tkUndo.c (EvaluateActionList):
406 2004-09-24 Don Porter <dgp@users.sourceforge.net>
408 * generic/tkCursor.c: Add missing initialization in debug routine.
410 2004-09-24 Vince Darley <vincentdarley@users.sourceforge.net>
412 * library/text.tcl: corrected mousewheel scrolling [Bug 960190]
414 * tests/textDisp.test: made some tests more robust to slowness in
415 asynchronous height calculation callbacks [Bug 1025781]
417 2004-09-24 Pat Thoyts <patthoyts@users.sourceforge.net>
419 * win/tkWinX.c: Added declaration for advapi32 now that this file uses
420 the Reg* functions (req'd for nmake build system).
422 2004-09-23 Vince Darley <vincentdarley@users.sourceforge.net>
425 * tests/text.test: fix and tests for [Bug 1026485] - negative text
426 search ranges should not lead to any matches.
428 2004-09-22 Jeff Hobbs <jeffh@ActiveState.com>
430 * win/tkWinInt.h (TkWinDisplayChanged): added decl
431 * win/tkWinX.c (TkWinDisplayChanged, TkpOpenDisplay): Correctly handle
432 * win/tkWinWm.c (InvalidateSubTreeDepth, WmProc): color and screen
433 resolution changes. Tested for 16/24/32 bpp changes on XP. May need
434 more fixes for 8bpp switch, use of special colormaps, or other special
435 palette handling cases. [Bug 223689]
437 2004-09-21 Mo DeJong <mdejong@users.sourceforge.net>
439 * generic/tkInt.decls: Add decl for TkWinGetPlatformTheme. It is only
441 * generic/tkIntPlatDecls.h: Regen.
442 * generic/tkStubInit.c: Regen.
443 * win/tkWinInt.h: Define TK_THEME_WIN_CLASSIC and TK_THEME_WIN_XP.
444 * win/tkWinMenu.c (DrawMenuEntryAccelerator, DrawMenuEntryLabel): Draw
445 a disabled 3D text highlight for the accelerator only with the Win95/98
446 look. Same goes for the menu entry text.
447 * win/tkWinX.c (TkWinGetPlatformId, TkWinGetPlatformTheme):
448 Automatically detect the Windows theme in use and return either
449 TK_THEME_WIN_CLASSIC or TK_THEME_WIN_XP when the TkWinGetPlatformTheme
450 function is invoked. [Patch 866194]
452 2004-09-21 Mo DeJong <mdejong@users.sourceforge.net>
454 * win/tkWinWm.c: Rework WS_EX_LAYERED and LWA_ALPHA defines so that
455 compiling with mingw works again.
457 2004-09-20 Jeff Hobbs <jeffh@ActiveState.com>
459 * win/tkWinWm.c (UpdateWrapper, WmAttributesCmd): handle attribute
460 settings prior to window mapping and resort to more forceful wrapper
461 update again for -toolwindow (to remove it from taskbar).
463 2004-09-19 Donal K. Fellows <donal.k.fellows@man.ac.uk>
465 * doc/*: Standardize style of references to manual sections and public
466 Tcl symbols along the lines of what I set out in [Tcl Patch 1022527].
468 2004-09-18 Jeff Hobbs <jeffh@ActiveState.com>
470 * win/tkWinWm.c (WmAttributesCmd): correct -alpha 0.0/1.0 setting and
472 (UpdateWrapper): don't adjust Z order of TOPMOST window.
473 (WmAttributesCmd): don't call UpdateWrapper for -disabled or
474 -toolwindow attr changes.
476 2004-09-17 Jeff Hobbs <jeffh@ActiveState.com>
478 TIP#222 IMPLEMENTATION
481 * tests/winWm.test: Add 'wm attributes -alpha' to control toplevel
482 * win/tkWinInt.h: alpha transparency on Win2K/XP+.
483 * win/tkWinWm.c: TIP #222 [Patch 892194]
485 * win/tkWinWm.c (UpdateWrapper): Ensure that we maintain Z order and
486 * tests/winWm.test: focus of preexisting window when
487 replacing the wrapper window.
489 2004-09-16 David Gravereaux <davygrvy@pobox.com>
491 * win/makefile.vc : added VC7-safe environment check as used in the Tcl
492 makefile.vc [Bug 1029349]
494 2004-09-16 Jeff Hobbs <jeffh@ActiveState.com>
496 * generic/tkMenu.c (MenuWorldChanged): ensure that we recompute the
497 menu geometry on WorldChanged to handle font size changes. [Bug 607649]
499 2004-09-16 Peter Spjuth <peter.spjuth@space.se>
502 * generic/tkPlace.c: Fixed a memory leak when a placed widget was
503 forgotten. [Bug 1028888]
505 2004-09-14 Mo DeJong <mdejong@users.sourceforge.net>
507 * win/tkWinWm.c (WmIconwindowCmd): Replace bogus call to
508 XWithdrawWindow with proper code. This avoids a "couldn't send withdraw
509 message to window manager" error when the iconwindow is already mapped.
510 The wm iconwindow command does not seem to do much under Win32, but at
511 least this avoids an error message.
513 2004-09-13 Jeff Hobbs <jeffh@ActiveState.com>
515 * win/tkWinWm.c (ReadIconFromFile): fix mem alloc to get the right size
516 for both icons ('?:' order of precedence mistake).
518 2004-09-10 Donal K. Fellows <donal.k.fellows@man.ac.uk>
520 * library/tkfbox.tcl (::tk::dialog::file::): Make sure that the state
521 is reset properly when starting to run the dialog. [Bug 845189]
523 * library/demos/filebox.tcl: Stop the use of tk_strictMotif from
524 poisoning the rest of the widget demo. [Bug 1013942]
526 2004-09-10 Jeff Hobbs <jeffh@ActiveState.com>
528 * win/tkWinWm.c (ActivateWindow): SetFocus to grab window when clicking
529 outside the grab window hierarchy. [Bug 220908]
530 (UpdateWrapper): update to 2004-06-12 Kovalenko to account for whether
531 the override window has a transient parent, and apply WS_POPUP in the
532 correct case. The makes splash screens pop up as well as making
533 dropdowns not grab focus away from the parent.
535 2004-09-10 Vince Darley <vincentdarley@users.sourceforge.net>
537 TIP#169 IMPLEMENTATION
539 * doc/text.n, generic/tkTest.c, generic/tkText.c, generic/tkText.h:
540 * generic/tkTextBTree.c, generic/tkTextDisp.c, generic/tkTextImage.c:
541 * generic/tkTextIndex.c, generic/tkTextMark.c, generic/tkTextTag.c:
542 * generic/tkTextWind.c, generic/tkUndo.c, generic/tkUndo.h:
543 * library/text.tcl, library/demos/twind.tcl, library/demos/widget:
544 * tests/text.test, tests/textImage.test, tests/textIndex.test:
545 * tests/textWind.test: implementation of TIP#169, which provides the
546 new '$text peer' widget subcommand. This includes new documentation,
547 tests, and an extension to the text widget demos to illustrate some of
548 the new features. Many thanks also to Brian Griffin for the initial
551 2004-09-09 Jeff Hobbs <jeffh@ActiveState.com>
553 * tests/panedwindow.test: bulletproof 23.2 result [Bug 1019100]
555 * win/tkWinWm.c (ReadIconFromFile): when using SHGetFileInfo to
556 retrieve icon, get regular icon as well for correct Alt-Tab icon.
558 2004-09-09 Donal K. Fellows <donal.k.fellows@man.ac.uk>
560 * doc/wish.1: Added note that the -use option is linked to the frame's
561 -container option to help with [Bug 1024364]
563 2004-09-06 Jeff Hobbs <jeffh@ActiveState.com>
565 * library/tkfbox.tcl (::tk::dialog::file::Create): use label instead of
566 button for "File of type", as it properly handles -state disabled now.
568 2004-09-06 Pat Thoyts <patthoyts@users.sourceforge.net>
570 * win/makefile.vc: Set TK_LIBRARY when execing Tk apps (test, runtest,
573 2004-09-03 Donal K. Fellows <donal.k.fellows@man.ac.uk>
575 * macosx/tkMacOSXMenus.c (GenerateEditEvent):
576 * macosx/tkMacOSXMenu.c (MenuSelectEvent):
577 * win/tkWinMenu.c (MenuSelectEvent): Make sure everywhere that needs to
578 NULL-out the user_data field does actually do so. (Code that uses
579 bzero() or memset() for the task just needs to be rebuilt to work).
582 2004-09-01 Donal K. Fellows <donal.k.fellows@man.ac.uk>
584 * tests/bind.test (bind-22.163): Fix inadvertent minor breakage from
585 TIP#165. [Bug 1019085]
587 * doc/toplevel.n, doc/loadTk.n: More spelling/abbreviation fixes from
588 Mikhail Kolesnitchenko.
590 2004-08-29 Donal K. Fellows <donal.k.fellows@man.ac.uk>
592 TIP#165 IMPLEMENTATION
594 * generic/tk.h (XVirtualEvent): Added user_data field to structure.
595 * generic/tkBind.c (ExpandPercents, HandleEventGenerate):
596 * generic/tkEvent.c (Tk_HandleEvent): Handle putting data into the
597 user_data field, passing it to scripts as %d substitution, and
598 releasing the field's contents once the event has been processed.
599 * doc/bind.n, doc/event.n, tests/bind.test: Docs + tests.
601 2004-08-26 Jeff Hobbs <jeffh@ActiveState.com>
603 * library/text.tcl (::tk::TextTranspose): Ensure that Transpose is an
606 2004-08-25 Don Porter <dgp@users.sourceforge.net>
608 * macosx/tkMacOSXWm.c: Made use of Tcl_WrongNumArgs in a few
609 * win/tkWinMenu.c: appropriate spots.
611 2004-08-22 Donal K. Fellows <donal.k.fellows@man.ac.uk>
613 * doc/SetOptions.3, doc/SetClassProcs.3, doc/MeasureChar.3:
614 * doc/GetVRoot.3, doc/GetHWND.3, doc/GetDash.3, doc/GetBitmap.3:
615 * doc/FontId.3, doc/CrtItemType.3, doc/ConfigWidg.3, doc/GetCursor.3:
616 More doc fixes from Mikhail Kolesnitchenko. [Patch 1013520]
618 2004-08-20 Donal K. Fellows <donal.k.fellows@man.ac.uk>
620 * doc/TkInitStubs.3, doc/photo.n, doc/ParseArgv.3, doc/options.n:
621 * doc/keysyms.n, doc/font.n: More doc fixes. [Patch 1012837]
623 * doc/place.n, doc/pack.n, doc/grid.n, doc/getOpenFile.n:
624 * doc/event.n, doc/chooseDirectory.n, doc/bind.n:
625 Spelling and grammar fixes from Mikhail Kolesnitchenko. [Patch 1012083]
627 * tests/canvas.test (canvas-17.1): Report the result of the test so
628 that it can be compared. [Bug 1012331]
630 2004-08-19 Jeff Hobbs <jeffh@ActiveState.com>
632 * win/tkWinDialog.c (Tk_MessageBoxObjCmd): Inherit the icon from the
633 * win/tkWinInt.h: -parent window for the
634 * win/tkWinWm.c (TkWinGetIcon): MessageBox.
636 2004-08-19 Joe English <jenglish@users.sourceforge.net>
638 * unix/tkUnixWm.c: Cast argument 7 of XChangeProperty to 'const
639 unsigned char *' (from 'const char *') to satisfy Solaris 8 Forte C
640 compiler [Bug 1012325]
642 2004-08-19 Don Porter <dgp@users.sourceforge.net>
644 * tests/safe.test (safe-1.3): Made test less sensitve to the full set
645 of existing aliases in an interp, so the it only tests whether the
646 tested ones are present.
648 * unix/Makefile.in: Copied LD_LIBRARY_PATH machinery from `make shell`
649 target to other similar targets so that just built libraries are
650 tested, rather than previous installations.
652 2004-08-19 Donal K. Fellows <donal.k.fellows@man.ac.uk>
654 TIP#168 IMPLEMENTATION
656 * generic/tkTrig.c (TkMakeRawCurve, TkMakeRawCurvePostscript):
657 * generic/tkInt.decls: New functions to handle the geometry for "raw"
659 * generic/tkCanvUtil.c (tkRawSmoothMethod, InitSmoothMethods)
660 (TkSmoothParseProc): Add new type of smoothing method, simplify the
661 method initialization, and change the old smoothing method to be called
662 "true" and just keep "bezier" as an alias.
663 * tests/canvas.test (canvas-17.1): Basic test of built-in smoothing
665 * doc/canvas.n: Documentation updates.
667 2004-08-18 Donal K. Fellows <donal.k.fellows@man.ac.uk>
669 * generic/tkPanedWindow.c (optionSpecs): Add missing GEOMETRY flag to
670 -handlepad option. [Bug 1010938]
672 2004-08-17 Donal K. Fellows <donal.k.fellows@man.ac.uk>
674 * doc/menu.n, doc/text.n: Assorted fixes, including spelling fixes from
675 Mikhail Kolesnitschenko. [Patch 1010083]
677 * doc/spinbox.n, doc/scrollbar.n, doc/scale.n, doc/panedwindow.n:
678 * doc/message.n, doc/listbox.n, doc/entry.n, doc/button.n:
679 More spelling fixes from Mikhail Kolesnitschenko. [Patch 1010607]
681 2004-08-16 Donal K. Fellows <donal.k.fellows@man.ac.uk>
683 * doc/button.n, doc/checkbutton.n, doc/label.n, doc/menubutton.n:
684 * doc/radiobutton.n: Added cross-reference to new standard option.
685 * doc/options.n: Added standard documentation for the -compound
688 * doc/canvas.n: Spelling and grammar fixes from Mikhail
689 Kolesnitschenko. [Bug 1009636]
691 2004-08-11 Donal K. Fellows <donal.k.fellows@man.ac.uk>
693 * library/tkfbox.tcl (ResolveFile): Added some environment variable
694 handling; this isn't perfect, but should do what most people want most
695 of the time. [FRQ 979101]
696 * library/xmfbox.tcl (MotifFDialog_BuildUI): Fix [Bug 987169] in the
697 Motif file dialogs as well.
699 2004-08-10 Joe English <jenglish@users.sourceforge.net>
701 * unix/tkUnixWm.c: Fix for [Bug 1006686] "wm resizable command not
702 working on Solaris/CDE" (patch from Colin McDonald).
704 2004-08-09 Mo DeJong <mdejong@users.sourceforge.net>
706 * tests/canvText.test:
707 * win/tkWinFont.c (Tk_MeasureChars): Fix for text wrapping problem that
708 appeared using canvas text under Win32. A long wrapping string that had
709 leading spaces was being incorrectly wrapped. This change makes the
710 Win32 implementation behave the same as the Unix implementation. [Patch
713 2004-08-05 Donal K. Fellows <donal.k.fellows@man.ac.uk>
715 * library/clrpick.tcl (BuildDialog):
716 * library/msgbox.tcl (MessageBox): Add scheme for cancelling dialog
717 boxes with Escape and also handle what happens when the window gets
718 nuked from outside. [Bug 987169]
720 2004-08-04 Donal K. Fellows <donal.k.fellows@man.ac.uk>
722 * generic/tkImgPhoto.c (ImgPhotoBlendComplexAlpha): Clean the code up a
723 bit and add a few more comments.
724 (Tk_PhotoPutBlock, Tk_PhotoPutZoomedBlock): Clarified the code,
725 corrected the compositing rule now that I have looked up what the right
726 thing to do is, and factorized out the compositing rule code into a few
729 2004-07-30 Daniel Steffen <das@users.sourceforge.net>
732 * unix/tcl.m4 (SC_CONFIG_CFLAGS): Darwin: instead of setting PLAT_OBJS
733 to explict object files in tcl.m4, refer to MAC_OSX_OBJS makefile var.
735 2004-07-29 George Peter Staplin <georgeps@xmission.com>
737 * generic/tkEvent.c (TkQueueEventForAllChildren): Code from the
738 core-8-4-branch to not queue events for unmapped windows was added.
740 2004-07-27 Daniel Steffen <das@users.sourceforge.net>
742 * generic/tkImgGIF.c (FileReadGIF): fix crash reported by Reinhard
743 Max: in case of premature end of image data, return error instead of
744 passing nil buffer to Tk_PhotoPutBlock().
746 2004-07-22 Jeff Hobbs <jeffh@ActiveState.com>
748 * library/tkfbox.tcl (::tk::dialog::file::Update): use -directory [pwd]
749 (instead of .) to get around some VFS edge case bugs. Correct args
750 passes to tk_messageBox when failing to cd. Add -force back to
751 namespace import of msgcat.
753 2004-07-20 Jeff Hobbs <jeffh@ActiveState.com>
755 * generic/tkEvent.c (InvokeInputMethods): ensure IC focus is set after
756 creation. [Bug 905830]
758 2004-07-20 Daniel Steffen <das@users.sourceforge.net>
760 * macosx/Makefile: added support to tk framework build to optionally
761 install tk manpages in addition to html help, similarly to
764 * macosx/Wish.pbproj/project.pbxproj: fixes for building with
765 non-default SYMROOT/OBJROOT/SRCROOT, added support for using a
766 Tcl.framework in DYLIB_INSTALL_PATH != /Library/Frameworks, added
767 optional support for building html help without tcl sources present by
768 giving explicit location of tcltk-man2html script.
770 * macosx/tkMacOSXMenu.c: fixed #include case sensitivity bug.
773 * win/Makefile.in: added 'install-private-headers' makefile target to
774 allow optionally installing private tk headers. [Tcl FR 922727]
776 2004-07-16 Jeff Hobbs <jeffh@ActiveState.com>
778 * unix/Makefile.in, unix/tcl.m4: move (C|LD)FLAGS after their
779 * unix/configure.in, unix/configure: _DEFAULT to allow for env setting
780 to override m4 switches.
781 Consolidate header checks to limit redundancy in configure.
782 (CFLAGS_WARNING): Remove -Wconversion
783 (SC_ENABLE_THREADS): Set m4 to force threaded build when built against
785 Reorder configure.in for better 64-bit build configuration, replacing
786 EXTRA_CFLAGS with CFLAGS. [Bug 874058]
788 2004-07-14 Jim Ingham <jingham@apple.com>
790 * macosx/tkMacOSXCursor.c (TkpSetCursor): The code to not reset the
791 cursor more often than necessary was getting fooled when the current
792 cursor was nulled out when the current cursor gets freed. So in the
793 case where the input cursor was NULL, we have to just always set it.
796 2004-07-13 Don Porter <dgp@users.sourceforge.net>
798 * library/tkfbox.tcl: Corrected coding errors in most recent change.
799 Use [bind $w], not [$w configure] to modify bindings.
801 2004-07-11 Donal K. Fellows <donal.k.fellows@man.ac.uk>
803 * library/tkfbox.tcl (::tk::dialog::file::Create): Watch out for users
804 destroying the dialog indirectly. [Bug 987169]
806 2004-07-07 Donal K. Fellows <donal.k.fellows@man.ac.uk>
808 * doc/canvas.n: Add paragraph to make clearer what is going on with the
809 default canvas origin. [Bug 956681]
811 2004-07-05 George Peter Staplin <GeorgePS@XMission.com>
813 * generic/tkEvent.c: TK_XIM_SPOT preprocessor usage was modified
814 slightly to fix a bug that occured when TK_XIM_SPOT was defined as 0.
815 Thanks to Joe Mistachkin for reporting this bug.
817 2004-07-05 Donal K. Fellows <donal.k.fellows@man.ac.uk>
819 TIP#158 IMPLEMENTATION
821 * tests/bind.test: Allow Win apps to distinguish keys
822 * win/tkWinX.c (GetState): on the keypad using the Extended
823 * generic/tkInt.h (EXTENDED_MASK): modifier. Thanks to Wolfgang
824 * generic/tkBind.c: Grossbauer and Kevin Kenny for
825 * doc/bind.n: developing this patch [Patch 797404]
827 2004-07-05 Joe English <jenglish@users.sourceforge.net>
829 * unix/tkUnixWm.c: Set _NET_WM_NAME and _NET_WM_ICON_NAME
830 (freedesktop.org) in addition to WM_NAME and WM_ICON_NAME (ICCCM). This
831 allows the full Unicode character set to be used in window manager
832 strings (but only for newer WMs that support the EWMH spec). [Bug
835 2004-07-02 George Peter Staplin <GeorgePS@XMission.com>
837 * generic/tkEvent.c: Tk_HandleEvent was refactored to be more readable,
838 and during this process two bugs were found.
839 1) Button 4 and 5 masks will now be synchronized with the TkDisplay.
840 2) ClientMessage handlers will use the proper last pointer rather than
841 writing to the last GenericHandler pointer.
843 Thanks to Joe English for his help and encouragement, and DKF for
846 2004-07-01 Donal K. Fellows <donal.k.fellows@man.ac.uk>
848 * doc/place.n, doc/pack.n: Doc fixes. [Tcl Bug 983146]
850 2004-06-30 Donal K. Fellows <donal.k.fellows@man.ac.uk>
852 TIP#153 IMPLEMENTATION
854 * generic/tkCmds.c (GetTopHierarchy): Modified from GetToplevel so
855 * doc/winfo.n: that [winfo toplevel] does not
856 assume that it is really working with toplevels. Occasionally this is
857 important. Thanks to Neil McKay for this patch!
859 2004-06-29 Jeff Hobbs <jeffh@ActiveState.com>
861 * generic/tkCmds.c (Tk_WinfoObjCmd): refetch interp result obj for
862 'winfo id' as it can change when making the window exist.
864 2004-06-26 Joe Mistachkin <joe@mistachkin.com>
866 * generic/tkConsole.c (ConsoleDeleteProc): Set tsdPtr->gStdoutInterp to
867 NULL when the console command is deleted [Bug 756840]. Also, added
868 Tcl_Preserve/Tcl_Release for consoleInterp in InterpreterCmd in case it
869 gets deleted during the calls to Tcl_GlobalEval and Tcl_RecordAndEval.
871 2004-06-24 Donal K. Fellows <donal.k.fellows@man.ac.uk>
873 * tests/canvPs.test, etc: Use standard tcltest constraint names.
875 2004-06-19 Daniel Steffen <das@users.sourceforge.net>
877 * unix/tcl.m4: autoconf 2.5 fixes in Darwin section.
878 * unix/configure: autoconf-2.57
880 2004-06-17 Donal K. Fellows <donal.k.fellows@man.ac.uk>
882 * tests/constraints.tcl, tests/*.test: Systematization of test
883 constraints so many common and basic constraints are defined once with
886 2004-06-16 Joe English <jenglish@users.sourceforge.net>
888 * unix/tkUnixWm.c, win/tkWinWm.c, macosx/tkMacOSXWm.c, tests/wm.test
889 * tests/unixWm.test: Fix for [Bug 742882] "Potential division by zero
890 in gridded wm geometry"
892 2004-06-15 Anton Kovalenko <a_kovalenko@users.sourceforge.net>
894 * win/tkWinButton.c: Add a 3D highlight to disabled *buttons and
895 labels, the same way as it's now done for disabled menu entries.
897 2004-06-15 Donal K. Fellows <donal.k.fellows@man.ac.uk>
899 * doc/image.n: Enhanced the documentation to take into account the
900 concerns raised in [RFE 803060]
902 * tests/canvas.test: Updated tests affected by the change to
903 ScrollFractions, which is now clean about result generation.
905 * generic/tkCanvas.c: Make tag search subsystem use symbolic names for
906 type flags for easier maintenance.
907 (FIRST_CANVAS_ITEM_MATCHING,FOR_EVERY_CANVAS_ITEM_MATCHING): Factorize
908 out searching idioms into macros to reduce the #ifdef count and make
910 (ScrollFractions): Really create a list Tcl_Obj.
912 2004-06-12 Anton Kovalenko <a_kovalenko@users.sourceforge.net>
914 * win/tkWinWm.c (UpdateWrapper): Let overrideredirect'ed window's
915 wrapper be the child of desktop window, thus making it to behave more
916 similarly to X11 Override Redirect. Esp. useful for combobox-like
919 2004-06-09 Vince Darley <vincentdarley@users.sourceforge.net>
922 * tests/text.test: fix to multi-line regexp search bugs in text widget
923 (reported against Alphatk editor, not on sf). Addded 3 new tests.
925 2004-06-09 Donal K. Fellows <donal.k.fellows@man.ac.uk>
927 * generic/tkUndo.c (TkUndoSetDepth): Delete the unlinked element and
928 not the next element. Stops a crash in some situations and a memory
929 leak in others. Thanks to Jiang Wu for spotting this. [Bug 969358]
931 2004-06-08 Mo DeJong <mdejong@users.sourceforge.net>
933 * generic/tkCanvText.c (DisplayCanvText): Fix text rendering problem
934 with canvas text items that have a selected region. The previous
935 implementation would render the whole line and then redraw the
936 selected text if it was a different color. This caused problems when
937 the selected text foreground differs from the normal text foreground,
938 the anti-aliasing alpha pixels for the two text strings would blend
939 together resulting in strange looking text. The fix is to draw the
940 normal text and the selected text separately. This problem has only
941 been observed under Windows, with anti-aliased text. [Patch 968725]
943 2004-06-07 Vince Darley <vincentdarley@users.sourceforge.net>
945 * generic/tkTextDisp.c:
946 * generic/tkTextBTree.c: fix to (Bug 965186) in which the text widget's
947 record of partial-line-height calculations (for very long wrapped
948 lines) was being incorrectly reused. This resulted in confusing
949 scrollbar-text interactions.
951 2004-06-06 Pat Thoyts <patthoyts@users.sourceforge.net>
953 * tests/frame.test: Fix frame-2.8 for ![info exists env(DISPLAY)]
955 2004-06-04 Don Porter <dgp@users.sourceforge.net>
957 * tests/filebox.test: A few typo corrections in dkf's recent style
958 * tests/frame.test: upgrade for the test suite.
962 2004-06-04 Vince Darley <vincentdarley@users.sourceforge.net>
964 * generic/tkTextIndex.c:
966 * generic/tkTextDisp.c:
967 * doc/text.n: fix to shimmering infinite loop scrolling problem in text
968 widget under some rare circumstances (Bug 965398). Improved comments
971 * tests/textDisp.test: corrected rounding from float to int in test,
972 fixing occasional failures
974 * library/text.tcl: corrected mousewheel bindings for TkAqua
976 2004-05-29 Joe English <jenglish@users.sourceforge.net>
978 * doc/messageBox.n: Fix minor markup errors (backslash is \e, not \b).
980 2004-05-24 Donal K. Fellows <donal.k.fellows@man.ac.uk>
982 * doc/messageBox.n: Added documentation for the -detail option.
983 * tests/msgbox.test: Updated test suite with correct list of options.
984 * win/tkWinDialog.c (Tk_MessageBoxObjCmd): Added "support" for the
985 -detail option by concatenating it onto the end of the message.
987 2004-05-24 Jim Ingham <jingham@apple.com>
989 * tkMacOSXDialog.c (Tk_MessageBoxObjCmd): Turn on the -detail option
992 2004-05-23 Donal K. Fellows <donal.k.fellows@man.ac.uk>
994 * ChangeLog.2002: Split older ChangeLog entries off into a separate
996 * doc/bindtags.n: Added example.
998 * tests/*.test: Many minor fixes aiming towards making the Tk test
999 suite have better style. (A very large fraction of test files were
1002 * generic/tkVisual.c (Tk_GetVisual): Minor fix for error message.
1004 2004-05-14 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1006 TIP#152 IMPLEMENTATION (Unix only)
1008 * library/msgbox.tcl (MessageBox): Added TIP#152's -detail option for
1009 Unix/X11 platforms. Also shrank the size of the main -message text
1010 which was grossly large.
1012 2004-05-12 Chengye Mao <chengye.geo@yahoo.com>
1014 * generic/tkBind.c <HandleEventGenerate>: Modified to fix wish crash
1015 due to incorrectly generate <Destroy> event. This bug was reported in
1016 comp.lang.tcl but not logged.
1018 2004-05-07 Chengye Mao <chengye.geo@yahoo.com>
1020 * win/tkWinWm.c <UpdateWrapper>: handle and destroy old wrapper
1021 correctly and fix crash problem in wish exiting [Bug 767176].
1023 2004-05-05 Jeff Hobbs <jeffh@ActiveState.com>
1025 * win/tkWinFont.c (FindSubFontForChar): corrections to dkf patch to
1026 handle subFontPtrPtr in EnumFontFamilies callback.
1028 2004-05-05 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1030 * win/tkWinFont.c (Tk_MeasureChars,Tk_DrawChars,etc): Make sure that
1031 the lastSubFontPtr remains valid even when the subfont array is
1032 reallocated. [Bug 618872]
1034 2004-05-03 Jeff Hobbs <jeffh@ActiveState.com>
1036 * unix/tkUnixButton.c (TkpDrawCheckIndicator): allow radiobuttons to be
1037 drawn when disabledforeground and/or selectcolor are NULL.
1038 [Bug 826850] (griffin)
1040 * win/tkWinMenu.c, unix/tkUnixMenu.c (DrawMenuEntryLabel): place images
1041 of compound menu entries in indicator space if not a radio of
1042 checkbutton. [Bug 756952] (eserte)
1044 * win/tkWinX.c: fix drawing of unicode chars in menu
1045 * win/tkWinInt.h (TkWinProcs): titles. [Bug 904371] (riefenstahl)
1046 * win/tkWinMenu.c (ReconfigureWindowsMenu):
1048 * generic/tkClipboard.c: Move TkClipCleanup from tkClipboard.c to
1049 * macosx/tkMacOSXXStubs.c: being implemented in a platform-specific
1050 * unix/tkUnixEvent.c: manner. The cleanup order was bad at least
1051 * win/tkWinX.c: on Windows, where we reset/cleared display
1052 info that was still needed for the clipboard to render. [Bug 939389,
1055 * library/panedwindow.tcl (MarkSash): call DragSash to stop sash jump
1056 when B1 is pressed and released without moving. [Bug 932155]
1058 * tests/panedwindow.test: panedwindow-25.1
1059 * generic/tkPanedWindow.c (Unlink): clean up -before/-after refs to a
1060 slave when removing it. [Bug 928413] (griffin)
1062 * generic/tkImgPhoto.c (ImgPhotoConfigureMaster): force -data into
1063 ByteArray and -format into String to correctly handle them if they
1064 have been shimmered or created as some other object type.
1066 2004-04-24 Daniel Steffen <das@users.sourceforge.net>
1071 * win/Makefile.in: followup on tcl header reform [FR 922727]: removed
1072 use of relative #include paths in tkPort.h to allow installation of
1073 private headers outside of tk source tree; added tcl plaform source dir
1074 to compiler header search path.
1076 2004-04-23 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1078 * doc/bind.n: Added examples (in line with the parallel programme for
1079 adding examples to Tcl manual pages) and made assorted minor
1080 alterations to improve the overall look.
1082 2004-04-21 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1084 * tests/textDisp.test: Get rid of windows that are no longer needed so
1085 single-proc tests don't have extra windows hanging around unexpectedly.
1087 2004-04-21 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
1089 Mac OS X: Fix several problems with Icelandic (and Faroese) keyboards
1090 reported by Jérôme Gagnon-Voyer <gagnonje5000<at>mac<dot>com> on
1091 tcl-mac on 2004-03-22.
1093 * macosx/tkMacOSXKeyEvent.c (KLSInit): Add.
1094 (GetKeyboardLayout): Add calls to Keyboard Layout Services, if present.
1095 Rework classic handling. Use GetKCHREncoding(). Add parameter
1097 (GetKCHREncoding): Add.
1099 2004-04-16 Jeff Hobbs <jeffh@ActiveState.com>
1101 * library/bgerror.tcl (bgerror): rework to only set -topmost bit on
1102 Windows if necessary. Also use existing ::tk functions for placing
1103 dialog and managing focus/grab.
1105 2004-04-04 Joe English <jenglish@users.sourceforge.net>
1107 * unix/tkUnixWm.c: Fix for [Bug 915350] "Tk sets min, max size in
1108 WM_HINTS when it shouldn't" and [Bug 922336] "Tk apps have no maximize
1109 window button under KDE-3.2.1"
1111 2004-03-31 Jim Ingham <jingham@apple.com>
1113 * tkMacOSXCarbonEvents.c (AppEventHandlerProc): Handle the
1114 kEventAppHidden and kEventAppShown events.
1115 (TkMacOSXInitCarbonEvents): Register for the above events.
1116 * tkMacOSXKeyEvent.c (TkMacOSXProcessKeyboardEvent): Steal the
1117 Command-H menu key event and allow the Application handler to have it.
1118 This is currently the only way to get the Hide behavior to work. [Bug
1121 * tkMacOSMenus.c (TkMacOSXHandleMenuSelect): Remove the Quit menu
1122 handler - this was for the Quit item in the File menu, but it doesn't
1124 (TkMacOSXInitMenus): Remove the Quit menu item from the File menu.
1126 * tkMacOSXMenu.c (EventuallyInvokeMenu): Report errors from invoking
1127 menu commands as background errors. [Bug 220871]
1129 2004-03-31 Don Porter <dgp@users.sourceforge.net>
1131 * generic/tkImgPhoto.c: Removed outdated #include's of the tclMath.h
1132 * generic/tkScale.c: header file. All tk*Port.h files have long had
1133 a #include <math.h>, and other parts of Tk routinely make use of
1134 libm-supplied math routines.
1136 2004-03-30 Daniel Steffen <das@users.sourceforge.net>
1138 * macosx/tclets.r (removed): obsolete holdover from mac classic.
1140 2004-03-26 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1142 * generic/tkImgPPM.c (ReadPPMStringHeader): Code to read PPM/PGM data
1143 (StringReadPPM, StringMatchPPM): from strings/bytearrays. [FRQ 540375]
1145 2004-03-26 Don Porter <dgp@users.sourceforge.net>
1147 * unix/tcl.m4: Replaced -Wno-strict-alias with more portable
1148 -fno-strict-alias alternative.
1150 * README: Bump version to 8.5a2.
1152 * macosx/Wish.pbproj/project.pbxproj:
1153 * unix/configure.in:
1157 * unix/configure: autoconf-2.57
1160 2004-03-26 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1162 * generic/tkImgPPM.c (StringWritePPM): New function to support
1163 converting of images to PPM strings. Other direction not yet done. Rest
1164 of file converted to use new image API.
1165 * generic/tkImgPhoto.c (ImgPhotoCmd): Restored support for the
1166 stringWriteProc of old photo formats. [Bug 923555]
1168 2004-03-25 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1170 * doc/winfo.n: Clarified the range of colour intensities returned by
1171 [winfo rgb]. [Bug 922610]
1173 2004-03-22 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1175 * doc/ConfigWidg.3: Converted malloc/free to Tcl_Alloc/Tcl_Free to help
1176 avoid confusion and crashes on Windows. [Bug 920695]
1178 2004-03-20 Jim Ingham <jingham@apple.com>
1180 * macosx/tkMacOSXSubwindows.c (GenerateConfigureNotify): New function.
1181 (XMoveWindow): Generate configure notify events for child widgets on
1183 (XMoveResizeWindow): Ditto.
1185 2004-03-18 Daniel Steffen <das@users.sourceforge.net>
1187 Removed support for Mac OS Classic platform [Patch 918139]
1192 * generic/default.h:
1197 * generic/tkConsole.c:
1198 * generic/tkFileFilter.h:
1200 * generic/tkInitScript.h:
1201 * generic/tkInt.decls:
1202 * generic/tkIntDecls.h:
1203 * generic/tkIntPlatDecls.h:
1204 * generic/tkIntXlibDecls.h:
1206 * generic/tkPlatDecls.h:
1207 * generic/tkPointer.c:
1209 * generic/tkSelect.c:
1210 * generic/tkStubInit.c:
1211 * generic/tkStubLib.c:
1214 * generic/tkWindow.c:
1215 * library/bgerror.tcl:
1216 * library/button.tcl:
1217 * library/console.tcl:
1218 * library/dialog.tcl:
1219 * library/entry.tcl:
1220 * library/msgbox.tcl:
1221 * library/spinbox.tcl:
1222 * library/tearoff.tcl:
1225 * library/demos/text.tcl:
1226 * library/demos/widget:
1227 * mac/MW_TkBuildLibHeader.h (removed):
1228 * mac/MW_TkBuildLibHeader.pch (removed):
1229 * mac/MW_TkHeader.h (removed):
1230 * mac/MW_TkHeader.pch (removed):
1231 * mac/MW_TkHeaderCommon.h (removed):
1232 * mac/MW_TkOldImgHeader.h (removed):
1233 * mac/MW_TkOldImgStaticHeader.h (removed):
1234 * mac/MW_TkStaticHeader.h (removed):
1235 * mac/MW_TkStaticHeader.pch (removed):
1236 * mac/MW_TkTestHeader.h (removed):
1237 * mac/MW_TkTestHeader.pch (removed):
1238 * mac/README (removed):
1239 * mac/bugs.doc (removed):
1240 * mac/tclets.r (removed):
1241 * mac/tclets.tcl (removed):
1242 * mac/tkMac.h (removed):
1243 * mac/tkMacAppInit.c (removed):
1244 * mac/tkMacAppearanceStubs.c (removed):
1245 * mac/tkMacApplication.r (removed):
1246 * mac/tkMacBitmap.c (removed):
1247 * mac/tkMacButton.c (removed):
1248 * mac/tkMacClipboard.c (removed):
1249 * mac/tkMacColor.c (removed):
1250 * mac/tkMacConfig.c (removed):
1251 * mac/tkMacCursor.c (removed):
1252 * mac/tkMacCursors.r (removed):
1253 * mac/tkMacDefault.h (removed):
1254 * mac/tkMacDialog.c (removed):
1255 * mac/tkMacDraw.c (removed):
1256 * mac/tkMacEmbed.c (removed):
1257 * mac/tkMacFont.c (removed):
1258 * mac/tkMacHLEvents.c (removed):
1259 * mac/tkMacInit.c (removed):
1260 * mac/tkMacInt.h (removed):
1261 * mac/tkMacKeyboard.c (removed):
1262 * mac/tkMacLibrary.r (removed):
1263 * mac/tkMacMDEF.c (removed):
1264 * mac/tkMacMDEF.r (removed):
1265 * mac/tkMacMenu.c (removed):
1266 * mac/tkMacMenu.r (removed):
1267 * mac/tkMacMenubutton.c (removed):
1268 * mac/tkMacMenus.c (removed):
1269 * mac/tkMacPort.h (removed):
1270 * mac/tkMacProjects.sea.hqx (removed):
1271 * mac/tkMacRegion.c (removed):
1272 * mac/tkMacResource.r (removed):
1273 * mac/tkMacScale.c (removed):
1274 * mac/tkMacScrlbr.c (removed):
1275 * mac/tkMacSend.c (removed):
1276 * mac/tkMacSubwindows.c (removed):
1277 * mac/tkMacTclCode.r (removed):
1278 * mac/tkMacTest.c (removed):
1279 * mac/tkMacWindowMgr.c (removed):
1280 * mac/tkMacWm.c (removed):
1281 * mac/tkMacXCursors.r (removed):
1282 * mac/tkMacXStubs.c (removed):
1283 * mac/widget.r (removed):
1284 * tests/clrpick.test:
1285 * tests/cursor.test:
1288 * tests/macEmbed.test (removed):
1289 * tests/macFont.test (removed):
1290 * tests/macMenu.test (removed):
1291 * tests/macWinMenu.test (removed):
1292 * tests/macscrollbar.test (removed):
1293 * tests/menuDraw.test:
1295 * tests/scrollbar.test:
1296 * tests/select.test:
1297 * tests/spinbox.test:
1306 * unix/tkUnixDraw.c:
1312 * xlib/X11/keysym.h:
1314 2004-03-16 Jeff Hobbs <jeffh@ActiveState.com>
1316 * unix/tkUnixButton.c (TkpDrawCheckIndicator): correct crash condition
1317 for new radio/checkbuttons when colors are exhausted.
1318 [Bug 915330] (griffin)
1320 * generic/tkGrid.c (GridRowColumnConfigureCommand): fix lint warning
1322 * generic/tkCanvUtil.c: fix cast warnings
1324 * generic/tkTextImage.c (EmbImageConfigure): fix casts
1326 * unix/tkUnixSelect.c (ConvertSelection, TkSelPropProc): fix casts
1328 * unix/configure, unix/tcl.m4: add -Wno-strict-aliasing for GCC to
1329 suppress useless type puning warnings.
1331 2004-03-08 David Gravereaux <davygrvy@pobox.com>
1334 * win/buildall.vc.bat: Checks MSDevDir, not MSVCDir envar.
1336 2004-03-04 Mo DeJong <mdejong@users.sourceforge.net>
1338 * win/tkWin32Dll.c: Add variables needed when compiling with mem debug
1339 under Mingw. This fixes the checking from 2003-12-25.
1341 2004-03-03 Jeff Hobbs <jeffh@ActiveState.com>
1343 *** 8.5a1 TAGGED FOR RELEASE ***
1345 * unix/Makefile.in (dist): don't require win/lamp.bmp copy in dist
1346 target (it's already handled by win/rc/*.bmp copy)
1348 * changes: updated for 8.5a1
1350 2004-03-01 Jeff Hobbs <jeffh@ActiveState.com>
1352 * README: update to patchlevel 8.5a1
1354 * macosx/Wish.pbproj/project.pbxproj:
1355 * unix/configure, unix/configure.in, unix/tk.spec:
1356 * win/configure, win/configure.in:
1358 * unix/tcl.m4: update HP-11 build libs setup
1360 2004-03-01 Don Porter <dgp@users.sourceforge.net>
1362 * unix/tcl.m4 (SC_CONFIG_CFLAGS): Allow 64-bit enabling on
1363 IRIX64-6.5* systems. [Bug 218561]
1364 * unix/configure: autoconf-2.57
1366 2004-02-28 Vince Darley <vincentdarley@users.sourceforge.net>
1368 * generic/tkTextIndex.c: remove use of internal Tcl interface
1371 2004-02-25 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
1373 * library/demos/widget (addFormattedText): Correct off-by-one error.
1375 2004-02-23 Daniel Steffen <das@users.sourceforge.net>
1377 * macosx/Makefile: ensure that xcodebuild will use the Wish.pbproj
1378 project even if a .xcode project is also present.
1380 * macosx/tkMacOSXMouseEvent.c: fixed modifiers for MouseWheel events.
1382 * macosx/Wish.pbproj/project.pbxproj:
1383 * macosx/tkAboutDlg.r: changed year in copyright strings to 2004.
1385 2004-02-23 Daniel Steffen <das@users.sourceforge.net>
1387 * macosx/tkMacOSXDraw.c:
1388 * macosx/tkMacOSXXStubs.c:
1389 * xlib/ximage.c: fixed MacOSX XGetImage/XPutImage and related functions
1390 to deal properly with XImages copied from screen.
1391 * generic/tkCanvPs.c (TkImageGetColor): MacOSX fix. [Bug 809157]
1393 2004-02-18 Peter Spjuth <peter.spjuth@space.se>
1396 * generic/tkGrid.c: Fixed a bug in grid geometry calculations for a
1397 shrinking grid. [Bug 899246]
1399 2004-02-17 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
1401 * macosx/tkMacOSXKeyboard.c (TkpInitKeymapInfo): Don't make <Alt> and
1402 <Meta> synonyms for <Command> and <Option> for now.
1404 2004-02-17 Jeff Hobbs <jeffh@ActiveState.com>
1406 * generic/tkBind.c (HandleEventGenerate): only modify root[xy] with
1407 [xy] when they haven't been otherwise set.
1409 TIP#110 IMPLEMENTATION
1411 * doc/checkbutton.n: Tristate Checkbutton and Radiobuttons
1412 * doc/radiobutton.n:
1413 * generic/tkButton.c:
1414 * generic/tkButton.h:
1415 * library/demos/check.tcl:
1416 * library/demos/radio.tcl:
1417 * macosx/tkMacOSXButton.c:
1418 * macosx/tkMacOSXDefault.h:
1419 * tests/button.test:
1420 * unix/tkUnixButton.c:
1421 * unix/tkUnixDefault.h:
1422 * win/tkWinButton.c:
1423 * win/tkWinDefault.h:
1425 2004-02-17 Don Porter <dgp@users.sourceforge.net>
1427 * tests/imgPhoto.test (imgPhoto-16.1): Corrected incorrect variable
1430 2004-02-15 Jim Ingham <jingham@apple.com>
1432 * tkMacOSXDialog.c (MatchOneType): If the Macintosh filetype is 0, then
1433 automatically pass the fileType check.
1435 * tkMacOSXCarbonEvents.c: New file - this doesn't do anything yet -
1436 just registers for a couple of App Events.
1438 * tkMacOSXInit.c (TkpInit.c): Call TkMacOSXInitCarbonEvents.c.
1440 * tkMacOSXAppInit.c: Formatting cleanups.
1441 * tkMacOSXButton.c: Ditto
1442 * tkMacOSXClipboard.c: Ditto
1443 * tkMacOSXDebug.c: Ditto
1444 * tkMacOSXDialog.c: Ditto
1445 * tkMacOSXDraw.c: Ditto
1446 * tkMacOSXEvent.c: Ditto
1447 * tkMacOSXFont.c: Ditto
1448 * tkMacOSXHLEvents.c: Ditto
1449 * tkMacOSXInit.c: Ditto
1451 * tkMacOSXKeyEvent.c: Ditto
1452 * tkMacOSXMenu.c: Ditto
1453 * tkMacOSXMenubutton.c: Ditto
1454 * tkMacOSXMouseEvent.c: Ditto
1455 * tkMacOSXNotify.c: Ditto
1456 * tkMacOSXScale.c: Ditto
1457 * tkMacOSXScrlbr.c: Ditto
1458 * tkMacOSXSubwindows.c: Ditto
1459 * tkMacOSXWindowEvent.c: Ditto
1460 * tkMacOSXWm.c: Ditto
1462 2004-02-13 Jim Ingham <jingham@apple.com>
1464 * tkMacOSXDialog.c (Tk_GetOpenFileObjCmd): Use CFStringRef for title &
1465 message options, not pascal strings.
1466 (Tk_GetSaveFileObjCmd): Ditto
1467 (Tk_ChooseDirectoryObjCmd): Ditto
1468 (NavServicesGetFile): Now that we get CFStrings, we don't need to
1471 * tkMacOSXMenu.c (TkMacOSXDispatchMenuEvent): Cleanup, we don't need to
1472 handle the Apple Menu picks any more, but the code didn't reflect that.
1474 * tkMacOSXWm.c (TkSetWMName): Use CFStrings for the Window Title name,
1477 2004-02-12 Jeff Hobbs <jeffh@ActiveState.com>
1479 * win/tkWinDialog.c (ChooseDirectoryValidateProc): create a pidl for
1480 -initialdir if we have a UNC path because BFFM_SETSELECTION doesn't
1481 support UNC paths in strings.
1483 2004-02-10 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1485 * library/msgs/eo.msg: Language support for Esperanto and Polish from
1486 * library/msgs/pl.msg: Artur Trzewik <mail@xdobry.de> with thanks.
1488 2004-02-09 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1490 * generic/tkImgPhoto.c (Tk_PhotoPutBlock, Tk_PhotoPutZoomedBlock):
1491 * tests/imgPhoto.test (imgPhoto-16.1): Better handling of the case when
1492 copying from one area of a photo to another triggers a resizing of the
1495 2004-02-07 David Gravereaux <davygrvy@pobox.com>
1500 * win/rc/wish.rc: Now supports the 'unchecked' option when building.
1502 2004-02-03 Jeff Hobbs <jeffh@ActiveState.com>
1505 * library/menu.tcl (::tk::MbPost): make menubuttons that post above or
1506 below reverse direction when not enough space is available.
1508 2004-02-01 David Gravereaux <davygrvy@pobox.com>
1510 * win/lamp.bmp (deleted): using win/rc/lamp.bmp instead.
1512 * win/winMain.c: Removed our custom setargv() in favor of __argc and
1513 __argv exported by the C run-time.
1517 * win/rc/wish.rc: General clean-up.
1520 * win/nmakehlp.c: sync'd to Tcl.
1522 2004-01-31 Joe English <jenglish@users.sourceforge.net>
1524 * unix/tkUnixWm.c, unix/tkUnixEvent.c: Replaced TclpGetTime() with
1525 Tcl_GetTime(), to remove dependency on tclInt.h [Bug 874745].
1527 2004-01-27 Daniel Steffen <das@users.sourceforge.net>
1529 * generic/tkTextIndex.c: added '#include <tclInt.h>' since the code
1530 uses the TclUtfToUniChar macro from that file. [Bug 874745]
1532 * macosx/Wish.pbproj/project.pbxproj: removed erroneous reference to
1533 mkpsenc.tcl in bundle resources phase (mkpsenc.tcl is already part of
1534 the copy files phase to Resources/Scripts).
1536 * macosx/Makefile: added support for 'xcodebuild' on Mac OS X 10.3.
1538 2004-01-25 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
1540 * macosx/tkMacOSXKeyboard.c: Fix regressions due to the last patches.
1542 2004-01-25 Peter Spjuth <peter.spjuth@space.se>
1544 * library/dialog.tcl:
1545 * library/msgbox.tcl: The dialogs were affected by the TIP#146
1546 implementation. Added grid anchor commands to restore original
1549 2004-01-15 David Gravereaux <davygrvy@pobox.com>
1551 * win/tkWinSendCom.c: Placed the requirement for the special COM
1552 libraries into the object file itself with #pragma comment (lib, ...)
1553 when built with VC++. This will simplify linking for users of the
1554 static library. uuid.lib is required for VC5.2, but is implicit with
1557 * win/makefile.vc: Removed 'ole32.lib oleaut32.lib uuid.lib' from
1560 2004-01-12 David Gravereaux <davygrvy@pobox.com>
1562 * generic/tk3d.c: All uses of 'panic' (the macro) changed to
1563 * generic/tkBind.c: 'Tcl_Panic' (the function). The #define of
1564 * generic/tkBitmap.c: panic in tcl.h clearly states it is deprecated
1565 * generic/tkCanvArc.c: in the comments. [Tcl Patch 865264]
1566 * generic/tkCanvBmap.c:
1567 * generic/tkCanvImg.c:
1568 * generic/tkCanvLine.c:
1569 * generic/tkCanvPoly.c:
1570 * generic/tkCanvText.c:
1571 * generic/tkCanvWind.c:
1572 * generic/tkColor.c:
1573 * generic/tkConfig.c:
1574 * generic/tkCursor.c:
1575 * generic/tkError.c:
1576 * generic/tkEvent.c:
1577 * generic/tkFocus.c:
1579 * generic/tkFrame.c:
1582 * generic/tkImgBmap.c:
1583 * generic/tkImgPhoto.c:
1584 * generic/tkImgUtil.c:
1588 * generic/tkPlace.c:
1589 * generic/tkRectOval.c:
1590 * generic/tkSelect.c:
1592 * generic/tkTextBTree.c:
1593 * generic/tkTextDisp.c:
1594 * generic/tkTextImage.c:
1595 * generic/tkTextIndex.c:
1596 * generic/tkTextMark.c:
1597 * generic/tkTextWind.c:
1598 * generic/tkVisual.c:
1599 * generic/tkWindow.c:
1600 * mac/tkMacAppInit.c:
1601 * mac/tkMacAppearanceStubs.c:
1602 * mac/tkMacButton.c:
1609 * mac/tkMacSubwindows.c:
1611 * mac/tkMacXStubs.c:
1612 * macosx/tkMacOSXEmbed.c:
1613 * macosx/tkMacOSXFont.c:
1614 * macosx/tkMacOSXMenus.c:
1615 * macosx/tkMacOSXNotify.c:
1616 * macosx/tkMacOSXPort.h:
1617 * macosx/tkMacOSXSubwindows.c:
1618 * macosx/tkMacOSXWm.c:
1619 * macosx/tkMacOSXXStubs.c:
1621 * unix/tkUnixColor.c:
1622 * unix/tkUnixEmbed.c:
1623 * unix/tkUnixEvent.c:
1624 * unix/tkUnixFocus.c:
1625 * unix/tkUnixFont.c:
1626 * unix/tkUnixSelect.c:
1627 * unix/tkUnixSend.c:
1630 * win/tkWinButton.c:
1632 * win/tkWinDialog.c:
1636 * win/tkWinPixmap.c:
1637 * win/tkWinPointer.c:
1638 * win/tkWinScrlbr.c:
1643 * win/rc/tk_base.rc:
1645 * win/makefile.vc: Refreshed how the resource files are built. Should
1646 be a bit easier for people linking with a static Tk library.
1648 * win/lamp.bmp (deleted):
1649 * win/rc/lamp.bmp (new): Moved.
1651 * win/rules.vc: Sync'd to Tcl, respects the CHECKS=nodep command line
1652 macro and was used to verify the Tcl_Panic change above.
1654 2004-01-09 Peter Spjuth <peter.spjuth@space.se>
1656 TIP#146 IMPLEMENTATION
1660 * generic/tkGrid.c: Implementation of TIP#146, "Add Overall Anchoring
1661 to the Grid Geometry Manager", adding [grid anchor] subcommand.
1662 **** POTENTIAL VISUAL INCOMPATABILITY ****
1664 2004-01-07 Vince Darley <vincentdarley@users.sourceforge.net>
1666 * generic/tkTextDisp.c:
1667 * generic/tkTextBTree.c:
1668 * tests/text.test: fixed crashing [Bug 872299] in yview code, and added
1669 tests and better error checking in the B-tree.
1671 2004-01-07 Vince Darley <vincentdarley@users.sourceforge.net>
1673 * generic/tkTextIndex.c:
1674 * tests/textIndex.test: fixed bug in which 'wordstart' and 'wordend'
1675 were not utf-8 aware (they haven't been changed since Tk 8.0), and
1678 2004-01-07 Vince Darley <vincentdarley@users.sourceforge.net>
1680 * win/tkWinMenu.c: only provide a submenu handle when the MF_POPUP flag
1681 is given, fixing a recently-introduced crash when submenus are
1682 disabled. Also better error checking for this sort of situation in the
1685 2003-12-31 Daniel Steffen <das@users.sourceforge.net>
1687 * macosx/Wish.pbproj/project.pbxproj: added missing private headers to
1688 installed Tk.framework, so that tkInt.h can be included sucessfully
1689 from Tk.framework/PrivateHeaders.
1690 * generic/tkPort.h: corrected include of tkMacOSXPort.h
1692 2003-12-28 Mo DeJong <mdejong@users.sourceforge.net>
1694 * win/tkWinMenu.c (ReconfigureWindowsMenu): Fix drawing of a disabled
1695 (TkWinHandleMenuEvent, DrawMenuEntryArrow): cascade menu arrow. Tk was
1696 displaying a disabled cascade menu arrow in black instead of gray. This
1697 was caused by a bug in the Win32 code for user drawn menu items. The
1698 fix is to avoid telling Windows that the menu item is a cascade type
1699 and then draw the gray arrow bitmap on our own. [Patch 865842]
1701 2003-12-27 Mo DeJong <mdejong@users.sourceforge.net>
1703 * win/tkWinMenu.c (DrawWindowsSystemBitmap): Fix a strange Win32 bug
1704 where the logical coordinates returned by a call to DPtoLP are wrong
1705 the first time a menu is posted. This bug manifested itself by drawing
1706 the bitmap in the wrong place in a menu. The fix was to pass the newly
1707 created DC instead of the DC from the window.
1709 2003-12-26 Mo DeJong <mdejong@users.sourceforge.net>
1711 * win/tkWinMenu.c (DrawMenuEntryAccelerator):
1712 (DrawMenuEntryLabel): When drawing the label text and accelerator text
1713 for a disabled menu entry be sure to draw a 3D highlight. The only
1714 exception to this is when a disabled menu entry is highlighted, in that
1715 case do not draw a 3D hightlight.
1717 2003-12-26 Mo DeJong <mdejong@users.sourceforge.net>
1719 * win/tkWinMenu.c (DrawMenuEntryAccelerator, DrawMenuEntryArrow): Move
1720 the unused menu arrow drawing code in DrawMenuEntryAccelerator into a
1721 new function named DrawMenuEntryArrow. This makes no functional change
1722 but it will make it easier to fix things in the future.
1724 2003-12-25 Mo DeJong <mdejong@users.sourceforge.net>
1726 * win/tkWin32Dll.c (DllMain): Add HAVE_NO_SEH blocks in place of __try
1727 and __except statements to support gcc builds. This is needed after
1728 David's changes on 2003-12-21. [Tcl patch 858493]
1730 2003-12-22 David Gravereaux <davygrvy@pobox.com>
1733 * win/rules.vc: sync'd to Tcl.
1735 * win/makefile.vc: Uses new features of nmakehlp to get the version
1736 strings from header files without the use of hardcoded values.
1738 * generic/tk.h: removed the note about having to update makefile.vc
1739 when the version changes.
1741 2003-12-22 Joe English <jenglish@users.sourceforge.net>
1743 * doc/text.n: Fix markup errors (".t" at beginning of line).
1745 2003-12-21 David Gravereaux <davygrvy@pobox.com>
1747 * generic/tkEvent.c: Added three new functions: TkCreateExitHandler,
1748 * generic/tkInt.h: TkDeleteExitHandler, and TkFinalize. This adds an
1749 * generic/tkMenu.c: insertion point so Tk's exit handlers can be
1750 * generic/tkWindow.c: called on their own from tk85.dll's DllMain for
1751 * mac/tkMacButton.c: DLL_PROCESS_DETACH. These are private to the
1752 * unix/tkUnixEvent.c: binary and not exported. It is possible the
1753 * win/tkWin32Dll.c: Windows OS can unload Tk _prior_ to Tcl under
1754 * win/tkWinEmbed.c: some conditions such as ExitProcess(). This
1755 * win/tkWinMenu.c: avoids a dangling pointer problem when Tcl does
1756 * win/tkWinX.c: Tcl_Finalize after Tk has been unloaded.
1757 * win/winMain.c: DllMain's DLL_PROCESS_DETACH now protected with
1758 SEH as DeleteWindowsExitProc is causing an exception of its own under
1759 some teardown conditions. AT&T assembly syntax has not been added for
1760 MinGW yet. [Tcl Patch 858493]
1762 2003-12-20 Joe English <jenglish@users.sourceforge.net>
1764 * library/bgerror.tcl: Truncate displayed error message if it's too
1767 2003-12-16 Pat Thoyts <patthoyts@users.sourceforge.net>
1769 * win/rc/wish.exe.manifest: It seems that Windows XP insists on a
1770 strict format for the version value. 8.5.a0 or 8.5.0 results in an
1771 unloadable executable -- must be 4 numbers.
1773 * win/tkWinSend.c: Removed some misleading comments [Bug 846134] and
1774 disabled the send package until [Bug 858822] is resolved.
1776 2003-12-16 Anton Kovalenko <a_kovalenko@users.sourceforge.net>
1778 * win/tkWinWm.c (InstallColormaps): Check for TK_ALREADY_DEAD to avoid
1779 handling of dead windows.
1781 2003-12-15 David Gravereaux <davygrvy@pobox.com>
1783 Some silent invalid handle issues discovered with NuMega's
1784 BoundsChecker [Patch 699022]
1786 * win/tkWinMenu.c (ReconfigureWindowsMenu): Only redraw the menubar
1787 when a menubar exists.
1789 * win/tkWinWm.c (UpdateGeometryInfo): wmPtr->wrapper might be NULL. No
1790 exception is thrown, but it isn't correct to ignore.
1792 2003-12-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
1794 * macosx/tkMacOSXKeyboard.c: General cleanup. Add support for [event
1795 generate]. [Bug 860454]
1797 2003-12-15 Vince Darley <vincentdarley@users.sourceforge.net>
1800 * generic/tkTextBTree.c:
1801 * generic/tkTextDisp.c:
1802 * generic/tkTextIndex.c: improved documentation in comments to explain
1803 how pixel heights are kept track of. Also ensured correct clean-up of
1804 elide-state calculation, even with very large numbers of tags. Also
1805 provided slightly better updating of cache for totally elided display
1808 2003-12-12 David Gravereaux <davygrvy@pobox.com>
1810 * win/tkWinEmbed.c (TkWinEmbeddedEventProc) : for loop dereferences
1811 containerPtr but can't get to the if (containerPtr == NULL) test due to
1812 the unhandled read memory exception for when it really is NULL.
1814 * win/tkWinX.c (TkWinXInit): Don't restrict InitCommonControlsEx. It's
1815 valid on all platforms given IE 3.0+ is installed. As tkWinX.c does set
1816 #define _WIN32_IE 0x0300, I guess we can accept IE3 as the lowest
1817 denominator and use the version 4.71 features of Comctl32.dll
1819 * win/rc/wish.exe.manifest: updated version string. This file isn't
1822 2003-12-10 Vince Darley <vincentdarley@users.sourceforge.net>
1824 * tests/textWind.test: fixed 2 tests so they run on Windows as well as
1825 unix, and so their results take account of -padx/-pady settings for the
1828 2003-12-10 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1830 * doc/CrtImgType.3: Fixed line-transposition error found by Eric
1831 Raymond. [Bug 857159]
1833 2003-12-09 Jeff Hobbs <jeffh@ActiveState.com>
1836 * unix/tcl.m4: updated OpenBSD build configuration based on [Patch
1839 2003-12-09 Vince Darley <vincentdarley@users.sourceforge.net>
1841 * win/tkWinWm.c: fix to memory leak on certain error cases.
1843 * generic/tkTextTag.c: fix reading of freed tag memory, by removing all
1844 references to freed tags.
1846 2003-12-08 Jeff Hobbs <jeffh@ActiveState.com>
1848 * doc/entry.n: clean up usage of 'edition' as a verb.
1850 2003-12-05 Vince Darley <vincentdarley@users.sourceforge.net>
1853 * generic/tkText.c: after debate on sf, allow decreasing tab-stops,
1854 hence removing any potential backwards incompatibility, even for buggy
1855 code. Added new test. [Bug 852949]
1858 * generic/tkTextDisp.c:
1859 * generic/tkTextTag.c: fix to performance problems in the text widget
1860 when inserting lines which wrap thousands of times [Bug 853003]. Note
1861 that the text widget must now perform additional calculations (pixel
1862 heights) compared to Tk <= 8.4, and so some actions will be slower, by
1865 2003-12-05 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
1867 * win/tkWinFont.c (Tk_MeasureChars): Fix indentation. Fix memory leak.
1868 Fix handling of TK_WHOLE_WORDS.
1870 2003-12-04 Vince Darley <vincentdarley@users.sourceforge.net>
1872 * generic/tkText.c: disallow negative or decreasing tab-stops, which
1873 fixes [Bug 852949], but is a
1875 *** POTENTIAL INCOMPATIBILITY ***
1877 with Tk 8.4.5 or earlier, but only for code which assumed (incorrectly)
1878 that tab stops are relative to each other instead of relative to the
1879 widget's left edge. Such code will now throw an error instead of doing
1882 [[MAINTAINER NOTE: SEE TIP#256]]
1884 * generic/tkTextDisp.c: restore previous meaning of -[xy]scrollcommand
1885 [Bug 852954], and remove unused argument to 'MeasureChars'
1887 * generic/tkTextWind.c:
1888 * generic/tkTextImage.c: better border handling and fixed typos in
1891 * tests/text.test: tests for negative and decreasing tab stops.
1893 * doc/text.n: documentation of '-tabs', to clarify Tk's longstanding
1894 interpretation of all distances as relative to the left edge of the
1897 * library/demos/twind.tcl:
1898 * library/demos/widget: minor enhancements to text widget demo, showing
1899 embedded images, for example.
1901 2003-12-04 Vince Darley <vincentdarley@users.sourceforge.net>
1903 * win/tkWinFont.c: applied [Patch 852669] which fixes [Bug 478568] with
1904 certain bold or italic fonts on Windows.
1905 * tests/textDisp.test: added test for the font measurement problem.
1907 2003-12-02 Jeff Hobbs <jeffh@ActiveState.com>
1909 * generic/tkMenu.c (MenuVarProc): prevent this from triggering while
1910 interp is being destroyed.
1912 2003-11-25 Anton Kovalenko <a_kovalenko@users.sourceforge.net>
1914 * generic/tkPointer.c (Tk_UpdatePointer): corrected targetWinPtr check
1915 (line 369) so any pointer event with winPtr==0 is really redirected to
1916 the grab or restrict window (if any).
1918 2003-11-21 Vince Darley <vincentdarley@users.sourceforge.net>
1920 * generic/tkTextDisp.c:
1923 * tests/textDisp.test: ensure interpolated tabs are at the same
1924 location as the equivalent real tabs, by making use of fractional
1925 rather than integer pixel calculations.
1927 2003-11-21 Vince Darley <vincentdarley@users.sourceforge.net>
1929 * generic/tkTextDisp.c: prevent wrapped line height calculations until
1930 the widget has actually been given a geometry.
1932 * tests/textWind.test:
1933 * tests/textDisp.test: fix to [Bug 843752], allowing tests to complete
1934 cross-platform. Thanks to dgp for extensive testing.
1936 2003-11-21 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1938 * doc/FindPhoto.3: Removed reference to long-gone header file.
1940 2003-11-20 Vince Darley <vincentdarley@users.sourceforge.net>
1943 * win/tkWinSendCom.c: ensure object is not shared before lappend (fix
1944 for crash in Windows test suite), and clean up of files to bring them
1945 closer to Tcl standards.
1947 2003-11-20 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
1949 * macosx/tkMacOSXKeyboard.c: Add PowerBook keycode 0x34 as <Return>.
1951 2003-11-18 Jim Ingham <jingham@apple.com>
1953 * macosx/tkMacOSXScrlbr.c: Reworking Vince's fix to [Bug 842952]. This
1954 version is clearer, and works helps keep the mouse better pinned to the
1955 scrollbar. I also removed the glitch where the scrollbar would jump get
1956 its middle over the mouse when you first moved it.
1958 2003-11-17 Don Porter <dgp@users.sourceforge.net>
1960 * tests/constraints.tcl:When running the test suite in a process where
1961 * tests/image.test: Tk has been [load]ed, there's no guarantee that
1962 * tests/select.test: child processes created by [exec [interpreter]]
1963 * tests/unixWm.test: will have Tk in them. Made modifications to
1964 * tests/window.test: force a [load] of Tk in those situations.
1966 2003-11-17 Jeff Hobbs <jeffh@ActiveState.com>
1968 * generic/tkMenubutton.h: fixed compound menubutton handling like
1969 * generic/tkMenubutton.c: *button corrections of 2003-04-25.
1970 * mac/tkMacMenubutton.c (TkpDisplayMenuButton):
1971 * unix/tkUnixMenubu.c (TkpDisplayMenuButton):
1973 2003-11-16 Don Porter <dgp@users.sourceforge.net>
1975 * win/makefile.vc: Restored consistency of pkgIndex.tcl file with that
1976 generated by Makefile.
1978 2003-11-15 Vince Darley <vincentdarley@users.sourceforge.net>
1980 * macosx/tkMacOSXScrlbr.c: [Bug 842952] correct scrollbar tracking with
1981 mouse. Also increased scrollbar resolution for better scrolling in very
1984 * generic/tkTextDisp.c: cleanup and clarify some comments
1985 * doc/text.n: cleanup some of the markup.
1987 2003-11-15 David Gravereaux <davygrvy@pobox.com>
1989 * win/makefile.vc: Fixes pkgIndex.tcl generation so a symbols build is
1990 loaded when Tcl is symbols.
1992 2003-11-15 Vince Darley <vincentdarley@users.sourceforge.net>
1994 * generic/tkTextDisp.c:
1995 * tests/textDisp.test: fixes to one more old Tk [Bug 422411] this time
1996 concerning inconsistent tab interpretation. Also fixed an unreported
1997 new problem if a single logical line wraps to fill more than the
2000 * macosx/tkMacOSXScrlbr.c: fix to [Bug 840978] where the size of the
2001 proportional scrollbar was calculated wrongly.
2003 2003-11-14 Joe English <jenglish@users.sourceforge.net>
2005 * doc/text.n: Fix markup errors.
2007 2003-11-15 Vince Darley <vincentdarley@users.sourceforge.net>
2011 * generic/tkTextDisp.c:
2012 * generic/tkTextWind.c:
2013 * generic/tkTextTag.c:
2014 * tests/textDisp.test: fixes to another pair of old Tk bugs [Bug
2015 220816] (can't scroll horizontally to display all of last character),
2016 [Bug 842498] (xview confused on window creation), and more efficiency
2017 in tag creation. Added new tests.
2019 2003-11-14 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2021 * generic/tkTextDisp.c (TkTextRedrawTag): Get the correct number of
2022 lines in the region to be updated. This fix due to Vince Darley.
2023 (TkTextUpdateLineMetrics): Return the correct marker value when we know
2024 the update loop should terminate. [Bug 837300]
2026 2003-11-13 Vince Darley <vincentdarley@users.sourceforge.net>
2029 * library/text.tcl: fixed the text widget portion of [Bug 542199]
2031 2003-11-13 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2033 * generic/tkMenuDraw.c (TkPostSubmenu,AdjustMenuCoords): Rewrote to use
2034 Tcl_EvalObjv instead of Tcl_VarEval for greater robustness. A side
2035 benefit is that this should all be faster now too. [Bug 723856]
2037 2003-11-12 Vince Darley <vincentdarley@users.sourceforge.net>
2041 * generic/tkTextDisp.c:
2042 * generic/tkTextIndex.c:
2043 * generic/tkTextTag.c:
2044 * tests/textTag.test: fixes to two very old Tk bugs [Bug 583286]
2045 (focus handling with embedded windows), [Bug 220780] (tag bindings
2046 trigger on window borders), and made two more functions static in
2049 * library/text.tcl: fixed [Tcl Bug 699642] with double/triple-click
2052 2003-11-11 Jeff Hobbs <jeffh@ActiveState.com>
2055 * unix/configure.in: use xft-config instead of pkg-config to determine
2057 * unix/tcl.m4: improve AIX --enable-64bit handling remove
2058 -D__NO_STRING_INLINES -D__NO_MATH_INLINES from CFLAGS_OPTIMIZE on
2059 Linux. Make default opt -O2 (was -O).
2061 * generic/tkButton.c (ConfigureButton): abort option processing if the
2062 button was deleted. [Bug 824479]
2064 * generic/tkMenuDraw.c (TkPostSubmenu): add {} around menu name in case
2065 it has spaces when calling Tcl_VarEval. This is a hack until this is
2066 rewritten for proper Tcl_Obj handling. [Bug 723856]
2068 * library/tkfbox.tcl (::tk::dialog::file::Update): optimize the
2069 dir/files list separation by using the -tails, -directory and -type
2070 option of 'glob'. Also passes the glob the -filetypes filters instead
2071 of calling string match over each file. [Patch 833819]
2072 (::tk::dialog::file::ActivateEnt): allow typing filename into entry
2073 when tk_getOpenFile -multiple 1 is specified. [Bug 788069]
2075 * generic/tkListbox.c (ListboxDeleteSubCmd, ListboxListVarProc): free
2076 itemconfig data when removing it from table. [Bug 836483]
2078 * macosx/tkMacOSXClipboard.c (TkSuspendClipboard, TkSelGetSelection):
2079 add unicode clipboard support. [Patch 840107] (senn)
2081 2003-11-10 Jeff Hobbs <jeffh@ActiveState.com>
2084 * win/tcl.m4: add necessary ole libs to VC LIBS_GUI line.
2086 * win/tkWinDraw.c (XFillRectangles): correctly handle the
2087 XGCValues.function parameter when filling rectangles. [Bug 820278]
2091 * win/configure.in: define TK_LIB_FLAG, TK_LIB_SPEC,
2092 TK_BUILD_LIB_SPEC, TK_STUB_LIB_SPEC, TK_STUB_LIB_PATH, and
2093 TK_BUILD_STUB_LIB_PATH for tkConfig.sh [Bug 826614]
2095 * unix/Makefile.in (SHLIB_LD_FLAGS): include in Makefile as it is used
2096 in MAKE_LIB sometimes (ie: AIX-64) [Bug 829686] (jimix)
2098 2003-11-10 Vince Darley <vincentdarley@users.sourceforge.net>
2100 * generic/tkTextDisp.c: correct yview handling of text widgets
2101 containing no vertical pixels at all.
2103 2003-11-08 Pat Thoyts <patthoyts@users.sourceforge.net>
2105 * win/tclWinSend.c: Fixed an error returning the registered name.
2107 2003-11-08 Vince Darley <vincentdarley@users.sourceforge.net>
2109 * tests/textDisp.test:
2112 * generic/tkTextIndex.c:
2113 * generic/tkTextBTree.c:
2114 * generic/tkTextDisp.c: fix to another version of [Bug 833627] (crash
2115 in tkchat), adding more tests. I believe the handling of nested elide
2116 tags of all types is now correct!
2118 2003-11-07 Vince Darley <vincentdarley@users.sourceforge.net>
2120 * tests/textDisp.test:
2121 * generic/tkTextDisp.c: fix to another version of [Bug 833627] (crash
2122 in tkchat), adding two new tests.
2125 * generic/tkTextIndex.c
2126 * generic/tkTextDisp.c
2127 * generic/tkTextWind.c
2128 * generic/tkTextImage.c
2129 * generic/tkTextTag.c
2130 * generic/tkTextMark.c
2131 * generic/tkTextBTree.c
2135 * tests/textWind.test: better handling of 'elide' tags, especially
2136 during line layout, counting and forward/backward index movement. Added
2137 new tests to ensure correct behaviour with multiple tags of multiple
2140 2003-11-05 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2142 * library/demos/nl.msg: Dutch messages from Arjen Markus [Patch 836368]
2143 * library/demos/widget: Added mechanism to support some l10n of the
2144 actual hotkeys used.
2146 2003-11-04 Vince Darley <vincentdarley@users.sourceforge.net>
2148 * tests/textDisp.test:
2149 * tests/textWind.test: fix to rest of test suite problems reported in
2150 [Bug 833761]. This also has the nice effect that many more tests are
2153 2003-11-04 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2155 * library/demos/widget (showCode,printCode): Added code to print the
2156 source code on Unix and Win, courtesy of Arjen Markus and the Wiki.
2159 2003-11-03 Vince Darley <vincentdarley@users.sourceforge.net>
2161 * generic/tkTextDisp.c
2162 * tests/textDisp.test: test and fix to a panic reported in [Bug
2163 833627], with tkchat, and an unused variable [Bug 835010]. Also fixes
2164 substantial parts of [Bug 833761]
2166 2003-11-03 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2168 * library/demos/widget, etc.: Made widget demos locate themselves
2169 independently of the main Tk library using the new global variable
2170 tk_demoDirectory. [Patch 832691, adapted]
2172 * generic/tkTextDisp.c (TextGetScrollInfoObj): Stop complaints about
2173 signed vs. unsigned for the length of strings.
2175 2003-11-01 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2177 * library/msgs/nl.msg: Updated messages from Arjen Markus and Pascal
2178 Scheffers. Thanks! [Patch 820519]
2180 2003-10-31 Jeff Hobbs <jeffh@ActiveState.com>
2182 * generic/tkImgPhoto.c (ImgPhotoBlendComplexAlpha): OS X uses 32bpp
2183 images internally always, so make use of the assumption.
2185 2003-10-31 Vince Darley <vincentdarley@users.sourceforge.net>
2187 TIP#155 IMPLEMENTATION
2189 * generic/tkText.c, generic/tkTextIndex.c, generic/tkTextDisp.c
2190 * generic/tkTextWind.c, generic/tkTextImage.c, generic/tkTextTag.c
2191 * generic/tkTextMark.c, generic/tkTextBTree.c, generic/tkText.h
2192 * doc/text.n, tests/text.test, tests/textDisp.test
2193 * tests/textImage.test, tests/textIndex.test, tests/textWind.test
2194 * library/text.tcl, generic/tkCanvas.c, unix/tkUnixDefault.h
2195 * win/tkWinDefault.h, mac/tkMacDefault.h, macosx/tkMacOSXDefault.h
2197 This adds the 'count' and 'replace' subcommands to the text widget, the
2198 '-blockcursor' option, and in particular provides correct, smooth
2199 pixel-based scrolling of the widget under all circumstances. See the
2200 text.n man page for the complete new documentation. This also fixes
2201 [Bugs 559450 778511 779174].
2203 * generic/tkTextDisp.c
2204 * tests/textDisp.test: tests and fix to the promptly reported [Bug
2207 2003-10-31 Vince Darley <vincentdarley@users.sourceforge.net>
2209 * win/tkWinMenu.c: more correct placing of images in compound menu
2212 2003-10-30 Jeff Hobbs <jeffh@ActiveState.com>
2214 * generic/tkImgPhoto.c (ImgPhotoBlendComplexAlpha): add alpha blending
2215 for images with partial transparency. Only operates for 15bpp+ display.
2218 2003-10-29 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2220 * unix/tkUnixRFont.c: Some cleaning up to get the file more in lines
2221 with the general style guidelines. [Bug 832091] Still many comments
2222 needed (from someone who knows the code!) for the style guide to be
2223 satisfied, so bug still open.
2225 * library/tkfbox.tcl (IconList_Create,IconList_Add): Added option
2226 munging to allow some control of foreground colours on Unix in the same
2227 way that you can influence the background. [Bug 795717]
2229 2003-10-28 Jeff Hobbs <jeffh@ActiveState.com>
2231 * unix/tkUnixFont.c (GetFontAttributes): place extra check for NULL
2232 family against bad X servers.
2234 * win/tkWinImage.c (XGetImageZPixmap): add separate 16bpp XGetImage
2235 code to correctly handle 16bpp requests. This appears to never have
2238 * tests/focusTcl.test (setup1): expand frame size to allow for correct
2239 visibility of windows that use larger default fonts.
2241 2003-10-28 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2243 * library/tk.tcl (::tk::PlaceWindow): Added check for empty string
2244 first when determining placement strategy. [Bug 819284]
2246 2003-10-23 Jim Ingham <jingham@apple.com>
2248 * macosx/tkMacOSXDialog.c (NavServicesGetFile): Minor cleanups.
2249 (OpenFileFilterProc): Handle FSRef's as well as FSSpec's in the input
2250 file. Also convert the FSSpec filename to an C-string before passing to
2251 MatchOneFile. [Bug 517600]
2252 (MatchOneFile): Require the input filename to be a C-string, not a
2255 2003-10-22 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2257 * library/dialog.tcl (tk_dialog): Constrain the dialog to be fairly
2258 sensibly sized and placed. [Bug 827535]
2260 2003-10-15 Joe English <jenglish@users.sourceforge.net>
2262 * unix/tkUnixWm.c, tests/unixWm.test: Delete WM_TRANSIENT_FOR property
2263 instead of setting it to None when making a window nontransient [Bug
2264 632816 "cannot remove transient"]
2266 2003-10-14 Joe English <jenglish@users.sourceforge.net>
2268 * unix/tkUnixPort.h(TkPutImage): changed macro argument names to match
2269 function argument names ('dest' and 'src' were swapped, which was
2272 2003-10-14 Pat Thoyts <patthoyts@users.sourceforge.net>
2274 * win/makefile.vc: Applied patches from tcl bug 801467 from
2275 * win/winMain.c: Joe Mistachkin
2277 2003-10-12 Jeff Hobbs <jeffh@ActiveState.com>
2279 * generic/tkInt.h: move TkGetOptionSpec to stubs intDecls
2280 * generic/tkIntDecls.h:
2281 * generic/tkInt.decls:
2282 * generic/tkStubInit.c:
2283 * tkDecls.h: updated with latest genstubs
2288 * tests/listbox.test (13.3): correct result size
2289 (4.7): correct test for possible window drift [Bug 701931] (dgp)
2292 * doc/GetHWND.3: add Tk_AttachHWND docs [Bug 220803]
2294 2003-10-10 Jeff Hobbs <jeffh@ActiveState.com>
2296 * mac/tkMacButton.c (TkpDisplayButton):
2297 * macosx/tkMacOSXButton.c (TkpDisplayButton):
2298 * unix/tkUnixButton.c (TkpDisplayButton): correct imageYOffset for
2299 buttons with just images.
2301 2003-10-10 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2303 * generic/tkObj.c (TkRegisterObjTypes): Register the type of text
2306 2003-10-09 Jeff Hobbs <jeffh@ActiveState.com>
2308 * win/tkWinButton.c (TkpDisplayButton): correct imageYOffset for
2309 buttons with just images.
2311 2003-10-08 Pat Thoyts <patthoyts@users.sourceforge.net>
2313 * win/tcl.m4: Add TIP #150 items to the TEA makefiles.
2317 * win/tkWinSend.c: Clean up some warnings from gcc -Wall.
2318 * win/tkWinSendCom.c:
2320 2003-10-06 Joe English <jenglish@users.sourceforge.net>
2322 * library/text.tcl, doc/text.n: Text widget binding for Control-v is
2323 now Mac-only, since it conflicts with standard <<Paste>> binding on
2324 other platforms. [Bug 605277]
2326 2003-10-06 Joe English <jenglish@users.sourceforge.net>
2328 * generic/tkStyle.c: Fix double-free in style engine [Bug 798211]
2330 2003-10-06 Jeff Hobbs <jeffh@ActiveState.com>
2333 * win/tcl.m4: removed incorrect checks for existence of optimization.
2334 TCL_CFG_OPTIMIZED is now defined whenever the user does not build with
2337 2003-10-06 Don Porter <dgp@users.sourceforge.net>
2339 * doc/ConfigWidg.3: Removed reference to Tk_Offset from the NAME
2340 section to resolve mkLinks conflict with SetOptions.3 [Bug 404197]
2342 * unix/configure.in: Reconfigured to use $TCL_PREFIX as the default
2343 value of --prefix, and also added warning when a TK_PREFIX value
2344 different from TCL_PREFIX is selected, since [package require Tk] fails
2345 in that configuration. [Bugs 428627,765642]
2347 * unix/tcl.m4 (SC_PATH_TCLCONFIG): Corrected search path so that
2348 alpha and beta releases of Tcl are not favored. [Bug 608698]
2350 * unix/configure.in: Added check that version of Tcl header found by
2351 configure matches that of the Tk we wish to build. As long as the Tk
2352 sources insist on lockstep releases, Tk's configuration should verify
2353 that's what we have. [Bug 749088]
2355 * unix/configure: autoconf (2.57)
2356 * unix/mkLinks: make mklinks
2358 2003-10-03 Pat Thoyts <patthoyts@users.sourceforge.net>
2360 * library/scale.tcl: Clear bug with chording mouse buttons.
2362 * library/console.tcl: Avoid including the console in the list of
2363 interpreters exposed by [winfo interps].
2365 2003-10-01 Daniel Steffen <das@users.sourceforge.net>
2367 * macosx/Wish.pbproj/project.pbxproj:
2368 * macosx/Makefile: fixed redo prebinding bug when DESTDIR="". Added
2369 support for all applicable customizable makefile variables from
2370 tcl/macosx/Makefile.
2373 * macosx/Wish.pbproj/project.pbxproj: ensure that the versioned wishX.X
2374 script works correctly when Tk.framework with multiple versions is
2375 present by referring to a copy of 'Wish Shell.app' located in
2376 Tk.framework/Versions/X.X/Resources.
2378 2003-09-30 Jim Ingham <jingham@apple.com>
2380 * macosx/tkMacOSXButton.c (TkpDisplayButton): Use the tk text drawing
2381 for checkbuttons & radiobuttons as well as for labels.
2382 * macosx/tkMacOSXEvent.c (XSync): New function, need to implement this
2383 so drawing will get flushed in "update idletasks".
2384 * tkMacOSXPort.h: convert #define of XSync to function def'n.
2386 2003-09-30 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2388 * library/demos/browse: Added suitable [package require] lines
2389 * library/demos/hello: to all the Tk demo scripts which are
2390 * library/demos/ixset: not run as part of something larger.
2391 * library/demos/rmt: [FRQ 815118]
2392 * library/demos/rolodex:
2393 * library/demos/square:
2394 * library/demos/tcolor:
2395 * library/demos/timer:
2396 * library/demos/widget:
2398 2003-09-30 Pat Thoyts <patthoyts@users.sourceforge.net>
2400 * tests/safe.test: Accomodate TIP #150 in the results.
2401 * tests/textWind.test: Fix a dependancy on font size in 10.1
2403 2003-09-30 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2405 * generic/tkCanvas.c (TkGetStringsFromObjs):
2406 * generic/tkPanedWindow.c (PanedWindowWorldChanged): Private functions
2407 should be either static or prefixed with 'Tk' (thanks to George Staplin
2410 2003-09-27 Pat Thoyts <patthoyts@users.sourceforge.net>
2412 TIP#150 IMPLEMENTATION
2414 * win/makefile.vc: Implementation of TIP #150, "Provide 'send'
2415 * win/tkWinSend.c: command for Windows"
2416 * win/tkWinSendCom.h:
2417 * win/tkWinSendCom.c:
2419 2003-09-26 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
2421 * macosx/tkMacOSXWm.c (TkWmStackorderToplevelWrapperMap): Add
2422 GetWindowFromPort() [Bug 812415]; make function static.
2424 2003-09-25 Daniel Steffen <das@users.sourceforge.net>
2426 * library/demos/widget: don't create iconwindow on aqua, but add about
2427 menu like on classic.
2428 * macosx/Makefile: pass MAKEOVERRIDES to pxbuild.
2429 * macosx/tkMacOSXButton.c: added -compound support for bevel buttons.
2432 * unix/configure.in:
2433 * unix/tkConfig.sh.in: added TK_INCLUDE_SPEC to allow extensions to
2434 find installed Tk headers, parallel to TCL_INCLUDE_SPEC. [Bug 777203]
2436 2003-09-18 Chengye Mao <chengye.geo@yahoo.com>
2438 * generic/tkConsole.c: Fixed memory leak [Bug 802435]
2440 2003-09-18 Peter Spjuth <peter.spjuth@space.se>
2442 TIP#147 IMPLEMENTATION
2446 * generic/tkGrid.c: Implementation of TIP#147, "Make Grid's Column/Row
2449 2003-09-17 Don Porter <dgp@users.sourceforge.net>
2451 * generic/tkImage.c: Stopped [image create] from generating an image
2452 * tests/image.test: command name that would overwrite an existing
2453 command name. Thanks to Michael Schlenker. [Bug 808039].
2455 2003-09-16 Peter Spjuth <peter.spjuth@space.se>
2458 * generic/tkGrid.c: Reworked a part of grid's geometry computations to
2459 handle some tricky cases better. [Bug 792387]
2461 2003-09-05 Joe English <jenglish@users.sourceforge.net>
2463 * doc/bind.n: Describe %P and %s substitution for Property events.
2464 [Bug 577906 "%P substitution not documented"]
2466 2003-09-05 Don Porter <dgp@users.sourceforge.net>
2468 * doc/wish.1: Implementation of TIPs 137/151.
2469 * generic/tkMain.c (Tk_MainEx): Added recognition of the -encoding
2470 * tests/main.test: command line option by Tk_MainEx() and
2471 thus by wish and any other program built on Tk_MainEx(). [Patch 800139]
2472 This is a ***POTENTIAL INCOMPATIBILITY*** only for those C programs
2473 that embed Tcl and Tk, build on Tk_MainEx(), and make use of
2474 Tk_MainEx's former ability to pass a leading "-encoding" option to
2475 interactive shell operations.
2477 2003-08-27 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2479 * generic/tkListbox.c (ListboxSelect): Remove unused variable
2480 'increment'. [Bug 664783]
2482 2003-08-25 David Gravereaux <davygrvy@pobox.com>
2484 * win/makefile.vc: Don't do a string compare on the $(DBGX) variable,
2485 use the $(DEBUG) boolean directly. Also, don't try to regen the stubs
2486 table if $(TCLSH) doesn't exist.
2488 2003-08-22 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2490 * library/demos/msgbox.tcl: Brought into line with the newer
2491 look-and-feel for the demos.
2492 * library/demos/widget (addSeeDismiss): Added support for an extra
2493 button defined by the caller.
2495 2003-08-21 Pat Thoyts <patthoyts@users.sourceforge.net>
2497 * win/tkWin3d.c: Applied Tk patch 791273 from Jeremy Collins which
2498 improves the 3d lines for sunken widgets under windows.
2500 2003-08-20 Jeff Hobbs <jeffh@ActiveState.com>
2502 * library/demos/widget: Redo code view dialog, use named fonts,
2503 * library/demos/arrow.tcl: add basic see/dismiss routine with images
2504 * library/demos/bind.tcl: for better look & feel
2505 * library/demos/bitmap.tcl:
2506 * library/demos/button.tcl:
2507 * library/demos/check.tcl:
2508 * library/demos/clrpick.tcl:
2509 * library/demos/colors.tcl:
2510 * library/demos/cscroll.tcl:
2511 * library/demos/ctext.tcl:
2512 * library/demos/entry1.tcl:
2513 * library/demos/entry2.tcl:
2514 * library/demos/entry3.tcl:
2515 * library/demos/filebox.tcl:
2516 * library/demos/floor.tcl:
2517 * library/demos/form.tcl:
2518 * library/demos/hscale.tcl:
2519 * library/demos/icon.tcl:
2520 * library/demos/image1.tcl:
2521 * library/demos/image2.tcl:
2522 * library/demos/items.tcl:
2523 * library/demos/label.tcl:
2524 * library/demos/labelframe.tcl:
2525 * library/demos/menu.tcl:
2526 * library/demos/menubu.tcl:
2527 * library/demos/paned1.tcl:
2528 * library/demos/paned2.tcl:
2529 * library/demos/plot.tcl:
2530 * library/demos/puzzle.tcl:
2531 * library/demos/radio.tcl:
2532 * library/demos/ruler.tcl:
2533 * library/demos/sayings.tcl:
2534 * library/demos/search.tcl:
2535 * library/demos/spin.tcl:
2536 * library/demos/states.tcl:
2537 * library/demos/style.tcl:
2538 * library/demos/text.tcl:
2539 * library/demos/twind.tcl:
2540 * library/demos/unicodeout.tcl:
2541 * library/demos/vscale.tcl:
2543 2003-08-20 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2545 * generic/tkCanvPs.c (Tk_PostscriptFont): Use Tcl_Obj-based interfaces
2546 for working with user-supplied font maps.
2548 2003-08-19 Joe English <jenglish@users.sourceforge.net>
2550 * generic/tkPanedWindow.c (PanedWindowWorldChanged): Set window
2551 background from the -background resource. Fixes [Bug 791500
2552 "PanedWindow refresh glitches on X"]
2554 2003-08-19 Joe English <jenglish@users.sourceforge.net>
2556 * doc/bind.n: Added more information on event types and details [FRQ
2557 523593 "bind(n) manpage needs more detail"]
2559 2003-08-18 Mo DeJong <mdejong@users.sourceforge.net>
2561 * win/configure: Regen.
2562 * win/tcl.m4: Update from Tcl to fix Tcl bug 781109.
2564 2003-08-15 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2566 * generic/tkImgPhoto.c (ImgPhotoCmd): Faster color data parsing code
2567 for the [$photo put] subcommand. Now doesn't do everything through the
2568 pre-8.0 list handling routines!
2570 2003-08-14 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2572 * unix/tkUnixButton.c (TkpDisplayButton): Stopped accesses to NULL
2573 * unix/tkUnixMenu.c (TkpDrawMenuEntry): pointers that crashed tests.
2575 TIP #109 IMPLEMENTATION FROM Brian Griffin <bgriffin@model.com>
2576 * unix/tkUnixButton.c (TkpDrawCheckIndicator, TkpDisplayButton):
2577 * unix/tkUnixMenu.c (DrawMenuEntryIndicator, TkpDrawMenuEntry):
2578 Much improved display of checkbuttons and radiobuttons on UNIX/X.
2580 2003-08-13 Pat Thoyts <patthoyts@users.sourceforge.net>
2582 * library/scale.tcl: Fix for [Bug 787065] for Button-2 press.
2583 * tests/scale.test: Added test for this bug.
2585 2003-08-12 Daniel Steffen <das@users.sourceforge.net>
2587 * macosx/tkMacOSXMenu.c: fixed C99'ism that breaks gcc 2.95.
2589 2003-07-28 Pat Thoyts <patthoyts@users.sourceforge.net>
2591 * win/tkWinDialog.c: Applied patch from [Bug 611615] which fixes a
2592 problem with double clicks in file dialogs falling through to the
2593 window underneath in win32.
2595 * library/panedwindow.tcl: Apply patch from [Bug 778893] to make the
2596 panedwindow -opaqueresize option work as per the docs.
2598 * library/tk.tcl: Apply fix for [Bug 778840] for window placement when
2599 using multiple desktops on windows.
2601 2003-07-24 Pat Thoyts <patthoyts@users.sourceforge.net>
2603 * win/tkWinCursor.c: Fix for [Bug 776646] for a native hand2 and fleur
2604 (move) cursor under win.
2605 * tests/cursor.test: Check that documented cursors are available.
2607 2003-07-20 Daniel Steffen <das@users.sourceforge.net>
2609 * macosx/buildTkConfig.tcl: fix to TK_BUILD_* ref generation broken by
2610 changes to tcl buildsystem.
2612 2003-07-19 Pat Thoyts <patthoyts@users.sourceforge.net>
2614 * win/tkWinCursor.c (TkGetCursorByName): Fix bug 420510 to provide
2615 consistency between unix and windows -cursor option.
2617 * library/scale.tcl: Fix for bug 706765 to correctly handle the
2618 -sliderrelief option while moving the thumb.
2620 2003-07-18 Jeff Hobbs <jeffh@ActiveState.com>
2622 * unix/tkUnixFont.c (Tk_DrawChars): do not make XGetGeometry call that
2623 prevents overwidth lines as it requires a roundtrip call to the X
2624 server for every string drawn. Hard-code max width to 32768 until a
2625 better solution to get max width is made.
2627 * library/panedwindow.tcl: use widget-specific Priv slots for pwAfterId
2628 and panecursor items to correctly handle cursor changes with adjacant
2631 * generic/tkEvent.c (Tk_HandleEvent): correct XCreateIC call for
2632 TK_XIM_SPOT usage. [Bug 742660] (takahashi)
2634 * win/tkWinDialog.c: doubled the TK_MULTI_MAX_PATH value to ~10K. This
2635 is a short-term solution until the -multiple option is extended. [Bug
2638 2003-07-18 Vince Darley <vincentdarley@users.sourceforge.net>
2640 * generic/tkWindow.c:
2641 * macosx/tkMacOSXDialog.c: added native tk_messageBox command,
2642 (Tk_MessageBoxObjCmd) for MacOS X platform.
2644 * macosx/tkMacOSXMenu.c: corrected encoding conversion for torn-off
2645 menu entries (but many other display problems still exist with these)
2647 * macosx/tkMacOSXMouseEvent.c: improved handling of events in the
2648 presence of grabs, particularly activation events.
2650 2003-07-18 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2652 * tests/panedwindow.test (panedwindow-30.2):
2653 * generic/tkPanedWindow.c (Tk_PanedWindowObjCmd): Ensure that we can
2654 share GCs between a panedwindow and its sash proxy, even if the
2655 panedwindow is in a toplevel with a different visual. [Bug 702230]
2657 2003-07-17 Daniel Steffen <das@users.sourceforge.net>
2659 * macosx/Makefile: Changes for new tcl buildsystem.
2661 * macosx/Wish.pbproj/jingham.pbxuser:
2662 * macosx/Wish.pbproj/project.pbxproj:
2663 Changes for new tcl buildsystem. Changed build to include tk specific
2664 html help in Tk.framework instead of Tcl.framework. Set default SYMROOT
2665 in target options to simplify setting up PB (manually setting common
2666 build folder for tcl & tk no longer needed).
2668 * macosx/README: Updated info for changes to buildsystem, html help
2669 location and PB setup.
2671 2003-07-17 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2673 * doc/photo.n: [$photo put] has been able to take rectangles of pixel
2674 colours, specified as lists of lists, for years. Now this is a
2675 documented feature. [Bug 728952]
2677 * doc/panedwindow.n: Removed warning invalidated by fix from Bug
2678 738143. [Bug 747814]
2680 * generic/tkImgPhoto.c (ImgPhotoCmd): Rewrote subcommand processing to
2681 never jump to the end of the switch. I find that confusing as I can't
2682 see whether there's processing still to be done from a quick glance at
2683 the code, unlike with a direct return. [Bug 771988]
2684 (ImgPhotoCmd, ImgPhotoSetSize, ImgPhotoInstanceSetSize): Try harder to
2685 avoid zero-length mallocs()... [Bug 404421]
2687 2003-07-16 Don Porter <dgp@users.sourceforge.net>
2689 * generic/tkPack.c (ConfigureSlaves): silence compiler warning
2692 2003-07-16 Jeff Hobbs <jeffh@ActiveState.com>
2694 * win/tkWinImage.c (XGetImage): correct init of biSizeImage in bitmap
2695 header. [Bug 703697] (cap)
2697 2003-07-17 Peter Spjuth <peter.spjuth@space.se>
2700 * generic/tkFrame.c (CreateFrame): Make sure all options can be set to
2701 their default value. [Bug 697652]
2703 2003-07-16 Jeff Hobbs <jeffh@ActiveState.com>
2705 * generic/tkPanedWindow.c (ArrangePanes): Ensure that the last pane
2706 * tests/panedwindow.test: shrinks instead of being clipped when resized
2707 below the reqsize. [Bug 748277] (spjuth)
2709 * generic/tkWindow.c (Initialize): do not free uninit'ed dstring.
2710 [Bug 755906] (mistachkin)
2712 2003-07-09 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2714 * tests/send.test: Strengthened constraints to stop accidental smashing
2715 of Xserver access; some systems (*ahem* mine *ahem*) require
2716 xhost-style security for all use... :^/
2718 2003-07-07 Jeff Hobbs <jeffh@ActiveState.com>
2720 * generic/tkTextDisp.c (DisplayText): correct use of textPtr data with
2721 respect to Tcl_Release time. [Bug 767009]
2723 2003-07-07 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2725 * generic/tkImage.c (TkDeleteAllImages,etc.): Stopped the deleting of
2726 hash entries from a table that has just been deleted by this function
2727 when some images are Tcl_Preserve()d... [Bug 749353]
2729 2003-07-03 Jim Ingham <jingham@apple.com>
2731 * macosx/tkMacOSXColor.c (GetControlPartColor): Use the ThemeBrushes to
2732 get the control text color for buttons.
2734 2003-07-02 Mo DeJong <mdejong@users.sourceforge.net>
2736 * unix/tkUnixEvent.c (TkpCloseDisplay): Don't test for XCloseIM bug
2737 when the XFree86 version is newer than 4.0 since the layout of the XIM
2738 structure has changed. The check is not needed for newer XFree86
2739 releases since the bug we are checking for was fixed in the 4.2.99.2
2740 release. [Bug 755530]
2742 2003-06-26 Vince Darley <vincentdarley@users.sourceforge.net>
2744 * library/menu.tcl: workaround problem on some Windows systems by
2745 trying to avoid posting a menu offscreen.
2747 2003-06-09 Joe English <jenglish@users.sourceforge.net>
2749 * unix/tkUnixRFont.c: fix for [Bug 751553] "Xft: [font configure] does
2750 not update in-use fonts". Fixed TkpGetSubFonts() to return information
2751 about all subfonts, not just the first one.
2753 2003-06-01 Joe English <jenglish@users.sourceforge.net>
2755 * unix/configure.in: BUGFIX, --enable-xft test was broken.
2756 * unix/configure: regen
2758 2003-05-31 Joe English <jenglish@users.sourceforge.net>
2760 * unix/tkUnixRFont.c (InitFont): Fill in TkFontAttributes from pattern
2761 returned from GetFont (actual font) instead of the query pattern
2764 2003-05-31 Joe English <jenglish@users.sourceforge.net>
2766 * unix/tkUnixRFont.c: New file
2767 * unix/tkUnixDefault.h: Use different default fonts if HAVE_XFT
2769 * unix/configure.in: Add --enable-xft flag
2770 * unix/configure: regen
2771 Experimental support for antialiased text under X11 [Patch 535541]
2773 2003-05-30 Vince Darley <vincentdarley@users.sourceforge.net>
2777 * generic/tkMenuDraw.c:
2778 * tests/menu.test: fixed complex bug in menu clone cleanup [Bug 465324]
2779 and removed 'knownBug' from a test.
2781 2003-05-29 Joe English <jenglish@users.sourceforge.net>
2783 * doc/text.n: Fixed markup errors.
2785 2003-05-28 Miguel Bañón <bagnonm@users.sourceforge.net>
2787 * library/msgs/cs.msg: Updated messages from wohnivec@iol.cz
2789 2003-05-27 Vince Darley <vincentdarley@users.sourceforge.net>
2792 * generic/tkTextTag.c
2793 * generic/tkTextDisp.c
2794 * generic/tkText.h: refactoring of text widget cleanup code to ensure
2795 all resources are freed. [Bug 741179]
2797 * library/tearoff.tcl: ensure torn-off menus do not appear underneath
2798 the MacOS/MacOS X main menu bar.
2800 2003-05-23 Mo DeJong <mdejong@users.sourceforge.net>
2802 * unix/mkLinks: Set the var S to "" at the top of the file to avoid
2803 error when user has set S to something. [Bug 739833]
2805 2003-05-21 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2807 * generic/tkPanedWindow.c (PanedWindowReqProc): Thanks very much to
2808 Eric Boudaillier for making panes resize correctly! [Bug 738143]
2810 * generic/tkText.c (TextSearchCmd): Forwards and backwards aren't the
2811 same. [Bug 740558] Also edited SearchCore to get it closer to the
2812 Engineering Manual style guidelines.
2814 2003-05-19 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2816 * tests/textImage.test: Fixed faults in option parsing and made
2817 * tests/text.test: tests conformant. [Bug 739965]
2818 * generic/tkText.c (TextSearchCmd):
2820 * library/demos/en.msg: Base catalog for the widget demo.
2821 * library/demos/widget: Added message-catalog support.
2822 * library/console.tcl: Reworked to use tk::AmpMenuArgs and be more "in
2824 * library/tk.tcl (tk::AmpMenuArgs): New procedure for doing
2825 tk::AmpWidget-like processing for menus.
2827 * generic/tkTextMark.c: Removed complaints about signed vs.
2828 * generic/tkTextImage.c: unsigned in arguments to strncmp() by
2829 * generic/tkText.c: using Tcl_GetIndexFromObj() more.
2831 2003-05-19 Vince Darley <vincentdarley@users.sourceforge.net>
2833 TIP#113 IMPLEMENTATION
2836 * generic/tkCanvas.c
2841 * generic/tkTextBTree.c
2842 * generic/tkTextDisp.c
2843 * generic/tkTextImage.c
2844 * generic/tkTextIndex.c
2845 * generic/tkTextMark.c
2846 * generic/tkTextTag.c
2847 * generic/tkTextWind.c
2850 * generic/tkWindow.c
2853 * tests/textIndex.test
2854 * tests/textMark.test
2855 * tests/textTag.test
2856 * tests/textWind.test: This adds multi-line searching and '-all'
2857 searching to the text widget. In addition the changes contain a
2858 complete 'objectification' of the text widget. Includes documentation
2861 2003-05-19 Daniel Steffen <das@users.sourceforge.net>
2863 * macosx/Wish.pbproj/project.pbxproj: changed tkConfig.sh location in
2864 versioned framework subdirectories to be identical to location in
2865 framework toplevel; fixed stub library symbolic links to be tk version
2868 2003-05-15 Jeff Hobbs <jeffh@ActiveState.com>
2870 * unix/tkUnixFont.c: use gb2312-raw as the alias for gb2312* charset
2871 fonts. gb2312.enc was made to be euc-cn for Tcl because that is what
2872 is most often meant, but X really wants the original (-raw) gb2312
2873 encoding. [Bug 557030]
2875 2003-05-14 Jeff Hobbs <jeffh@ActiveState.com>
2877 * library/msgs/fr.msg: updated msg catalog. [Bug 737790] (zolli)
2879 2003-05-13 Vince Darley <vincentdarley@users.sourceforge.net>
2881 * win/makefile.vc: fix to installation of winhelp into path containing
2882 a space (Bug 693512)
2884 2003-05-13 Daniel Steffen <das@users.sourceforge.net>
2886 * macosx/tkMacOSXInit.c (TkpInit): use new versioned bundle resource
2887 API to get tk runtime library for TK_VERSION. [Bug 736774]
2889 2003-05-10 Jeff Hobbs <jeffh@ActiveState.com>
2891 * generic/tkCanvPoly.c (PolygonToPostscript):
2892 * tests/canvPs.test: correct crash when generating postscript for a
2893 single-line polygon (point) with no color. [Bug 734498] (wilm)
2895 2003-05-10 Jim Ingham <jingham@apple.com>
2897 * macosx/tkMacOSXClipboard.c (TkSelGetSelection): Convert '\r' to '\n'
2898 on the way into Tcl.
2900 2003-05-08 Donal K. Fellows <fellowsd@cs.man.ac.uk>
2902 * tests/image.test (image-15.1): Test to ensure that widgets pick up
2903 image information even if the image is deleted and recreated.
2905 * generic/tkImage.c (Tk_ImageObjCmd): Use the ImageMaster's deleted
2906 flag to stop deleted images from showing up in the various [image *]
2907 operations. Can't delete directly from the table because that makes us
2908 lose the information about what widgets want to use the image. [Bug
2911 2003-04-30 Jeff Hobbs <jeffh@ActiveState.com>
2913 * macosx/tkMacOSXButton.c (TkpDisplayButton): correct typo for
2914 stippleGC [Bug 730124].
2916 2003-04-25 Jeff Hobbs <jeffh@ActiveState.com>
2918 * generic/tkButton.h: Rewrote the handling of
2919 * generic/tkButton.c (TkButtonWorldChanged): compound *buttons to
2920 * mac/tkMacButton.c (TkpDisplayButton): correctly display mixture
2921 * macosx/tkMacOSXButton.c (TkpDisplayButton): of disabledfg,
2922 * unix/tkUnixButton.c (TkpDisplayButton): selectcolor, indicator,
2923 * win/tkWinButton.c (TkpDisplayButton): etc. *buttons will now
2924 only stipple the image, unless no disabledfg is given, in which case it
2925 will stipple the whole button.
2927 * library/bgerror.tcl: make bgerror dialog topmost on Windows to
2928 prevent it being covered by other windows.
2930 * unix/tkUnixButton.c (TkpDisplayButton): Use the normalTextGc when
2931 * win/tkWinButton.c (TkpDisplayButton): displaying disabled text that
2932 have images, as they get a gray50 stipple as well and the disabledGc is
2933 not set up correctly for font drawing. [Bug 477740]
2935 2003-04-18 Jeff Hobbs <jeffh@ActiveState.com>
2937 * win/configure: regen
2938 * win/configure.in (SHELL): force it to /bin/sh as autoconf 2.5x uses
2939 /bin/bash, which can fail to find exes in the path (ie: lib).
2941 * generic/tkCanvBmap.c: s/CreateBitmap/TkcCreateBitmap as Windows has a
2942 CreateBitmap function already.
2944 * generic/tkCursor.c: s/GetCursor/TkcGetCursor as Windows has a
2945 GetCursor func already, which causes compiler warnings.
2947 2003-04-14 Mo DeJong <mdejong@users.sourceforge.net>
2949 * win/tkWinMenu.c (TkpInitializeMenuBindings): Rename the private menu
2950 helper cmd from tk::tkWinMenuKey to tk::WinMenuKey. [Bug 721514]
2952 2003-04-14 Mo DeJong <mdejong@users.sourceforge.net>
2954 * generic/tkBind.c (TkpGetBindingXEvent): Add helper method that can be
2955 used to query the XEvent* for the currently executing binding.
2956 * generic/tkInt.h: Declare TkpGetBindingXEvent.
2957 * win/tkWinMenu.c (MenuKeyBindProc, TkWinMenuKeyObjCmd)
2958 (TkpInitializeMenuBindings): Rename MenuKeyBindProc to
2959 TkWinMenuKeyObjCmd and convert it into a Tcl command named
2960 tk::tkWinMenuKey. Bind keyboard accelerator actions to this Tcl command
2961 instead of using a native C binding. This makes it possible to extend
2962 the existing binding with Tcl code and makes the Windows version work
2963 just like the unix version.
2965 2003-04-04 Mo DeJong <mdejong@users.sourceforge.net>
2967 * unix/Makefile.in: Subst TCL_LIBS instead of DL_LIBS and MATH_LIBS.
2968 * unix/configure: Regen.
2969 * unix/configure.in: Remove SC_ENABLE_THREADS invocation. Thread
2970 support in an extension should be automatic when Tcl is compiled with
2971 thread support. Add AC_DEFINE calls to set TCL_THREADS, _REENTRANT, and
2972 _THREAD_SAFE since this was done in SC_ENABLE_THREADS. Remove socket
2973 and math lib checks since these are already done in the Tcl configure
2975 * unix/tcl.m4: Update from Tcl to get TCL_LIBS fix. This fixes [Bug
2976 597847] which was caused by improper linking.
2977 * unix/tkConfig.sh.in: Subst TCL_LIBS instead of MATH_LIBS and DL_LIBS.
2980 2003-04-02 Mo DeJong <mdejong@users.sourceforge.net>
2982 * win/configure: Regen.
2983 * win/configure.in: Set stub lib flag based on new LIBFLAGSUFFIX
2985 * win/tcl.m4: Update from Tcl to get new LIBFLAGSUFFIX variable.
2987 2003-04-02 Mo DeJong <mdejong@users.sourceforge.net>
2989 * win/configure: Regen.
2990 * win/configure.in: Don't set TCL_DLL_FILE, TCL_LIB_FILE,
2991 TCL_STUB_LIB_FILE, TCL_STUB_LIB_FLAG, and TCL_BUILD_STUB_LIB_SPEC.
2992 These variables are already set in tclConfig.sh. Don't subst vars that
2993 are either not used, or already covered by a subst in
2994 SC_LOAD_TCLCONFIG. [Bug 691908]
2996 2003-04-01 Mo DeJong <mdejong@users.sourceforge.net>
2998 * unix/configure: Regen.
2999 * unix/tcl.m4: Update from Tcl.
3001 2003-04-01 Don Porter <dgp@users.sourceforge.net>
3003 * tests/all.tcl: Made better use of a common -loadfile
3004 * tests/constraints.tcl: to hold definitions common to all test
3005 * tests/*.test: files.
3007 2003-03-27 Mo DeJong <mdejong@users.sourceforge.net>
3009 * unix/configure: Regen.
3010 * unix/tcl.m4: Update from Tcl.
3012 2003-03-26 Mo DeJong <mdejong@users.sourceforge.net>
3014 * unix/configure: Regen.
3015 * unix/tcl.m4: Update from Tcl to get BeOS changes.
3017 2003-03-22 Kevin Kenny <kennykb@acm.org>
3020 * win/rules.vc: Corrected several problems that prevented OPTS=symbols
3021 from building properly. [Patch 707792] Thanks to Joe Mistachkin for the
3024 2003-03-20 Daniel Steffen <das@users.sourceforge.net>
3026 * macosx/tkMacOSXApplication.r (removed):
3027 * macosx/tkMacOSXLibrary.r (removed):
3028 * macosx/tkMacOSXResource.r (removed):
3029 * macosx/Wish.pbproj/project.pbxproj:
3030 * macosx/tkAboutDlg.r: updated copyrights, cleaned up about box,
3031 removed obsolete unused resource files.
3033 * macosx/buildTkConfig.tcl: TK_DEFS space fix.
3035 2003-03-18 Mo DeJong <mdejong@users.sourceforge.net>
3037 * win/tkConfig.sh.in: Add TK_DLL_FILE entry to mirror the TCL_DLL_FILE
3038 entry in tclConfig.sh. [Patch 694271]
3040 2003-03-18 Mo DeJong <mdejong@users.sourceforge.net>
3042 * win/configure: Regen.
3043 * win/configure.in: Don't run the AC_CYGWIN macro since it uses
3044 AC_CANONICAL_HOST under autoconf 2.5X. Just check to see if __CYGWIN__
3045 is defined by the compiler and set the ac_cv_cygwin variable based on
3046 that. [Tcl Bug 705912]
3048 2003-03-18 Don Porter <dgp@users.sourceforge.net>
3050 * tests/unixWm.test (unixWm-41.2): Corrected typo in 2003-03-13 commit.
3051 Thanks Larry Virden. [Bug 705567]
3053 2003-03-18 Daniel Steffen <das@users.sourceforge.net>
3055 * macosx/Wish.pbproj/project.pbxproj:
3057 * macosx/README: added support for giving 'make' the location of
3058 Tcl.framework and tclsh to build and link against.
3060 * macosx/tkMacOSXXStubs.c: fixed crash in [winfo server].
3062 2003-03-13 Don Porter <dgp@users.sourceforge.net>
3064 * tests/unixWm.test: Constrained all tests older than revision 1.21 to
3065 run only on Unix. Alternative approach did not match maintainer habits.
3066 * tests/spinbox.test (spinbox-17.4): Avoid long failure message.
3068 2003-03-13 Mo DeJong <mdejong@users.sourceforge.net>
3070 Require autoconf 2.57 or newer, see TIP 34 for a detailed explanation
3071 of why this is good. This will no doubt break the build on some
3072 platforms, let the flaming begin.
3074 * unix/configure: Regen with autoconf 2.57.
3075 * unix/configure.in: Require autoconf 2.57.
3076 * unix/tcl.m4: Update from Tcl.
3077 * win/configure: Regen with autoconf 2.57.
3078 * win/configure.in: Require autoconf 2.57.
3079 * win/tcl.m4: Update from Tcl.
3081 2003-03-12 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3083 * library/msgbox.tcl (tk::MessageBox): Stopped message box buttons from
3084 getting very wide, and added some compensatory space so that the
3085 smaller buttons still look nice (well, to me). [Bug 701812]
3087 2003-03-11 Jim Ingham <jingham@apple.com>
3089 * macosx/tkMacOSXMenu.c (EventuallyInvokeMenu): New function, used to
3090 invoke menu commands at idle time.
3091 (TkMacOSXDispatchMenuEvent): Don't immediately dispatch menu commands,
3092 wait till the idle loop to do so. This is more like what is done on
3093 Windows, and avoids the crash from destroying a menu in it's command.
3095 * macosx/tkMacOSXHLEvents.c (ReallyKillMe): Don't force the shell to
3096 exit. According to the OS X HI guidelines, it should be possible to
3097 cancel an attempt to quit, and if we force the kill, here, it would not
3098 be possible to implement this.
3100 2003-03-11 Mo DeJong <mdejong@users.sourceforge.net>
3102 * tests/unixWm.test: Add the testwrapper constraint to tests that
3103 depend on the testwrapper command. These tests should not be run under
3104 Windows for example.
3106 2003-03-11 Mo DeJong <mdejong@users.sourceforge.net>
3108 * doc/wm.n (minimize, maximize): Remove claim that the resizable
3109 command keeps scripts from changing the size of windows since it is not
3110 true. The resizable command only applies to user sizing via user
3112 * tests/unixWm.test: Replace broken tests with the nonPortable
3113 constraint with new tests for maxsize and minsize options. These tests
3114 verify that setting the minsize and maxsize will resize the window if
3115 needed, and that the wm hints will be updated with the new sizes.
3116 * tests/wm.test: Add an exhaustive set of tests for the wm maxsize and
3117 wm minsize commands. These tests verify that setting the minsize and
3118 maxsize will resize the window if needed. These tests have only been
3119 run under Win98 and Window Maker under Linux, so further tweaking may
3120 be needed for other systems.
3121 * unix/tkUnixWm.c (UpdateGeometryInfo, UpdateSizeHints): Fixup
3122 comments and initialization for the minWidth, minHeight, maxWidth,
3123 maxHeight, width, and height members of the WmInfo struct. Check to
3124 ensure that a new toplevel window size is not larger than the maxsize
3125 or smaller than the minsize when updating the geometry at idle time.
3126 Pass new width and height values to the UpdateSizeHints method so that
3127 it can properly set the window min and max sizes for a window that
3128 cannot be resized by the user. This fixes a bug where the window
3129 resizes back to the original size when the user clicks on the window
3131 * win/tkWinWm.c (UpdateGeometryInfo): Fixup comments and
3132 initialization for the minWidth, minHeight, maxWidth, maxHeight, width,
3133 and height members of the WmInfo struct. Check to ensure that a new
3134 toplevel window size is not larger than the maxsize or smaller than the
3135 minsize when updating the geometry at idle time. [Patch 568861]
3137 2003-03-11 Mo DeJong <mdejong@users.sourceforge.net>
3139 * generic/tkGrid.c (GridStructureProc, ConfigureSlaves): Check for a
3140 NULL masterPtr and slavePtr in the GridStructureProc code to ensure
3141 that a Gridder created before some error condition is ignored when it
3142 comes to geometry calculations. This approach closely matches the pack
3143 implementation. Keep track of a -in argument to a grid command in order
3144 to detect the case of an already gridded widget that wants to change
3145 some options. The previous implementation could make repeated and
3146 unnecessary calls to Tk_ManageGeometry. Replace use of "parent" with
3147 "master" in comments throughout the file.
3148 * generic/tkPack.c (PackStructureProc): Check for a NULL masterPtr
3149 before other checks so that a slave created under certain error
3150 conditions is cleaned up properly. Replace use of "parent" with
3151 "master" in comments throughout the file.
3152 * generic/tkPlace.c (CreateSlave, ConfigureSlave, SlaveStructureProc):
3153 Don't call Tk_ManageGeometry in CreateSlave since this was causing
3154 incorrect results in some error cases. Rework the ConfigureSlave method
3155 so that slave setup is done in one place. The call to Tk_ManageGeometry
3156 was added to the one place where a slave is setup. When a slave is
3157 configured but the master is not changed, simply goto the
3158 scheduleLayout label. Check for a NULL master in SlaveStructureProc for
3159 the sake of readability.
3162 * tests/place.test: Add test to check that a winfo manager call does
3163 not return incorrect results after an error condition is hit. [Patch
3166 2003-03-11 Kevin Kenny <kennykb@users.sourceforge.net>
3168 * win/makefile.vc: Backported the code that makes the makefile build
3169 pkgIndex.tcl as part of the install step.
3171 2003-03-07 Jim Ingham <jingham@apple.com>
3173 * macosx/tkMacOSXMenus.c (TkMacOSXInitMenus): No longer need to call
3174 TkMacOSXSetHelpMenuItemCount.
3175 * macosx/tkMacOSXMenu.c (TkMacOSXHelpMenuItemCount): Stub out since it
3176 is no longer need (but is in the stubs table...).
3177 (TkMacOSXDispatchMenuEvent): Get the number of system help menu items
3179 (ReconfigureMacintoshMenu): Ditto.
3180 (TkpDestroyMenu): Ditto.
3182 2003-03-06 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3184 TIP#116 IMPLEMENTATION
3186 * doc/FindPhoto.3: Documentation of the photo API changes due to
3189 * generic/tkImgPhoto.c (Tk_PhotoExpand, Tk_PhotoPutBlock)
3190 (Tk_PhotoPutZoomedBlock, Tk_PhotoSetSize): Added interp argument to
3191 these functions and made them return a standard Tcl result, with error
3192 indicating memory allocation failure instead of panic()ing.
3193 [See TIP #116 at http://purl.org/tcl/tip/116.html for discussion.]
3194 Each of these functions has also acquired a backward-compatability
3195 variant as well, named with a _Panic suffix.
3196 * generic.tk.decls: New API in new slots, back-compat API in old ones.
3197 * generic/tk.h (USE_PANIC_ON_PHOTO_ALLOC_FAILURE): Allow users to
3198 define this symbol to get the old 8.4 photo image API, including
3199 panic() calls when things go wrong.
3201 * generic/tkImgPhoto.c (ImgPhotoCmd): Adjusted to use the new API
3202 * generic/tkImgGIF.c (FileReadGIF): discussed above.
3203 * generic/tkImgPPM.c (FileReadPPM):
3205 2003-03-05 David Gravereaux <davygrvy@pobox.com>
3207 * win/rules.vc: updated default tcl version to 8.5.
3209 2003-03-04 Don Porter <dgp@users.sf.net>
3211 * README: Bumped version number of Tk to
3212 * generic/tk.h: 8.5a0.
3215 * macosx/Wish.pbproj/project.pbxproj:
3217 * unix/configure.in:
3224 * unix/configure: autoconf
3227 2003-03-03 Jeff Hobbs <jeffh@ActiveState.com>
3229 *** 8.4.2 TAGGED FOR RELEASE ***
3231 2003-02-28 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3233 * tests/bind.test (bind-16.44):
3234 * generic/tkBind.c (ExpandPercents): Only allow events to see those
3235 expansions that are actually valid for them, and force the substitution
3236 of the rest as "??". This stops some crashes on Windows and gets rid of
3237 bogus values everywhere. [Bug 612110]
3239 2003-02-26 Jeff Hobbs <jeffh@ActiveState.com>
3241 * macosx/README: correct 8.4.3 refs to 8.4.2.
3243 * unix/README: replace version refs with version-agnostic wording.
3245 2003-02-25 Jeff Hobbs <jeffh@ActiveState.com>
3249 * win/tkWinFont.c (Tk_DrawChars): add support for simple XOR text
3250 drawing on Windows. [Patch 685388] (martin)
3252 * generic/tkMenu.c (TkMenuCleanup): make sure to reset static
3253 menusInitialized on finalize. [Bug 548729]
3255 2003-02-25 Daniel Steffen <das@users.sourceforge.net>
3257 * macosx/tkMacOSXHLEvents.c: fixed conversion of apple event parameters
3258 to posix style path names. [Bug 621672] (steffen, Benjamin Riefenstahl)
3260 * macosx/tkMacOSXDialog.c:
3261 * macosx/tkMacOSXWm.c:
3262 * macosx/Wish.pbproj/project.pbxproj:
3263 * macosx/tkMacOSXUtil.c (removed):
3264 * macosx/tkMacOSXUtil.h (removed): removed all references to
3265 tkMacOSXUtil.{c,h}, made obsolete by the patch above. [Bug 621672]
3267 2003-02-24 Jeff Hobbs <jeffh@ActiveState.com>
3269 * unix/tkUnixFont.c (CreateClosestFont, CanUseFallback): use the first
3270 best font match in user font path. [Bug 647497] (dal zotto)
3272 * generic/tkListbox.c (ListboxSelectionSubCmd):
3273 * tests/listbox.test: Allow 'selection includes' to respond when
3274 disabled (but only 'includes'). [Bug 632514]
3276 * unix/tkUnixButton.c (TkpDisplayButton): Correct visual display of
3277 disabled check/radiobutton to be more distinctive on unix.
3278 * tests/unixButton.test: [Bug 669595] (hintermayer)
3280 * doc/panedwindow.n: clarified the need to use 'update idle' when
3281 adding unmapped windows. Needs further examination. [Bug 605105]
3283 * generic/tkEntry.c (SpinboxWidgetObjCmd, EntryWidgetObjCmd):
3284 * tests/entry.test: return 1 if selection is present even if
3285 * tests/spinbox.test: entry/spinbox is disabled, as selection get will
3286 still return the selection (although selection still ignore modify
3287 requests when entry/spinbox is disabled). [Bug 637828]
3289 2003-02-24 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
3291 * tkMacOSXDialog.c (NavServicesGetFile): Fix bug with
3292 kNavCtlSetSelection - control data should be a pointer not a handle.
3294 2003-02-21 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3296 * library/clrpick.tcl (color::BuildDialog):
3297 * library/msgbox.tcl (MessageBox): Yet more places that did complex
3298 and fragile width calculations instead of using grid, though with these
3299 it is the -uniform option that saves the day.
3301 * library/tkfbox.tcl (file::Create): This procedure was really very
3302 crufty in how it went about creating the GUI. It is far easier and more
3303 robust to use the grid geometry manager than it is to tune the results
3304 of pack with tweaks to -width. [Bug 673722]
3306 * library/comdlg.tcl (FDGetFileTypes): Set an upper limit on how long a
3307 file type item description string can get due to appending of types.
3310 * tests/panedwindow.test (panedwindow-30.1):
3311 * generic/tkPanedWindow.c (DisplayPanedWindow, DisplayProxyWindow):
3312 Use the window's depth, not the screen's default depth. [Bug 671122]
3314 2003-02-20 Daniel Steffen <das@users.sourceforge.net>
3316 * library/console.tcl: (aqua & macintosh) added missing <Cmd-q> binding
3317 for corresponding Quit menu item shortcut.
3319 * macosx/README: updated instructions for embedded build, added various
3320 improvements by Russell Owen.
3322 * unix/tcl.m4: update from Tcl.
3323 * unix/configure: regen.
3325 2003-02-20 Jeff Hobbs <jeffh@ActiveState.com>
3327 * win/tkWinScrlbr.c (UpdateScrollbar): use SIF_DISABLENOSCROLL to
3328 "disable" scrollbar when on Windows when there is nothing to scroll.
3329 This is Windows style, and fixes [Bug 624116].
3331 * tests/panedwindow.test:
3332 * generic/tkPanedWindow.c (ValidSashIndex): corrected to note that 2
3333 panes must exist before any one sash does. [tcllib Bug 689258]
3335 2003-02-20 Peter Spjuth <peter.spjuth@space.se>
3337 * tests/panedwindow.test:
3338 * generic/tkPanedWindow.c: Fixed calculation of the last slave's size
3339 when increasing the size of the panedwindow. [Bug 689099]
3341 2003-02-20 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3343 * generic/tkImgGIF.c (GetDataBlock): Removed pointless static variable
3344 ZeroDataBlock [Bug 664788]
3346 * unix/tkUnixFont.c (CanUseFallback): Added argument, passed through
3347 from callers to FindSubFontForChar(), so that pointers into the old
3348 subfont table to be updated when that table is reallocated, avoiding a
3349 (sometimes fatal) FMR. [Bugs 618872, 689357]
3351 2003-02-19 Daniel Steffen <das@users.sourceforge.net>
3353 * macosx/tkMacOSXKeyEvent.c: fix for uninitialized var warning.
3355 2003-02-19 Jim Ingham <jingham@apple.com>
3357 * macosx/tkMacOSXMouseEvents.c (GeneratePollingEvents): In the case
3358 where there was a capture window, we were sending the events to the
3359 capture window. But the capture window (return value or
3360 TkMacOSXGetCapture) is always a toplevel. So this is wrong in the case
3361 that the Event's toplevel IS the capture window - in which case the
3362 event should go to the subwindow most closely containing the event.
3364 2003-02-19 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
3365 and Jim Ingham <jingham@apple.com>
3367 This patch changes the default Tk behavior so that events are by
3368 default routed to the standard event handlers after Tk has looked at
3371 * macosx/tkMacOSXEvent.h: Rename "handledByTk" into "stopProcessing".
3373 * macosx/tkMacOSXEvent.c: Update erroneous comments and remove unused
3375 (TkMacOSXProcessAppleEvent): Don't declare events handled that we did
3377 (TkMacOSXProcessEvent): Add a comment on policy for "stopProcessing".
3378 (TkMacOSXProcessEvent): Remove "handling" of events that are not our
3380 (TkMacOSXProcessEvent): Rename "handledByTk" into "stopProcessing".
3381 (ReceiveAndProcessEvent): Ditto.
3382 (ReceiveAndProcessEvent): Tune error production of message.
3384 * macosx/tkMacOSXKeyEvent.c (TkMacOSXProcessKeyboardEvent): Rename
3385 "handledByTk" into "stopProcessing".
3387 * macosx/tkMacOSXWindowEvent.c: Ditto.
3389 * macosx/tkMacOSXMouseEvent.c: Remove setting of "handledByTk".
3390 (TkMacOSXProcessMouseEvent): Handle clicks in the "traffic lights" in
3391 the window title when the window (or app) is in the background.
3393 This patch changes the key event handling to use the MacOS translation
3394 mechanisms. It also improves dead key handling.
3396 * macosx/tkMacOSXKeyEvent.c (InitKeyData): Add.
3397 (InitKeyEvent): Add.
3398 (DecodeViaUnicodeResource): Rename KeycodeToUnicodeViaUnicodeResource.
3399 (DecodeViaKCHRResource): Rename KeycodeToUnicodeViaKCHRResource.
3400 (GetKeyboardLayout): Use a boolean flag instead of a special layout id.
3401 (KeycodeToUnicodeViaUnicodeResource): Change interface and
3402 implementation to return a Unicode string instead of directly filling
3404 (KeycodeToUnicodeViaKCHRResource): Ditto.
3405 (KeycodeToUnicodeViaUnicodeResource): Add handling for callers that
3406 don't want deadkey processing (i.e. XKeycodeToKeysym).
3407 (KeycodeToUnicodeViaKCHRResource): Ditto.
3408 (KeycodeToUnicodeViaUnicodeResource): Clear deadKeyState if a character
3410 (KeycodeToUnicodeViaKCHRResource): Use CFString and current keyboard
3411 encoding instead of Tcl Tcl_ExternalToUtf() and fixed
3412 TkMacOSXCarbonEncoding.
3413 (TkMacOSXKeycodeToUnicode): Add.
3415 (TkMacOSXProcessKeyboardEvent): Add some heuristics to improve keyup
3417 (deadKeyState): Split into deadKeyStateUp and deadKeyStateDown.
3418 (GenerateKeyEvent): Change interface and implementation to accept a
3419 Unicode string instead of individual characters.
3420 (GenerateKeyEvent): Don't generate string representations for special
3423 * macosx/tkMacOSXEvent.h (TkMacOSXKeycodeToUnicode): Add prototype.
3425 * macosx/tkMacOSXKeyboard.c (KCHRPtr): Remove.
3426 (XKeycodeToKeysym): Use TkMacOSXKeycodeToUnicode instead of
3428 (XKeycodeToKeysym): Support latin-1 keysyms.
3430 This patch reverts the hack to put icons in menus that Vince put in
3431 yesterday (but preserves the bug fix in that submission.)
3433 * macosx/tkMacOSXMenu.c (SetMenuTitle): revert treating "<bullet>
3434 number" as a request to put icon number <number> in the menu.
3436 2003-02-18 Mo DeJong <mdejong@users.sourceforge.net>
3439 * doc/text.n: Update double and triple click docs to match
3440 implementation changes made on 2002-02-14.
3442 2003-02-19 Daniel Steffen <das@users.sourceforge.net>
3444 * macosx/Wish.pbproj/project.pbxproj:
3445 * macosx/Makefile: reworked embedded build to no longer require
3446 relinking but to use install_name_tool instead to change the
3447 install_names for embedded frameworks. [Bug 644510]
3449 2003-02-19 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3451 * library/demos/widget: New part for the widget demo showing
3452 * library/demos/unicodeout.tcl: Tk's UNICODE output. [Patch 627453]
3454 2003-02-18 Andreas Kupries <andreask@activestate.com>
3456 * unix/configure: Regen.
3457 * unix/tcl.m4: Update from Tcl (HP xnet [Bug 651811]).
3459 2003-02-18 Mo DeJong <mdejong@users.sourceforge.net>
3461 * unix/configure: Regen.
3462 * unix/tcl.m4: Update from Tcl.
3464 2003-02-18 Jeff Hobbs <jeffh@ActiveState.com>
3466 * generic/tkText.c (TextWidgetCmd): remove unused lastEnd var. [Bug
3469 * generic/tkCanvPs.c (TkPostscriptImage): remove unused depth var. [Bug
3472 * generic/tkEntry.c (EntrySetValue): removed unused code var. [Bug
3475 * library/tk.tcl (::tk::TabToWindow): auto-highlight spinboxes as well
3476 as entries when tabbing in. [Patch 683813] (bron)
3478 * library/xmfbox.tcl (::tk::MotifFDialog_ActivateSEnt): correct sub on
3479 embedded newlines. [Patch 688572] (bonfield)
3481 * doc/colors.n: corrected B values [Bug 682714].
3483 * win/tkWinInit.c (TkpDisplayWarning): truncate MessageBox string to
3484 1024 chars to prevent possible oversized window errors. May be
3485 necessary in other MB uses (ie Tcl_AppInit). [Tcl Bug 608559]
3487 2003-02-18 Vince Darley <vincentdarley@users.sourceforge.net>
3489 * macosx/tkMacOSXMenu.c: (SetMenuTitle) fix to utf encoding problem
3490 when setting menu titles, and provisional support for icons. [Tcl Bug
3493 2003-02-18 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3495 * generic/tkImgGIF.c (FileReadGIF): Ensure that the trashBuffer is
3496 always deallocated on function exit to stop a potential memory leak.
3498 2003-02-17 Mo DeJong <mdejong@users.sourceforge.net>
3500 * generic/tkEvent.c (Tk_HandleEvent): Fixup button press state saving
3501 code, it was incorrectly converting normal motion events into button
3502 press and motion events in some cases.
3503 * generic/tkInt.h: Add mouseButtonWindow member to the TkDisplay
3505 * tests/event.test: Add test case for faulty button motion logic.
3507 2003-02-14 Jeff Hobbs <jeffh@ActiveState.com>
3509 * README: Bumped to 8.4.2.
3511 * macosx/Wish.pbproj/project.pbxproj:
3513 * unix/configure.in:
3519 * unix/tcl.m4: correct HP-UX ia64 --enable-64bit build flags
3521 2003-02-13 Kevin Kenny <kennykb@users.sourceforge.net>
3523 * doc/wish.n: Added language to describe the handling of the
3524 end-of-file character \u001a in script files. [Bug 685505]
3526 2003-02-10 Jim Ingham <jingham@apple.com>
3528 * macosx/tkMacOSXCursor.c (TkMacOSXInstallCursor): Set all theme
3529 cursors using SetThemeCursor or SetAnimatedThemeCursors.
3530 (TkGetCursorByName): Use the theme cursors for arrow, ibeam, etc. Allow
3531 animatedCursor{NUM} form for an animated cursor with count.
3532 (TkpSetCursor): Don't reset the cursor if there is no change.
3533 * macosx/tkMacOSXMouseEvent.c (GeneratePollingEvents): Don't directly
3534 call TkMacOSXInstallCursor, it gets called by the call to
3535 Tk_UpdatePointer immediately above.
3537 2003-02-05 Fred Fish <fnf@intrinsity.com>
3539 * macosx/tkMacOSXWm.c (Tk_SetGrid): Fix precedence problem with
3540 * mac/tkMacWm.c (Tk_SetGrid): '==' and '|'.
3542 2003-02-08 Jeff Hobbs <jeffh@ActiveState.com>
3544 * generic/tkCanvArc.c (CreateArc): Rework canvas create item type
3545 * generic/tkCanvBmap.c (CreateBitmap): coords handling to be
3546 * generic/tkCanvImg.c (CreateImage): consistent across types and
3547 * generic/tkCanvPoly.c (CreatePolygon): not pass empty coords to item
3548 * generic/tkCanvLine.c (CreateLine): creation procs.
3549 * generic/tkCanvText.c (CreateText):
3550 * generic/tkCanvWind.c (CreateWinItem):
3551 * generic/tkCanvas.c (CanvasWidgetCmd CANV_CREATE):
3552 * generic/tkRectOval.c (CreateRectOval):
3553 * tests/canvRect.test:
3554 * tests/canvText.test:
3555 * tests/canvas.test:
3557 2003-01-28 Joe English <jenglish@users.sourceforge.net>
3559 * generic/tkInt.h (TkDisplay,TkMainInfo):
3560 * generic/tkObj.c (windowObjType):
3561 * generic/tkWindow.c (Tk_DestroyWindow):
3562 * tests/wm.test (wm-deletion-epoch-1.1): Moved 'deletionEpoch' field
3563 from TkDisplay to TkMainInfo. Reworked windowObj type. Fixes [Bug
3564 671330] "segfault when e.g. deiconifying destroyed window"
3566 2003-01-23 D. Richard Hipp <drh@hwaci.com>
3568 * library/entry.tcl: Fix the KeyPress binding on the entry widget so
3569 that it enters text from left to right (not right to left) even if the
3570 mouse button is being held down. [Bug 673687]
3572 2003-01-22 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3574 * generic/tkFrame.c (TkToplevelWindowForCommand): Added way of mapping
3575 from command names to tkwins-for-toplevels.
3576 * generic/tkImage.c (Tk_ImageObjCmd): Added check to make sure that
3577 you're not creating an image named the same as .'s command, which
3578 refixes 220891, even when the name of the command has been changed with
3579 'rename'. The error message is better too.
3580 * tests/image.test (image-1.10,image-1.11): Updated to match new error
3581 message and added test for the rename case.
3583 2003-01-19 Jeff Hobbs <jeffh@ActiveState.com>
3585 * generic/tkImage.c (DeleteImage): delete the image's entry in the
3586 image table correctly when there are no more instances. This reopens
3587 bug 220891. [Bug 669759]
3589 2003-01-18 Jeff Hobbs <jeffh@ActiveState.com>
3591 * doc/loadTk.n: note that ::safe::loadTk has a prereq on
3592 ::safe::interpCreate or ::safe::interpInit. [Bug 669159]
3594 * doc/photo.n: $image put only accepts -format and -to, and note
3595 extended use of -to.
3597 2003-01-17 D. Richard Hipp <drh@hwaci.com>
3599 * generic/tkCanvUtil.c: The clipping algorithm introduced on 2003-01-08
3600 was unnecessarily aggressive in reducing the size of the clipping box.
3601 This did not cause a problem for normal display, but did create trouble
3602 for some extensions that attempt to render a canvas on a GDI printer
3603 under Windows. The patch here relaxes the constraints on the clipping
3604 box somewhat. [Bug 663981]
3606 2003-01-14 Joe English <jenglish@users.sourceforge.net>
3608 * generic/tkSelect.c (Tk_CreateSelHandler): Fix for [Bug 666346]
3609 "Selection handling crashes under KDE 3.0"
3610 * tests/unixSelect.test (unixSelect-1.20): Added test case.
3612 2003-01-13 Mo DeJong <mdejong@users.sourceforge.net>
3614 * win/tkWinDialog.c (Tk_ChooseDirectoryObjCmd)
3615 (ChooseDirectoryValidateProc, Tk_MessageBoxObjCmd): Remove unused
3616 tsdPtr variable. Use TEXT macro instead of _T macro since _T does not
3617 work under Cygwin. Declare flags as UINT to avoid compiler warning when
3618 compiling with mingw.
3620 2003-01-12 Mo DeJong <mdejong@users.sourceforge.net>
3622 * win/Makefile.in: Add TCL_DEFS to AC_FLAGS so that compiler flags
3623 defined by Tcl get passed to the compiler. Add empty rule for cat.c so
3624 that Tk compiles under msys.
3625 * win/configure: Regen.
3626 * win/tcl.m4: Update from Tcl, this pulls in a subst of TCL_DEFS, it
3627 also defines USE_THREAD_ALLOC when threads are used and it updates the
3628 SC_ENABLE_SYMBOLS and SC_PROG_TCLSH macros to match the ones used in
3631 2003-01-10 Joe English <jenglish@users.sourceforge.net>
3633 * unix/tkUnixEvent.c (OpenIM): Remove unused variable (Fixes: [Bug
3634 664780] "SGI warning: OpenIM")
3636 2003-01-08 D. Richard Hipp <drh@hwaci.com>
3638 * generic/tkCanvLine.c:
3639 * generic/tkCanvas.h:
3640 * generic/tkCanvUtil.c: Clip long lines so that they will display
3641 properly even on windowing systems where coordinates are expressed as
3642 16-bit numbers. [Bug 663981]
3644 2003-01-03 Jeff Hobbs <jeffh@ActiveState.com>
3646 * generic/tkFrame.c (CreateFrame): throw a Tcl error instead of a panic
3647 when we cannot get a main window and appname is NULL. This can indicate
3648 that a user tried to create a frame/toplevel while Tk was dying. [Bug
3651 ******************************************************************
3652 *** CHANGELOG ENTRIES FOR 2002 AND EARLIER IN "ChangeLog.2002" ***
3653 ******************************************************************