If you have a selected object filled with a gradient and you want to use the eyedropper to update the colors of the gradient, you can:
- Click once on the gradient slider (house icon) you wish to modify
- Activate the eyedropper (type i)
- Shift click on the color you want to sample, updating the gradient slider.
Thanks to Ruxman