From abf0dbfd8c79c2244368ba5c854a67aad74e63be Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 30 Jan 2013 10:53:53 +0000 Subject: [PATCH] Extra guarding against crashy gtk functions. Closes LP#1089190 --- terminatorlib/terminal.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index d92a5072..0b855870 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -903,8 +903,9 @@ class Terminal(gtk.VBox): def on_drag_motion(self, widget, drag_context, x, y, _time, _data): """*shrug*""" - if gtk.targets_include_text(drag_context.targets) or \ - gtk.targets_include_uri(drag_context.targets): + if not drag_context.targets == ['vte'] and \ + (gtk.targets_include_text(drag_context.targets) or \ + gtk.targets_include_uri(drag_context.targets)): # copy text from another widget return srcwidget = drag_context.get_source_widget()