# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1301196627 0 # Node ID 168b9db658259e7ff93435e61b10905606f858a6 # Parent 43e6282463fae5eeced824a7ab917d2b4e8360f7 Minor fix for dw_container_column_set_width() on Mac. diff -r 43e6282463fa -r 168b9db65825 mac/dw.m --- a/mac/dw.m Sun Mar 27 03:24:56 2011 +0000 +++ b/mac/dw.m Sun Mar 27 03:30:27 2011 +0000 @@ -1035,6 +1035,7 @@ -(void *)userdata; -(void)setUserdata:(void *)input; -(void)setFilesystem:(int)input; +-(int)filesystem; -(id)scrollview; -(void)setScrollview:(id)input; -(void)addColumn:(NSTableColumn *)input andType:(int)type; @@ -1101,6 +1102,7 @@ -(void *)userdata { return userdata; } -(void)setUserdata:(void *)input { userdata = input; } -(void)setFilesystem:(int)input { filesystem = input; } +-(int)filesystem { return filesystem; } -(id)scrollview { return scrollview; } -(void)setScrollview:(id)input { scrollview = input; } -(void)addColumn:(NSTableColumn *)input andType:(int)type { if(tvcols) { [tvcols addObject:input]; [types addObject:[NSNumber numberWithInt:type]]; } } @@ -4870,6 +4872,10 @@ int _locked_by_me = FALSE; DW_MUTEX_LOCK; DWContainer *cont = handle; + if([cont filesystem]) + { + column++; + } NSTableColumn *col = [cont getColumn:column]; [col setWidth:width];