mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:40:47 +00:00
Committing alex's change to NSOutlineView
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13545 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b1b403c85a
commit
1360c93876
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
Fri Apr 26 12:45:07 2002 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
|
* Source/NSOutlineView.m: Added a patch by
|
||||||
|
Alex Malmberg <alexander@malmberg.org> to correct behavior of
|
||||||
|
the NSOutlineView when the outline column is not in the
|
||||||
|
leftmost position.
|
||||||
|
|
||||||
Wed Apr 24 10:54:47 2002 Nicola Pero <n.pero@mi.flashnet.it>
|
Wed Apr 24 10:54:47 2002 Nicola Pero <n.pero@mi.flashnet.it>
|
||||||
|
|
||||||
* Model/GMAppKit.m ([NSMenuItem -initWithModelUnarchiver:]): Do not
|
* Model/GMAppKit.m ([NSMenuItem -initWithModelUnarchiver:]): Do not
|
||||||
|
|
|
@ -119,7 +119,7 @@ static NSImage *unexpandable = nil;
|
||||||
[super initWithFrame: frame];
|
[super initWithFrame: frame];
|
||||||
|
|
||||||
// Initial values
|
// Initial values
|
||||||
_indentationMarkerFollowsCell = NO;
|
_indentationMarkerFollowsCell = YES;
|
||||||
_autoResizesOutlineColumn = NO;
|
_autoResizesOutlineColumn = NO;
|
||||||
_autosaveExpandedItems = NO;
|
_autosaveExpandedItems = NO;
|
||||||
_indentationPerLevel = 0.0;
|
_indentationPerLevel = 0.0;
|
||||||
|
@ -867,7 +867,9 @@ static NSImage *unexpandable = nil;
|
||||||
{
|
{
|
||||||
position = _indentationPerLevel * level;
|
position = _indentationPerLevel * level;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
position += _columnOrigins[_clickedColumn];
|
||||||
|
|
||||||
if(location.x >= position && location.x <= position + [image size].width)
|
if(location.x >= position && location.x <= position + [image size].width)
|
||||||
{
|
{
|
||||||
if(![self isItemExpanded: [self itemAtRow: _clickedRow]])
|
if(![self isItemExpanded: [self itemAtRow: _clickedRow]])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue