fix drop on itself with titlebars

This commit is contained in:
Emmanuel Bretelle 2008-03-06 19:13:10 +00:00
parent 416685efa0
commit 998a59bddf
1 changed files with 1 additions and 1 deletions

View File

@ -368,7 +368,7 @@ text/plain
widgetsrc = data.terminator.term_list[int(selection_data.data)]
srcvte = drag_context.get_source_widget()
#check if computation requireds
if srcvte == widget:
if (isinstance(srcvte, gtk.EventBox) and srcvte == self._titlebox) or srcvte == widget:
print "on itself"
return