From 2b38921991a95b6775c3bdc7a663f31f5bbea7cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zrados=C5=82av?= Date: Thu, 18 Feb 2021 22:20:12 +0200 Subject: [PATCH] Geography: Change Gtk.MenuItem to Gtk.CheckMenuItem for map providers --- gramps/plugins/lib/maps/geography.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/lib/maps/geography.py b/gramps/plugins/lib/maps/geography.py index 9a2a5fe6f..de3ece986 100644 --- a/gramps/plugins/lib/maps/geography.py +++ b/gramps/plugins/lib/maps/geography.py @@ -453,7 +453,8 @@ class GeoGraphyView(OsmGps, NavigationView): add_item.set_submenu(changemap) # show in the map menu all available providers for my_map in constants.MAP_TYPE: - changemapitem = Gtk.MenuItem(label=constants.MAP_TITLE[my_map]) + changemapitem = Gtk.CheckMenuItem(label=constants.MAP_TITLE[my_map]) + changemapitem.set_active(constants.MAP_TITLE[my_map] == map_name) changemapitem.show() changemapitem.connect("activate", self.change_map, my_map) changemap.append(changemapitem)