Move wxBell() from base to core library.
This allows to get rid of ugly preprocessor checks due to the fact that this function could be defined in one or the other library depending on the port used and also fix a problem with it being defined differently in the base library depending on which GUI port (Carbon or Cocoa) was used under OS X. It also fixes the problem with wxBell() in wxGTK under Windows. Closes #14406. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -112,14 +112,11 @@ int wxGUIAppTraits::AddProcessCallback(wxEndProcessData *proc_data, int fd)
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// Emit a beeeeeep
|
||||
#ifndef __EMX__
|
||||
// on OS/2, we use the wxBell from wxBase library (src/os2/utils.cpp)
|
||||
void wxBell()
|
||||
{
|
||||
// Use current setting for the bell
|
||||
XBell (wxGlobalDisplay(), 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
wxPortId wxGUIAppTraits::GetToolkitVersion(int *verMaj, int *verMin) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user