/* Add a text break to the current track */
/* XXX: Get category string in here if label is empty */
txt=g_strdup_printf("QP(%d): %f %f %s", p->cat_id, p->lat, p->lon, p->label);
- track_insert_mark_text(txt);
+ path_insert_mark_text(&_track, txt);
map_force_redraw();
if (qpdata->close==TRUE)
return r;
}
-/**
- * Add a text description at current point
- *
- */
-void
-track_insert_mark_text(gchar *text)
-{
-MACRO_PATH_INCREMENT_WTAIL(_track);
-_track.wtail->point = _track.tail;
-_track.wtail->desc = text;
-}
-
/**
* Ask for a text description for the current point
*
gtk_text_buffer_get_end_iter(tbuf, &ti2);
if (gtk_text_buffer_get_char_count(tbuf)>0) {
- track_insert_mark_text(gtk_text_buffer_get_text(tbuf, &ti1, &ti2, TRUE));
+ path_insert_mark_text(&_track, gtk_text_buffer_get_text(tbuf, &ti1, &ti2, TRUE));
} else {
popup_error(dialog, _("Please provide a description for the mark."));
continue;