summaryrefslogtreecommitdiff
authorJeremy Huddleston <jeremyhu@freedesktop.org>2009-01-17 03:26:07 (GMT)
committer Jeremy Huddleston <jeremyhu@freedesktop.org>2009-01-17 03:26:07 (GMT)
commitb57cb05c69acbedb00a97234099ea104309aa2cb (patch) (side-by-side diff)
tree0363c0228ae1d560f8f0c42a7d9d11f9567e152d
parent94e417ac87a98cd5c6bf2d7c495d702748398931 (diff)
downloadxserver-b57cb05c69acbedb00a97234099ea104309aa2cb.zip
xserver-b57cb05c69acbedb00a97234099ea104309aa2cb.tar.gz
XQuartz: SnowLeopard: Help system book name changed in 10.6
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--hw/xquartz/X11Controller.m17
1 files changed, 9 insertions, 8 deletions
diff --git a/hw/xquartz/X11Controller.m b/hw/xquartz/X11Controller.m
index 9b30fa6..adf861c 100644
--- a/hw/xquartz/X11Controller.m
+++ b/hw/xquartz/X11Controller.m
@@ -687,18 +687,19 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row
[prefs_panel makeKeyAndOrderFront:sender];
}
-- (IBAction) quit:sender
-{
- DarwinSendDDXEvent(kXquartzQuit, 0);
+- (IBAction) quit:sender {
+ DarwinSendDDXEvent(kXquartzQuit, 0);
}
-- (IBAction) x11_help:sender
-{
- AHLookupAnchor ((CFStringRef)NSLocalizedString(@"Mac Help", no comment), CFSTR ("mchlp2276"));
+- (IBAction) x11_help:sender {
+#if MAC_OS_X_VERSION_MIN_REQUIRED < 1060
+ AHLookupAnchor((CFStringRef)NSLocalizedString(@"Mac Help", no comment), CFSTR("mchlp2276"));
+#else
+ AHLookupAnchor(CFSTR("com.apple.machelp"), CFSTR("mchlp2276"));
+#endif
}
-- (OSX_BOOL) validateMenuItem:(NSMenuItem *)item
-{
+- (OSX_BOOL) validateMenuItem:(NSMenuItem *)item {
NSMenu *menu = [item menu];
if (item == toggle_fullscreen_item)