From e42b0e47f024926655ed59edda6c8fc94e2f27cc Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Mon, 2 Jun 2008 13:25:23 +0300 Subject: [PATCH] Poi: More map widget integration --- src/poi-gui.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/poi-gui.c b/src/poi-gui.c index 639beed..6afe2d1 100644 --- a/src/poi-gui.c +++ b/src/poi-gui.c @@ -452,7 +452,7 @@ if (i == GTK_RESPONSE_OK) { } else { gtk_widget_hide_all(dpoi->dialog); map_poi_cache_clear(); - map_force_redraw(); + gtk_map_refresh(_map); } } return TRUE; @@ -545,8 +545,6 @@ _dest->valid=TRUE; gtk_tree_model_get(model, &iter, ITEM_LAT, &_dest->lat, -1); gtk_tree_model_get(model, &iter, ITEM_LON, &_dest->lon, -1); -map_update_location_from_center(); - return TRUE; } @@ -949,7 +947,7 @@ while (GTK_RESPONSE_ACCEPT == gtk_dialog_run(GTK_DIALOG(dialog))) { popup_error(_window, _("Problem updating POI")); } else { map_poi_cache_clear(); - map_force_redraw(); + gtk_map_refresh(_map); } } else { /* add poi */ @@ -959,7 +957,7 @@ while (GTK_RESPONSE_ACCEPT == gtk_dialog_run(GTK_DIALOG(dialog))) { popup_error(_window, _("Problem adding POI")); } else { map_poi_cache_clear(); - map_force_redraw(); + gtk_map_refresh(_map); } } break; @@ -1013,7 +1011,7 @@ if (poi_add(p)==FALSE) { txt=g_strdup_printf("QP(%d): %f %f %s", p->cat_id, p->lat, p->lon, p->label); path_insert_mark_text(_track, txt); - map_force_redraw(); + gtk_map_refresh(_map); if (qpdata->close==TRUE) gtk_widget_destroy(qpdata->dialog); -- 2.39.5