mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 14:10:37 +00:00
Makefiles changed to GNUmakefile.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2577 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
807247e979
commit
1f8f64b47b
19 changed files with 162 additions and 922 deletions
|
@ -70,7 +70,8 @@
|
|||
border_type = NSLineBorder;
|
||||
title_position = NSAtTop;
|
||||
title_rect = NSZeroRect;
|
||||
[self setContentView: [[NSView alloc] init]];
|
||||
content_view = [NSView new];
|
||||
[super addSubview:content_view];
|
||||
|
||||
return self;
|
||||
}
|
||||
|
@ -169,26 +170,11 @@
|
|||
|
||||
- (void)setContentView:(NSView *)aView
|
||||
{
|
||||
if (content_view)
|
||||
{
|
||||
// Tell view that it is no longer in a window
|
||||
[content_view viewWillMoveToWindow:nil];
|
||||
[content_view release];
|
||||
}
|
||||
[aView retain];
|
||||
[content_view release];
|
||||
content_view = aView;
|
||||
[content_view retain];
|
||||
|
||||
// We only have one view in our subview array
|
||||
[sub_views release];
|
||||
sub_views = [NSMutableArray array];
|
||||
if ([sub_views count] == 0)
|
||||
{
|
||||
[sub_views addObject:aView];
|
||||
}
|
||||
|
||||
[content_view setSuperview:self];
|
||||
[content_view setNextResponder:self];
|
||||
[content_view viewWillMoveToWindow:window];
|
||||
[self replaceSubview:content_view with:aView];
|
||||
[content_view setFrame: [self calcSizes]];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue