Change return of -drawTitle:withFrame:inView to NSRect instead of void.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38049 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
gcasa 2014-08-21 02:52:06 +00:00
parent cb6f3d721e
commit e8c87f46a2
3 changed files with 17 additions and 6 deletions

View file

@ -1068,12 +1068,16 @@ typedef struct _GSButtonCellFlags
}
}
- (void) drawTitle: (NSAttributedString*)titleToDisplay
withFrame: (NSRect)cellFrame
inView: (NSView*)controlView
- (NSRect) drawTitle: (NSAttributedString*)titleToDisplay
withFrame: (NSRect)cellFrame
inView: (NSView*)controlView
{
[self _drawAttributedText: titleToDisplay
inFrame: cellFrame];
return [titleToDisplay
boundingRectWithSize: cellFrame.size
options: NSStringDrawingUsesLineFragmentOrigin];
}
// Private helper method overridden in subclasses