mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
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:
parent
e4fcef380e
commit
f4571a026a
2 changed files with 12 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue