Skip to content
Snippets Groups Projects
Commit 28a1fe68 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

don't traceback with GTK < 2.18

parent 9001d479
No related branches found
No related tags found
No related merge requests found
......@@ -306,6 +306,13 @@ class MessageTextView(gtk.TextView):
if self.undo_list:
_buffer.set_text(self.undo_list.pop())
self.undo_pressed = True
def get_sensitive(self):
# get sensitive is not in GTK < 2.18
try:
super(MessageTextView, self).get_sensitive()
except AttributeError:
return self.get_property('sensitive')
# We register depending on keysym and modifier some bindings
# but we also pass those as param so we can construct fake Event
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment