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

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pygtk in Ubuntu.
https://bugs.launchpad.net/bugs/1173180

Title:
  Drag&drop  doesn't work

Status in “pygtk” package in Ubuntu:
  Confirmed

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!

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pygtk/+bug/1173180/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to