} else {
gtk_widget_hide_all(dpoi->dialog);
map_poi_cache_clear();
- map_force_redraw();
+ gtk_map_refresh(_map);
}
}
return 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;
}
popup_error(_window, _("Problem updating POI"));
} else {
map_poi_cache_clear();
- map_force_redraw();
+ gtk_map_refresh(_map);
}
} else {
/* add poi */
popup_error(_window, _("Problem adding POI"));
} else {
map_poi_cache_clear();
- map_force_redraw();
+ gtk_map_refresh(_map);
}
}
break;
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);