* GSThemeDrawing.m: Move code in NSTableHeaderView which leaves a

1pt gap underneath table headers to GSThemeDrawing, since it only
looks decent with a NeXT-like theme. This fixes the
misalignment between the table corner and the table headers visible
in the Narcissus theme


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29567 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2010-02-12 06:59:12 +00:00
parent 28d9358233
commit 94946a1f50
3 changed files with 18 additions and 6 deletions

View file

@ -1,3 +1,12 @@
2010-02-11 Eric Wasylishen <ewasylishen@gmail.com>
* NSTableHeaderView.m:
* GSThemeDrawing.m: Move code in NSTableHeaderView which leaves a
1pt gap underneath table headers to GSThemeDrawing, since it only
looks decent with a NeXT-like theme. This fixes the
misalignment between the table corner and the table headers visible
in the Narcissus theme.
2010-02-11 Nicola Pero <nicola.pero@meta-innovation.com>
* Source/GNUmakefile.postamble: Removed obsolete manual dependency

View file

@ -1089,6 +1089,14 @@ static NSImage *spinningImages[MaxCount];
if (tiles == nil)
{
NSRect rect;
// Leave a 1pt thick horizontal line underneath the header
if (![controlView isFlipped])
{
cellFrame.origin.y++;
}
cellFrame.size.height--;
if (state == GSThemeHighlightedState)
{
rect = [self drawButton: cellFrame withClip: cellFrame];

View file

@ -188,12 +188,7 @@
lastColumnToDraw = [_tableView numberOfColumns] - 1;
drawingRect = [self headerRectOfColumn: firstColumnToDraw];
if (![self isFlipped])
{
drawingRect.origin.y++;
}
drawingRect.size.height--;
columns = [_tableView tableColumns];
highlightedTableColumn = [_tableView highlightedTableColumn];