From: Kaj-Michael Lang Date: Wed, 16 Jul 2008 14:18:24 +0000 (+0300) Subject: More build fixes X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a7f7a72a13fb9d02cb67ad496b5c0a575c58141;p=mapper More build fixes --- diff --git a/src/cb.c b/src/cb.c index 63644b9..1bcef4f 100644 --- a/src/cb.c +++ b/src/cb.c @@ -159,7 +159,7 @@ return TRUE; gboolean menu_cb_track_insert_break(GtkAction *action) { -path_insert_break(_track); +path_add_break(_track); path_tree_view_update_store(track_tree_view, _track); return TRUE; } @@ -167,9 +167,8 @@ return TRUE; gboolean menu_cb_track_insert_mark(GtkAction *action) { -if (path_insert_mark(_track)) { +if (path_insert_mark_ask(_track)) path_tree_view_update_store(track_tree_view, _track); -} return TRUE; } diff --git a/src/path-mapper.c b/src/path-mapper.c index 3457da2..8d2063a 100644 --- a/src/path-mapper.c +++ b/src/path-mapper.c @@ -1,5 +1,5 @@ /* - * This file is part of mapper + * This file is part of Mapper * * Copyright (C) 2007-2008 Kaj-Michael Lang * @@ -17,6 +17,11 @@ * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ + +/** + * Contains extra path functions. + */ + #include #include @@ -74,7 +79,7 @@ return res; } /** - * + * path_show_distance_from: * */ void @@ -113,6 +118,8 @@ path_show_distance_from(path, path->head); } /** + * route_show_distance_to: + * * Show the distance from the current GPS location to the given point, * following the route. If point is NULL, then the distance is shown to the * next waypoint. @@ -134,6 +141,10 @@ MACRO_BANNER_SHOW_INFO(_window, buffer); return TRUE; } +/** + * route_show_distance_to_next_waypoint: + * + */ void route_show_distance_to_next_waypoint(Path *route) { @@ -143,6 +154,10 @@ if (!route_show_distance_to(route, NULL)) MACRO_BANNER_SHOW_INFO(_window, _("There is no next waypoint.")); } +/** + * route_show_distance_to_last: + * + */ void route_show_distance_to_last(Path *route) { @@ -626,7 +641,7 @@ return r; * */ gboolean -track_insert_mark(Path *track) +path_insert_mark_ask(Path *track) { gchar tmp1[16], tmp2[16], *p_latlon; GtkWidget *dialog; diff --git a/src/path-mapper.h b/src/path-mapper.h index 88504b1..81cc389 100644 --- a/src/path-mapper.h +++ b/src/path-mapper.h @@ -36,6 +36,7 @@ gboolean route_download(Path *route, gchar *to); gboolean route_clear(Path *route); gboolean path_clear_ask(Path *path, const gchar *msg); +gboolean path_insert_mark_ask(Path *track); void route_autoroute_check(Path *route); gboolean route_show_distance_to(Path *route, Point *point);