Source/NSView.m

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14233 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Pierre-Yves Rivaille 2002-08-03 15:45:11 +00:00
parent f51c1bbf10
commit 898524e393
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2002-08-02 Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>
* Source/NSView.m ([NSView -replaceSubview:withSubview]):
The replacing subview was not inserted at the old subview's location.
2002-08-02 Adam Fedor <fedor@gnu.org>
* Merge changes from 0.8.0 into main branch.

View file

@ -595,7 +595,8 @@ GSSetDragTypes(NSView* obj, NSArray *types)
[newView viewWillMoveToWindow: _window];
[newView viewWillMoveToSuperview: self];
[newView setNextResponder: self];
[_sub_views addObject: newView];
[_sub_views insertObject: newView
atIndex: index];
_rFlags.has_subviews = 1;
[newView resetCursorRects];
[newView setNeedsDisplay: YES];