Only set cursor shape when the function exists in vte. Patch from Jordan Callicoat. Closes LP #348760

This commit is contained in:
Chris Jones 2009-03-26 10:34:02 +00:00
parent efd45cb5b6
commit f1d2b527ed
1 changed files with 2 additions and 1 deletions

View File

@ -679,7 +679,8 @@ text/plain
self._vte.set_color_cursor (gtk.gdk.color_parse (cursor_color)) self._vte.set_color_cursor (gtk.gdk.color_parse (cursor_color))
# Set cursor shape # Set cursor shape
self._vte.set_cursor_shape (vte.__dict__["CURSOR_SHAPE_" + self.conf.cursor_shape.upper ()]) if hasattr (self._vte, "set_cursor_shape"):
self._vte.set_cursor_shape (getattr (vte, "CURSOR_SHAPE_" + self.conf.cursor_shape.upper ()))
# Set our background image, transparency and type # Set our background image, transparency and type
# Many thanks to the authors of gnome-terminal, on which this code is based. # Many thanks to the authors of gnome-terminal, on which this code is based.