diff --git a/gramps/gui/editors/editplace.py b/gramps/gui/editors/editplace.py
index 985f79fef..9b0d14ef1 100644
--- a/gramps/gui/editors/editplace.py
+++ b/gramps/gui/editors/editplace.py
@@ -174,6 +174,24 @@ class EditPlace(EditPrimary):
#force validation now with initial entry
self.top.get_object("lat_entry").validate(force=True)
+ self.latlon = MonitoredEntry(
+ self.top.get_object("latlon_entry"),
+ self.set_latlongitude, self.get_latlongitude,
+ self.db.readonly)
+
+ def set_latlongitude(self, value):
+ try:
+ coma = value.index(',')
+ self.longitude.set_text(value[coma+1:])
+ self.latitude.set_text(value[:coma])
+ self.top.get_object("lat_entry").validate(force=True)
+ self.top.get_object("lon_entry").validate(force=True)
+ except:
+ pass
+
+ def get_latlongitude(self):
+ return ""
+
def _validate_coordinate(self, widget, text, typedeg):
if (typedeg == 'lat') and not conv_lat_lon(text, "0", "ISO-D"):
return ValidationError(_("Invalid latitude (syntax: 18\u00b09'") +
diff --git a/gramps/gui/glade/editplace.glade b/gramps/gui/glade/editplace.glade
index a3dacc324..76e5e3e27 100644
--- a/gramps/gui/glade/editplace.glade
+++ b/gramps/gui/glade/editplace.glade
@@ -127,6 +127,21 @@
3
+
+
+
+ 0
+ 5
+
+
+
+
+
+ 1
+ 5
+
+