1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 00:34:04 +00:00

small height adjustment

This commit is contained in:
Mitchell Livingston 2008-02-19 05:49:41 +00:00
parent 4d4b4c1c36
commit 3aae015468
2 changed files with 4 additions and 6 deletions

View file

@ -2476,7 +2476,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
- (id) outlineView: (NSOutlineView *) outlineView objectValueForTableColumn: (NSTableColumn *) tableColumn byItem: (id) item
{
if (![item isKindOfClass: [Torrent class]])
if (tableColumn)
{
NSString * ident = [tableColumn identifier];
if ([ident isEqualToString: @"Group"])
@ -2488,10 +2488,8 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
else if ([ident isEqualToString: @"Color"])
{
int group = [[item objectForKey: @"Group"] intValue];
if (group == -1)
return [NSImage imageNamed: NSImageNameStopProgressTemplate];
else
return [[GroupsWindowController groups] imageForIndex: group isSmall: YES];
return group != -1 ? [[GroupsWindowController groups] imageForIndex: group isSmall: YES]
: [NSImage imageNamed: NSImageNameStopProgressTemplate];
}
else if ([ident isEqualToString: @"UL Image"])
return [NSImage imageNamed: @"UpArrowGroupTemplate.png"];

View file

@ -45,7 +45,7 @@
#define PADDING_HORIZONTAL 3.0
#define PADDING_BETWEEN_IMAGE_AND_TITLE 5.0
#define PADDING_BETWEEN_IMAGE_AND_BAR 7.0
#define PADDING_ABOVE_TITLE 2.0
#define PADDING_ABOVE_TITLE 4.0
#define PADDING_ABOVE_MIN_STATUS 4.0
#define PADDING_BETWEEN_TITLE_AND_MIN_STATUS 2.0
#define PADDING_BETWEEN_TITLE_AND_PROGRESS 1.0