#include "utils.h"
#include "poi.h"
#include "gps.h"
-#include "map.h"
+#include "gtkmap.h"
#include "mapper-types.h"
#include "ui-common.h"
#include "settings.h"
gtk_tree_model_get(model, &iter, ITEM_LON, &lon, -1);
gtk_map_center_latlon(_map, lat, lon);
-g_idle_add_full(G_PRIORITY_HIGH_IDLE,(GSourceFunc)map_update_location_from_center, NULL, NULL);
-#if 0
-gtk_widget_destroy(s->dialog);
-#endif
}
gboolean
popup_error(sd.dialog, _("Select a location from the list."));
#endif
} else {
- map_center_latlon(lat, lon);
- g_idle_add_full(G_PRIORITY_HIGH_IDLE,(GSourceFunc)map_update_location_from_center, NULL, NULL);
+ gtk_map_center_latlon(_map, lat, lon);
}
continue;
break;
#endif
} else {
position_set(_dest, TRUE, lat, lon, 0);
- g_idle_add_full(G_PRIORITY_HIGH_IDLE,(GSourceFunc)map_update_location_from_center, NULL, NULL);
}
continue;
break;