* Source/GSThemeDrawing.m (-buttonBorderForCell:style:state:):

Use the new contentRect when calculating the border for tiles


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29425 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2010-01-27 23:24:21 +00:00
parent 3402d1c500
commit 4e82769c24
2 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2010-01-27 Eric Wasylishen <ewasylishen@gmail.com>
* Source/GSThemeDrawing.m (-buttonBorderForCell:style:state:):
Use the new contentRect when calculating the border for tiles
2010-01-27 Eric Wasylishen <ewasylishen@gmail.com>
* Source/GSThemeTools.m: Correct implementation of contentRectForRect:

View file

@ -195,10 +195,10 @@
}
else
{
NSSize cls = tiles->rects[TileCL].size;
NSSize bms = tiles->rects[TileBM].size;
return NSMakeSize(cls.width, bms.height);
// FIXME: We assume the button's top and right padding are the same as
// its bottom and left.
return NSMakeSize(tiles->contentRect.origin.x,
tiles->contentRect.origin.y);
}
}