mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:50:48 +00:00
Small cleanup.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26429 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bf24bb916e
commit
ebe86a3327
2 changed files with 323 additions and 308 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-04-04 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSScrollView.m: Correct indentation. Small cleanups.
|
||||
* Source/NSScrollView.m (-setDrawsBackground:): Set setCopiesOnScroll:.
|
||||
|
||||
2008-04-02 Nicola Pero <nicola.pero@meta-innovation.com>
|
||||
|
||||
* Source/NSSplitView.m ([-adjustSubviews]): Fixed the slow drift
|
||||
|
|
|
@ -171,11 +171,16 @@ static float scrollerWidth;
|
|||
*/
|
||||
- (id) initWithFrame: (NSRect)rect
|
||||
{
|
||||
NSClipView *clipView = [NSClipView new];
|
||||
NSClipView *clipView;
|
||||
|
||||
self = [super initWithFrame: rect];
|
||||
if (!self)
|
||||
return nil;
|
||||
|
||||
clipView = [NSClipView new];
|
||||
[self setContentView: clipView];
|
||||
RELEASE(clipView);
|
||||
|
||||
_hLineScroll = 10;
|
||||
_hPageScroll = 10;
|
||||
_vLineScroll = 10;
|
||||
|
@ -1175,6 +1180,9 @@ static float scrollerWidth;
|
|||
- (void) setDrawsBackground: (BOOL)flag
|
||||
{
|
||||
[_contentView setDrawsBackground: flag];
|
||||
if ((flag == NO) &&
|
||||
[_contentView respondsToSelector: @selector(setCopiesOnScroll:)])
|
||||
[_contentView setCopiesOnScroll: NO];
|
||||
}
|
||||
|
||||
- (BOOL) drawsBackground
|
||||
|
@ -1359,7 +1367,7 @@ static float scrollerWidth;
|
|||
|
||||
- (void) setScrollsDynamically: (BOOL)flag
|
||||
{
|
||||
// FIX ME: This should change the behaviour of the scrollers
|
||||
// FIXME: This should change the behaviour of the scrollers
|
||||
_scrollsDynamically = flag;
|
||||
}
|
||||
|
||||
|
@ -1449,6 +1457,8 @@ static float scrollerWidth;
|
|||
- (id) initWithCoder: (NSCoder*)aDecoder
|
||||
{
|
||||
self = [super initWithCoder: aDecoder];
|
||||
if (!self)
|
||||
return nil;
|
||||
|
||||
if ([aDecoder allowsKeyedCoding])
|
||||
{
|
||||
|
@ -1604,7 +1614,7 @@ static float scrollerWidth;
|
|||
{
|
||||
_headerClipView = [NSClipView new];
|
||||
[self addSubview: _headerClipView];
|
||||
RELEASE (_headerClipView);
|
||||
RELEASE(_headerClipView);
|
||||
}
|
||||
[_headerClipView setDocumentView: aView];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue