diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-11-07 08:28:23 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-11-07 08:28:23 (GMT) |
commit | 4d28a2a931e81acd27bc30639de483a7e9968988 (patch) | |
tree | 6b25a19d6d781a66f0586011d77a8cd35cd03912 | |
parent | c6300a7265e457702bf13456bfdccd02aa4a1a54 (diff) | |
parent | 3ccad1d5014f9fb98c089fe19bb1fd04f7f8b0db (diff) | |
download | tk-4d28a2a931e81acd27bc30639de483a7e9968988.zip tk-4d28a2a931e81acd27bc30639de483a7e9968988.tar.gz tk-4d28a2a931e81acd27bc30639de483a7e9968988.tar.bz2 |
merge trunkbug_2443069
-rw-r--r-- | ChangeLog | 12 | ||||
-rw-r--r-- | changes | 152 | ||||
-rw-r--r-- | compat/unistd.h | 2 | ||||
-rw-r--r-- | license.terms | 2 | ||||
-rw-r--r-- | macosx/README | 20 | ||||
-rw-r--r-- | macosx/Wish.sdef | 2 | ||||
-rw-r--r-- | macosx/configure.ac | 2 | ||||
-rw-r--r-- | macosx/tkMacOSXCursor.c | 2 | ||||
-rw-r--r-- | macosx/tkMacOSXDebug.c | 2 | ||||
-rw-r--r-- | macosx/tkMacOSXDialog.c | 2 | ||||
-rw-r--r-- | macosx/tkMacOSXEmbed.c | 2 | ||||
-rw-r--r-- | macosx/tkMacOSXEntry.c | 2 | ||||
-rw-r--r-- | macosx/tkMacOSXInit.c | 2 | ||||
-rw-r--r-- | macosx/tkMacOSXRegion.c | 2 | ||||
-rw-r--r-- | macosx/tkMacOSXScale.c | 2 | ||||
-rw-r--r-- | macosx/tkMacOSXSend.c | 2 | ||||
-rw-r--r-- | macosx/tkMacOSXTest.c | 2 | ||||
-rw-r--r-- | macosx/tkMacOSXWindowEvent.c | 2 | ||||
-rw-r--r-- | macosx/tkMacOSXWm.c | 20 | ||||
-rw-r--r-- | macosx/ttkMacOSXTheme.c | 6 | ||||
-rw-r--r-- | unix/Makefile.in | 41 | ||||
-rw-r--r-- | unix/tkUnixWm.c | 2 | ||||
-rw-r--r-- | win/Makefile.in | 6 | ||||
-rw-r--r-- | win/nmakehlp.c | 9 | ||||
-rw-r--r-- | xlib/X11/X.h | 88 | ||||
-rw-r--r-- | xlib/X11/Xfuncproto.h | 12 | ||||
-rw-r--r-- | xlib/X11/Xlib.h | 50 | ||||
-rw-r--r-- | xlib/X11/Xutil.h | 28 | ||||
-rw-r--r-- | xlib/X11/keysym.h | 8 | ||||
-rw-r--r-- | xlib/xgc.c | 4 |
30 files changed, 246 insertions, 242 deletions
@@ -1,3 +1,9 @@ +2012-10-24 Don Porter <dgp@users.sourceforge.net> + + * macosx/tkMacOSXWm.c: [Bug 3574893] Add overlooked toplevel ref + count maintenance in the [wm manage|forget] operations that could + cause segfaults due to premature free of structs. + 2012-09-19 Jan Nijtmans <nijtmans@users.sf.net> * win/Makefile.in: Compile win32 binaries with -DTCL_NO_DEPRECATED @@ -5,8 +11,8 @@ 2012-09-17 Don Porter <dgp@users.sourceforge.net> - *** 8.6b2 TAGGED FOR RELEASE *** - + *** 8.6b3 TAGGED FOR RELEASE *** + * macosx/tkMacOSXWm.c: [Bug 3567786] Stop segfault in [wm forget]. 2012-09-15 Don Porter <dgp@users.sourceforge.net> @@ -479,7 +485,7 @@ 2011-12-22 Don Porter <dgp@users.sourceforge.net> * win/tkWinMenu.c: [Bug 3235256] Keep menu entry IDs out of system - values. Thanks Colin McDonald. + values. Thanks Colin McDonald. 2011-12-13 Donal K. Fellows <dkf@users.sf.net> @@ -3253,7 +3253,7 @@ could be listed twice, if a long list of files were shown, and the view scrolled to the right, and then a different file file was shown, the scrollregion on the canvas wasn't being reset, so the file dialog was broken from then on, added an update idletasks so that the watch -cursor was shown when the dialog was thinking. For the motif file +cursor was shown when the dialog was thinking. For the motif file dialog, fixed the weights for resizing. On the clrpicker, fixed the finalColor variable which caused problems when the OK button was "clicked" before the dialog was mapped (in the test suite). Added Ioi's @@ -3301,13 +3301,13 @@ to use the new event gereating mechanism. 9/18/96 (bug fix) Long-standing bug in bind where <Button-1><Button-1> was reported as <Double-Button-1>, but <Double-Key-a> was reported as "aa". (CS) -9/27/96 (bug fix) Bindings didn't work on 64-bit machines due to changes +9/27/96 (bug fix) Bindings didn't work on 64-bit machines due to changes made for virtual events. (CS) -9/30/96 (feature change) Binding for new virtual events included both -lower and upper-case, e.g., <<Copy>> was defined as <Control-c> and +9/30/96 (feature change) Binding for new virtual events included both +lower and upper-case, e.g., <<Copy>> was defined as <Control-c> and <Control-C>. Previously, widgets were directly bound to only lower-case -bindings. The upper-case binding caused incompatibility with some existing +bindings. The upper-case binding caused incompatibility with some existing Tcl programs, so the upper case bindings for <<Cut>>, <<Copy>>, and <<Paste>> were removed. (CS) @@ -3333,7 +3333,7 @@ constraints. It used to return an error. (SAU) 10/1/96 (bug fix) "The way grid handles '^' short-cuts was re-written to eliminate core dumps. (SAU) -10/3/96 (feature change) A virtual event binding associated with a +10/3/96 (feature change) A virtual event binding associated with a given physical event is now considered less specific than a binding for that same physical event, all other things being equal. (CS). @@ -3378,13 +3378,13 @@ error due to a misplaced common in library/menu.tcl. (JO) error mechanism. (RJ) 10/23/96 (bug fix) Fixed a bug in the Mac subwindow implementation -that caused refreshes to not occur for canvases with embedded +that caused refreshes to not occur for canvases with embedded windows. (RJ) 10/24/96 (bug fix) Provided workaround for Apple bug that doesn't handle zooming correctly for floating windows. (RJ) -10/24/96 (bug fix) Macintosh tearoff menus are now correctly +10/24/96 (bug fix) Macintosh tearoff menus are now correctly displayed as Mac floating windows. (RJ) 11/1/96 (bug fix) Restored manual page for procedures like @@ -3486,10 +3486,10 @@ child of the master. (SS) widget command, which allows a menu to operate as a menubar. On the Macintosh, the menubar is displayed accross the top of the main monitor, just like with other applications. Under Windows and Unix, the menu is -attached to the toplevel window. Also, changed some semantics. -Tearoff menus will now reflect changes to the menu it was +attached to the toplevel window. Also, changed some semantics. +Tearoff menus will now reflect changes to the menu it was torn off from, and are deleted when the master menu is -deleted. Tearoffs also reflect more look-and-feel of the +deleted. Tearoffs also reflect more look-and-feel of the platforms they are running on. (SRP) 10/31/96 (bug fix) Under Windows, missing system cursors would @@ -3575,9 +3575,9 @@ correctly if it contained the literal characters \" (CS) 12/17/96 (feature change) Native Windows labels do not get a focus-ring border. (CS) -12/17/96 (bug fix) Under Windows, colors specified as "#XXYYZZ" where XX, YY, +12/17/96 (bug fix) Under Windows, colors specified as "#XXYYZZ" where XX, YY, or ZZ were not valid hex digits were getting a random color value instead of -being an error. (CS) +being an error. (CS) ----------------- Released 8.0a1, 12/17/96 ----------------------- @@ -3599,7 +3599,7 @@ first time. (SS) 1/6/97 (bug fix) Under Windows, the initialization code was not looking in the right directory for the Tk libraries when the program -being run was not in the Tcl installation heirarchy. (SS) +being run was not in the Tcl installation heirarchy. (SS) 1/8/97 (bug fix) Under Windows, the windows were not being unmapped properly, which led to strange packer behavior. (SS) @@ -3612,10 +3612,10 @@ menubars. (JO) cause Tk to crash because TkMainInfo was freed before menu released its resources. This bug had already been fixed for scrollbars and buttons. (CS) -1/15/97 (bug fix) Tk is now working under Win32s again, including Win32 +1/15/97 (bug fix) Tk is now working under Win32s again, including Win32 version 1.25. Fixed separate problems in fonts and dialogs. (CS) -1/15/97 (feature change) Under Windows, font sizes are now specified in +1/15/97 (feature change) Under Windows, font sizes are now specified in points, not pixels. The mapping between pointsize and pixels depends on Windows having accurate metrics for the monitor (plug&play helps). Font metrics are still reported in pixels. (CS) @@ -3760,7 +3760,7 @@ unix-centric fonts in scripts don't break when run on Windows or Mac. now, a minimal XLFD (such as "*-times-*") will be accepted, and all unspecified attributes will be given default values. (2) Previously, in the {name size style ...} format, only the style was optional; now both the size -and the style are optional; this solves the problem of old scripts that +and the style are optional; this solves the problem of old scripts that contain specifications of the form "-font fixed" or "-font times". (CCS) 5/7/97 (new feature) Menus now send a virtual event <<MenuSelect>> @@ -3795,7 +3795,7 @@ Ie. You can now use -stick, in addition to -sticky. (RJ) finding the library files when they are installed in a directory containing a space in the name. (SS) -6/2/97 (bug fix) Virtual events associated with <Enter>/<Leave> in text +6/2/97 (bug fix) Virtual events associated with <Enter>/<Leave> in text widget tag caused panic. (CCS) 6/6/97 (bug fix) On some systems, struct timeval.tv_sec is unsigned. (SS) @@ -3826,7 +3826,7 @@ position the insertion point after the last character, and @x,y indices were computed incorrectly if -scrollregion had been specified and canvas was scrolled. (CCS) -6/13/97 (bug fix) Hitting up/down arrows in a text widget packed in a +6/13/97 (bug fix) Hitting up/down arrows in a text widget packed in a toplevel window created with the "-screen" option would cause an error dialog to pop up. (CCS) @@ -3899,7 +3899,7 @@ impossible under Windows, and is not done for Unix. (SRP) 7/21/97 (bug fix) After fixing the bug that in canvas text item the insertion cursor wasn't shown if insertion point was at end of text item, introduced a different bug in where clicking in entry widget with 0 characters would -crash or display garbage. (CCS) +crash or display garbage. (CCS) 7/22/97 (bug fix) If there were a whole bunch of returns or tabs in a row in a canvas text item, then the temporary buffer used when outputting @@ -3934,7 +3934,7 @@ window could cause an X error if the window had just been withdrawn. (JO) 8/4/97 (feature change) tkerror and bgerror are not anymore hard links maintained by the Tcl core. The implementation of bgerror provided by Tk tries, for backward compatibility only, to to call "tkerror" and -if that fails, falls back to the usual dialog and stack trace option +if that fails, falls back to the usual dialog and stack trace option posting. You can thus still use either "bgerror" or "tkerror" as your application error handling proc, but using "bgerror" is strongly recommended as support for "tkerror" will eventually vanish in upcoming @@ -3956,7 +3956,7 @@ no window manager. (BW) different interpreters could get confused if they had the same name. (JO) 8/8/97 (new feature) Added new procedure Tk_GetImageMasterData for -mapping image names to master data. (JO) +mapping image names to master data. (JO) 8/8/97 (feature change) Modified Tk_FindPhoto procedure to require extra "interp" argument (needed for bug fix above). (JO) @@ -4018,9 +4018,9 @@ some conditions (such as an image named "place"). (JO) 10/9/97 (bug fix) Fixed bug that sometimes prevented listboxes from scrolling far enough horizontally to see the rightmost character. (JO) -10/10/97 (bug fix) In canvas text items, if the text ended with a \n, it -was not counted in the bbox height, as it did in tk4.2. This caused -"hello\n" to be the same height as "hello" and you couldn't see the +10/10/97 (bug fix) In canvas text items, if the text ended with a \n, it +was not counted in the bbox height, as it did in tk4.2. This caused +"hello\n" to be the same height as "hello" and you couldn't see the cursor positioned on the next line. (CCS) 10/10/97 (bug fix) The grid geometry manager didn't always properly @@ -4068,10 +4068,10 @@ its place, and the replacement deleted would cause a panic. On Unix, instead of everytime the active menu item changed. (SRP) 10/27/97 (bug fix) If a particular race condition occurred under Windows, -Tk would crash complaining about trying to free a color that wasn't +Tk would crash complaining about trying to free a color that wasn't allocated. (SS) -10/28/97 (bug fix) Under Windows, button grabs did not report motion +10/28/97 (bug fix) Under Windows, button grabs did not report motion events that occurred outside of Tk windows. (SS) 10/28/97 (bug fix) Fixed incorrect display of transparent images on @@ -4090,9 +4090,9 @@ the Macintosh port was not. (RJ) on the Macintosh. Tk now also will iconify a toplevel window on the Mac if the new Appearance Manager is present. (RJ) -10/28/97 (bug fixes) In canvas' postscript command: User name +10/28/97 (bug fixes) In canvas' postscript command: User name information was leaked in safe interpreters on Unix (security fix). -Errors while reading prolog.ps were not propagated and the error +Errors while reading prolog.ps were not propagated and the error message was mixed with partial data. Note: postscript output does not work in safe interpreters on unix and windows. (DL) @@ -4108,7 +4108,7 @@ the keyboard under Unix. (SRP) architectures. (SS) 11/5/97 (bug fix) Embedding on Windows was using freed data (crashing -in safe.test with TCL_MEM_DEBUG). NB: Embedding is still not fully +in safe.test with TCL_MEM_DEBUG). NB: Embedding is still not fully implemented on Windows ! (It works mostly when Tk is embeded into it's own Tk frame (safe::loadTk case), but not well with respect to resizing with a toplevel container or with an external process). (DL) @@ -4140,7 +4140,7 @@ evaluation you always use "expr {...}" instead of "expr ..." and "if {...} ..." instead of "if ... ...". It will also be faster thanks to the byte compiler. (DL) -12/3/97 (new feature) Added support for browser/plugin style embedding, +12/3/97 (new feature) Added support for browser/plugin style embedding, and made various other fixes to get the plugin working on the Mac. (JI) 12/8/97 (bug fix) on Windows, using "winfo pathname" before "." was mapped @@ -4154,14 +4154,14 @@ Jan/9/98 (improvement) Allow applications to have custom init script without having to patch the Tk core: Tk_Init will use an existing "tkInit" proc if one exists in the interp where one tries to install Tk instead of defining it's own (tkInit is the transient proc defined in -generic/tkInitScript.h that searches and sources tk.tcl and defines +generic/tkInitScript.h that searches and sources tk.tcl and defines the 'correct' tk_library). (DL) ---- Shipped as part of the plugin2.0 as 8.0p2Plugin2, Jan 15th 98 ---- 6/3/98 (bug fix) Fixed bugs in the tk_getOpenFile under Unix. 1) If the -initialdir option was "." the result would be "././foo.tcl" - instead of an absolute path, like the Windows interface. + instead of an absolute path, like the Windows interface. 2) There is a traceVar on the data(selectPath) where the script was assumes the window exists. (BS) @@ -4205,10 +4205,10 @@ including the center of the coord as part of the bound area. (RJ) 8/4/98 (bug fix) Fixed memory leak in Windows menu code. (SS) -8/4/98 (bug fix) Fixed bug where bgerror's were not being generated +8/4/98 (bug fix) Fixed bug where bgerror's were not being generated from menu callbacks on Windows. (SS) -8/4/98 (bug fix) Alt-key bindings were not being handled properly +8/4/98 (bug fix) Alt-key bindings were not being handled properly under Windows, resulting in annoying beeps. (SS) 8/4/98 (bug fix) Fixed bug in Windows menubar handling that allowed @@ -4353,10 +4353,10 @@ Changes for Tk 8.1 go below this line. characters. For those familiar with the Japanese or Chinese patches, there is no "-kanjifont" option. Characters from any available fonts will automatically be used if the widget's originally selected font is - not capable of displaying a given character. + not capable of displaying a given character. - Textual widgets are international aware. For instance, cursor positioning commands would now move the cursor forwards/back by 1 - international character, not by 1 byte. + international character, not by 1 byte. - Input Method Editors (IMEs) work on Mac and Windows. Unix is still in progress. @@ -4644,7 +4644,7 @@ library/menu.tcl. [Bug: 2425] (redman) calling from the Makefile. [Bug: 2413] (redman) 7/22/99 (bug fix) Block out sys/stat.h include with #if to allow -extension writers to use the MetroWerks compiler on Windows. +extension writers to use the MetroWerks compiler on Windows. [Bug: 2385] (redman) 7/29/99 (bug fix) Allow tcl to opn CON and NUL on Windows, moved check @@ -4657,7 +4657,7 @@ sets of makefiles (nmake and gmake). (redman) Njitmans. [Bug: 2446] (hobbs) 8/1/99 (bug fix) Wrapped #define of panic() inside #ifndef blocks to -avoid compiler errors on Macintosh. Patch from Vince Darley. +avoid compiler errors on Macintosh. Patch from Vince Darley. [Bug: 2389] (hobbs) --------------- Released 8.2b2, August 5, 1999 ---------------------- @@ -5121,7 +5121,7 @@ expansion to the Win/Mac console. (hobbs) 2001-08-14 (bug fix)[450545] Tk's Tcl_ObjTypes now registered (fellows) -2001-08-20 (performance enhancement) internal use of a "window" Tcl_ObjType +2001-08-20 (performance enhancement) internal use of a "window" Tcl_ObjType (fellows) 2001-08-20 (performance enhancement) Obj-ified [grid] and [pack] (spjuth) @@ -5887,46 +5887,46 @@ Updated test suite, documentation, and demos. 2004-12-09 (performance)[1081966] BMP, JPG image load speed (fellows) -2004-12-17 (feature change) Modified DisplayFrame to draw a container's +2004-12-17 (feature change) Modified DisplayFrame to draw a container's background when the embedded window is NULL (chengyemao) -2004-12-17 (bug fix)[842945][831627] Fixed a bug in ContainerEventProc -to handle ConfigureNotify event properly; Changed CleanupContainList to -TkWinCleanupContainerList to be invoked in TkWinXCleanup; Changed Intialize -and CreateTopLevelWindow to create the DeleteWindowsExitProc after TkpInit -so that finalization will be done in a proper sequence (to avoid painics +2004-12-17 (bug fix)[842945][831627] Fixed a bug in ContainerEventProc +to handle ConfigureNotify event properly; Changed CleanupContainList to +TkWinCleanupContainerList to be invoked in TkWinXCleanup; Changed Intialize +and CreateTopLevelWindow to create the DeleteWindowsExitProc after TkpInit +so that finalization will be done in a proper sequence (to avoid painics and potential crashes in exit). (chengyemao) -2004-12-17 (platform support) Added TkWinClenupContainerList into stublib. +2004-12-17 (platform support) Added TkWinClenupContainerList into stublib. (chengyemao) -2004-12-18 (buf fix)[222677] Close the embedded window (of a different +2004-12-18 (buf fix)[222677] Close the embedded window (of a different process) when its container is destroyed. (chengyemao) -2004-12-19 (Windows feature implementation of embedded/embedding -Tk and bug fix) Implemented container identification, focus, raise, set -title of and move window so that an embedded widget is able to identify -a container, to get focus and to receive key press input. Fixed bugs include -[1024364][1096047] and an incorrect wm overrideredirect for an embedded +2004-12-19 (Windows feature implementation of embedded/embedding +Tk and bug fix) Implemented container identification, focus, raise, set +title of and move window so that an embedded widget is able to identify +a container, to get focus and to receive key press input. Fixed bugs include +[1024364][1096047] and an incorrect wm overrideredirect for an embedded window. (chengyemao) -2004-12-20 (Windows feature implementation of embedded/embedding Tk) -Implemented overrideredirect for an embedded toplevel; correctly updated a -frame's upper left x and y of an embedded toplevel after its container -(of another process) moved. (chengyemao) - -2004-12-28 (feature implementatoin of embedded/embedding Tk of Windows) -Implemented embedded/embedding toplevel menu. A menu may be embedded in -a container of either the same process or a different process. Working -fine with Windows 98. But having a problem when invoked with a mouse click -(Windows XP): if an embedded menu is in a different process, the menu items -may show as a blank window at the pull-down time and require the mouse +2004-12-20 (Windows feature implementation of embedded/embedding Tk) +Implemented overrideredirect for an embedded toplevel; correctly updated a +frame's upper left x and y of an embedded toplevel after its container +(of another process) moved. (chengyemao) + +2004-12-28 (feature implementatoin of embedded/embedding Tk of Windows) +Implemented embedded/embedding toplevel menu. A menu may be embedded in +a container of either the same process or a different process. Working +fine with Windows 98. But having a problem when invoked with a mouse click +(Windows XP): if an embedded menu is in a different process, the menu items +may show as a blank window at the pull-down time and require the mouse moves over the menu items to complete display. (chengyemao) 2004-12-29 (platform support)[1092952,1091967] MSVC7, gcc OPT compiles (hobbs) 2005-01-03 (feature implementation of embedded/embedding Tk of Windows) Added -a separated window handler for an embedded menu; solved the problem of +a separated window handler for an embedded menu; solved the problem of a blank menu display with a mouse click in XP. (chengyemao) 2005-01-07 (feature implementation of embedded/embedding Tk of Window) Added @@ -5934,9 +5934,9 @@ TK_STATE message (Windows) to support {wm state} for embedded windows; forced redraw of container after the embedded window detached; removed unnecessary panic in using embedded window; embeded toplevel menu of an embedded window automatically in wrapper updating. Modified and added functions: WmStateCmd, -UpdateWrapper, TkpWmGetState (added) in tkWinWm.c; TkpUseWindow, -TkWinEmbeddedEventProc in tkWinEmbed.c; TkWinChildProc in tkWinX.c. -(chengyemao) +UpdateWrapper, TkpWmGetState (added) in tkWinWm.c; TkpUseWindow, +TkWinEmbeddedEventProc in tkWinEmbed.c; TkWinChildProc in tkWinX.c. +(chengyemao) 2005-01-08 (bug fix)[1098625] Wrong toplevel geometry when created with a menu; [637653] Deleting a popup menu crashes wish (chengyemao) @@ -6281,7 +6281,7 @@ _NET_WM_PING (fellows) 2007-04-23 (enhancement) Allow empty value for -selectforeground opt (steffen) 2007-04-23 (platform support) Aqua: remove Tk-internal double buffering that is -wasteful on Aqua; allows direct-to-window CoreGraphics drawing (e.g. adding +wasteful on Aqua; allows direct-to-window CoreGraphics drawing (e.g. adding support for colors with alpha) (steffen) 2007-04-23 (platform support) Aqua: add all OS theme colors/brushes (patterns) @@ -6442,7 +6442,7 @@ steffen, kupries) --- Released 8.5b3, Novemeber 19, 2007 --- See ChangeLog for details --- -2007-11-25 (bug fix)[1343984] ttk::notebook bugs (english,boudaillier) +2007-11-25 (bug fix)[1343984] ttk::notebook bugs (english,boudaillier) 2007-11-26 (bug fix)[1822391] [photo put] segfault w/ PPM data (kenny) @@ -6735,7 +6735,7 @@ use --enable-aqua=carbon option to unix/configure to enable (steffen) 2009-08-19 (bug fix)[2475855] prevent grid & pack on same master (spjuth) 2009-08-24 (bug fix)[2821084] Cocoa: let WM_DELETE_WINDOW handler stop window -deletion (walzer,steffen) +deletion (walzer,steffen) 2009-08-24 (bug fix) tk::MessageBox bindings for ttk::buttons (steiner,fellows) @@ -6789,7 +6789,7 @@ deletion (walzer,steffen) 2009-12-15 (bug fix)[2492179] Tcl_ObjType "option" no longer registered (porter) *** POTENTIAL INCOMPATIBILITY for Tcl_GetObjType("option") *** - + 2009-12-20 (bug fix)[2917663] [send] accept SI:* on auth list (fellows) 2009-12-22 (bug fix)[2912356] [ttk::sizegrip] accommodate Compiz (english) @@ -7015,3 +7015,11 @@ and -to (porter) Many revisions to better support a Cygwin environment (nijtmans) --- Released 8.6b3, September 18, 2012 --- See ChangeLog for details --- + +2012-10-02 (bug fix)[3572016] menu enable after modal dialog (berg,walzer) + +2012-10-08 Remove Carbon support + +2012-10-24 (bug fix)[3574893] crash in [wm forget] (porter) + +--- Released 8.6.0, ??? ??, 2012 --- See ChangeLog for details --- diff --git a/compat/unistd.h b/compat/unistd.h index 9064b06..be966cc 100644 --- a/compat/unistd.h +++ b/compat/unistd.h @@ -23,7 +23,7 @@ #define NULL 0 #endif -/* +/* * Strict POSIX stuff goes here. Extensions go down below, in the ifndef * _POSIX_SOURCE section. */ diff --git a/license.terms b/license.terms index e0b92ea..0126435 100644 --- a/license.terms +++ b/license.terms @@ -29,7 +29,7 @@ MODIFICATIONS. GOVERNMENT USE: If you are acquiring this software on behalf of the U.S. government, the Government shall have only "Restricted Rights" -in the software and related documentation as defined in the Federal +in the software and related documentation as defined in the Federal Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you are acquiring the software on behalf of the Department of Defense, the software shall be classified as "Commercial Computer Software" and the diff --git a/macosx/README b/macosx/README index f58184c..b61c1c2 100644 --- a/macosx/README +++ b/macosx/README @@ -32,7 +32,7 @@ available as an optional or default install on recent Mac OS X). TkAqua and TkX11 can be distinguished at runtime via [tk windowingsystem]. - At a minimum, Mac OS X 10.3 is required to run Tcl and TkX11. -TkAqua requires Mac OS X 10.5 or later (starting with Tk 8.6b2). +TkAqua requires Mac OS X 10.5 or later (starting with the Cocoa-based Tk 8.5.7). - Unless weak-linking is used, Tcl/Tk built on Mac OS X 10.x will not run on 10.y with y < x; on the other hand Tcl/Tk built on 10.y will always run on 10.x @@ -105,7 +105,7 @@ normal scrollbar has a small dimension of 15, the small variant 11. Access to the small variant was added in Tk 8.4.2. - The default metrics of native buttons, radiobuttons, checkboxes and -menubuttons in the Cocoa-based Tk 8.6b2 and later preserve compatibility with +menubuttons in the Cocoa-based Tk 8.5.7 and later preserve compatibility with the older Carbon-based implementation, you can turn off the compatibility metrics to get more native-looking spacing by setting: set tk::mac::useCompatibilityMetrics 0 @@ -127,13 +127,13 @@ where -kind is one of -systemType icon for given IconServices 4-char OSType -namedImage named NSImage for given name -imageFile image at given path -This support was added with the Cocoa-based Tk 8.6b2. +This support was added with the Cocoa-based Tk 8.5.7. - TkAqua cursor names are interpred as follows (in order): - standard or platform-specific Tk cursor name (c.f. cursors.n) - @path to any image file readable by NSImage - NSImage named image name -Support for the latter two was added with the Cocoa-based Tk 8.6b2. +Support for the latter two was added with the Cocoa-based Tk 8.5.7. - The standard Tk dialog commands [tk_getOpenFile], [tk_chooseDirectory], [tk_getSaveFile] and [tk_messageBox] all take an additional optional -command @@ -142,7 +142,7 @@ the global level when the dialog closes, with the dialog command's result appended (the dialog command itself returning an emtpy result). If the -parent option is also present, the dialog is configured as a modeless (window-modal) sheet attached to the parent window and the dialog command returns immediately. -Support for -command was added with the Cocoa-based Tk 8.6b2. +Support for -command was added with the Cocoa-based Tk 8.5.7. - The TkAqua-specific [tk::mac::standardAboutPanel] command brings the standard Cocoa about panel to the front, with all its information filled in from your @@ -150,7 +150,7 @@ application bundle files (i.e. standard about panel with no options specified). See Apple Technote TN2179 and the AppKit documentation for -[NSApplication orderFrontStandardAboutPanelWithOptions:] for details on the Info.plist keys and app bundle files used by the about panel. -This support was added with the Cocoa-based Tk 8.6b2. +This support was added with the Cocoa-based Tk 8.5.7. - TkAqua has three special menu names that give access to the standard Application, Window and Help menus, see menu.n for details. @@ -160,7 +160,7 @@ application's Info.plist (or displaying an alert if no Help Book is set). This action can be customized by defining a procedure named [tk::mac::ShowHelp], if present, this procedure is invoked instead by the standard Help menu item. Support for the Window menu and [tk::mac::ShowHelp] was added with the -Cocoa-based Tk 8.6b2. +Cocoa-based Tk 8.5.7. - The TkAqua-specific command [tk::unsupported::MacWindowStyle style] is used to get and set Mac OS X-specific toplevel window class and attributes. Note that @@ -179,12 +179,12 @@ Window attribute names: verticalZoom, closeBox, collapseBox, toolbarButton, sideTitlebar, noTitleBar, unifiedTitleAndToolbar, metal, hud, noShadow, doesNotCycle, noActivates, hideOnSuspend, inWindowMenu, ignoreClicks, doesNotHide, - canJoinAllSpaces, moveToActiveSpace, nonActivating, black, dark, light, + canJoinAllSpaces, moveToActiveSpace, nonActivating, black, dark, light, gray, red, green, blue, cyan, yellow, magenta, orange, purple, brown, clear, opacity Note that not all attributes are valid for all window classes. -Support for the 3 argument form was added with the Cocoa-based Tk 8.6b2, at the +Support for the 3 argument form was added with the Cocoa-based Tk 8.5.7, at the same time support for some legacy Carbon-specific classes and attributes was removed (they are still accepted by the command but no longer have any effect). @@ -195,7 +195,7 @@ tk::unsupported::MacWindowStyle style .f document {metal light opaque closeBox c pack [label .f.f -bg #ababab -text "This is a textured window\nwith opacity and a gray background\nsimilar to other Mac applications"] -fill both -expand yes -The color attributes correspond to system-defined NSColor constants (e.g., red is [NSColor redColor]. The "light" and "dark" attributes correspond to lightGrayColor and darkGrayColor, respectively (because of the way the attributes are parsed, using "lightgray" and "darkgray" would cause a conflict with the core "gray" attribute). +The color attributes correspond to system-defined NSColor constants (e.g., red is [NSColor redColor]. The "light" and "dark" attributes correspond to lightGrayColor and darkGrayColor, respectively (because of the way the attributes are parsed, using "lightgray" and "darkgray" would cause a conflict with the core "gray" attribute). Below are the corresponding hex and/or Tk-defined colors that can be used from Tk widgets to match the NSColor-based attributes: diff --git a/macosx/Wish.sdef b/macosx/Wish.sdef index 26d1ee8..8873e95 100644 --- a/macosx/Wish.sdef +++ b/macosx/Wish.sdef @@ -2,7 +2,7 @@ <!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd"> <!-- Copyright (c) 1997 Sun Microsystems, Inc. - Copyright 2009 Kevin Walzer/WordTech Communications LLC. + Copyright 2009 Kevin Walzer/WordTech Communications LLC. Copyright (c) 2009 Daniel A. Steffen <das@users.sourceforge.net> See the file "license.terms" for information on usage and redistribution of diff --git a/macosx/configure.ac b/macosx/configure.ac index 229af64..69573c5 100644 --- a/macosx/configure.ac +++ b/macosx/configure.ac @@ -3,7 +3,7 @@ dnl This file is an input file used by the GNU "autoconf" program to dnl generate the file "configure", which is run during Tk installation dnl to configure the system for the local environment. -dnl Ensure that the config (auto)headers support is used, then just +dnl Ensure that the config (auto)headers support is used, then just dnl include the configure sources from ../unix: m4_include(../unix/aclocal.m4) diff --git a/macosx/tkMacOSXCursor.c b/macosx/tkMacOSXCursor.c index 24793de..53c2cd2 100644 --- a/macosx/tkMacOSXCursor.c +++ b/macosx/tkMacOSXCursor.c @@ -284,7 +284,7 @@ FindCursorByName( kCGRenderingIntentDefault); CFRelease(provider); } - provider = CGDataProviderCreateWithData(NULL, bitmap + + provider = CGDataProviderCreateWithData(NULL, bitmap + pix*pix/8, pix*pix/8, NULL); if (provider) { mask = CGImageMaskCreate(pix, pix, 1, 1, pix/8, provider, diff --git a/macosx/tkMacOSXDebug.c b/macosx/tkMacOSXDebug.c index 6009f09..78008f0 100644 --- a/macosx/tkMacOSXDebug.c +++ b/macosx/tkMacOSXDebug.c @@ -158,7 +158,7 @@ TkMacOSXGetNamedDebugSymbol( /* * Local Variables: - * mode: c + * mode: objc * c-basic-offset: 4 * fill-column: 79 * coding: utf-8 diff --git a/macosx/tkMacOSXDialog.c b/macosx/tkMacOSXDialog.c index 334b9fd..df1dbab 100644 --- a/macosx/tkMacOSXDialog.c +++ b/macosx/tkMacOSXDialog.c @@ -33,7 +33,7 @@ enum openOptions { }; static const char *const saveOptionStrings[] = { "-defaultextension", "-filetypes", "-initialdir", "-initialfile", - "-message", "-parent", "-title", "-typevariable", "-command", + "-message", "-parent", "-title", "-typevariable", "-command", "-confirmoverwrite", NULL }; enum saveOptions { diff --git a/macosx/tkMacOSXEmbed.c b/macosx/tkMacOSXEmbed.c index 824a995..e2e05d2 100644 --- a/macosx/tkMacOSXEmbed.c +++ b/macosx/tkMacOSXEmbed.c @@ -1177,7 +1177,7 @@ TkpCreateBusy( /* * Local Variables: - * mode: c + * mode: objc * c-basic-offset: 4 * fill-column: 79 * coding: utf-8 diff --git a/macosx/tkMacOSXEntry.c b/macosx/tkMacOSXEntry.c index c103c6d..ab236c6 100644 --- a/macosx/tkMacOSXEntry.c +++ b/macosx/tkMacOSXEntry.c @@ -259,7 +259,7 @@ TkpDrawSpinboxButtons( /* * Local Variables: - * mode: c + * mode: objc * c-basic-offset: 4 * fill-column: 79 * coding: utf-8 diff --git a/macosx/tkMacOSXInit.c b/macosx/tkMacOSXInit.c index cd9b9e6..01f893e 100644 --- a/macosx/tkMacOSXInit.c +++ b/macosx/tkMacOSXInit.c @@ -387,7 +387,7 @@ TkpInit( Tcl_SetVar(interp, "auto_path", scriptPath, TCL_GLOBAL_ONLY|TCL_LIST_ELEMENT|TCL_APPEND_VALUE); } - + Tcl_CreateObjCommand(interp, "::tk::mac::standardAboutPanel", TkMacOSXStandardAboutPanelObjCmd, NULL, NULL); Tcl_CreateObjCommand(interp, "::tk::mac::iconBitmap", diff --git a/macosx/tkMacOSXRegion.c b/macosx/tkMacOSXRegion.c index ff5944f..8432299 100644 --- a/macosx/tkMacOSXRegion.c +++ b/macosx/tkMacOSXRegion.c @@ -551,7 +551,7 @@ TkMacOSHIShapeUnion( /* * Local Variables: - * mode: c + * mode: objc * c-basic-offset: 4 * fill-column: 79 * coding: utf-8 diff --git a/macosx/tkMacOSXScale.c b/macosx/tkMacOSXScale.c index d69d6a1..e6d93b4 100644 --- a/macosx/tkMacOSXScale.c +++ b/macosx/tkMacOSXScale.c @@ -485,7 +485,7 @@ ScaleActionProc( /* * Local Variables: - * mode: c + * mode: objc * c-basic-offset: 4 * fill-column: 79 * coding: utf-8 diff --git a/macosx/tkMacOSXSend.c b/macosx/tkMacOSXSend.c index b48a8a0..ce5e65b 100644 --- a/macosx/tkMacOSXSend.c +++ b/macosx/tkMacOSXSend.c @@ -507,7 +507,7 @@ SendInit( /* * Local Variables: - * mode: c + * mode: objc * c-basic-offset: 4 * fill-column: 79 * coding: utf-8 diff --git a/macosx/tkMacOSXTest.c b/macosx/tkMacOSXTest.c index 26885a9..7d2b24e 100644 --- a/macosx/tkMacOSXTest.c +++ b/macosx/tkMacOSXTest.c @@ -81,7 +81,7 @@ DebuggerCmd( /* * Local Variables: - * mode: c + * mode: objc * c-basic-offset: 4 * fill-column: 79 * coding: utf-8 diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c index a05302f..f8a0d3b 100644 --- a/macosx/tkMacOSXWindowEvent.c +++ b/macosx/tkMacOSXWindowEvent.c @@ -343,7 +343,7 @@ GenerateUpdates( return 0; } HIShapeGetBounds(damageRgn, &damageBounds); - + CFRelease(damageRgn); CFRelease(boundsRgn); diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index 3a1da10..68cbb00 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -1657,14 +1657,16 @@ WmForgetCmd( macWin = (MacDrawable *) winPtr->window; TkFocusJoin(winPtr); - Tk_UnmapWindow(frameWin); + Tk_UnmapWindow(frameWin); + macWin->toplevel->referenceCount--; macWin->toplevel = winPtr->parentPtr->privatePtr->toplevel; + macWin->toplevel->referenceCount++; macWin->flags &= ~TK_HOST_EXISTS; TkWmDeadWindow(winPtr); RemapWindows(winPtr, (MacDrawable *) winPtr->parentPtr->window); - + winPtr->flags &= ~(TK_TOP_HIERARCHY|TK_TOP_LEVEL|TK_HAS_WRAPPER|TK_WIN_MANAGED); /* @@ -2448,7 +2450,9 @@ WmManageCmd( } wmPtr = winPtr->wmInfoPtr; winPtr->flags &= ~TK_MAPPED; + macWin->toplevel->referenceCount--; macWin->toplevel = macWin; + macWin->toplevel->referenceCount++; RemapWindows(winPtr, macWin); winPtr->flags |= (TK_TOP_HIERARCHY|TK_TOP_LEVEL|TK_HAS_WRAPPER|TK_WIN_MANAGED); @@ -5328,7 +5332,7 @@ WmWinStyle( ApplyWindowAttributeFlagChanges(winPtr, NULL, oldAttributes, oldFlags, 0, 1); - + return TCL_OK; badClassAttrs: @@ -5492,8 +5496,8 @@ TkMacOSXMakeRealWindowExist( */ [window setMovableByWindowBackground:NO]; } - - + + /* Set background color and opacity of window if those flags are set. */ if (colorName != NULL) { [window setBackgroundColor: colorName]; @@ -5502,7 +5506,7 @@ TkMacOSXMakeRealWindowExist( if (opaqueTag != NULL) { [window setOpaque: opaqueTag]; } - + [window setDocumentEdited:NO]; wmPtr->window = window; macWin->view = contentView; @@ -6391,7 +6395,7 @@ TkMacOSXMakeFullscreen( | NSApplicationPresentationAutoHideMenuBar]; } else { - wmPtr->flags &= ~WM_FULLSCREEN; + wmPtr->flags &= ~WM_FULLSCREEN; [NSApp setPresentationOptions: prevPres]; [window setStyleMask: prevMask]; @@ -6599,7 +6603,9 @@ RemapWindows( if (winPtr->window != None) { MacDrawable *macWin = (MacDrawable *) winPtr->window; + macWin->toplevel->referenceCount--; macWin->toplevel = parentWin->toplevel; + macWin->toplevel->referenceCount++; winPtr->flags &= ~TK_MAPPED; #ifdef TK_REBUILD_TOPLEVEL winPtr->flags |= TK_REBUILD_TOPLEVEL; diff --git a/macosx/ttkMacOSXTheme.c b/macosx/ttkMacOSXTheme.c index fe873f3..5752fb1 100644 --- a/macosx/ttkMacOSXTheme.c +++ b/macosx/ttkMacOSXTheme.c @@ -7,7 +7,7 @@ * Copyright (c) 2005 Neil Madden * Copyright (c) 2006-2009 Daniel A. Steffen <das@users.sourceforge.net> * Copyright 2008-2009, Apple Inc. - * Copyright 2009 Kevin Walzer/WordTech Communications LLC. + * Copyright 2009 Kevin Walzer/WordTech Communications LLC. * * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. @@ -316,7 +316,7 @@ static void TabElementDraw( .size = kHIThemeTabSizeNormal, .adornment = Ttk_StateTableLookup(TabAdornmentTable, state), .kind = kHIThemeTabKindNormal, - .position = Ttk_StateTableLookup(TabPositionTable, state), + .position = Ttk_StateTableLookup(TabPositionTable, state), }; bounds.size.height += TAB_OVERLAP; @@ -1194,7 +1194,7 @@ int Ttk_MacOSXPlatformInit(Tcl_Interp *interp) /* * Local Variables: - * mode: c + * mode: objc * c-basic-offset: 4 * fill-column: 79 * coding: utf-8 diff --git a/unix/Makefile.in b/unix/Makefile.in index 2de275c..1df6721 100644 --- a/unix/Makefile.in +++ b/unix/Makefile.in @@ -312,7 +312,7 @@ UNIX_DIR = $(TOP_DIR)/unix BMAP_DIR = $(TOP_DIR)/bitmaps TOOL_DIR = @TCL_SRC_DIR@/tools TEST_DIR = $(TOP_DIR)/tests -MAC_OSX_DIR = $(TOP_DIR)/@MACOSX_SRC_DIR@ +MAC_OSX_DIR = $(TOP_DIR)/macosx XLIB_DIR = $(TOP_DIR)/xlib #---------------------------------------------------------------- @@ -801,7 +801,7 @@ install-libraries: libraries done; install-demos: - @for i in "$(DEMO_INSTALL_DIR)" "$(DEMO_INSTALL_DIR)"/images ; \ + @for i in "$(DEMO_INSTALL_DIR)" "$(DEMO_INSTALL_DIR)/images" ; \ do \ if [ ! -d "$$i" ] ; then \ echo "Making directory $$i"; \ @@ -873,7 +873,7 @@ install-headers: done; @list='$(@TK_WINDOWINGSYSTEM@_XLIB_HDRS)'; for i in $$list ; \ do \ - $(INSTALL_DATA) $$i "$(INCLUDE_INSTALL_DIR)"/X11; \ + $(INSTALL_DATA) $$i "$(INCLUDE_INSTALL_DIR)/X11"; \ done; # Optional target to install private headers @@ -1327,9 +1327,6 @@ tkMacOSXWm.o: $(MAC_OSX_DIR)/tkMacOSXWm.c tkMacOSXXStubs.o: $(MAC_OSX_DIR)/tkMacOSXXStubs.c $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXXStubs.c -tkMacOSXCarbonEvents.o: $(TOP_DIR)/carbon/tkMacOSXCarbonEvents.c - $(CC) -c $(CC_SWITCHES) $(TOP_DIR)/carbon/tkMacOSXCarbonEvents.c - tkFileFilter.o: $(GENERIC_DIR)/tkFileFilter.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkFileFilter.c @@ -1593,35 +1590,21 @@ dist: $(UNIX_DIR)/configure $(UNIX_DIR)/tkConfig.h.in $(UNIX_DIR)/tk.pc.in $(M $(TCL_EXE) $(TOOL_DIR)/eolFix.tcl -crlf $(DISTDIR)/win/rc/*.rc $(TCL_EXE) $(TOOL_DIR)/eolFix.tcl -crlf $(DISTDIR)/win/wish.exe.manifest.in mkdir $(DISTDIR)/macosx - cp -p $(TOP_DIR)/macosx/GNUmakefile $(TOP_DIR)/macosx/README \ - $(TOP_DIR)/macosx/*.icns $(TOP_DIR)/macosx/*.tiff \ - $(TOP_DIR)/macosx/*.[ch] $(TOP_DIR)/macosx/*.in \ - $(TOP_DIR)/macosx/*.ac $(TOP_DIR)/macosx/*.xcconfig \ - $(TOP_DIR)/macosx/*.sdef $(TOP_DIR)/macosx/configure \ + cp -p $(MAC_OSX_DIR)/GNUmakefile $(MAC_OSX_DIR)/README \ + $(MAC_OSX_DIR)/*.icns $(MAC_OSX_DIR)/*.tiff \ + $(MAC_OSX_DIR)/*.[ch] $(MAC_OSX_DIR)/*.in \ + $(MAC_OSX_DIR)/*.ac $(MAC_OSX_DIR)/*.xcconfig \ + $(MAC_OSX_DIR)/*.sdef $(MAC_OSX_DIR)/configure \ $(DISTDIR)/macosx cp -p $(TOP_DIR)/license.terms $(DISTDIR)/macosx mkdir $(DISTDIR)/macosx/Tk.xcode - cp -p $(TOP_DIR)/macosx/Tk.xcode/project.pbxproj \ - $(TOP_DIR)/macosx/Tk.xcode/default.pbxuser \ + cp -p $(MAC_OSX_DIR)/Tk.xcode/project.pbxproj \ + $(MAC_OSX_DIR)/Tk.xcode/default.pbxuser \ $(DISTDIR)/macosx/Tk.xcode mkdir $(DISTDIR)/macosx/Tk.xcodeproj - cp -p $(TOP_DIR)/macosx/Tk.xcodeproj/project.pbxproj \ - $(TOP_DIR)/macosx/Tk.xcodeproj/default.pbxuser \ + cp -p $(MAC_OSX_DIR)/Tk.xcodeproj/project.pbxproj \ + $(MAC_OSX_DIR)/Tk.xcodeproj/default.pbxuser \ $(DISTDIR)/macosx/Tk.xcodeproj - mkdir $(DISTDIR)/carbon - cp -p $(TOP_DIR)/carbon/GNUmakefile $(TOP_DIR)/carbon/README \ - $(TOP_DIR)/carbon/Wish.icns $(TOP_DIR)/carbon/*.[chr] \ - $(TOP_DIR)/carbon/*.in $(TOP_DIR)/carbon/*.ac \ - $(TOP_DIR)/carbon/*.xcconfig $(DISTDIR)/carbon - cp -p $(TOP_DIR)/license.terms $(DISTDIR)/carbon - mkdir $(DISTDIR)/carbon/Wish.xcode - cp -p $(TOP_DIR)/carbon/Wish.xcode/project.pbxproj \ - $(TOP_DIR)/carbon/Wish.xcode/default.pbxuser \ - $(DISTDIR)/carbon/Wish.xcode - mkdir $(DISTDIR)/carbon/Wish.xcodeproj - cp -p $(TOP_DIR)/carbon/Wish.xcodeproj/project.pbxproj \ - $(TOP_DIR)/carbon/Wish.xcodeproj/default.pbxuser \ - $(DISTDIR)/carbon/Wish.xcodeproj mkdir $(DISTDIR)/compat cp -p $(TOP_DIR)/license.terms $(TCLDIR)/compat/unistd.h \ $(TCLDIR)/compat/stdlib.h $(TCLDIR)/compat/limits.h \ diff --git a/unix/tkUnixWm.c b/unix/tkUnixWm.c index 3362081..eb183bd 100644 --- a/unix/tkUnixWm.c +++ b/unix/tkUnixWm.c @@ -6418,7 +6418,7 @@ TkWmStackorderToplevel( } /* - * ASSERT: window_ptr - windows == table.numEntries + * ASSERT: window_ptr - windows == table.numEntries * (#matched toplevel windows == #children) [Bug 1789819] */ diff --git a/win/Makefile.in b/win/Makefile.in index d9aafcc..787dc30 100644 --- a/win/Makefile.in +++ b/win/Makefile.in @@ -147,7 +147,7 @@ MAN2TCL = man2tcl$(EXEEXT) @SET_MAKE@ -# Setting the VPATH variable to a list of paths will cause the +# Setting the VPATH variable to a list of paths will cause the # makefile to look into these paths when resolving .c to .obj # dependencies. @@ -408,7 +408,7 @@ SHELL_ENV = \ TK_LIBRARY="$(ROOT_DIR_NATIVE)/library"; export TK_LIBRARY; \ PATH="$(TCL_BIN_DIR):$(PATH)"; export PATH; -# Main targets. The default target -- all -- builds the binaries, +# Main targets. The default target -- all -- builds the binaries, # performs any post processing on libraries or documents. all: binaries libraries doc @@ -483,7 +483,7 @@ install-binaries: binaries $(COPY) $$i "$(BIN_INSTALL_DIR)"; \ fi; \ done - @echo "Creating package index $(PKG_INDEX)"; + @echo "Creating package index $(PKG_INDEX)"; @$(RM) $(PKG_INDEX); @(\ echo "if {[catch {package present Tcl $(TCLVERSION)$(TCLPATCHL)}]} return";\ diff --git a/win/nmakehlp.c b/win/nmakehlp.c index d0edcf0..b1a1517 100644 --- a/win/nmakehlp.c +++ b/win/nmakehlp.c @@ -498,9 +498,10 @@ GetVersionFromFile( p = strstr(szBuffer, match); if (p != NULL) { /* - * Skip to first digit. + * Skip to first digit after the match. */ + p += strlen(match); while (*p && !isdigit(*p)) { ++p; } @@ -630,11 +631,11 @@ SubstituteFile( } } #endif - + /* * Run the substitutions over each line of the input */ - + while (fgets(szBuffer, cbBuffer, fp) != NULL) { list_item_t *p = NULL; for (p = substPtr; p != NULL; p = p->nextPtr) { @@ -654,7 +655,7 @@ SubstituteFile( } printf(szBuffer); } - + list_free(&substPtr); } fclose(fp); diff --git a/xlib/X11/X.h b/xlib/X11/X.h index bdc4f13..daf2283 100644 --- a/xlib/X11/X.h +++ b/xlib/X11/X.h @@ -13,13 +13,13 @@ and the Massachusetts Institute of Technology, Cambridge, Massachusetts. All Rights Reserved -Permission to use, copy, modify, and distribute this software and its -documentation for any purpose and without fee is hereby granted, +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that -both that copyright notice and this permission notice appear in +both that copyright notice and this permission notice appear in supporting documentation, and that the names of Digital or MIT not be used in advertising or publicity pertaining to distribution of the -software without specific, written prior permission. +software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL @@ -100,39 +100,39 @@ typedef unsigned long KeyCode; /* In order to use IME, the Macintosh needs #define NoSymbol 0L /* special KeySym */ -/***************************************************************** - * EVENT DEFINITIONS +/***************************************************************** + * EVENT DEFINITIONS *****************************************************************/ /* Input Event Masks. Used as event-mask window attribute and as arguments to Grab requests. Not to be confused with event names. */ #define NoEventMask 0L -#define KeyPressMask (1L<<0) -#define KeyReleaseMask (1L<<1) -#define ButtonPressMask (1L<<2) -#define ButtonReleaseMask (1L<<3) -#define EnterWindowMask (1L<<4) -#define LeaveWindowMask (1L<<5) -#define PointerMotionMask (1L<<6) -#define PointerMotionHintMask (1L<<7) -#define Button1MotionMask (1L<<8) -#define Button2MotionMask (1L<<9) -#define Button3MotionMask (1L<<10) -#define Button4MotionMask (1L<<11) -#define Button5MotionMask (1L<<12) -#define ButtonMotionMask (1L<<13) +#define KeyPressMask (1L<<0) +#define KeyReleaseMask (1L<<1) +#define ButtonPressMask (1L<<2) +#define ButtonReleaseMask (1L<<3) +#define EnterWindowMask (1L<<4) +#define LeaveWindowMask (1L<<5) +#define PointerMotionMask (1L<<6) +#define PointerMotionHintMask (1L<<7) +#define Button1MotionMask (1L<<8) +#define Button2MotionMask (1L<<9) +#define Button3MotionMask (1L<<10) +#define Button4MotionMask (1L<<11) +#define Button5MotionMask (1L<<12) +#define ButtonMotionMask (1L<<13) #define KeymapStateMask (1L<<14) -#define ExposureMask (1L<<15) -#define VisibilityChangeMask (1L<<16) -#define StructureNotifyMask (1L<<17) -#define ResizeRedirectMask (1L<<18) -#define SubstructureNotifyMask (1L<<19) -#define SubstructureRedirectMask (1L<<20) -#define FocusChangeMask (1L<<21) -#define PropertyChangeMask (1L<<22) -#define ColormapChangeMask (1L<<23) -#define OwnerGrabButtonMask (1L<<24) +#define ExposureMask (1L<<15) +#define VisibilityChangeMask (1L<<16) +#define StructureNotifyMask (1L<<17) +#define ResizeRedirectMask (1L<<18) +#define SubstructureNotifyMask (1L<<19) +#define SubstructureRedirectMask (1L<<20) +#define FocusChangeMask (1L<<21) +#define PropertyChangeMask (1L<<22) +#define ColormapChangeMask (1L<<23) +#define OwnerGrabButtonMask (1L<<24) /* Event names. Used in "type" field in XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 @@ -229,7 +229,7 @@ are reserved in the protocol for errors and replies. */ #define NotifyWhileGrabbed 3 #define NotifyHint 1 /* for MotionNotify events */ - + /* Notify detail */ #define NotifyAncestor 0 @@ -299,7 +299,7 @@ are reserved in the protocol for errors and replies. */ #define RevertToParent 2 /***************************************************************** - * ERROR CODES + * ERROR CODES *****************************************************************/ #define Success 0 /* everything's okay */ @@ -314,9 +314,9 @@ are reserved in the protocol for errors and replies. */ #define BadDrawable 9 /* parameter not a Pixmap or Window */ #define BadAccess 10 /* depending on context: - key/button already grabbed - - attempt to free an illegal - cmap entry - - attempt to store into a read-only + - attempt to free an illegal + cmap entry + - attempt to store into a read-only color map entry. - attempt to modify the access control list from other than the local host. @@ -333,7 +333,7 @@ are reserved in the protocol for errors and replies. */ #define LastExtensionError 255 /***************************************************************** - * WINDOW DEFINITIONS + * WINDOW DEFINITIONS *****************************************************************/ /* Window classes used by CreateWindow */ @@ -525,7 +525,7 @@ are reserved in the protocol for errors and replies. */ #define GCCapStyle (1L<<6) #define GCJoinStyle (1L<<7) #define GCFillStyle (1L<<8) -#define GCFillRule (1L<<9) +#define GCFillRule (1L<<9) #define GCTile (1L<<10) #define GCStipple (1L<<11) #define GCTileStipXOrigin (1L<<12) @@ -542,7 +542,7 @@ are reserved in the protocol for errors and replies. */ #define GCLastBit 22 /***************************************************************** - * FONTS + * FONTS *****************************************************************/ /* used in QueryFont -- draw direction */ @@ -553,7 +553,7 @@ are reserved in the protocol for errors and replies. */ #define FontChange 255 /***************************************************************** - * IMAGING + * IMAGING *****************************************************************/ /* ImageFormat -- PutImage, GetImage */ @@ -563,7 +563,7 @@ are reserved in the protocol for errors and replies. */ #define ZPixmap 2 /* depth == drawable depth */ /***************************************************************** - * COLOR MAP STUFF + * COLOR MAP STUFF *****************************************************************/ /* For CreateColormap */ @@ -588,7 +588,7 @@ are reserved in the protocol for errors and replies. */ #define TileShape 1 /* size tiled fastest */ #define StippleShape 2 /* size stippled fastest */ -/***************************************************************** +/***************************************************************** * KEYBOARD/POINTER STUFF *****************************************************************/ @@ -619,7 +619,7 @@ are reserved in the protocol for errors and replies. */ #define MappingPointer 2 /***************************************************************** - * SCREEN SAVER STUFF + * SCREEN SAVER STUFF *****************************************************************/ #define DontPreferBlanking 0 @@ -649,10 +649,10 @@ are reserved in the protocol for errors and replies. */ /* for ChangeAccessControl */ -#define EnableAccess 1 +#define EnableAccess 1 #define DisableAccess 0 -/* Display classes used in opening the connection +/* Display classes used in opening the connection * Note that the statically allocated ones are even numbered and the * dynamically changeable ones are odd numbered */ diff --git a/xlib/X11/Xfuncproto.h b/xlib/X11/Xfuncproto.h index a59379b..6d63002 100644 --- a/xlib/X11/Xfuncproto.h +++ b/xlib/X11/Xfuncproto.h @@ -1,14 +1,14 @@ /* $XConsortium: Xfuncproto.h,v 1.7 91/05/13 20:49:21 rws Exp $ */ -/* +/* * Copyright 1989, 1991 by the Massachusetts Institute of Technology * * Permission to use, copy, modify, and distribute this software and its - * documentation for any purpose and without fee is hereby granted, provided - * that the above copyright notice appear in all copies and that both that - * copyright notice and this permission notice appear in supporting + * documentation for any purpose and without fee is hereby granted, provided + * that the above copyright notice appear in all copies and that both that + * copyright notice and this permission notice appear in supporting * documentation, and that the name of M.I.T. not be used in advertising - * or publicity pertaining to distribution of the software without specific, - * written prior permission. M.I.T. makes no representations about the + * or publicity pertaining to distribution of the software without specific, + * written prior permission. M.I.T. makes no representations about the * suitability of this software for any purpose. It is provided "as is" * without express or implied warranty. * diff --git a/xlib/X11/Xlib.h b/xlib/X11/Xlib.h index 3af3682..667bdc7 100644 --- a/xlib/X11/Xlib.h +++ b/xlib/X11/Xlib.h @@ -1,14 +1,14 @@ /* $XConsortium: Xlib.h,v 11.221 93/07/02 14:13:28 gildea Exp $ */ -/* +/* * Copyright 1985, 1986, 1987, 1991 by the Massachusetts Institute of Technology * * Permission to use, copy, modify, and distribute this software and its - * documentation for any purpose and without fee is hereby granted, provided - * that the above copyright notice appear in all copies and that both that - * copyright notice and this permission notice appear in supporting + * documentation for any purpose and without fee is hereby granted, provided + * that the above copyright notice appear in all copies and that both that + * copyright notice and this permission notice appear in supporting * documentation, and that the name of M.I.T. not be used in advertising - * or publicity pertaining to distribution of the software without specific, - * written prior permission. M.I.T. makes no representations about the + * or publicity pertaining to distribution of the software without specific, + * written prior permission. M.I.T. makes no representations about the * suitability of this software for any purpose. It is provided "as is" * without express or implied warranty. * @@ -163,10 +163,10 @@ typedef struct { unsigned long background;/* background pixel */ int line_width; /* line width */ int line_style; /* LineSolid, LineOnOffDash, LineDoubleDash */ - int cap_style; /* CapNotLast, CapButt, + int cap_style; /* CapNotLast, CapButt, CapRound, CapProjecting */ int join_style; /* JoinMiter, JoinRound, JoinBevel */ - int fill_style; /* FillSolid, FillTiled, + int fill_style; /* FillSolid, FillTiled, FillStippled, FillOpaeueStippled */ int fill_rule; /* EvenOddRule, WindingRule */ int arc_mode; /* ArcChord, ArcPieSlice */ @@ -209,7 +209,7 @@ typedef struct { /* * Depth structure; contains information for each possible depth. - */ + */ typedef struct { int depth; /* this depth (Z) of the depth */ int nvisuals; /* number of Visual types at this depth */ @@ -237,7 +237,7 @@ typedef struct { unsigned long black_pixel; /* White and Black pixel values */ int max_maps, min_maps; /* max and min color maps */ int backing_store; /* Never, WhenMapped, Always */ - Bool save_unders; + Bool save_unders; long root_input_mask; /* initial root input mask */ } Screen; @@ -348,7 +348,7 @@ typedef struct _XImage { } f; } XImage; -/* +/* * Data structure for XReconfigureWindow */ typedef struct { @@ -369,7 +369,7 @@ typedef struct { char pad; } XColor; -/* +/* * Data structures for graphics operations. On most machines, these are * congruent with the wire protocol structures, so reformatting the data * can be avoided on these architectures. @@ -381,12 +381,12 @@ typedef struct { typedef struct { short x, y; } XPoint; - + typedef struct { short x, y; unsigned short width, height; } XRectangle; - + typedef struct { short x, y; unsigned short width, height; @@ -487,7 +487,7 @@ typedef struct _XDisplay { struct _XExten *ext_procs; /* extensions initialized on this display */ /* * the following can be fixed size, as the protocol defines how - * much address space is available. + * much address space is available. * While this could be done using the extension vector, there * may be MANY events processed, so a search through the extension * list to find the right procedure for each event might be @@ -602,7 +602,7 @@ typedef struct { int mode; /* NotifyNormal, NotifyGrab, NotifyUngrab */ int detail; /* - * NotifyAncestor, NotifyVirtual, NotifyInferior, + * NotifyAncestor, NotifyVirtual, NotifyInferior, * NotifyNonlinear,NotifyNonlinearVirtual */ Bool same_screen; /* same screen flag */ @@ -621,9 +621,9 @@ typedef struct { int mode; /* NotifyNormal, NotifyGrab, NotifyUngrab */ int detail; /* - * NotifyAncestor, NotifyVirtual, NotifyInferior, + * NotifyAncestor, NotifyVirtual, NotifyInferior, * NotifyNonlinear,NotifyNonlinearVirtual, NotifyPointer, - * NotifyPointerRoot, NotifyDetailNone + * NotifyPointerRoot, NotifyDetailNone */ } XFocusChangeEvent; typedef XFocusChangeEvent XFocusInEvent; @@ -637,7 +637,7 @@ typedef struct { Display *display; /* Display the event was read from */ Window window; char key_vector[32]; -} XKeymapEvent; +} XKeymapEvent; typedef struct { int type; @@ -1124,7 +1124,7 @@ typedef struct { typedef unsigned long XIMFeedback; #define XIMReverse 1 -#define XIMUnderline (1<<1) +#define XIMUnderline (1<<1) #define XIMHighlight (1<<2) #define XIMPrimary (1<<5) #define XIMSecondary (1<<6) @@ -1133,11 +1133,11 @@ typedef unsigned long XIMFeedback; typedef struct _XIMText { unsigned short length; XIMFeedback *feedback; - Bool encoding_is_wchar; + Bool encoding_is_wchar; union { char *multi_byte; wchar_t *wide_char; - } string; + } string; } XIMText; typedef struct _XIMPreeditDrawCallbackStruct { @@ -1152,13 +1152,13 @@ typedef enum { XIMForwardWord, XIMBackwardWord, XIMCaretUp, XIMCaretDown, XIMNextLine, XIMPreviousLine, - XIMLineStart, XIMLineEnd, + XIMLineStart, XIMLineEnd, XIMAbsolutePosition, XIMDontChange } XIMCaretDirection; typedef enum { - XIMIsInvisible, /* Disable caret feedback */ + XIMIsInvisible, /* Disable caret feedback */ XIMIsPrimary, /* UI defined caret feedback */ XIMIsSecondary /* UI defined caret feedback */ } XIMCaretStyle; @@ -1173,7 +1173,7 @@ typedef enum { XIMTextType, XIMBitmapType } XIMStatusDataType; - + typedef struct _XIMStatusDrawCallbackStruct { XIMStatusDataType type; union { diff --git a/xlib/X11/Xutil.h b/xlib/X11/Xutil.h index 7348e90..58124b0 100644 --- a/xlib/X11/Xutil.h +++ b/xlib/X11/Xutil.h @@ -6,13 +6,13 @@ and the Massachusetts Institute of Technology, Cambridge, Massachusetts. All Rights Reserved -Permission to use, copy, modify, and distribute this software and its -documentation for any purpose and without fee is hereby granted, +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that -both that copyright notice and this permission notice appear in +both that copyright notice and this permission notice appear in supporting documentation, and that the names of Digital or MIT not be used in advertising or publicity pertaining to distribution of the -software without specific, written prior permission. +software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL @@ -33,7 +33,7 @@ SOFTWARE. # define Region XRegion #endif -/* +/* * Bitmask returned by XParseGeometry(). Each bit tells if the corresponding * value (x, y, width, height) was found in the parsed string. */ @@ -128,7 +128,7 @@ IconPositionHint|IconMaskHint|WindowGroupHint) /* - * new structure for manipulating TEXT properties; used with WM_NAME, + * new structure for manipulating TEXT properties; used with WM_NAME, * WM_ICON_NAME, WM_CLIENT_MACHINE, and WM_COMMAND. */ typedef struct { @@ -206,16 +206,16 @@ typedef struct _XComposeStatus { || ((unsigned)(keysym) == XK_Mode_switch) \ || ((unsigned)(keysym) == XK_Num_Lock)) /* - * opaque reference to Region data type + * opaque reference to Region data type */ -typedef struct _XRegion *Region; +typedef struct _XRegion *Region; /* Return values from XRectInRegion() */ - + #define RectangleOut 0 #define RectangleIn 1 #define RectanglePart 2 - + /* * Information used by the visual utility routines to find desired visual @@ -435,7 +435,7 @@ extern Status XGetStandardColormap( Display* /* display */, Window /* w */, XStandardColormap* /* colormap_return */, - Atom /* property */ + Atom /* property */ #endif ); @@ -460,7 +460,7 @@ extern Status XGetWMClientMachine( extern XWMHints *XGetWMHints( #if NeedFunctionPrototypes Display* /* display */, - Window /* w */ + Window /* w */ #endif ); @@ -485,7 +485,7 @@ extern Status XGetWMNormalHints( Display* /* display */, Window /* w */, XSizeHints* /* hints_return */, - long* /* supplied_return */ + long* /* supplied_return */ #endif ); @@ -591,7 +591,7 @@ extern void XSetIconSizes( Display* /* display */, Window /* w */, XIconSize* /* size_list */, - int /* count */ + int /* count */ #endif ); diff --git a/xlib/X11/keysym.h b/xlib/X11/keysym.h index a8f1408..550b76d 100644 --- a/xlib/X11/keysym.h +++ b/xlib/X11/keysym.h @@ -6,13 +6,13 @@ and the Massachusetts Institute of Technology, Cambridge, Massachusetts. All Rights Reserved -Permission to use, copy, modify, and distribute this software and its -documentation for any purpose and without fee is hereby granted, +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that -both that copyright notice and this permission notice appear in +both that copyright notice and this permission notice appear in supporting documentation, and that the names of Digital or MIT not be used in advertising or publicity pertaining to distribution of the -software without specific, written prior permission. +software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL @@ -133,9 +133,9 @@ XCreateGC( InitField(function, GCFunction, GXcopy); InitField(plane_mask, GCPlaneMask, (unsigned long)(~0)); - InitField(foreground, GCForeground, + InitField(foreground, GCForeground, BlackPixelOfScreen(DefaultScreenOfDisplay(display))); - InitField(background, GCBackground, + InitField(background, GCBackground, WhitePixelOfScreen(DefaultScreenOfDisplay(display))); InitField(line_width, GCLineWidth, 1); InitField(line_style, GCLineStyle, LineSolid); |