Prefer MessageBeep() over Beep()

Only the former respects the sound volume setting. If MessageBeep() fails fall back to the latter.
(cherry picked from commit 5e59db1554)
This commit is contained in:
Hans Breuer 2010-11-07 22:38:20 +01:00
parent 8a9d458baf
commit 1050485a13

View File

@ -197,7 +197,8 @@ void
gdk_display_beep (GdkDisplay *display)
{
g_return_if_fail (display == gdk_display_get_default());
Beep(1000, 50);
if (!MessageBeep (-1))
Beep (1000, 50);
}
void