Bugfixes for removing view from view and for ordring windos in.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12392 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-02-03 07:23:10 +00:00
parent 8ddb9f1d72
commit e63280a9fb
3 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,13 @@
2002-02-03 Fred Kiefer <FredKiefer@gmx.de>, Richard <rfm@gnu.org>
* Source/NSView.m: ([removeSubview:]) call ([setNeedsDisplay:NO]) in
the subview so that, if subsequently added to another view, and marked
for display, the area needing display will be updated to parent views
correctly.
* Source/NSWindow.m: ([orderWindow:relativeTo:]) fix to restart
automatic update events correctly when a window which was ordered
out is ordered back in again.
2002-02-02 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSImage.m

View file

@ -506,6 +506,7 @@ GSSetDragTypes(NSView* obj, NSArray *types)
[aSubview setNextResponder: nil];
RETAIN(aSubview);
[_sub_views removeObjectIdenticalTo: aSubview];
[aSubview setNeedsDisplay: NO];
[aSubview viewDidMoveToWindow];
[aSubview viewDidMoveToSuperview];
RELEASE(aSubview);

View file

@ -1313,7 +1313,7 @@ static NSNotificationCenter *nc = nil;
if (place != NSWindowOut)
{
if (_rFlags.needs_display == NO)
if (_rFlags.needs_display == YES)
{
/*
* Once we are ordered back in, we will want to update the window