mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-14 21:50:56 +00:00
When copying, only make a superficial copy of ivars
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8306 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
01360a699c
commit
bb4466e3b6
1 changed files with 5 additions and 10 deletions
|
@ -786,17 +786,12 @@
|
||||||
- (id) copyWithZone: (NSZone*)zone
|
- (id) copyWithZone: (NSZone*)zone
|
||||||
{
|
{
|
||||||
NSButtonCell *c = [super copyWithZone: zone];
|
NSButtonCell *c = [super copyWithZone: zone];
|
||||||
|
|
||||||
|
/* Hmmm. */
|
||||||
c->_altContents = [_altContents copyWithZone: zone];
|
c->_altContents = [_altContents copyWithZone: zone];
|
||||||
if (_altImage)
|
TEST_RETAIN (_altImage);
|
||||||
c->_altImage = RETAIN(_altImage);
|
TEST_RETAIN (_keyEquivalent);
|
||||||
c->_keyEquivalent = [_keyEquivalent copyWithZone: zone];
|
TEST_RETAIN (_keyEquivalentFont);
|
||||||
if (_keyEquivalentFont)
|
|
||||||
c->_keyEquivalentFont = RETAIN(_keyEquivalentFont);
|
|
||||||
//c->_keyEquivalentModifierMask = _keyEquivalentModifierMask;
|
|
||||||
//c->_buttoncell_is_transparent = _buttoncell_is_transparent;
|
|
||||||
//c->_highlightsByMask = _highlightsByMask;
|
|
||||||
//c->_showAltStateMask = _showAltStateMask;
|
|
||||||
|
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue