summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2025-09-12 14:14:26 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2025-09-12 14:14:26 (GMT)
commit87a60afbc2b6575f5d95996436bdaca5d138fdaf (patch)
tree7c260cd92b99ab7bf6d3265c42e9c2fdbec2bc3e /generic
parentbc0bf14e28a221b797b6cae526d33efa8a3df9be (diff)
parentdd655f079219fe95caa1051af4c6ec6e0c9507ef (diff)
downloadtk-core-no-xp-theme.zip
tk-core-no-xp-theme.tar.gz
tk-core-no-xp-theme.tar.bz2
Eliminate classic and XP theme on Windowscore-no-xp-theme
Diffstat (limited to 'generic')
-rw-r--r--generic/tkIntPlatDecls.h2
-rw-r--r--generic/tkStubInit.c6
2 files changed, 8 insertions, 0 deletions
diff --git a/generic/tkIntPlatDecls.h b/generic/tkIntPlatDecls.h
index 7d55a30..b613cfd 100644
--- a/generic/tkIntPlatDecls.h
+++ b/generic/tkIntPlatDecls.h
@@ -738,6 +738,8 @@ extern const TkIntPlatStubs *tkIntPlatStubsPtr;
#ifndef TK_NO_DEPRECATED
# define TkMacOSXDrawable Tk_MacOSXGetNSWindowForDrawable
+# undef TkWinGetPlatformTheme
+# define TkWinGetPlatformTheme() 3
#endif
#undef TCL_STORAGE_CLASS
diff --git a/generic/tkStubInit.c b/generic/tkStubInit.c
index b3fe123..f5dfb5b 100644
--- a/generic/tkStubInit.c
+++ b/generic/tkStubInit.c
@@ -43,6 +43,11 @@ MODULE_SCOPE const TkStubs tkStubs;
#undef XPutImage
#define TkUnusedStubEntry 0
+#ifdef TK_NO_DEPRECATED
+# undef TkWinGetPlatformTheme
+# define TkWinGetPlatformTheme 0
+#endif /* TK_NO_DEPRECATED */
+
#if !defined(MAC_OSX_TK)
static int
doNothing(void)
@@ -188,6 +193,7 @@ TkPutImage(
# define TkWinDialogDebug 0
# define TkWinGetMenuSystemDefault 0
# define TkWinSetHINSTANCE 0
+# undef TkWinGetPlatformTheme
# define TkWinGetPlatformTheme 0
# define TkWinChildProc 0