From 951ebb574bff05b37810b4bfd779a57e8f29f230 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Fri, 31 May 2013 11:51:52 +0000 Subject: get_text is only available in latest vte #676999 and pygobject/gobject-introspection #690041 Reviewed by Gonzalo O. and Daniel N. --- diff --git a/terminal.py b/terminal.py index e3a0a91..de44e22 100644 --- a/terminal.py +++ b/terminal.py @@ -421,7 +421,12 @@ class TerminalActivity(activity.Activity): return True page = self._notebook.get_nth_page(i) - text, attr = page.vt.get_text(is_selected, None) + try: + # get_text is only available in latest vte #676999 + # and pygobject/gobject-introspection #690041 + text, attr_ = page.vt.get_text(is_selected, None) + except AttributeError: + text = '' scrollback_lines = text.split('\n') -- cgit v0.9.1