diff options
author | culler <culler> | 2020-05-31 17:25:11 (GMT) |
---|---|---|
committer | culler <culler> | 2020-05-31 17:25:11 (GMT) |
commit | ab5efd62220cf2a97e23b6d0ddcb12fad9a8cfbd (patch) | |
tree | aeed2f80d756358bc2325cab131d1b01d44f8c22 /generic | |
parent | 4996dd8c53efd46d1b66d080e7c4a7faead1d373 (diff) | |
parent | 4d6ace7f224a40a423390fa6c0bb3c39d4162313 (diff) | |
download | tk-ab5efd62220cf2a97e23b6d0ddcb12fad9a8cfbd.zip tk-ab5efd62220cf2a97e23b6d0ddcb12fad9a8cfbd.tar.gz tk-ab5efd62220cf2a97e23b6d0ddcb12fad9a8cfbd.tar.bz2 |
Rename Aqua stub TkpAppCanDraw as TkpWillDrawWidget
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkFont.c | 2 | ||||
-rw-r--r-- | generic/tkInt.decls | 2 | ||||
-rw-r--r-- | generic/tkIntDecls.h | 8 | ||||
-rw-r--r-- | generic/tkStubInit.c | 2 | ||||
-rw-r--r-- | generic/tkTextDisp.c | 4 |
5 files changed, 9 insertions, 9 deletions
diff --git a/generic/tkFont.c b/generic/tkFont.c index 289a4d0..98a10f4 100644 --- a/generic/tkFont.c +++ b/generic/tkFont.c @@ -881,7 +881,7 @@ TheWorldHasChanged( * This is ignored on other platforms. */ - if (TkpAppCanDraw(NULL)) { + if (!TkpWillDrawWidget(NULL)) { return; } diff --git a/generic/tkInt.decls b/generic/tkInt.decls index 04f7d7d..df1e9b2 100644 --- a/generic/tkInt.decls +++ b/generic/tkInt.decls @@ -646,7 +646,7 @@ declare 186 aqua { void TkpRedrawWidget(Tk_Window tkwin) } declare 187 aqua { - int TkpAppCanDraw(Tk_Window tkwin) + int TkpWillDrawWidget(Tk_Window tkwin) } diff --git a/generic/tkIntDecls.h b/generic/tkIntDecls.h index 1274b71..886964d 100644 --- a/generic/tkIntDecls.h +++ b/generic/tkIntDecls.h @@ -568,7 +568,7 @@ EXTERN void TkpRedrawWidget(Tk_Window tkwin); #endif /* AQUA */ #ifdef MAC_OSX_TK /* AQUA */ /* 187 */ -EXTERN int TkpAppCanDraw(Tk_Window tkwin); +EXTERN int TkpWillDrawWidget(Tk_Window tkwin); #endif /* AQUA */ typedef struct TkIntStubs { @@ -806,7 +806,7 @@ typedef struct TkIntStubs { #endif /* WIN */ #ifdef MAC_OSX_TK /* AQUA */ void (*reserved187)(void); /* Dummy entry for stubs table backwards compatibility */ - int (*tkpAppCanDraw) (Tk_Window tkwin); /* 187 */ + int (*tkpWillDrawWidget) (Tk_Window tkwin); /* 187 */ #endif /* AQUA */ } TkIntStubs; @@ -1187,8 +1187,8 @@ extern const TkIntStubs *tkIntStubsPtr; (tkIntStubsPtr->tkpRedrawWidget) /* 186 */ #endif /* AQUA */ #ifdef MAC_OSX_TK /* AQUA */ -#define TkpAppCanDraw \ - (tkIntStubsPtr->tkpAppCanDraw) /* 187 */ +#define TkpWillDrawWidget \ + (tkIntStubsPtr->tkpWillDrawWidget) /* 187 */ #endif /* AQUA */ #endif /* defined(USE_TK_STUBS) */ diff --git a/generic/tkStubInit.c b/generic/tkStubInit.c index 9b6bb33..a0125a8 100644 --- a/generic/tkStubInit.c +++ b/generic/tkStubInit.c @@ -513,7 +513,7 @@ static const TkIntStubs tkIntStubs = { #endif /* WIN */ #ifdef MAC_OSX_TK /* AQUA */ 0, /* 187 */ /* Dummy entry for stubs table backwards compatibility */ - TkpAppCanDraw, /* 187 */ + TkpWillDrawWidget, /* 187 */ #endif /* AQUA */ }; diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index 88ad4e6..61b0df0 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -22,7 +22,7 @@ #include "tkUnixInt.h" #elif defined(MAC_OSX_TK) #include "tkMacOSXInt.h" -#define OK_TO_LOG (!TkpAppCanDraw(textPtr->tkwin)) +#define OK_TO_LOG (!TkpWillDrawWidget(textPtr->tkwin)) #endif #if !defined(MAC_OSX_TK) @@ -4175,7 +4175,7 @@ DisplayText( * warnings. */ Tcl_Interp *interp; - + if ((textPtr->tkwin == NULL) || (textPtr->flags & DESTROYED)) { /* * The widget has been deleted. Don't do anything. |