mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Reinstated some needs display stuff
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5358 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c53db9fc31
commit
d6428f431a
2 changed files with 31 additions and 13 deletions
|
@ -1,8 +1,9 @@
|
|||
Thu Dec 2 6:07:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Thu Dec 2 8:23:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSImage.m: Use opacity values from image reps to cache more
|
||||
intelligently, and set the opacity of caches correctly. Removed an ivar
|
||||
* Headers/AppKit/NSImage.h: removed _repList ivar - not needed
|
||||
* Source/NSView.m: Re-instate needs-display stuff for actual rectangles.
|
||||
|
||||
Thu Dec 2 01:28:34 1999 Nicola Pero <n.pero@mi.flashnet.it>
|
||||
|
||||
|
|
|
@ -272,6 +272,7 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
_rFlags.has_subviews = 1;
|
||||
[aView resetCursorRects];
|
||||
RELEASE(aView);
|
||||
[self setNeedsDisplayInRect: [aView frame]];
|
||||
}
|
||||
|
||||
- (void) addSubview: (NSView*)aView
|
||||
|
@ -310,6 +311,7 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
_rFlags.has_subviews = 1;
|
||||
[aView resetCursorRects];
|
||||
RELEASE(aView);
|
||||
[self setNeedsDisplayInRect: [aView frame]];
|
||||
}
|
||||
|
||||
- (NSView*) ancestorSharedWithView: (NSView*)aView
|
||||
|
@ -378,17 +380,23 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
* system will be different.
|
||||
*/
|
||||
if (coordinates_valid)
|
||||
(*invalidateImp)(self, invalidateSel);
|
||||
|
||||
{
|
||||
(*invalidateImp)(self, invalidateSel);
|
||||
}
|
||||
if (!super_view)
|
||||
return;
|
||||
|
||||
{
|
||||
return;
|
||||
}
|
||||
if ([window firstResponder] == self)
|
||||
[window makeFirstResponder: window];
|
||||
{
|
||||
[window makeFirstResponder: window];
|
||||
}
|
||||
RETAIN(self);
|
||||
[super_view->sub_views removeObjectIdenticalTo: self];
|
||||
if ([super_view->sub_views count] == 0)
|
||||
super_view->_rFlags.has_subviews = 0;
|
||||
{
|
||||
super_view->_rFlags.has_subviews = 0;
|
||||
}
|
||||
super_view = nil;
|
||||
[self viewWillMoveToWindow: nil];
|
||||
RELEASE(self);
|
||||
|
@ -404,17 +412,24 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
* system will be different.
|
||||
*/
|
||||
if (coordinates_valid)
|
||||
(*invalidateImp)(self, invalidateSel);
|
||||
|
||||
{
|
||||
(*invalidateImp)(self, invalidateSel);
|
||||
}
|
||||
if (!super_view)
|
||||
return;
|
||||
|
||||
{
|
||||
return;
|
||||
}
|
||||
if ([window firstResponder] == self)
|
||||
[window makeFirstResponder: window];
|
||||
{
|
||||
[window makeFirstResponder: window];
|
||||
}
|
||||
RETAIN(self);
|
||||
[super_view->sub_views removeObjectIdenticalTo: self];
|
||||
if ([super_view->sub_views count] == 0)
|
||||
super_view->_rFlags.has_subviews = 0;
|
||||
{
|
||||
super_view->_rFlags.has_subviews = 0;
|
||||
}
|
||||
[super_view setNeedsDisplayInRect: [self frame]];
|
||||
super_view = nil;
|
||||
[self viewWillMoveToWindow: nil];
|
||||
RELEASE(self);
|
||||
|
@ -446,6 +461,7 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
_rFlags.has_subviews = 1;
|
||||
[newView resetCursorRects];
|
||||
RELEASE(newView);
|
||||
[self setNeedsDisplayInRect: [newView frame]];
|
||||
}
|
||||
else if ([sub_views indexOfObjectIdenticalTo: oldView] != NSNotFound)
|
||||
{
|
||||
|
@ -479,6 +495,7 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
_rFlags.has_subviews = 1;
|
||||
[newView resetCursorRects];
|
||||
RELEASE(newView);
|
||||
[self setNeedsDisplayInRect: [newView frame]];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue