From 73ddadc0f064c8b46f5ff1b58416e4bdee9419e5 Mon Sep 17 00:00:00 2001 From: Antoine Mercadal Date: Thu, 10 Jan 2013 11:57:17 -0800 Subject: [PATCH] Add missing theme attribute in CPTableView --- AppKit/CPTableView.j | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index e4a605ef3..6c548968f 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -260,8 +260,26 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; */ + (id)themeAttributes { - return [CPDictionary dictionaryWithObjects:[[CPNull null], [CPNull null], [CPNull null], [CPNull null], [CPNull null], [CPNull null], [CPNull null], [CPNull null], 25.0] - forKeys:["alternating-row-colors", "grid-color", "highlighted-grid-color", "selection-color", "sourcelist-selection-color", "sort-image", "sort-image-reversed", "selection-radius", "default-row-height"]]; + return [CPDictionary dictionaryWithObjects:[[CPNull null], + [CPNull null], + [CPNull null], + [CPNull null], + [CPNull null], + [CPNull null], + [CPNull null], + [CPNull null], + [CPNull null], + 25.0] + forKeys:[@"alternating-row-colors", + @"grid-color", + @"highlighted-grid-color", + @"selection-color", + @"sourcelist-selection-color", + @"sort-image", + @"sort-image-reversed", + @"selection-radius", + @"image-generic-file", + @"default-row-height"]]; } - (id)initWithFrame:(CGRect)aFrame @@ -2803,7 +2821,7 @@ Your delegate can implement this method to avoid subclassing the tableview to ad */ - (CPImage)dragImageForRowsWithIndexes:(CPIndexSet)dragRows tableColumns:(CPArray)theTableColumns event:(CPEvent)dragEvent offset:(CGPoint)dragImageOffset { - return [[CPImage alloc] initWithContentsOfFile:@"Frameworks/AppKit/Resources/GenericFile.png" size:CGSizeMake(32,32)]; + return [self valueForThemeAttribute:@"image-generic-file"]; } /*!