]> err.no Git - mapper/commitdiff
Path: rename some path distance displaying functions
authorKaj-Michael Lang <milang@tal.org>
Tue, 22 Jul 2008 09:38:31 +0000 (12:38 +0300)
committerKaj-Michael Lang <milang@tal.org>
Tue, 22 Jul 2008 09:38:31 +0000 (12:38 +0300)
src/cb.c
src/path-mapper.c
src/path-mapper.h

index 69d2745a51d8c216db45f9352e833c74e33e332e..adee9b8fb48e8fc0821e5db18a4b1943839c6710 100644 (file)
--- a/src/cb.c
+++ b/src/cb.c
@@ -109,7 +109,7 @@ return TRUE;
 gboolean 
 menu_cb_route_distnext(GtkAction *action)
 {
-path_show_distance_to_next(_route);
+path_show_distance_to_next_waypoint(_route);
 return TRUE;
 }
 
@@ -706,7 +706,7 @@ switch (_action[custom_key]) {
                }
        break;
        case CUSTOM_ACTION_ROUTE_DISTNEXT:
-               path_show_distance_to_next(_route);
+               path_show_distance_to_next_waypoint(_route);
        break;
        case CUSTOM_ACTION_ROUTE_DISTLAST:
                path_show_distance_to_last(_route);
index 8d2063a4e4bf061d52f2783c36f11743e01b9ef9..d0bf431892ed0cd01527ae2dd8d2b1c91ec867b8 100644 (file)
@@ -19,7 +19,7 @@
  */
 
 /**
- * Contains extra path functions. 
+ * Contains extra path functions, specific to mapper
  */
 
 #include <config.h>
@@ -125,7 +125,7 @@ path_show_distance_from(path, path->head);
  * next waypoint.
  */
 gboolean 
-route_show_distance_to(Path *route, Point *point)
+path_show_distance_to(Path *route, Point *point)
 {
 gchar buffer[80];
 gdouble lat, lon;
@@ -142,24 +142,28 @@ return TRUE;
 }
 
 /**
- * route_show_distance_to_next_waypoint:
+ * path_show_distance_to_next_waypoint:
+ *
+ * Display distance to next waypoint in given route
  *
  */
 void 
-route_show_distance_to_next_waypoint(Path *route)
+path_show_distance_to_next_waypoint(Path *route)
 {
 g_return_if_fail(route);
 
-if (!route_show_distance_to(route, NULL))
+if (!path_show_distance_to(route, NULL))
        MACRO_BANNER_SHOW_INFO(_window, _("There is no next waypoint."));
 }
 
 /**
- * route_show_distance_to_last:
+ * path_show_distance_to_last:
+ *
+ * Show distance to last point in given route
  *
  */
 void 
-route_show_distance_to_last(Path *route)
+path_show_distance_to_last(Path *route)
 {
 g_return_if_fail(route);
 
index 81cc389d8f04be029a2530b414106e5f617ab05e..27112af839ce7cd56538ffc7861e0aa09b8d8032 100644 (file)
@@ -39,9 +39,10 @@ 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);
-void route_show_distance_to_last(Path *route);
-void route_show_distance_to_next(Path *route);
+
+gboolean path_show_distance_to(Path *route, Point *point);
+void path_show_distance_to_last(Path *route);
+void path_show_distance_to_next(Path *route);
 
 gboolean track_save(Path *track);
 gboolean track_open(Path *track);