From: Kaj-Michael Lang Date: Thu, 18 Oct 2007 09:22:33 +0000 (+0300) Subject: select_poi -> poi_select X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6b1b1e1474685706d7d43e0ddbfe81aeb4e71a7;p=mapper select_poi -> poi_select --- diff --git a/src/cb.c b/src/cb.c index e234428..95d68ae 100644 --- a/src/cb.c +++ b/src/cb.c @@ -1180,7 +1180,7 @@ cmenu_cb_poi_route_to(GtkAction * action) { poi_info poi; -if (select_poi(x2unit(_cmenu_position_x), y2unit(_cmenu_position_y), &poi)) { +if (poi_select(x2unit(_cmenu_position_x), y2unit(_cmenu_position_y), &poi)) { guint unitx, unity; latlon2unit(poi.lat, poi.lon, unitx, unity); cmenu_route_to(unitx, unity); @@ -1194,7 +1194,7 @@ cmenu_cb_poi_distance_to(GtkAction * action) { poi_info poi; -if (select_poi(x2unit(_cmenu_position_x), y2unit(_cmenu_position_y), &poi)) { +if (poi_select(x2unit(_cmenu_position_x), y2unit(_cmenu_position_y), &poi)) { guint unitx, unity; latlon2unit(poi.lat, poi.lon, unitx, unity); cmenu_distance_to(unitx, unity); @@ -1208,7 +1208,7 @@ cmenu_cb_poi_add_route(GtkAction * action) { poi_info poi; -if (select_poi(x2unit(_cmenu_position_x), y2unit(_cmenu_position_y), &poi)) { +if (poi_select(x2unit(_cmenu_position_x), y2unit(_cmenu_position_y), &poi)) { guint unitx, unity; latlon2unit(poi.lat, poi.lon, unitx, unity); cmenu_add_route(unitx, unity); @@ -1222,7 +1222,7 @@ cmenu_cb_poi_add_way(GtkAction * action) { poi_info poi; -if (select_poi(x2unit(_cmenu_position_x), y2unit(_cmenu_position_y), &poi)) { +if (poi_select(x2unit(_cmenu_position_x), y2unit(_cmenu_position_y), &poi)) { guint unitx, unity; latlon2unit(poi.lat, poi.lon, unitx, unity); cmenu_route_add_way(unitx, unity); diff --git a/src/poi-gui.c b/src/poi-gui.c index 40a8a47..cb376cb 100644 --- a/src/poi-gui.c +++ b/src/poi-gui.c @@ -373,7 +373,7 @@ return TRUE; } gboolean -select_poi(guint unitx, guint unity, poi_info *poi) +poi_select(guint unitx, guint unity, poi_info *poi) { GtkWidget *dialog; GtkWidget *list; @@ -526,7 +526,7 @@ delete_poi dpoi = { NULL, NULL, 0 }; PoiCategoryEditInfo pcedit; if (action == ACTION_EDIT_POI) { - if (!select_poi(unitx, unity, &poi)) { + if (!poi_select(unitx, unity, &poi)) { return FALSE; }