diff options
author | wolfsuit <wolfsuit> | 2004-02-16 00:42:33 (GMT) |
---|---|---|
committer | wolfsuit <wolfsuit> | 2004-02-16 00:42:33 (GMT) |
commit | bd2e07339a6724dce174ffd6cbd6b66677db3f2f (patch) | |
tree | 12bebf3e6d48b35ab147bf17d2c87861606f8460 /macosx/tkMacOSXScrlbr.c | |
parent | da1ae8f179cd0cef93eef9f5ff61ea47d54340af (diff) | |
download | tk-bd2e07339a6724dce174ffd6cbd6b66677db3f2f.zip tk-bd2e07339a6724dce174ffd6cbd6b66677db3f2f.tar.gz tk-bd2e07339a6724dce174ffd6cbd6b66677db3f2f.tar.bz2 |
Backport Mac OS X specific fixes from TOT. See ChangeLog for details.
In tk_getOpenFile filters, handle the case where you have a Macintosh
file type and the files have no filetype.
Fix various formatting nits.
Diffstat (limited to 'macosx/tkMacOSXScrlbr.c')
-rw-r--r-- | macosx/tkMacOSXScrlbr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/tkMacOSXScrlbr.c b/macosx/tkMacOSXScrlbr.c index f7e40e5..778b447 100644 --- a/macosx/tkMacOSXScrlbr.c +++ b/macosx/tkMacOSXScrlbr.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXScrlbr.c,v 1.5.2.1 2003/12/17 18:08:29 wolfsuit Exp $ + * RCS: @(#) $Id: tkMacOSXScrlbr.c,v 1.5.2.2 2004/02/16 00:42:34 wolfsuit Exp $ */ #include "tkScrollbar.h" @@ -637,7 +637,7 @@ ThumbActionProc() NULL, &trackingResult); - if ((err==noErr) + if ((err == noErr) && ((trackingResult == kMouseTrackingMouseDragged) || (trackingResult == kMouseTrackingMouseMoved))) { /* @@ -681,7 +681,7 @@ ThumbActionProc() Tcl_GlobalEval(interp, cmdString.string); Tcl_Release((ClientData) interp); } - } while ((err==noErr) && trackingResult!=kMouseTrackingMouseReleased ); + } while ((err == noErr) && trackingResult != kMouseTrackingMouseReleased); Tcl_DStringFree(&cmdString); return; |