* Headers/Additions/GNUstepGUI/GSTheme.h: Added new method declaration

for drawButtonCell:...
	* Source/GSThemeDrawing.m: Added implementation for new method.  The
	purpose of the method is to allow the theme to override images with
	native images which may be theme dependent.
	* Source/NSButtonCell.m: Use the new method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28522 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2009-08-23 18:07:39 +00:00
parent 8949deeb03
commit bc95107253
4 changed files with 41 additions and 10 deletions

View file

@ -915,16 +915,10 @@ typedef struct _GSButtonCellFlags
{
position.y += size.height;
}
if (_cell.is_disabled && _image_dims_when_disabled)
{
[anImage dissolveToPoint: position fraction: 0.5];
}
else
{
[anImage compositeToPoint: position
operation: NSCompositeSourceOver];
}
[[GSTheme theme] drawButtonCellImage: self
withFrame: aRect
position: position];
}
}