diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-07-18 04:51:04 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-07-18 04:51:04 +0800 |
commit | 4bca1cbb50ad3328bfffdc465877e64e2118e6a0 (patch) | |
tree | 4b9a32187f973330c3cdeca982eaac887019c434 /mail/thunderbird/files/patch-extensions_typeaheadfind_src_nsTypeAheadFind.cpp | |
parent | de879b62a46e428ff9367fcb7ad81620a77d690c (diff) | |
download | marcuscom-ports-4bca1cbb50ad3328bfffdc465877e64e2118e6a0.tar marcuscom-ports-4bca1cbb50ad3328bfffdc465877e64e2118e6a0.tar.gz marcuscom-ports-4bca1cbb50ad3328bfffdc465877e64e2118e6a0.tar.bz2 marcuscom-ports-4bca1cbb50ad3328bfffdc465877e64e2118e6a0.tar.lz marcuscom-ports-4bca1cbb50ad3328bfffdc465877e64e2118e6a0.tar.xz marcuscom-ports-4bca1cbb50ad3328bfffdc465877e64e2118e6a0.tar.zst marcuscom-ports-4bca1cbb50ad3328bfffdc465877e64e2118e6a0.zip |
- Remove thunderbird in preps for thunderbird-devel
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4266 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'mail/thunderbird/files/patch-extensions_typeaheadfind_src_nsTypeAheadFind.cpp')
-rw-r--r-- | mail/thunderbird/files/patch-extensions_typeaheadfind_src_nsTypeAheadFind.cpp | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/mail/thunderbird/files/patch-extensions_typeaheadfind_src_nsTypeAheadFind.cpp b/mail/thunderbird/files/patch-extensions_typeaheadfind_src_nsTypeAheadFind.cpp deleted file mode 100644 index 41c462d74..000000000 --- a/mail/thunderbird/files/patch-extensions_typeaheadfind_src_nsTypeAheadFind.cpp +++ /dev/null @@ -1,46 +0,0 @@ ---- extensions/typeaheadfind/src/nsTypeAheadFind.cpp.orig Wed Nov 19 01:20:47 2003 -+++ extensions/typeaheadfind/src/nsTypeAheadFind.cpp Tue Feb 10 02:52:26 2004 -@@ -323,11 +323,11 @@ - prefBranch->GetBoolPref("accessibility.typeaheadfind.startlinksonly", - &mStartLinksOnlyPref); - -- PRBool isSoundEnabled = PR_TRUE; -+ mIsSoundEnabled = PR_TRUE; - prefBranch->GetBoolPref("accessibility.typeaheadfind.enablesound", -- &isSoundEnabled); -+ &mIsSoundEnabled); - nsXPIDLCString soundStr; -- if (isSoundEnabled) { -+ if (mIsSoundEnabled && mIsSoundEnabled) { - prefBranch->GetCharPref("accessibility.typeaheadfind.soundURL", - getter_Copies(soundStr)); - } -@@ -758,7 +758,7 @@ - } - else { - // No find string to backspace in! -- if (mIsBackspaceProtectOn) { -+ if (mIsBackspaceProtectOn && mIsSoundEnabled) { - // This flag should be on only if the last key was a backspace. - // It keeps us from accidentally hitting backspace too many times and - // going back in history when we really just wanted to clear -@@ -1012,7 +1012,9 @@ - - // Error sound (don't fire when backspace is pressed, they're - // trying to correct the mistake!) -- PlayNotFoundSound(); -+ if (mIsSoundEnabled) { -+ PlayNotFoundSound(); -+ } - - // Remove bad character from buffer, so we can continue typing from - // last matched character -@@ -1059,7 +1061,7 @@ - void - nsTypeAheadFind::PlayNotFoundSound() - { -- if (mNotFoundSoundURL.IsEmpty()) // no sound -+ if (mNotFoundSoundURL.IsEmpty() || !mIsSoundEnabled) // no sound - return; - if (!mSoundInterface) { - mSoundInterface = do_CreateInstance("@mozilla.org/sound;1"); |