From 546ed77cd900528381628d90c37f69e7cc1e0d81 Mon Sep 17 00:00:00 2001 From: nico Date: Sat, 18 Mar 2000 00:26:41 +0000 Subject: [PATCH] Changed appearance git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6307 72102866-910b-0410-8b05-ffd578937521 --- Source/NSTableHeaderCell.m | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Source/NSTableHeaderCell.m b/Source/NSTableHeaderCell.m index 4d5fb4c26..9ee96ab9c 100644 --- a/Source/NSTableHeaderCell.m +++ b/Source/NSTableHeaderCell.m @@ -26,6 +26,7 @@ #include #include +#include #include #include @@ -45,12 +46,25 @@ static NSColor *clearCol = nil; _cell.text_align = NSCenterTextAlignment; ASSIGN (_text_color, [NSColor windowFrameTextColor]); [self setBackgroundColor: [NSColor controlShadowColor]]; - _cell.is_bordered = NO; - _cell.is_bezeled = NO; + [self setFont: [NSFont titleBarFontOfSize:12]]; + _cell.is_bezeled = YES; _textfieldcell_draws_background = YES; return self; } +- (void) drawWithFrame: (NSRect)cellFrame + inView: (NSView *)controlView +{ + if (NSIsEmptyRect (cellFrame) || ![controlView window]) + return; + + [controlView lockFocus]; + NSDrawButton (cellFrame, NSZeroRect); + [controlView unlockFocus]; + [super drawInteriorWithFrame: cellFrame inView: controlView]; +} + + // Override drawInteriorWithFrame:inView: to be able // to display images as NSCell does - (void) drawInteriorWithFrame: (NSRect)cellFrame