mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 22:35:27 +00:00
Allow using the map picker to refine a GPS address in info widget
This sets the dive gps location before calling the gps picker widget. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
de1401144c
commit
cd98f75460
1 changed files with 5 additions and 0 deletions
5
info.c
5
info.c
|
@ -660,7 +660,12 @@ static void update_gps_entry(float lat, float lon)
|
|||
#if HAVE_OSM_GPS_MAP
|
||||
static gboolean gps_map_callback(GtkWidget *w, gpointer data)
|
||||
{
|
||||
const char *gps_text = NULL;
|
||||
struct dive *dive = location_update.dive;
|
||||
if (location_update.entry) {
|
||||
gps_text = gtk_entry_get_text(location_update.entry);
|
||||
(void)gps_changed(dive, NULL, gps_text);
|
||||
}
|
||||
show_gps_location(dive, update_gps_entry);
|
||||
location_update.set_by_hand = 1;
|
||||
return TRUE;
|
||||
|
|
Loading…
Add table
Reference in a new issue