mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Add NSScrollView keys for init/encodeWithCoder
This commit is contained in:
parent
e9548dd057
commit
5666d7b7c2
2 changed files with 24 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2021-10-27 Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/NSScrollView.m: Add scrollview keys from TP merge.
|
||||
|
||||
2021-10-27 Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/GSToolTips.m: Add extra pixels so that tool tip doesn't
|
||||
|
|
|
@ -1580,6 +1580,16 @@ GSOppositeEdge(NSRectEdge edge)
|
|||
flags |= 512;
|
||||
|
||||
[aCoder encodeInt: flags forKey: @"NSsFlags"];
|
||||
|
||||
// XIB 5 keys...
|
||||
[aCoder encodeInteger: _hLineScroll
|
||||
forKey: @"horizontalLineScroll"];
|
||||
[aCoder encodeInteger: _hPageScroll
|
||||
forKey: @"horizontalPageScroll"];
|
||||
[aCoder encodeInteger: _vLineScroll
|
||||
forKey: @"verticalLineScroll"];
|
||||
[aCoder encodeInteger: _vPageScroll
|
||||
forKey: @"verticalPageScroll"];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1644,6 +1654,16 @@ GSOppositeEdge(NSRectEdge edge)
|
|||
/* _autohidesScroller, _rulersVisible, _hasHorizRuler and _hasVertRuler
|
||||
implicitly set to NO */
|
||||
|
||||
// XIB 5 keys...
|
||||
if ([aDecoder containsValueForKey: @"horizontalLineScroll"])
|
||||
_hLineScroll = [aDecoder decodeIntegerForKey: @"horizontalLineScroll"];
|
||||
if ([aDecoder containsValueForKey: @"horizontalPageScroll"])
|
||||
_hPageScroll = [aDecoder decodeIntegerForKey: @"horizontalPageScroll"];
|
||||
if ([aDecoder containsValueForKey: @"verticalLineScroll"])
|
||||
_vLineScroll = [aDecoder decodeIntegerForKey: @"verticalLineScroll"];
|
||||
if ([aDecoder containsValueForKey: @"verticalPageScroll"])
|
||||
_vPageScroll = [aDecoder decodeIntegerForKey: @"verticalPageScroll"];
|
||||
|
||||
if ([aDecoder containsValueForKey: @"NSsFlags"])
|
||||
{
|
||||
int flags = [aDecoder decodeInt32ForKey: @"NSsFlags"];
|
||||
|
|
Loading…
Reference in a new issue