Skip to content
Browse files

Revised menu bug, added instructions for hotkey in preference panel

  • Loading branch information...
1 parent 092da6a commit 19550c64a97721aafa77367045b20897a57a95ff @snark committed May 21, 2006
Showing with 7 additions and 2 deletions.
  1. +7 −2 UKPrefsPanel.m
View
9 UKPrefsPanel.m
@@ -139,7 +139,7 @@ -(void) mapTabsToToolbar
// Set up toolbar properties: Allow customization, give a default display mode, and remember state in user defaults
[toolbar setAllowsUserCustomization: YES];
[toolbar setAutosavesConfiguration: YES];
- [toolbar setDisplayMode: NSToolbarDisplayModeIconOnly];
+ [toolbar setDisplayMode: NSToolbarDisplayModeIconAndLabel];
// Set up item list based on Tab View:
itemCount = [tabView numberOfTabViewItems];
@@ -151,7 +151,6 @@ -(void) mapTabsToToolbar
NSTabViewItem* theItem = [tabView tabViewItemAtIndex:x];
NSString* theIdentifier = [theItem identifier];
NSString* theLabel = [theItem label];
-
[itemsList setObject:theLabel forKey:theIdentifier];
}
@@ -171,6 +170,12 @@ -(void) mapTabsToToolbar
if( [toolbar respondsToSelector: @selector(setSelectedItemIdentifier:)] )
[toolbar setSelectedItemIdentifier: [currPage identifier]];
#endif
+
+ // Jam in a flexible space to seperate out our acknowledgements tab
+ // sbc
+ int foo = [[toolbar items] count] - 1;
+ [toolbar insertItemWithItemIdentifier:NSToolbarFlexibleSpaceItemIdentifier atIndex:foo];
+
}

0 comments on commit 19550c6

Please sign in to comment.
Something went wrong with that request. Please try again.