Use "Base" version of wxBell on OS/2.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2003-08-24 20:11:54 +00:00
parent 87cae034a5
commit 189d1ae7a0
4 changed files with 12 additions and 0 deletions

View File

@@ -56,11 +56,14 @@ extern GtkWidget *wxGetRootWindow();
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
// misc. // misc.
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
#ifndef __EMX__
// on OS/2, we use the wxBell from wxBase library
void wxBell() void wxBell()
{ {
gdk_beep(); gdk_beep();
} }
#endif
/* Don't synthesize KeyUp events holding down a key and producing /* Don't synthesize KeyUp events holding down a key and producing
KeyDown events with autorepeat. */ KeyDown events with autorepeat. */

View File

@@ -56,11 +56,14 @@ extern GtkWidget *wxGetRootWindow();
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
// misc. // misc.
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
#ifndef __EMX__
// on OS/2, we use the wxBell from wxBase library
void wxBell() void wxBell()
{ {
gdk_beep(); gdk_beep();
} }
#endif
/* Don't synthesize KeyUp events holding down a key and producing /* Don't synthesize KeyUp events holding down a key and producing
KeyDown events with autorepeat. */ KeyDown events with autorepeat. */

View File

@@ -127,11 +127,14 @@ int wxAddProcessCallback(wxEndProcessData *proc_data, int fd)
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// Emit a beeeeeep // Emit a beeeeeep
#ifndef __EMX__
// on OS/2, we use the wxBell from wxBase library (src/os2/utils.cpp)
void wxBell() void wxBell()
{ {
// Use current setting for the bell // Use current setting for the bell
XBell (wxGlobalDisplay(), 0); XBell (wxGlobalDisplay(), 0);
} }
#endif
wxToolkitInfo& wxGUIAppTraits::GetToolkitInfo() wxToolkitInfo& wxGUIAppTraits::GetToolkitInfo()
{ {

View File

@@ -92,11 +92,14 @@ int wxAddProcessCallback(wxEndProcessData *proc_data, int fd)
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// Emit a beeeeeep // Emit a beeeeeep
#ifndef __EMX__
// on OS/2, we use the wxBell from wxBase library (src/os2/utils.cpp)
void wxBell() void wxBell()
{ {
// Use current setting for the bell // Use current setting for the bell
XBell ((Display*) wxGetDisplay(), 0); XBell ((Display*) wxGetDisplay(), 0);
} }
#endif
wxToolkitInfo& wxGUIAppTraits::GetToolkitInfo() wxToolkitInfo& wxGUIAppTraits::GetToolkitInfo()
{ {