From 3f36cc9cdcae102c511db21ff5324af74f7478c5 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 5 Nov 2013 11:59:50 +0000 Subject: [PATCH] Allow drag and drop on image svn: r23450 --- gramps/gui/widgets/selectionwidget.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gramps/gui/widgets/selectionwidget.py b/gramps/gui/widgets/selectionwidget.py index ebb7eb025..3accdccf0 100644 --- a/gramps/gui/widgets/selectionwidget.py +++ b/gramps/gui/widgets/selectionwidget.py @@ -405,6 +405,12 @@ class SelectionWidget(Gtk.ScrolledWindow): self.selection = None 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 # ======================================================