Allow drag and drop on image

svn: r23450
This commit is contained in:
Doug Blank 2013-11-05 11:59:50 +00:00 committed by John Ralls
parent 31a3f074f1
commit 3f36cc9cdc

View File

@ -405,6 +405,12 @@ class SelectionWidget(Gtk.ScrolledWindow):
self.selection = None self.selection = None
self.image.queue_draw() self.image.queue_draw()
def find_region(self, x ,y):
"""
Given screen coordinates, find where that point is in the image.
"""
return self._find_region(*self._screen_to_image((x, y)))
# ====================================================== # ======================================================
# thumbnails # thumbnails
# ====================================================== # ======================================================