From 39e8f87d4a6a9ece0258ca267131f6e8a744dad3 Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Sat, 4 Aug 2007 20:17:03 +0000 Subject: [PATCH] Toolbar baseline separator always hidden. git-svn-id: http://macvim.googlecode.com/svn/trunk@79 96c4425d-ca35-0410-94e5-3396d5c13a8f --- MMVimController.m | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/MMVimController.m b/MMVimController.m index bdbd7f5c61..5ca667d713 100644 --- a/MMVimController.m +++ b/MMVimController.m @@ -428,12 +428,6 @@ static NSMenuItem *findMenuItemWithTagInMenu(NSMenu *root, int tag) } else if (ShowTabBarMsgID == msgid) { //NSLog(@"Showing tab bar"); - // The tab bar has it's own baseline separator, so hide the one - // belonging to the toolbar whenever the tab bar is visible. - // BUG: The window auto shows the separator when clicking the show/hide - // toolbar button. - [toolbar setShowsBaselineSeparator:NO]; - // HACK! Vim sends several draw commands etc. after the show message // and these can mess up the display when showing the tab bar results // in the window having to resize to fit the screen; delaying this @@ -443,13 +437,6 @@ static NSMenuItem *findMenuItemWithTagInMenu(NSMenu *root, int tag) //[windowController showTabBar:self]; } else if (HideTabBarMsgID == msgid) { //NSLog(@"Hiding tab bar"); - - // The tab bar has it's own baseline separator, so hide the one - // belonging to the toolbar whenever the tab bar is visible. - // BUG: The window auto shows the separator when clicking the show/hide - // toolbar button. - [toolbar setShowsBaselineSeparator:YES]; - [windowController hideTabBar:self]; } else if (SetTextDimensionsMsgID == msgid) { const void *bytes = [data bytes]; @@ -555,6 +542,7 @@ static NSMenuItem *findMenuItemWithTagInMenu(NSMenu *root, int tag) //NSLog(@"Creating toolbar with identifier %@", ident); toolbar = [[NSToolbar alloc] initWithIdentifier:ident]; + [toolbar setShowsBaselineSeparator:NO]; [toolbar setDelegate:self]; [toolbar setDisplayMode:NSToolbarDisplayModeIconOnly]; [toolbar setSizeMode:NSToolbarSizeModeSmall];