Ticket #55352: patch-implement-progdial::beep.diff

File patch-implement-progdial::beep.diff, 808 bytes (added by RJVB (René Bertin), 7 years ago)
  • src/widgets/ProgressDialog.cpp

    diff --git a/src/widgets/ProgressDialog.cpp b/src/widgets/ProgressDialog.cpp
    index c81c69b9598948534b2dfbd2258103e37337a58c..59a05e5ff71eb8b305a97e8d6662bd2228d59b42 100644
    a b  
    5050#include "ProgressDialog.h"
    5151#include "../Prefs.h"
    5252
     53#ifdef __WXOSX_COCOA__
     54extern "C" void NSBeep(void);
     55#endif
     56
    5357// This really should be a Preferences setting
    5458static const unsigned char beep[] =
    5559{
    void ProgressDialog::Beep() const 
    15461550
    15471551      if (name.IsEmpty())
    15481552      {
     1553#ifdef __WXOSX_COCOA__
     1554         // wxSound::Create(size_t,const void*) isn't implemented;
     1555         // use the system beep function.
     1556         NSBeep();
     1557#else
    15491558         s.Create(sizeof(beep), beep);
     1559#endif
    15501560      }
    15511561      else
    15521562      {