Add MaxOS 10.4 methods and required ivars to NSButtonCell, implemented

then and use this methods. Also adjusted subclasses tothis changes.
Split off theming code for buttons into two methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24400 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2007-01-23 14:17:02 +00:00
parent f498130747
commit 200770a3e5
8 changed files with 340 additions and 181 deletions

View file

@ -1989,12 +1989,6 @@ static NSColor *shadowCol;
break;
}
if (_cell.shows_first_responder)
{
// FIXME: Should depend on _cell.focus_ring_type
NSDottedFrameRect(cellFrame);
}
// NB: We don't do any highlighting to make it easier for subclasses
// to reuse this code while doing their own custom highlighting and
// prettyfying
@ -2020,6 +2014,15 @@ static NSColor *shadowCol;
}
[self drawInteriorWithFrame: cellFrame inView: controlView];
// Draw first responder
if (_cell.shows_first_responder
&& [[controlView window] firstResponder] == controlView)
{
// FIXME: Should depend on _cell.focus_ring_type
[[GSTheme theme] drawFocusFrame: [self drawingRectForBounds: cellFrame]
view: controlView];
}
}
/**<p>Sets whether the NSCell is highlighted.</p>