]> git.pld-linux.org Git - packages/libreoffice.git/blob - openoffice-gui-beep-less.patch
- up
[packages/libreoffice.git] / openoffice-gui-beep-less.patch
1 Index: vcl/unx/source/window/salframe.cxx
2 ===================================================================
3 RCS file: /cvs/gsl/vcl/unx/source/window/salframe.cxx,v
4 retrieving revision 1.163
5 diff -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.033223 seconds and 3 git commands to generate.