Bug 479238 - Add menu sounds to GTK's nsSound API

--HG--
extra : rebase_source : 1bd5ea38b7ab7d8943a8f314c6c313ab4512ec71
This commit is contained in:
Michael Ventnor 2009-02-23 16:47:57 +13:00
parent 2b5e16d2e4
commit 609b1da897

View File

@ -452,6 +452,10 @@ nsresult nsSound::PlaySystemEventSound(const nsAString &aSoundAlias)
ca_context_play(ctx, 0, "event.id", "dialog-question", NULL);
else if (aSoundAlias.Equals(NS_SYSSOUND_MAIL_BEEP))
ca_context_play(ctx, 0, "event.id", "message-new-email", NULL);
else if (aSoundAlias.Equals(NS_SYSSOUND_MENU_EXECUTE))
ca_context_play(ctx, 0, "event.id", "menu-click", NULL);
else if (aSoundAlias.Equals(NS_SYSSOUND_MENU_POPUP))
ca_context_play(ctx, 0, "event.id", "menu-popup", NULL);
return NS_OK;
}