Fix for infinite notification loop which occurs with some nib files.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28082 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2009-03-16 02:38:54 +00:00
parent e4fcef380e
commit f4571a026a
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2009-03-15 18:37-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSScrollView.m: Fix for infinite notification loop which
happens with some nib files.
2009-03-15 22:09-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSScrollView.m: Use the flags in initWithCoder:

View file

@ -1525,7 +1525,12 @@ static float scrollerWidth;
NSScroller *hScroller = [aDecoder decodeObjectForKey: @"NSHScroller"];
NSScroller *vScroller = [aDecoder decodeObjectForKey: @"NSVScroller"];
NSClipView *content = [aDecoder decodeObjectForKey: @"NSContentView"];
NSView *docView = [content documentView];
BOOL post_frame = [docView postsFrameChangedNotifications];
BOOL post_bound = [docView postsBoundsChangedNotifications];
[docView setPostsFrameChangedNotifications: NO];
[docView setPostsBoundsChangedNotifications: NO];
_hLineScroll = 10;
_hPageScroll = 10;
_vLineScroll = 10;
@ -1593,6 +1598,8 @@ static float scrollerWidth;
}
[self tile];
[docView setPostsFrameChangedNotifications: post_frame];
[docView setPostsBoundsChangedNotifications: post_bound];
}
else
{