mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 21:20:38 +00:00
Access superclass ivars directly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4786 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0d1b3b95af
commit
178e4956bd
15 changed files with 87 additions and 73 deletions
|
@ -313,14 +313,14 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
* If neither are descendants of each other and either does not have a
|
||||
* superview then they cannot have a common ancestor
|
||||
*/
|
||||
if (![self superview])
|
||||
if (!super_view)
|
||||
return nil;
|
||||
|
||||
if (![aView superview])
|
||||
return nil;
|
||||
|
||||
/* Find the common ancestor of superviews */
|
||||
return [[self superview] ancestorSharedWithView: [aView superview]];
|
||||
return [super_view ancestorSharedWithView: [aView superview]];
|
||||
}
|
||||
|
||||
- (BOOL) isDescendantOf: (NSView*)aView
|
||||
|
@ -999,7 +999,7 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
{
|
||||
id e, o;
|
||||
|
||||
if ([self autoresizesSubviews] == NO || is_rotated_from_base == YES)
|
||||
if (autoresize_subviews == NO || is_rotated_from_base == YES)
|
||||
return;
|
||||
|
||||
e = [sub_views objectEnumerator];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue