Deferred window fixups

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7646 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2000-09-29 03:55:30 +00:00
parent 77c74a324e
commit 358af35b5f
5 changed files with 86 additions and 38 deletions

View file

@ -532,11 +532,11 @@ GSSetDragTypes(NSView* obj, NSArray *types)
if (_window != nil)
{
[ctxt _removeDragTypes: t fromWindow: [_window windowNumber]];
[ctxt _removeDragTypes: t fromWindow: _window];
}
if (newWindow != nil)
{
[ctxt _addDragTypes: t toWindow: [newWindow windowNumber]];
[ctxt _addDragTypes: t toWindow: newWindow];
}
}
@ -2307,10 +2307,10 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
{
NSGraphicsContext *ctxt = GSCurrentContext();
[ctxt _addDragTypes: t toWindow: [_window windowNumber]];
[ctxt _addDragTypes: t toWindow: _window];
if (o != nil)
{
[ctxt _removeDragTypes: o fromWindow: [_window windowNumber]];
[ctxt _removeDragTypes: o fromWindow: _window];
}
}
TEST_RELEASE(o);
@ -2325,7 +2325,7 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
NSGraphicsContext *ctxt = GSCurrentContext();
NSArray *t = GSGetDragTypes(self);
[ctxt _removeDragTypes: t fromWindow: [_window windowNumber]];
[ctxt _removeDragTypes: t fromWindow: _window];
}
GSRemoveDragTypes(self);
_rFlags.has_draginfo = 0;