From 609b1da897953fabccba26a0fef4a092e833bdea Mon Sep 17 00:00:00 2001 From: Michael Ventnor Date: Mon, 23 Feb 2009 16:47:57 +1300 Subject: [PATCH] Bug 479238 - Add menu sounds to GTK's nsSound API --HG-- extra : rebase_source : 1bd5ea38b7ab7d8943a8f314c6c313ab4512ec71 --- widget/src/gtk2/nsSound.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/widget/src/gtk2/nsSound.cpp b/widget/src/gtk2/nsSound.cpp index a1d93fc1a5e..a4e5e458b3b 100644 --- a/widget/src/gtk2/nsSound.cpp +++ b/widget/src/gtk2/nsSound.cpp @@ -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; }