diff --git a/gramps/plugins/lib/maps/geography.py b/gramps/plugins/lib/maps/geography.py index db3be98c7..b3f7963b9 100644 --- a/gramps/plugins/lib/maps/geography.py +++ b/gramps/plugins/lib/maps/geography.py @@ -392,9 +392,7 @@ class GeoGraphyView(OsmGps, NavigationView): clearmap.show() menu.append(clearmap) menu.show() - menu.popup(None, None, - lambda menu, data: (event.get_root_coords()[0], - event.get_root_coords()[1], True), + menu.popup(None, None, None, None, event.button, event.time) return 1 diff --git a/gramps/plugins/view/geoclose.py b/gramps/plugins/view/geoclose.py index 2755b6d98..216f8baee 100644 --- a/gramps/plugins/view/geoclose.py +++ b/gramps/plugins/view/geoclose.py @@ -535,9 +535,7 @@ class GeoClose(GeoGraphyView): event, lat, lon, prevmark) itemoption.append(center) menu.show() - menu.popup(None, None, - lambda menu, data: (event.get_root_coords()[0], - event.get_root_coords()[1], True), + menu.popup(None, None, None, None, event.button, event.time) return 0 diff --git a/gramps/plugins/view/geoevents.py b/gramps/plugins/view/geoevents.py index 7d001a37f..19e731e98 100644 --- a/gramps/plugins/view/geoevents.py +++ b/gramps/plugins/view/geoevents.py @@ -369,9 +369,7 @@ class GeoEvents(GeoGraphyView): bookm.show() bookm.connect("activate", self.add_bookmark_from_popup, hdle) itemoption.append(bookm) - menu.popup(None, None, - lambda menu, data: (event.get_root_coords()[0], - event.get_root_coords()[1], True), + menu.popup(None, None, None, None, event.button, event.time) return 1 diff --git a/gramps/plugins/view/geofamclose.py b/gramps/plugins/view/geofamclose.py index e0ba244a7..e2ec8fda2 100644 --- a/gramps/plugins/view/geofamclose.py +++ b/gramps/plugins/view/geofamclose.py @@ -678,9 +678,7 @@ class GeoFamClose(GeoGraphyView): event, lat, lon, prevmark) itemoption.append(center) menu.show() - menu.popup(None, None, - lambda menu, data: (event.get_root_coords()[0], - event.get_root_coords()[1], True), + menu.popup(None, None, None, None, event.button, event.time) return 0 diff --git a/gramps/plugins/view/geofamily.py b/gramps/plugins/view/geofamily.py index 94444dbad..788b977f2 100644 --- a/gramps/plugins/view/geofamily.py +++ b/gramps/plugins/view/geofamily.py @@ -446,9 +446,7 @@ class GeoFamily(GeoGraphyView): add_item.show() menu.append(add_item) self.add_event_bubble_message(event, lat, lon, prevmark, add_item) - menu.popup(None, None, - lambda menu, data: (event.get_root_coords()[0], - event.get_root_coords()[1], True), + menu.popup(None, None, None, None, event.button, event.time) return 1 diff --git a/gramps/plugins/view/geomoves.py b/gramps/plugins/view/geomoves.py index 5f05d163b..d6967e26a 100644 --- a/gramps/plugins/view/geomoves.py +++ b/gramps/plugins/view/geomoves.py @@ -610,9 +610,7 @@ class GeoMoves(GeoGraphyView): bookm.connect("activate", self.add_bookmark_from_popup, hdle) itemoption.append(bookm) menu.show() - menu.popup(None, None, - lambda menu, data: (event.get_root_coords()[0], - event.get_root_coords()[1], True), + menu.popup(None, None, None, None, event.button, event.time) return 1 diff --git a/gramps/plugins/view/geoperson.py b/gramps/plugins/view/geoperson.py index 5cb4e4299..e007a1a88 100644 --- a/gramps/plugins/view/geoperson.py +++ b/gramps/plugins/view/geoperson.py @@ -484,9 +484,7 @@ class GeoPerson(GeoGraphyView): center.connect("activate", self.center_here, event, lat, lon, prevmark) itemoption.append(center) menu.show() - menu.popup(None, None, - lambda menu, data: (event.get_root_coords()[0], - event.get_root_coords()[1], True), + menu.popup(None, None, None, None, event.button, event.time) return 1 diff --git a/gramps/plugins/view/geoplaces.py b/gramps/plugins/view/geoplaces.py index e3d05a107..3c7f3d8a7 100644 --- a/gramps/plugins/view/geoplaces.py +++ b/gramps/plugins/view/geoplaces.py @@ -359,9 +359,7 @@ class GeoPlaces(GeoGraphyView): bookm.show() bookm.connect("activate", self.add_bookmark_from_popup, hdle) itemoption.append(bookm) - menu.popup(None, None, - lambda menu, data: (event.get_root_coords()[0], - event.get_root_coords()[1], True), + menu.popup(None, None, None, None, event.button, event.time) return 1