Handle older VTEs that have no beep signal. Closes LP #349158
This commit is contained in:
parent
5e78509499
commit
8b3b71599a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue