path: root/vcl/unx/gtk
diff options
authorThomas Arnhold <>2013-03-30 14:55:24 +0100
committerMiklos Vajna <>2013-04-04 08:36:03 +0000
commitb2ace6a294e2ce2171e3911a6f8a2ed7d8de4812 (patch)
treeb7a38362a85ddfb904c3ee123c4674d0a950455b /vcl/unx/gtk
parent11f9cdc2e273a827dfe29316de6f679077ee6a59 (diff)
fdo#58807 bring Beep() for basic back
The functionality was removed by fdo#48549. This partially reverts 0f6101cfef4c2e45d9f1f1b3a61ef94799e4526b 0bdf6fc7c71c4c49e6d6f83d56ac953272ad16d5 85cb9084533605657aca0394afe4516058a8e4ef I changed the behavior to always beep, because only the basic macro function is using Beep(). Looks like the Beep macro function didn't even work correctly before the removal, because the default was to not beep for most platforms. So I set the volume from disable (0) to 50% for XBell(). Reviewed-on: Reviewed-by: Thorsten Behrens <> Tested-by: Thorsten Behrens <> (cherry picked from commit 47664d3f2e12649d324b031ca6ffd5589fe3d197) Conflicts: vcl/inc/headless/svpframe.hxx Change-Id: I663ffb7af75d2fd6d2c1f94073e4412d9744de4a Reviewed-on: Tested-by: Thomas Arnhold <> Reviewed-by: Miklos Vajna <>
Diffstat (limited to 'vcl/unx/gtk')
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx
index 398ece4c300a..03f8c59fcad1 100644
--- a/vcl/unx/gtk/window/gtkframe.cxx
+++ b/vcl/unx/gtk/window/gtkframe.cxx
@@ -2673,6 +2673,11 @@ void GtkSalFrame::UpdateSettings( AllSettings& rSettings )
ReleaseGraphics( pGraphics );
+void GtkSalFrame::Beep()
+ gdk_display_beep( getGdkDisplay() );
const SystemEnvData* GtkSalFrame::GetSystemData() const
return &m_aSystemData;