Removed GSTransparentView from GSTable which was making it more difficult

to port to OS X


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13239 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
nico 2002-03-26 13:46:58 +00:00
parent 0802b70a1a
commit 09b2dba5cc
3 changed files with 13 additions and 24 deletions

View file

@ -27,19 +27,6 @@
#include <AppKit/GSTable.h>
// This is meant to make drawing invisible views a little faster
@interface GSTransparentView : NSView
@end
@implementation GSTransparentView
-(void) lockFocusInRect: (NSRect)rect
{
}
-(void) unlockFocusNeedsFlush: (BOOL)flush
{
}
@end
@interface GSTable (Private)
-(void) _updateRowSize: (int)row;
-(void) _updateColumnSize: (int)column;
@ -89,7 +76,7 @@
_maxYBorder = 0;
_jails = NSZoneMalloc (NSDefaultMallocZone (),
sizeof (GSTransparentView *) * (rows * columns));
sizeof (NSView *) * (rows * columns));
_expandRow = NSZoneMalloc (NSDefaultMallocZone (),
sizeof (BOOL) * rows);
_expandColumn = NSZoneMalloc (NSDefaultMallocZone (),
@ -447,11 +434,9 @@
else // !_havePrisoner
{
if (prisonerNeedResize)
_jails[jailNumber] = [[GSTransparentView alloc]
initWithFrame: oldFrame];
_jails[jailNumber] = [[NSView alloc] initWithFrame: oldFrame];
else // !prisonerNeedResize
_jails[jailNumber] = [[GSTransparentView alloc]
initWithFrame: theFrame];
_jails[jailNumber] = [[NSView alloc] initWithFrame: theFrame];
[_jails[jailNumber] setAutoresizingMask: NSViewNotSizable];
[_jails[jailNumber] setAutoresizesSubviews: YES];
@ -629,7 +614,7 @@
* (sizeof (BOOL)));
_jails = NSZoneRealloc (NSDefaultMallocZone (), _jails,
(_numberOfRows * _numberOfColumns)
* sizeof (GSTransparentView *));
* sizeof (NSView *));
for (j = (_numberOfRows - 1) * _numberOfColumns;
j < (_numberOfRows * _numberOfColumns); j++)
@ -671,7 +656,7 @@
* (sizeof (BOOL)));
_jails = NSZoneRealloc (NSDefaultMallocZone (), _jails,
(_numberOfRows * _numberOfColumns)
* sizeof (GSTransparentView *));
* sizeof (NSView *));
// Reorder the jails
for (j = (_numberOfRows - 1); j >= 0; j--)
{
@ -845,7 +830,7 @@
//
_jails = NSZoneMalloc (NSDefaultMallocZone (),
sizeof (GSTransparentView *)
sizeof (NSView *)
* (_numberOfRows * _numberOfColumns));
_havePrisoner = NSZoneMalloc (NSDefaultMallocZone (),