gtk_tree_model_get(model, &iter, ITEM_LON, &lon, -1);
map_center_latlon(lat, lon);
-map_update_location_from_center();
+g_idle_add_full(G_PRIORITY_HIGH_IDLE,(GSourceFunc)map_update_location_from_center, NULL, NULL);
#if 0
gtk_widget_destroy(s->dialog);
#endif
popup_error(sd.dialog, _("Select a location from the list."));
} else {
map_center_latlon(lat, lon);
- map_update_location_from_center();
+ g_idle_add_full(G_PRIORITY_HIGH_IDLE,(GSourceFunc)map_update_location_from_center, NULL, NULL);
}
continue;
break;
popup_error(sd.dialog, _("Select a location from the list."));
} else {
_dest.valid=TRUE;
- map_update_location_from_center();
+ g_idle_add_full(G_PRIORITY_HIGH_IDLE,(GSourceFunc)map_update_location_from_center, NULL, NULL);
}
continue;
break;