diff --git a/ChangeLog b/ChangeLog index c52a533a7..a6572bd39 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,7 +2,8 @@ * Headers/AppKit/NSTabViewItem.h: defined some non-spec methods. * Source/NSTabView.m: added event code. you can now select tabs. - Not perfect yet, but it works (i.e. click around the text.) + Not perfect yet, but it works (i.e. click around the text.) Also + fixed image problem with left most tab being selected. * Source/NSTabViewItem.m: cache tabrect for quick retrieval. * Source/NSMenuView.m: removed an extra call to flushwindow. diff --git a/Source/NSTabView.m b/Source/NSTabView.m index c415a6f17..616a8813b 100644 --- a/Source/NSTabView.m +++ b/Source/NSTabView.m @@ -219,9 +219,11 @@ iP.x = rect.origin.x; iP.y = rect.size.height; - if (itemState == NSSelectedTab) - [[NSImage imageNamed:@"common_TabUnSelectedLeft.tiff"] + if (itemState == NSSelectedTab) { + iP.y -= 1; + [[NSImage imageNamed:@"common_TabSelectedLeft.tiff"] compositeToPoint:iP operation: NSCompositeSourceOver]; + } else if (itemState == NSBackgroundTab) [[NSImage imageNamed:@"common_TabUnSelectedLeft.tiff"] compositeToPoint:iP operation: NSCompositeSourceOver];