mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:00:38 +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
3cece3e73f
commit
1ba10abc25
2 changed files with 12 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue