*** /cvs/gnustep/core/gui/Source/NSButtonCell.m	Wed Feb 25 04:27:23 2004
--- Source/NSButtonCell.m	Tue Mar 23 08:55:07 2004
***************
*** 1081,1093 ****
    [(NSView *)[event userData] setNeedsDisplay: YES];
  }
  
! - (void) performClick: (id)sender
  {
    if (_sound != nil)
      {
        [_sound play];
      }
!   [super performClick: sender];
  }
  
  /*
--- 1081,1108 ----
    [(NSView *)[event userData] setNeedsDisplay: YES];
  }
  
! /**
!  * Simulates a single mouse click on the button cell. This method overrides the
!  * cell method performClickWithFrame:inView: to send its action message to
!  * its target and add the possibility to play a sound associated with the click. 
!  */
! - (void) performClickWithFrame: (NSRect)cellFrame inView: (NSView *)controlView
  {
    if (_sound != nil)
      {
        [_sound play];
      }
! 
!   [super performClickWithFrame: cellFrame inView: controlView];
!   
!   if ([controlView isKindOfClass: [NSControl class]])
!     {
!       [(NSControl *)controlView sendAction: [self action] to: [self target]];
!     }
!   else
!     {
!       [NSApp sendAction: [self action] to: [self target] from: nil];
!     }
  }
  
  /*
