mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-14 16:40:58 +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
|
||||
{
|
||||
NSButtonCell *c = [super copyWithZone: zone];
|
||||
|
||||
|
||||
/* Hmmm. */
|
||||
c->_altContents = [_altContents copyWithZone: zone];
|
||||
if (_altImage)
|
||||
c->_altImage = RETAIN(_altImage);
|
||||
c->_keyEquivalent = [_keyEquivalent copyWithZone: zone];
|
||||
if (_keyEquivalentFont)
|
||||
c->_keyEquivalentFont = RETAIN(_keyEquivalentFont);
|
||||
//c->_keyEquivalentModifierMask = _keyEquivalentModifierMask;
|
||||
//c->_buttoncell_is_transparent = _buttoncell_is_transparent;
|
||||
//c->_highlightsByMask = _highlightsByMask;
|
||||
//c->_showAltStateMask = _showAltStateMask;
|
||||
TEST_RETAIN (_altImage);
|
||||
TEST_RETAIN (_keyEquivalent);
|
||||
TEST_RETAIN (_keyEquivalentFont);
|
||||
|
||||
return c;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue