Bug 502799 add new nsISound method for the event sounds r=roc+neil, sr=roc
This commit is contained in:
@@ -1181,7 +1181,7 @@ nsMenuFrame::Execute(nsGUIEvent *aEvent)
|
||||
|
||||
nsCOMPtr<nsISound> sound(do_CreateInstance("@mozilla.org/sound;1"));
|
||||
if (sound)
|
||||
sound->PlaySystemSound(NS_SYSSOUND_MENU_EXECUTE);
|
||||
sound->PlayEventSound(nsISound::EVENT_MENU_EXECUTE);
|
||||
|
||||
nsXULPopupManager* pm = nsXULPopupManager::GetInstance();
|
||||
if (pm && mMenuParent)
|
||||
|
||||
Reference in New Issue
Block a user