From d46cc64ac0d406fd9f2404f5c26d6fedbf9cbe30 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Wed, 21 May 2008 14:24:21 +0300 Subject: [PATCH] PoiGui: Use lat, lon instead of map units --- src/poi-gui.c | 7 ++----- src/poi-gui.h | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/poi-gui.c b/src/poi-gui.c index bae17fd..34cdd1a 100644 --- a/src/poi-gui.c +++ b/src/poi-gui.c @@ -654,15 +654,12 @@ return selected; } gboolean -poi_select(guint unitx, guint unity, guint range, poi_info *poi) +poi_select(gdouble lat, gdouble lon, guint range, poi_info *poi) { GtkListStore *store; guint num_pois; GtkTreeIter iter; -gdouble lat, lon, r; - -r=pixel2unit(2*range); -unit2latlon(unitx, unity, lat, lon); +gdouble r; store=poi_list_store_new(); if (poi_get_list_near(lat, lon, r, store, &num_pois)==FALSE) { diff --git a/src/poi-gui.h b/src/poi-gui.h index d87ae89..bf7af30 100644 --- a/src/poi-gui.h +++ b/src/poi-gui.h @@ -45,7 +45,7 @@ struct _poi_quick_data { gdouble lon; }; -gboolean poi_select(guint unitx, guint unity, guint range, poi_info *poi); +gboolean poi_select(gdouble lat, gdouble lon, guint range, poi_info *poi); gboolean poi_edit_dialog(POIAction action, poi_info *poi); gboolean poi_search_dialog(GtkListStore *store, poi_info *poi, gdouble lat, gdouble lon); GtkWidget *poi_quick_button_box(poi_quick_data *qpdata); -- 2.39.5