summaryrefslogtreecommitdiffstats
path: root/mac/tkMacAppInit.c
diff options
context:
space:
mode:
authorwelch <welch>1998-07-06 22:59:42 (GMT)
committerwelch <welch>1998-07-06 22:59:42 (GMT)
commitb4296ca11c7d47f45dd0f31d0092bb5fef77e34e (patch)
treea46fab6a4367b8c3cb936973bb23689b55dc2597 /mac/tkMacAppInit.c
parent953b18d6d812dde54410640a66952a10df1e6ef9 (diff)
downloadtk-b4296ca11c7d47f45dd0f31d0092bb5fef77e34e.zip
tk-b4296ca11c7d47f45dd0f31d0092bb5fef77e34e.tar.gz
tk-b4296ca11c7d47f45dd0f31d0092bb5fef77e34e.tar.bz2
Mac updates for 8.0.3-2
Diffstat (limited to 'mac/tkMacAppInit.c')
-rw-r--r--mac/tkMacAppInit.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/mac/tkMacAppInit.c b/mac/tkMacAppInit.c
index ebc2c18..bbbbba0 100644
--- a/mac/tkMacAppInit.c
+++ b/mac/tkMacAppInit.c
@@ -18,6 +18,7 @@
#include <Dialogs.h>
#include <SegLoad.h>
#include <Traps.h>
+#include <Appearance.h>
#include "tk.h"
#include "tkInt.h"
@@ -221,6 +222,17 @@ MacintoshInit()
*/
tcl_macQdPtr = &qd;
+ /*
+ * If appearance is present, then register Tk as an Appearance client
+ * This means that the mapping from non-Appearance to Appearance cdefs
+ * will be done for Tk regardless of the setting in the Appearance
+ * control panel.
+ */
+
+ if (TkMacHaveAppearance()) {
+ RegisterAppearanceClient();
+ }
+
InitGraf(&tcl_macQdPtr->thePort);
InitFonts();
InitWindows();