diff options
author | das <das> | 2006-04-28 06:02:57 (GMT) |
---|---|---|
committer | das <das> | 2006-04-28 06:02:57 (GMT) |
commit | 7082b71f45c55fa8460b37254ca0b47f42c2adf1 (patch) | |
tree | 5b3992c68a12ca95ff81a211d111286d7c82c2e0 /macosx/tkMacOSXDebug.c | |
parent | fb1dd7d7db4f17aa2f7d203c90974bc6b0b983e0 (diff) | |
download | tk-7082b71f45c55fa8460b37254ca0b47f42c2adf1.zip tk-7082b71f45c55fa8460b37254ca0b47f42c2adf1.tar.gz tk-7082b71f45c55fa8460b37254ca0b47f42c2adf1.tar.bz2 |
* macosx/tkMacOSXWm.c (TkWmMapWindow, InitialWindowBounds): fix use of
potentially stale window position in initial configure event on first
map of a window. [Bug 1476443]
(TkMacOSXWindowOffset): use modern GetWindowStructureWidths API.
* macosx/tkMacOSXInt.h:
* macosx/tkMacOSXMouseEvent.c (TkGenerateButtonEventForXPointer): new
internal function to generate button events for current pointer
directly, without requiring prior call to XQueryPointer().
* macosx/tkMacOSXMouseEvent.c (XQueryPointer): implement return of
window-local pointer position.
* macosx/tkMacOSXInt.h: use improvements above to avoid calls to
* macosx/tkMacOSXKeyEvent.c: GlobalToLocal() when the current port might
* macosx/tkMacOSXMenu.c: not be set correctly. May fix [Bug 1243318]
* macosx/tkMacOSXMenus.c:
* macosx/tkMacOSXScale.c:
* macosx/tkMacOSXScrlbr.c:
* tkAboutDlg.r: update copyright.
* macosx/tkMacOSXCarbonEvents.c: sync with HEAD
* macosx/tkMacOSXDebug.c:
* macosx/tkMacOSXDebug.h:
* macosx/tkMacOSXDraw.c:
* macosx/tkMacOSXEvent.c:
* macosx/tkMacOSXEvent.h:
* macosx/tkMacOSXFont.h:
* macosx/tkMacOSXInit.c:
* macosx/tkMacOSXInt.h:
* macosx/tkMacOSXKeyEvent.c:
* macosx/tkMacOSXMenu.c:
* macosx/tkMacOSXMenubutton.c:
* macosx/tkMacOSXMouseEvent.c:
* macosx/tkMacOSXSend.c:
* macosx/tkMacOSXTest.c:
* macosx/tkMacOSXWindowEvent.c:
* macosx/tkMacOSXWm.c:
Diffstat (limited to 'macosx/tkMacOSXDebug.c')
-rw-r--r-- | macosx/tkMacOSXDebug.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/macosx/tkMacOSXDebug.c b/macosx/tkMacOSXDebug.c index 37d2750..4c96326 100644 --- a/macosx/tkMacOSXDebug.c +++ b/macosx/tkMacOSXDebug.c @@ -50,7 +50,7 @@ * software in accordance with the terms specified in this * license. * - * RCS: @(#) $Id: tkMacOSXDebug.c,v 1.2.2.5 2006/01/10 05:38:20 das Exp $ + * RCS: @(#) $Id: tkMacOSXDebug.c,v 1.2.2.6 2006/04/28 06:02:59 das Exp $ */ #include "tkMacOSXInt.h" @@ -249,7 +249,7 @@ static MyEventName classicEventNames [] = { { 0, NULL } }; -char * +MODULE_SCOPE char * CarbonEventToAscii(EventRef eventRef, char * buf) { EventClass eventClass; @@ -293,7 +293,7 @@ CarbonEventToAscii(EventRef eventRef, char * buf) return iBuf; } -char * +MODULE_SCOPE char * CarbonEventKindToAscii(EventRef eventRef, char * buf ) { EventClass eventClass; @@ -329,7 +329,7 @@ CarbonEventKindToAscii(EventRef eventRef, char * buf ) return buf; } -char * +MODULE_SCOPE char * ClassicEventToAscii(EventRecord * eventPtr, char * buf ) { MyEventName * names = NULL; @@ -359,14 +359,14 @@ ClassicEventToAscii(EventRecord * eventPtr, char * buf ) } -void +MODULE_SCOPE void printPoint(char * tag, Point * p ) { fprintf(stderr,"%s %4d %4d\n", tag,p->h,p->v ); } -void +MODULE_SCOPE void printRect(char * tag, Rect * r ) { fprintf(stderr,"%s %4d %4d %4d %4d (%dx%d)\n", @@ -374,7 +374,7 @@ printRect(char * tag, Rect * r ) r->right - r->left + 1, r->bottom - r->top + 1); } -void +MODULE_SCOPE void printRegion(char * tag, RgnHandle rgn ) { Rect r; @@ -382,7 +382,7 @@ printRegion(char * tag, RgnHandle rgn ) printRect(tag,&r); } -void +MODULE_SCOPE void printWindowTitle(char * tag, WindowRef window ) { Str255 title; @@ -410,7 +410,7 @@ static MsgName msgNames [] = { { -1, NULL } }; -char * +MODULE_SCOPE char * TkMacOSXMenuMessageToAscii(int msg, char * s) { MsgName * msgNamePtr; @@ -438,7 +438,7 @@ static MsgName trackingNames [] = { { -1, NULL } }; -char * +MODULE_SCOPE char * MouseTrackingResultToAscii(MouseTrackingResult r, char * buf) { MsgName * namePtr; @@ -480,7 +480,7 @@ MouseTrackingResultToAscii(MouseTrackingResult r, char * buf) *---------------------------------------------------------------------- */ -void * +MODULE_SCOPE void * TkMacOSXGetNamedDebugSymbol(const char* module, const char* symbol) { void* addr = TkMacOSXGetNamedSymbol(module, symbol); |