diff --git a/gramps/plugins/lib/maps/geography.py b/gramps/plugins/lib/maps/geography.py index fa2413c7a..10d596535 100644 --- a/gramps/plugins/lib/maps/geography.py +++ b/gramps/plugins/lib/maps/geography.py @@ -183,8 +183,8 @@ class GeoGraphyView(OsmGps, NavigationView): WarningDialog( _("Could Not Set a Bookmark"), _("A bookmark could not be set because " - "no one was selected.")) - + "no one was selected."), + parent=self.uistate.window) def add_bookmark_from_popup(self, menu, handle): if handle: @@ -196,7 +196,8 @@ class GeoGraphyView(OsmGps, NavigationView): WarningDialog( _("Could Not Set a Bookmark"), _("A bookmark could not be set because " - "no one was selected.")) + "no one was selected."), + parent=self.uistate.window) def change_page(self): """ @@ -820,8 +821,9 @@ class GeoGraphyView(OsmGps, NavigationView): if Gtk.MAJOR_VERSION == 3 and Gtk.MINOR_VERSION < 11: from gramps.gui.dialog import WarningDialog WarningDialog( - _("You can't use the print functionality"), - _("Your Gtk version is too old.")) + _("You can't use the print functionality"), + _("Your Gtk version is too old."), + parent=self.uistate.window) return req = self.osm.get_allocation() @@ -1014,7 +1016,8 @@ class GeoGraphyView(OsmGps, NavigationView): 'bold_start' : '', 'bold_end' : '', 'title': '' + place_title + '', - 'gid': gids} + 'gid': gids}, + parent=self.uistate.window ) else: self.mark = [None, None, None, None, None, None, None,