@@ -31,54 +31,9 @@ Tcl_AppInit(Tcl_Interp *interp)
31
31
const char * _tkinter_tk_failed ;
32
32
#endif
33
33
34
- #ifdef TK_AQUA
35
- #ifndef MAX_PATH_LEN
36
- #define MAX_PATH_LEN 1024
37
- #endif
38
- char tclLibPath [MAX_PATH_LEN ], tkLibPath [MAX_PATH_LEN ];
39
- Tcl_Obj * pathPtr ;
40
-
41
- /* pre- Tcl_Init code copied from tkMacOSXAppInit.c */
42
- Tk_MacOSXOpenBundleResources (interp , "com.tcltk.tcllibrary" ,
43
- tclLibPath , MAX_PATH_LEN , 0 );
44
-
45
- if (tclLibPath [0 ] != '\0' ) {
46
- Tcl_SetVar (interp , "tcl_library" , tclLibPath , TCL_GLOBAL_ONLY );
47
- Tcl_SetVar (interp , "tclDefaultLibrary" , tclLibPath , TCL_GLOBAL_ONLY );
48
- Tcl_SetVar (interp , "tcl_pkgPath" , tclLibPath , TCL_GLOBAL_ONLY );
49
- }
50
-
51
- if (tclLibPath [0 ] != '\0' ) {
52
- Tcl_SetVar (interp , "tcl_library" , tclLibPath , TCL_GLOBAL_ONLY );
53
- Tcl_SetVar (interp , "tclDefaultLibrary" , tclLibPath , TCL_GLOBAL_ONLY );
54
- Tcl_SetVar (interp , "tcl_pkgPath" , tclLibPath , TCL_GLOBAL_ONLY );
55
- }
56
- #endif
57
34
if (Tcl_Init (interp ) == TCL_ERROR )
58
35
return TCL_ERROR ;
59
36
60
- #ifdef TK_AQUA
61
- /* pre- Tk_Init code copied from tkMacOSXAppInit.c */
62
- Tk_MacOSXOpenBundleResources (interp , "com.tcltk.tklibrary" ,
63
- tkLibPath , MAX_PATH_LEN , 1 );
64
-
65
- if (tclLibPath [0 ] != '\0' ) {
66
- pathPtr = Tcl_NewStringObj (tclLibPath , -1 );
67
- } else {
68
- Tcl_Obj * pathPtr = TclGetLibraryPath ();
69
- }
70
-
71
- if (tkLibPath [0 ] != '\0' ) {
72
- Tcl_Obj * objPtr ;
73
-
74
- Tcl_SetVar (interp , "tk_library" , tkLibPath , TCL_GLOBAL_ONLY );
75
- objPtr = Tcl_NewStringObj (tkLibPath , -1 );
76
- Tcl_ListObjAppendElement (NULL , pathPtr , objPtr );
77
- }
78
-
79
- TclSetLibraryPath (pathPtr );
80
- #endif
81
-
82
37
#ifdef WITH_XXX
83
38
/* Initialize modules that don't require Tk */
84
39
#endif
@@ -112,11 +67,6 @@ Tcl_AppInit(Tcl_Interp *interp)
112
67
113
68
Tk_MainWindow (interp );
114
69
<
6E62
/td>115
- #ifdef TK_AQUA
116
- TkMacOSXInitAppleEvents (interp );
117
- TkMacOSXInitMenus (interp );
118
- #endif
119
-
120
70
#ifdef WITH_PIL /* 0.2b5 and later -- not yet released as of May 14 */
121
71
{
122
72
extern void TkImaging_Init (Tcl_Interp * );