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) gdk_display_beep (GdkDisplay *display)
{ {
g_return_if_fail (display == gdk_display_get_default()); g_return_if_fail (display == gdk_display_get_default());
Beep(1000, 50); if (!MessageBeep (-1))
Beep (1000, 50);
} }
void void

View File

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