Failure of drag-and-drop from other applications

Bug #1781562 reported by Miz J. Yut
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Terminator
New
Undecided
Unassigned

Bug Description

Drag and drop from other applications by mouse operation will fail.
It is the same for drops from all applications such as Firefox, Chromium, Gtk and Qt.

The cause seems to be how to call `feed_child`.
current `terminal.py`:
    self.vte.feed_child(text, len(text))
quick fix:
    self.vte.feed_child(text)

# Traceback
Traceback (most recent call last):
  File "/tmp/terminator/terminatorlib/terminal.py", line 1121, in on_drag_data_received
    term.feed(txt)
  File "/tmp/terminator/terminatorlib/terminal.py", line 1515, in feed
    self.vte.feed_child(text, len(text))
TypeError: Vte.Terminal.feed_child() takes exactly 2 arguments (3 given)

# Terminator version
$ bzr version-info
revision-id: launchpad_translations_on_behalf_of_gnome-terminator-20180614055804-0o8jd2w6rgxv30nw
date: 2018-06-14 05:58:04 +0000
build-date: 2018-07-13 17:45:40 +0900
revno: 1802
branch-nick: terminator

# Library version
>>> gi.__version__
'3.28.2'
>>> Vte
<IntrospectionModule 'Vte' from '/usr/lib/x86_64-linux-gnu/girepository-1.0/Vte-2.91.typelib'>

# My Enviroment
distribution: Debian sid
desktop flavour: Xfce 4.12

Miz J. Yut (mjy)
description: updated
Revision history for this message
Bryan Mason (bmason) wrote :

This looks like a duplicate of Bug #1758564, which also includes a workaround/fix.

Revision history for this message
Bryan Mason (bmason) wrote :

oops. This isn't a duplicate of Bug #1758564, but the cause is the same.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.