mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 21:00:47 +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
ac7f3a07c4
commit
c5ce3a7932
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
|
- (id) initWithCoder: (NSCoder*)aDecoder
|
||||||
{
|
{
|
||||||
NSView *document;
|
NSView *document;
|
||||||
|
BOOL temp;
|
||||||
|
|
||||||
self = [super initWithCoder: aDecoder];
|
self = [super initWithCoder: aDecoder];
|
||||||
[self setAutoresizesSubviews: YES];
|
[self setAutoresizesSubviews: YES];
|
||||||
|
|
||||||
[aDecoder decodeValueOfObjCType: @encode(id) at: &_backgroundColor];
|
[self setBackgroundColor: [aDecoder decodeObject]];
|
||||||
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &_copiesOnScroll];
|
[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];
|
[aDecoder decodeValueOfObjCType: @encode(id) at: &_cursor];
|
||||||
|
|
||||||
if ([[self subviews] count] > 0)
|
if ([[self subviews] count] > 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue