Bug 74802

Summary: gtk+-1.2.x always beeps even when X bell volume set to 0
Product: [Retired] Red Hat Linux Reporter: Jeremy Sanders <jss>
Component: gtk+Assignee: Owen Taylor <otaylor>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-01-15 18:10:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 79579    
Attachments:
Description Flags
patch to modify beep volume to default X beep volume
none
gdk_beep test program: compile with gcc test.c `gtk-config --cflags --libs` none

Description Jeremy Sanders 2002-10-01 20:01:15 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826

Description of problem:
gtk+-1.2.10 contains the function gdk_beep which is supposed to make a beep.
However this function always ignores the beep volume set using xset or the gnome
configuration tools, as it calls XBell(display, 100) rather than XBell(display,
0). XBell(display, 100) increases the current bell volume by 100%, ensuring it
always beeps. This problem was fixed in gtk-2.x.

There are many applications using gtk+-1.2 which beep (e.g. Mozilla-1.2a), but
it is impossible to set their volume. I propose patching the gdk_beep function
to modify the value 100 to 0 in the gtk+ package.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Write gtk+ program to call gdk_beep
2. Observe it always beeps, even if xset volume configured to 0
3.
	

Additional info:

Comment 1 Jeremy Sanders 2002-10-01 20:02:34 UTC
Created attachment 77904 [details]
patch to modify beep volume to default X beep volume

Comment 2 Jeremy Sanders 2002-10-01 20:09:05 UTC
Created attachment 77924 [details]
gdk_beep test program: compile with gcc test.c `gtk-config  --cflags --libs`

Comment 3 Owen Taylor 2002-11-01 02:26:02 UTC
Same as http://bugzilla.gnome.org/show_bug.cgi?id=60028

Comment 4 Owen Taylor 2003-01-15 18:10:11 UTC
* Wed Jan 15 2003 Owen Taylor <otaylor> 1.2.10-24
- Obey the system bell volume (#74802)