mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Use method calls in [initWithCoder:] so opaque flag is set
correctly. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15549 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0265583240
commit
0e294ebdd8
1 changed files with 4 additions and 2 deletions
|
@ -701,13 +701,15 @@ static inline NSRect integralRect (NSRect rect, NSView *view)
|
|||
- (id) initWithCoder: (NSCoder*)aDecoder
|
||||
{
|
||||
NSView *document;
|
||||
BOOL temp;
|
||||
|
||||
self = [super initWithCoder: aDecoder];
|
||||
[self setAutoresizesSubviews: YES];
|
||||
|
||||
[aDecoder decodeValueOfObjCType: @encode(id) at: &_backgroundColor];
|
||||
[self setBackgroundColor: [aDecoder decodeObject]];
|
||||
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &_copiesOnScroll];
|
||||
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &_drawsBackground];
|
||||
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &temp];
|
||||
[self setDrawsBackground: temp];
|
||||
[aDecoder decodeValueOfObjCType: @encode(id) at: &_cursor];
|
||||
|
||||
if ([[self subviews] count] > 0)
|
||||
|
|
Loading…
Reference in a new issue