From ad237982b6dd9728b647b41076de9b2d76fd4af6 Mon Sep 17 00:00:00 2001 From: Fabrice Weinberg Date: Tue, 3 Jan 2012 23:54:31 +0100 Subject: [PATCH] Make the Toolbar Work in Lion. --- cocoamaxgui.mod/cocoa.macos.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocoamaxgui.mod/cocoa.macos.m b/cocoamaxgui.mod/cocoa.macos.m index fd4aad7..1c251d6 100644 --- a/cocoamaxgui.mod/cocoa.macos.m +++ b/cocoamaxgui.mod/cocoa.macos.m @@ -3738,8 +3738,8 @@ void NSAddItem(nsgadget *gadget,int index,BBString *data,BBString *tip,NSImage * break; case GADGET_TOOLBAR: toolbar=(Toolbar*)gadget->handle; - if (image==0){ - [toolbar insertItemWithItemIdentifier:NSToolbarSeparatorItemIdentifier atIndex:index]; + if (image==0){ + [toolbar insertItemWithItemIdentifier:NSToolbarSpaceItemIdentifier atIndex:index]; // Use NSToolbarSpaceItemIdentifier in Lion } else{ item=[[NSToolbarItem alloc] initWithItemIdentifier:text];