diff options
author | das <das@noemail.net> | 2007-05-09 12:55:15 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2007-05-09 12:55:15 (GMT) |
commit | b51c6c8e098f7109945f1159749642b493d77a15 (patch) | |
tree | 506fdf03b09705deab71a428fb32dc8204a24c92 /macosx/tkMacOSXScrlbr.c | |
parent | 9a8dfc0310fa31ef67cab03ad037019548a321e4 (diff) | |
download | tk-b51c6c8e098f7109945f1159749642b493d77a15.zip tk-b51c6c8e098f7109945f1159749642b493d77a15.tar.gz tk-b51c6c8e098f7109945f1159749642b493d77a15.tar.bz2 |
* macosx/tkMacOSXWindowEvent.c: ensure window is brought to the front
* macosx/tkMacOSXMouseEvent.c: at the start of a window drag (except
* macosx/tkMacOSXInt.h: when cmd key is down); formatting and
whitespace fixes.
* macosx/tkMacOSXDialog.c (Tk_GetSaveFileObjCmd): add -filetypes option
processing (fixes fileDialog-0.1, fileDialog-0.2 failures).
* macosx/tkMacOSXEmbed.c (TkpMakeWindow, TkpUseWindow): fix sending of
Visibility event for embedded windows (fixes frame-3.9 hang).
* macosx/tkMacOSXScrlbr.c (ScrollbarBindProc): fix testsuite
* macosx/tkMacOSXSubwindows.c (TkMacOSXUpdateClipRgn): crashes by
adding sanity checks.
* macosx/Wish.xcodeproj/project.pbxproj: add 'DebugUnthreaded' &
* macosx/Wish.xcodeproj/default.pbxuser: 'DebugLeaks' targets and env
var settings needed to run the 'leaks' tool.
* macosx/tkMacOSXButton.c: fix debug msg typo.
FossilOrigin-Name: e7962b794c40332d1d5417b611138a9063da350a
Diffstat (limited to 'macosx/tkMacOSXScrlbr.c')
-rw-r--r-- | macosx/tkMacOSXScrlbr.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/macosx/tkMacOSXScrlbr.c b/macosx/tkMacOSXScrlbr.c index 48d153a..8e1148e 100644 --- a/macosx/tkMacOSXScrlbr.c +++ b/macosx/tkMacOSXScrlbr.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: tkMacOSXScrlbr.c,v 1.21 2007/04/23 21:24:34 das Exp $ + * RCS: @(#) $Id: tkMacOSXScrlbr.c,v 1.22 2007/05/09 12:55:16 das Exp $ */ #include "tkMacOSXInt.h" @@ -846,7 +846,9 @@ ScrollbarBindProc( * Workaround for Carbon bug where the scrollbar down arrow * sometimes gets "stuck" after the mousebutton has been released. */ - TkMacOSXSetUpClippingRgn(Tk_WindowId(scrollPtr->tkwin)); + if (scrollPtr->tkwin) { + TkMacOSXSetUpClippingRgn(Tk_WindowId(scrollPtr->tkwin)); + } Draw1Control(macScrollPtr->sbHandle); } TkMacOSXTrackingLoop(0); @@ -855,8 +857,11 @@ ScrollbarBindProc( * The HandleControlClick call will "eat" the ButtonUp event. We now * generate a ButtonUp event so Tk will unset implicit grabs etc. */ - window = Tk_WindowId(scrollPtr->tkwin); - TkGenerateButtonEventForXPointer(window); + + if (scrollPtr->tkwin) { + window = Tk_WindowId(scrollPtr->tkwin); + TkGenerateButtonEventForXPointer(window); + } if (portChanged) { QDSwapPort(savePort, NULL); |