-/* $Id: mac.c,v 1.42 2003/02/01 23:42:30 ben Exp $ */
+/* $Id: mac.c,v 1.44 2003/02/04 00:33:11 ben Exp $ */
/*
* Copyright (c) 1999 Ben Harris
* All rights reserved.
#include <DiskInit.h>
#include <Gestalt.h>
#include <LowMem.h>
+#include <Navigation.h>
#include <Resources.h>
#include <Script.h>
#include <TextCommon.h>
mac_gestalts.uncvattr = (*ti)->tecUnicodeConverterFeatures;
DisposeHandle((Handle)ti);
}
+ /* Navigation Services? */
+ if (NavServicesAvailable())
+ mac_gestalts.navsvers = NavLibraryVersion();
+ else
+ mac_gestalts.navsvers = 0;
sk_init();
window = FrontWindow();
/* Things which do the same whatever window we're in. */
switch (menu) {
-#if !TARGET_API_MAC_CARBON
case mApple:
switch (item) {
case iAbout:
mac_openabout();
goto done;
+#if !TARGET_API_MAC_CARBON
default:
GetMenuItemText(GetMenuHandle(mApple), item, da);
OpenDeskAcc(da);
goto done;
+#endif
}
break;
-#endif
case mFile:
switch (item) {
case iNew:
* Make the menus look right before the user gets to see them.
*/
#if TARGET_API_MAC_CARBON
-/* XXX Is this good enough? What about Carbon on OS 8.1? */
#define EnableItem EnableMenuItem
#define DisableItem DisableMenuItem
#endif