summaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-03 21:01:07 +1100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-03 21:01:07 +1100
commitcd98f75460779e00f7216a9fe754f5f6315e0362 (patch)
tree76aa88a369df5492284efd018d1cb2371a3ad6e7 /info.c
parentde1401144ce0710651b9737cfe687e21b4b28651 (diff)
downloadsubsurface-cd98f75460779e00f7216a9fe754f5f6315e0362.tar.gz
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>
Diffstat (limited to 'info.c')
-rw-r--r--info.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/info.c b/info.c
index ccc5debc6..b4c37a91f 100644
--- a/info.c
+++ b/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;