Drag&drop doesn't work

Bug #1173180 reported by mrDoctorWho
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
pygtk (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu 13.04, Pygtk 2.24.0-3ubuntu1. Drag&Drop doesn't work.
parts of code:

self.window.connect("drag_data_received", self.getDrop)
self.window.connect("drag_drop", self.drop_cb)
self.window.drag_dest_set(0, [], 0)
self.window.connect("drag_motion", self.motion_cb)

def getDrop(self, winID, context, x, y, data, info, time):
 self.filechooser.set_uri((data.data).strip())
 context.finish(True, False, time)

def drop_cb(self,wid, context, x, y, time):
 wid.drag_get_data(context, context.targets[0], time)
 context.finish(True, False, time)
 return True

def motion_cb(self,wid, context, x, y, time):
 context.drag_status(gtk.gdk.ACTION_COPY, time)
 return True

On previous version this code worked ok!

Revision history for this message
mrDoctorWho (mrdoctorwho) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pygtk (Ubuntu):
status: New → Confirmed
Revision history for this message
Oleg (lagutin-oleg) wrote :

Program tested on Ubuntu 12.10 and then by update-manager ubuntu was updated to 13.04 and here drag&drop doesn't work.

Revision history for this message
mrDoctorWho (mrdoctorwho) wrote :

fileChooser object should show filename when file dropped to program form. But now it ignores file dropping

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.