Set default table column width to 100. Patch by Quentin Mathe

<qmathe@club-internet.fr>. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26074 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2008-02-16 16:45:10 +00:00
parent 2a16e4c54c
commit e8195fd09d
2 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2008-02-16 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTableColumn.m (-initWithIdentifier:): Set _width to 100
and _min_width to 10.
Patch by Quentin Mathe <qmathe@club-internet.fr>.
2008-02-12 Adam Fedor <fedor@gnu.org>
* Source/GSFusedSilicaContext.m: Make sure to allocate a

View file

@ -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;