]> git.pld-linux.org Git - packages/libreoffice.git/blame - openoffice-gui-beep-less.patch
- up
[packages/libreoffice.git] / openoffice-gui-beep-less.patch
CommitLineData
f6bd72df 1Index: vcl/unx/source/window/salframe.cxx
2===================================================================
3RCS file: /cvs/gsl/vcl/unx/source/window/salframe.cxx,v
4retrieving revision 1.163
5diff -u -p -u -r1.163 salframe.cxx
6--- vcl/unx/source/window/salframe.cxx 1 Jul 2003 14:49:01 -0000 1.163
7+++ vcl/unx/source/window/salframe.cxx 20 Aug 2003 11:03:39 -0000
8@@ -2271,7 +2271,17 @@ bool SalFrame::SetPluginParent( SystemPa
9 // Sound
10 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
11 void SalFrame::Beep( SoundType eSoundType ) // not fully suported
12-{ _GetDisplay()->Beep(); }
13+{
14+ switch (eSoundType) {
15+ case SOUND_DEFAULT:
16+ case SOUND_ERROR:
17+ _GetDisplay()->Beep();
18+ break;
19+ default:
20+ // Excessive beeping averted
21+ break;
22+ }
23+}
24
25 // Callback
26 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
This page took 0.120324 seconds and 4 git commands to generate.