From: Kaj-Michael Lang Date: Mon, 2 Jun 2008 10:25:23 +0000 (+0300) Subject: Poi: More map widget integration X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e42b0e47f024926655ed59edda6c8fc94e2f27cc;p=mapper Poi: More map widget integration --- 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);