Mercurial > dwindows
changeset 831:168b9db65825
Minor fix for dw_container_column_set_width() on Mac.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 27 Mar 2011 03:30:27 +0000 |
parents | 43e6282463fa |
children | 37cdfec6d3fa |
files | mac/dw.m |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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];