mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Fixed NSTabView drawing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4555 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c01e5f1b4d
commit
ba6ec2a017
2 changed files with 6 additions and 3 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue