emesene forum
March 11, 2010, 01:45:13 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: REPORT ANY ISSUE HERE - PLEASE CHECK IF THE PROBLEM HAS ALREADY BEEN REPORTED FIRST -- THANKS
 
  Home   Forum   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [Patch]No annoying beeps on windows  (Read 352 times)
arielj
Global Moderator
Hero Member
*****

l33tness: 21
Offline Offline

Posts: 817


globitz!


View Profile Email
« on: October 04, 2009, 08:06:23 AM »

This line should stop those annoying beeps under windows. The ones that sounds when deleting in an entry box with nothing to delete or when pressing Ctrl+P to open the preferences for example.

Those beeps are really not needed and I think people will be happy with something more quiet.

In gnome it doesn't sound because the default behavior of that "beep" is really a dim of the window but it's disabled by default. You can see how annoying it is enabling that alert in the sound configuration.

I'm not sure how this behaves under KDE or another desktop...

Code:
Index: Controller.py
===================================================================
--- Controller.py (revisión: 1936)
+++ Controller.py (copia de trabajo)
@@ -915,6 +915,7 @@
     except NameError:
         path = sys.path[0]
 
+    gtk.settings_get_default().set_property("gtk-error-bell",False)
     originalPath = os.getcwd()
     os.chdir(path)
     sys.path.append(path)
Logged
Inu
Hero Member
*****

l33tness: 1
Offline Offline

Posts: 135


View Profile
« Reply #1 on: October 04, 2009, 12:21:49 PM »

Thank you arielj!
Logged
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v.1.0.6 beta 2 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!