mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Toolbar baseline separator always hidden.
git-svn-id: http://macvim.googlecode.com/svn/trunk@79 96c4425d-ca35-0410-94e5-3396d5c13a8f
This commit is contained in:
+1
-13
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user