diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-12-21 13:02:01 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-12-21 13:02:01 (GMT) |
commit | fbc72eac8c4bf3a9b9b81257b08dc6a5640b7dbf (patch) | |
tree | b1cbf445745737ee57b0403a87a3fcd4272502ca /generic/tkIntDecls.h | |
parent | aec52e5a9a78885e9fc2a8210e8e06bd2fad401e (diff) | |
download | tk-fbc72eac8c4bf3a9b9b81257b08dc6a5640b7dbf.zip tk-fbc72eac8c4bf3a9b9b81257b08dc6a5640b7dbf.tar.gz tk-fbc72eac8c4bf3a9b9b81257b08dc6a5640b7dbf.tar.bz2 |
TIP #606 implementation. TODO: documentation
Diffstat (limited to 'generic/tkIntDecls.h')
-rw-r--r-- | generic/tkIntDecls.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/generic/tkIntDecls.h b/generic/tkIntDecls.h index 2e96807..9d86109 100644 --- a/generic/tkIntDecls.h +++ b/generic/tkIntDecls.h @@ -267,7 +267,8 @@ EXTERN void TkSelInit(Tk_Window tkwin); EXTERN void TkSelPropProc(XEvent *eventPtr); /* Slot 84 is reserved */ /* 85 */ -EXTERN void TkSetWindowMenuBar(Tcl_Interp *interp, +TK_DEPRECATED("renamed to Tk_SetWindowMenuBar") +void TkSetWindowMenuBar(Tcl_Interp *interp, Tk_Window tkwin, const char *oldMenuName, const char *menuName); /* 86 */ @@ -660,7 +661,7 @@ typedef struct TkIntStubs { void (*tkSelInit) (Tk_Window tkwin); /* 82 */ void (*tkSelPropProc) (XEvent *eventPtr); /* 83 */ void (*reserved84)(void); - void (*tkSetWindowMenuBar) (Tcl_Interp *interp, Tk_Window tkwin, const char *oldMenuName, const char *menuName); /* 85 */ + TCL_DEPRECATED_API("renamed to Tk_SetWindowMenuBar") void (*tkSetWindowMenuBar) (Tcl_Interp *interp, Tk_Window tkwin, const char *oldMenuName, const char *menuName); /* 85 */ KeySym (*tkStringToKeysym) (const char *name); /* 86 */ int (*tkThickPolyLineToArea) (double *coordPtr, int numPoints, double width, int capStyle, int joinStyle, double *rectPtr); /* 87 */ void (*tkWmAddToColormapWindows) (TkWindow *winPtr); /* 88 */ @@ -1204,6 +1205,21 @@ extern const TkIntStubs *tkIntStubsPtr; #undef TkWmCleanup_ #undef TkSendCleanup_ #undef TkpTestsendCmd_ +#undef TkSetWindowMenuBar +#undef TkpDrawHighlightBorder +#undef TkpUseWindow +#undef TkpSetMainMenubar +#undef TkpGetOtherWindow +#undef TkpGetSystemDefault +#undef TkpMakeContainer + +#define TkSetWindowMenuBar Tk_SetWindowMenuBar +#define TkpDrawHighlightBorder Tk_DrawHighlightBorder +#define TkpUseWindow Tk_UseWindow +#define TkpSetMainMenubar Tk_SetMainMenubar +#define TkpGetOtherWindow ((TkWindow *(*)(TkWindow *))(void *)Tk_GetOtherWindow) +#define TkpGetSystemDefault Tk_GetSystemDefault +#define TkpMakeContainer Tk_MakeContainer #if !defined(MAC_OSX_TK) # undef TkpWillDrawWidget |