From e8195fd09daabbc5fb89cd58fc8fad0e13a32f15 Mon Sep 17 00:00:00 2001 From: fredkiefer Date: Sat, 16 Feb 2008 16:45:10 +0000 Subject: [PATCH] Set default table column width to 100. Patch by Quentin Mathe . git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26074 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ Source/NSTableColumn.m | 9 +++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2df330a45..aeb2c3cc4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-02-16 Fred Kiefer + + * Source/NSTableColumn.m (-initWithIdentifier:): Set _width to 100 + and _min_width to 10. + Patch by Quentin Mathe . + 2008-02-12 Adam Fedor * Source/GSFusedSilicaContext.m: Make sure to allocate a diff --git a/Source/NSTableColumn.m b/Source/NSTableColumn.m index f08e70bb8..c15766c18 100644 --- a/Source/NSTableColumn.m +++ b/Source/NSTableColumn.m @@ -99,8 +99,8 @@ - (id)initWithIdentifier: (id)anObject { self = [super init]; - _width = 0; - _min_width = 0; + _width = 100; + _min_width = 10; _max_width = 100000; _is_resizable = YES; _is_editable = YES; @@ -207,7 +207,8 @@ } } -/** Return the width of the table column. */ +/** Return the width of the table column. The + default width is 100. */ - (float)width { return _width; @@ -227,7 +228,7 @@ /** Return the column's min width. The column can in no way be resized to a width smaller than this min width. The default min width is - zero. */ + 10. */ - (float)minWidth { return _min_width;