From db98b81f9cca7549b451b4f42beb818650725660 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sun, 18 Nov 2007 02:20:28 +0000 Subject: [PATCH] streamline setting inspector tabs' tooltips --- macosx/InfoTabButtonCell.m | 2 ++ macosx/InfoWindowController.m | 11 ----------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/macosx/InfoTabButtonCell.m b/macosx/InfoTabButtonCell.m index e0e005970..5cad3b38d 100644 --- a/macosx/InfoTabButtonCell.m +++ b/macosx/InfoTabButtonCell.m @@ -28,6 +28,8 @@ - (void) awakeFromNib { + [(NSMatrix *)[self controlView] setToolTip: [self title] forCell: self]; + NSNotificationCenter * nc = [NSNotificationCenter defaultCenter]; [nc addObserver: self selector: @selector(updateControlTint:) name: NSControlTintDidChangeNotification object: nil]; diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index f7d2e13d9..377fd9a8c 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -100,17 +100,6 @@ typedef enum [[fTabMatrix cellWithTag: TAB_FILES_TAG] setIcon: [NSImage imageNamed: @"InfoFiles.png"]]; [[fTabMatrix cellWithTag: TAB_OPTIONS_TAG] setIcon: [NSImage imageNamed: @"InfoOptions.png"]]; - [fTabMatrix setToolTip: NSLocalizedString(@"General Info", "Inspector -> tab tooltip") - forCell: [fTabMatrix cellWithTag: TAB_INFO_TAG]]; - [fTabMatrix setToolTip: NSLocalizedString(@"Activity", "Inspector -> tab tooltip") - forCell: [fTabMatrix cellWithTag: TAB_ACTIVITY_TAG]]; - [fTabMatrix setToolTip: NSLocalizedString(@"Peers", "Inspector -> tab tooltip") - forCell: [fTabMatrix cellWithTag: TAB_PEERS_TAG]]; - [fTabMatrix setToolTip: NSLocalizedString(@"Files", "Inspector -> tab tooltip") - forCell: [fTabMatrix cellWithTag: TAB_FILES_TAG]]; - [fTabMatrix setToolTip: NSLocalizedString(@"Options", "Inspector -> tab tooltip") - forCell: [fTabMatrix cellWithTag: TAB_OPTIONS_TAG]]; - //set selected tab fCurrentTabTag = INVALID; NSString * identifier = [[NSUserDefaults standardUserDefaults] stringForKey: @"InspectorSelected"];