diff options
author | wolfsuit <wolfsuit> | 2004-02-16 00:19:41 (GMT) |
---|---|---|
committer | wolfsuit <wolfsuit> | 2004-02-16 00:19:41 (GMT) |
commit | 0dc2e89b80549a1b01b88aa601b97a9430759b10 (patch) | |
tree | 367e94ab4e64d32b901564923e10633b826fd06c /macosx/tkMacOSXWm.c | |
parent | caf639e27f3647e678590382c2dd0739dba625a5 (diff) | |
download | tk-0dc2e89b80549a1b01b88aa601b97a9430759b10.zip tk-0dc2e89b80549a1b01b88aa601b97a9430759b10.tar.gz tk-0dc2e89b80549a1b01b88aa601b97a9430759b10.tar.bz2 |
Fix a bug in tk_getOpenFile - files with no types are rejected when they would
pass in Mac OS Classic.
Add the tkMacOSXCarbonEvents.c - just a skeleton right now.
A bunch of formatting nits fixed.
Diffstat (limited to 'macosx/tkMacOSXWm.c')
-rw-r--r-- | macosx/tkMacOSXWm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index 0402e6a..61ddb1d 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXWm.c,v 1.10 2004/02/14 01:26:49 wolfsuit Exp $ + * RCS: @(#) $Id: tkMacOSXWm.c,v 1.11 2004/02/16 00:19:42 wolfsuit Exp $ */ #include <Carbon/Carbon.h> @@ -5029,7 +5029,7 @@ TkMacOSXUnregisterMacWindow( if (!windowHashInit) { Tcl_Panic("TkMacOSXUnregisterMacWindow: unmapping before inited"); } - entryPtr=Tcl_FindHashEntry(&windowTable,(char *) macWinPtr); + entryPtr = Tcl_FindHashEntry(&windowTable,(char *) macWinPtr); if (!entryPtr) { fprintf(stderr,"Unregister:failed to find window %08x\n", (int) macWinPtr ); @@ -5253,15 +5253,15 @@ TkMacOSXWindowOffset( if (!strucRgn) { if(!(strucRgn = NewRgn())) { - err=MemError(); + err = MemError(); } } if (!contRgn) { if(!(contRgn = NewRgn())) { - err=MemError(); + err = MemError(); } } - if (err==noErr) { + if (err == noErr) { GetWindowRegion(wRef, kWindowStructureRgn, strucRgn); GetWindowRegion(wRef, kWindowContentRgn, contRgn); GetRegionBounds(strucRgn,&strucRect); |