Handle older VTEs that have no beep signal. Closes LP #349158

This commit is contained in:
Chris Jones 2009-03-26 21:09:30 +00:00
parent 5e78509499
commit 8b3b71599a
1 changed files with 4 additions and 1 deletions

View File

@ -739,7 +739,10 @@ text/plain
# Set our urgent belliness
if self.conf.urgent_bell:
self._urgent_bell_cnid = self._vte.connect ("beep", self.terminator.on_beep)
try:
self._urgent_bell_cnid = self._vte.connect ("beep", self.terminator.on_beep)
except TypeError:
err ("beep signal not supported by your VTE, urgent handler not available")
elif self._urgent_bell_cnid:
self._vte.disconnect (self._urgent_bell_cnid)
self._urgent_bell_cnid = None