Prefer MessageBeep() over Beep()

Only the former respects the sound volume setting. If MessageBeep() fails fall back to the latter.
This commit is contained in:
Hans Breuer 2010-06-11 20:47:28 +02:00
parent ce0c94b7fd
commit 5e59db1554
2 changed files with 6 additions and 2 deletions

View File

@ -180,7 +180,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

View File

@ -101,6 +101,7 @@ gtk_OBJECTS_deprecated = \
gtklistitem.obj \
gtkprogress.obj \
gtktipsquery.obj \
gtkshow.obj \
gtksignal.obj \
gtkpixmap.obj \
gtkpreview.obj \
@ -144,7 +145,6 @@ gtk_OBJECTS_file = \
gtkfilefilter.obj \
gtkfilesystem.obj \
gtkfilesystemmodel.obj \
gtkfilesystemwin32.obj \
gtk_OBJECTS_print = \
gtkprint-win32.obj \
@ -193,6 +193,7 @@ gtk_OBJECTS = \
gtkaccessible.obj \
gtkaction.obj \
gtkactiongroup.obj \
gtkactivatable.obj \
gtkadjustment.obj \
gtkalignment.obj \
gtkarrow.obj \
@ -273,6 +274,7 @@ gtk_OBJECTS = \
gtkmountoperation.obj \
gtknotebook.obj \
gtkobject.obj \
gtkorientable.obj \
gtkpagesetup.obj \
gtkpaned.obj \
gtkpapersize.obj \
@ -347,6 +349,7 @@ gtk_public_h_sources = \
gtkaccessible.h \
gtkaction.h \
gtkactiongroup.h \
gtkactivatable.h \
gtkadjustment.h \
gtkalignment.h \
gtkarrow.h \